Commit Graph

281369 Commits

Author SHA1 Message Date
thorpej
ec971bedf3 - Fix some bugs in previous, mainly related to indexing the correct
interrupt queue.
- Make sure to update cpu_info::ci_nintrhand if an irq moves from
  one CPU to another.
2020-09-26 02:35:31 +00:00
rillig
47974f53da make(1): replace a few Lst_ForEachUntil with simpler Lst_ForEach 2020-09-26 00:03:29 +00:00
rillig
6513361416 make(1): fix grammar and style in test dep-colon-bug-cross-file 2020-09-25 23:42:43 +00:00
rillig
6686652d07 make(1): remove redundant variable inLine from parse.c
This variable has served at least 27 years bringing unnecessary
redundancy to the code.  It was already redundant at 1993-03-21, when
the code was imported to NetBSD.
2020-09-25 23:39:51 +00:00
rillig
f500f93435 make(1): rename ParseFinishLine to FinishDependencyGroup
Even after 27 or more years, it's not too late to fix bad function
names.  This one for example does not finish a line but a dependency
group.
2020-09-25 23:35:25 +00:00
rillig
37aa92d20a make(1): fix missing check for duplicate commands in Parse_File 2020-09-25 23:30:16 +00:00
rillig
6c4e4cfc20 make(1): add test for harmless bug in Parse_File
When there is a dependency group at the end of a top-level makefile,
this dependency group is not finished properly.  This allows to add
further commands to the targets of this dependency group, which was not
intended.
2020-09-25 23:24:49 +00:00
rillig
68badaed50 make(1): fix undefined behavior for .MAKEFLAGS: -f file
Since at least 1993-03-21, adding other makefiles in a .MAKEFILES
dependency has invoked undefined behavior because the command line
arguments were copied directly into the global makefiles variable,
without a proper strdup.  Shortly after that, the word list created by
Str_Words (formerly brk_string) was freed.

This applies to both the -f and the -v and -V options.  Luckily it is an
edge case to use these options in .MAKEFLAGS at all.

The -T option had already been fixed at 2000-12-30, but not the other
options.
2020-09-25 23:18:59 +00:00
rillig
0ba7433aaf make(1): inline Lst_ForEachUntil in ParseLine_ShellCommand 2020-09-25 21:13:44 +00:00
rillig
31142950da make(1): extract ParseLine_ShellCommand from Parse_File
Parsing a single shell command from a line does not belong in
Parse_File, its proper place is in Parse_Line.  Having the whole
detailed code inline in Parse_File is even more confusing.
2020-09-25 20:57:22 +00:00
rillig
ba0ed6616b make(1): rename variables cp2 to be more expressive 2020-09-25 20:48:23 +00:00
rillig
922e04669b make(1): add test for make() function in conditions 2020-09-25 20:11:06 +00:00
rillig
abab61aa26 make(1): declare strings for suff.c constant 2020-09-25 19:50:04 +00:00
rillig
628f6ff857 make(1): extract parsing of the -dF option into separate function 2020-09-25 19:40:23 +00:00
rillig
489634a883 make(1): extract InitVarTarget from main 2020-09-25 19:24:56 +00:00
rillig
3d82cec1cd make(1): in FindSuffByName, return the suffix instead of a list node
None of the callers was interested in the list node.
2020-09-25 18:58:12 +00:00
rillig
b4b854cf1c make(1): add test for deleting the suffixes during parsing 2020-09-25 18:18:25 +00:00
rillig
ee4bd6beb7 make(1): migrate suff.c from Lst_ForEachUntil to Lst_ForEach 2020-09-25 17:55:19 +00:00
rillig
2db477ba0f make(1): convert int to size_t for string lengths
Just for formal reasons.  There is no practical scenario in which any
filename suffix would grow larger than a few kilocharacters.
2020-09-25 17:14:32 +00:00
rillig
14b8b0f106 make(1): don't use reserved names in type names 2020-09-25 16:28:29 +00:00
rillig
aae3c7b59c make(1): replace Lst_Find with FindSuffByName 2020-09-25 16:27:15 +00:00
rillig
009ae8030a make(1): add tags to some of the unnamed structs
The tags prevent the structs from accidentally becoming compatible
types.

While here, remove a few typedefs for structs that are single-purpose,
since there is no point in abstracting from the actual representation of
these types.
2020-09-25 15:54:50 +00:00
rillig
9e29c82f91 make(1): rename local variables in ParseFuncArg 2020-09-25 15:40:06 +00:00
rillig
8d74bb7e38 make(1): inline ArchFindArchive into ArchStatMember
This avoids a few void pointers and unnecessary function calls.
2020-09-25 14:49:51 +00:00
rillig
cd77909724 make(1): make code in ArchSVR4Entry simpler 2020-09-25 14:41:35 +00:00
rillig
1699bf056f make(1): fix type of local variable in ParseModifierPart
Thanks, Clang-Tidy.
2020-09-25 14:10:09 +00:00
rillig
f7a07e60cf make(1): fix type of local variable in ApplyModifiers
Thanks, Clang-Tidy.
2020-09-25 14:07:12 +00:00
rillig
e1c1f6772d make(1): inline Lst_ForEach in MakeUnmark
By the way, the additional argument to Lst_ForEach was not used at all.
2020-09-25 14:00:17 +00:00
jakllsch
5e1437bacb spelling fixes in sd.c comments 2020-09-25 13:08:00 +00:00
christos
ca734aa17e Add one more place to notify blocklistd 2020-09-25 12:52:59 +00:00
christos
f4fce374ab Notify blacklistd about smtp auth failures (Jeff Rizzo) 2020-09-25 12:52:12 +00:00
rillig
921a8f8fce make(1): replace a few calls to Lst_Open with simple loops
This avoids relying on the internal iterator of the list, which is
supposed to be removed in the near future.
2020-09-25 06:49:13 +00:00
skrll
1167459d34 Add a newline 2020-09-25 06:47:24 +00:00
yamaguchi
8b0845fca9 Add a function to copy AC-Name and Service-Name 2020-09-25 06:22:33 +00:00
rillig
96e1152df4 make(1): document details on why JobRun runs .END in compat mode 2020-09-25 06:20:44 +00:00
yamaguchi
643fff90fa update test cases for AC-Name and Service-Name 2020-09-25 06:15:30 +00:00
yamaguchi
0ee4d5987e Clear AC-Name and Service-Name if params are not specified 2020-09-25 06:12:33 +00:00
yamaguchi
52817f12eb Add test cases for AC-Name and Service-Name 2020-09-25 06:07:31 +00:00
rillig
4b0186d54c make(1): document expansion of undefined variables in Var_Subst
From reading the code alone, it is not obvious what effects this
innocent-looking code has.
2020-09-25 06:06:15 +00:00
rillig
df955ddda3 make(1): add test for partial expansion of undefined variables 2020-09-25 05:56:59 +00:00
rillig
bb82a5bfdc make(1): rename local variables in Var_Subst
The variable name "str" did not make it clear enough that the pointer is
constantly moving, to parse the given string.  The name "p" expresses
this more clearly.
2020-09-25 05:04:51 +00:00
rillig
293320330f make(1): fix build on Debian 9
lst.h:92:5: error: unknown type name 'uint8_t'

It had been broken since the previous commit on 2020-09-24 08:23:29.
2020-09-25 04:18:11 +00:00
thorpej
d15aec9581 Changes to make interrupt {,dis}establish MP-safe on Alpha:
- Protect all of the system interrupt linkage with the cpu_lock mutex.
- Re-order some of the stores to the SCB vector table to make it safe
  in the face of lockless interrupt dispatch.
- Add a framework for routing interrupts to specific CPUs.  Interrupts
  are still funneled only to the primary CPU, but that will change for
  some systems soon.  Ensure that interrupt handler lists are manipulated
  only on the CPUs that handle that specific interrupt source.  This required
  a re-factor of the alpha_shared_intr_*() family of functions.
- Enable __HAVE_INTR_CONTROL, although interrupt redistribution is still
  a no-op.
- Reduce code duplication in the Jenson direct-SCB interrupt handlers.
2020-09-25 03:40:11 +00:00
riastradh
84f2820dbf lfs: Include lfs_debug.c only if DEBUG is enabled. 2020-09-24 17:20:53 +00:00
ryo
d32ad742a6 fix *_bs_rm_4_swap(). it was only reading 2 bytes, not 4 bytes.
pointed out by skrll@ thanks.
2020-09-24 16:15:49 +00:00
christos
5093c1f669 Add the generated version file 2020-09-24 14:54:03 +00:00
christos
bc11a54ebd Add version.cc 2020-09-24 14:53:35 +00:00
christos
254454c5af grab the gdbserver version 2020-09-24 14:53:17 +00:00
pgoyette
47b23bc72c As indicated at the top of the file, don't simply remove entries. Instead
we need to mark them "obsolete" so they will get removed if already in the
$DESTDIR
2020-09-24 14:14:18 +00:00
skrll
177f3da6ce Trailing whitespace 2020-09-24 11:02:02 +00:00