Commit Graph

283090 Commits

Author SHA1 Message Date
rin 2b36317ff7 Support aarch64eb; just works fine. 2020-11-17 10:47:17 +00:00
rin a8c74629f6 Support aarch64eb in */config.guess.
Cherry-picked from upstream:
https://git.savannah.gnu.org/gitweb/?p=config.git;a=commit;h=1c4398015583eb77bc043234f5734be055e64bea

Everything except external/apache2/llvm/dist/llvm/cmake/config.guess
is patched, which is under vendor tag and cannot be modified. I expect
that this file is not actually used as we use hand-crafted version of
configure script instead of cmake for building LLVM.

Note that external/apache2/llvm/autoconf/autoconf/config.guess has
already been committed on Oct. 20, but commit message disappeared as
cvs aborted due to "permission denied" when trying to modify the file
mentioned above. Sorry for confusing you.

Also note that GMP uses its own config.guess Patch for
external/lgpl3/gmp/dist/config.guess is provided by ryo@. Thanks!
2020-11-17 10:35:10 +00:00
gson b19091917e Mark t_tsan_*:*profile test cases as expected failures as discussed in
PR toolchain/55760.
2020-11-17 08:25:57 +00:00
knakahara e4eda2a5af Add new spin mutex to avoid race between ixgbe_msix_admin() and ixgbe_handle_admin().
At first, it seems "IXGBE_WRITE_REG(hw, IXGBE_EIMC, IXGBE_EIMC_OTHER)"
cannot stop interrupts, because 31th bit is reserved for 82598, 82599,
X540 and X550.  So, the current following design
    (1) ixgbe_msix_admin() disables interrupts
    (2) ixgbe_msix_admin() calls workqueue_enqueue() for ixgbe_handle_admin()
    (3) ixgbe_handle_admin() does interrupt processing
    (4) after ixgbe_handle_admin() has done all interrupt processings,
        ixgbe_handle_admin() enables interrupts
does not work correctly, that is, interrupts can be lost while
ixgbe_handle_admin() is running.

To fix that, add new spin mutex(adapter->admmin_mtx) which protects
atomically the following two members.
    - adapter->admin_pending
    - adapter->task_requests

The unnecessary "IXGBE_WRITE_REG(hw, IXGBE_EIMC, IXGBE_EIMC_OTHER)"
code will be removed later.

Reviewed and tested by hikaru@n.o and msaitoh@n.o, thanks.
2020-11-17 04:50:29 +00:00
chs 546702a64f When SS_RESTARTSYS was added, it was accidentally given the same value as
the existing SS_ASYNC.  SS_ASYNC was already vestigial at that point,
having been superceded by SB_ASYNC, however the SS_ASYNC flag is still
set and cleared, unlessly because it is never checked.
Fix this conflict by removing SS_ASYNC and its vestigial uses.
2020-11-17 03:22:33 +00:00
chs dfa4ab3ed8 Remove a pointless printf. 2020-11-17 03:20:33 +00:00
rillig bd79c8fd13 make(1): rename local functions in suffix handling
Name these functions after their main object, which is the suffix list.
2020-11-16 23:27:41 +00:00
rillig c848b17077 make(1): merge duplicate calls to SuffInsert 2020-11-16 23:23:57 +00:00
rillig 4cd1b0bee0 make(1): clean up code style in make.c and suff.c 2020-11-16 22:31:42 +00:00
rillig 50a84755c6 make(1): clean up code style in targ.c 2020-11-16 22:28:44 +00:00
rillig 66dadf45cc make(1): initialize and free GNode fields in declaration order
Initialization and destruction of the fields is independent from the
other fields.  Therefore use declaration order, which allows to quickly
see whether a field was forgotten.

While here, add comments that in cleanup mode, not all memory is freed.
The variables of a node and the suffix survive right now.
2020-11-16 22:27:03 +00:00
rillig a13421bf80 make(1): fix initialization order of modules (broken since today)
In CLEANUP mode, Var_Init depends on Targ_Init since the variable scopes
are implemented as GNodes.

By the way, since 1999-09-15 variables are no longer stored in lists but
in hash tables.
2020-11-16 22:08:20 +00:00
rillig 5f6b9ee03e make(1): rename variables in targ.c
The previous names didn't make it obvious that 'allTargets' and 'targets'
belong together.  Naming both 'allTargets' provides a stronger hint.
2020-11-16 21:59:08 +00:00
rillig 2084acadbb make(1): clean up and extend comments in targ.c 2020-11-16 21:53:10 +00:00
rillig 73f094ffae make(1): make some GNode functions const 2020-11-16 21:48:18 +00:00
rillig e99bba9c48 make(1): in CLEANUP mode, preallocate list of all GNodes
This makes the code simpler and more uniform.
2020-11-16 21:44:29 +00:00
rillig b478f4bee7 make(1): rename TargFreeGN to GNode_Free
This is the usual counterpart to a New function, like for Lst, HashTable,
Buffer.
2020-11-16 21:41:02 +00:00
rillig b360908cec make(1): rename Targ_NewGN to GNode_New
This function is a classical constructor function, and if it weren't for
CLEANUP mode, it would have no dependencies on anything else besides the
memory allocator.  Therefore it doesn't really matter which module
defines this function, and there is no need for the "Targ" to be part of
the function name.
2020-11-16 21:39:22 +00:00
rillig 45c6dd2a91 make(1): inline SUFF_DEBUG3 and SUFF_DEBUG4
Each of them was only used a single time, which was not worth an
additional macro.
2020-11-16 18:49:54 +00:00
rillig 46bda17f30 make(1): clean up coding style in suff.c 2020-11-16 18:47:03 +00:00
rillig c0556f26c6 make(1): improve local variable names in suff.c
The name 's' was used for both 'suff' and 'src', which was unnecessarily
confusing.
2020-11-16 18:45:44 +00:00
rillig a904d54e51 make(1): remove redundant braces and parentheses from suff.c 2020-11-16 18:41:41 +00:00
rillig 768707fd01 make(1): use boolean expressions in conditions 2020-11-16 18:38:49 +00:00
rillig c1fe01b2fe make(1): clean up comments in suff.c 2020-11-16 18:34:29 +00:00
rillig 71e1e47432 make(1): use postfix increment where possible 2020-11-16 18:28:27 +00:00
rillig 21564d7f02 make(1): mark Suff.ref as probably unused 2020-11-16 16:15:37 +00:00
rillig f40c84018a make(1): add test for self-referencing suffix rule
Just to ensure that make doesn't run into an endless loop.
2020-11-16 15:12:16 +00:00
nia d953e5e10c system.ctwmrc: Set Cursors to avoid strange default fallbacks 2020-11-16 14:12:46 +00:00
rin 8de4dab803 Fix little-endian dependence in wm_rxeof(), by which packets cannot be
received by 82574 and successors on big-endian machines.

Tested by aarch64eb with I210-T1 on ROCKPro64.

Thanks msaitoh for discussion!

XXX
pullup to netbsd-9 and netbsd-8
2020-11-16 11:54:10 +00:00
rin bdaedb86bc Correctly support aarch64eb and earmv7hfeb in a similar manner to
their little-endian counterparts.

Fix build failures for periodic binary snapshots.
2020-11-16 11:38:29 +00:00
msaitoh da4e125dac s/reseting/resetting/ 2020-11-16 00:12:13 +00:00
rillig 39390ebfcd make(1): clean up coding style in compat, parse, suff 2020-11-15 22:31:03 +00:00
rillig cf24ed751a make(1): document why .BEGIN cannot be combined with .USE/.USEBEFORE 2020-11-15 22:28:08 +00:00
rillig 81f83ffc8f make(1): fix typo in test for variable with empty name 2020-11-15 20:50:46 +00:00
rillig 52dc87bd97 make(1): add loud target to the .SILENT test 2020-11-15 20:49:20 +00:00
rillig 8b9a4b8f91 make(1): add tests for the .BEGIN node 2020-11-15 20:47:01 +00:00
rillig 7c69bb8eca make(1): update and add comments in tests
As a result of the new comments, some line numbers have changed in the
output of the tests.  No other changes.
2020-11-15 20:20:58 +00:00
rillig 2655930386 make(1): add remarks to var.c and the test varmod-match 2020-11-15 18:33:41 +00:00
rillig 32363c2f23 make(1): rename ApplyModifiersState.v to var 2020-11-15 18:32:29 +00:00
rillig 6d2affbd76 make(1): add remarks to the tests about conditions 2020-11-15 14:58:14 +00:00
rillig 960c8aaeec make(1): add tests for the '!' operator in conditions 2020-11-15 14:14:24 +00:00
rillig e3d2e555ae make(1): clean up some tests
Fix some mistakes in comments.

Improve some comments to be easier understandable.

Inline variables that are irrelevant for the test at hand (RUN,
MAKE_CMD).

Remove references to functions and constants that have since been removed
or renamed.
2020-11-15 14:07:53 +00:00
rillig 6a13e2b2ff make(1): add test for operator precedence using truth tables 2020-11-15 14:04:26 +00:00
bouyer 52ef68b6a2 Don't restrict debug event to XENPV, it's also usefull for PVH/PVHVM 2020-11-15 14:01:06 +00:00
bouyer f3a5eb781c remove unused x86_cpu_initclock_func() 2020-11-15 13:59:42 +00:00
mlelstv d995deafd0 Don't unlock without having taken the lock. 2020-11-15 12:33:53 +00:00
rillig 1c1f145671 make(1): clean up make.h, meta.c, parse.c, str.c
The main changes are in the comments, which have been shortened and
corrected.

Some local variables changed their names.

In ParseErrorInternal, the scope of va_start is now narrower.

In ParseDoDependency, the type of tOp has been fixed.

ParseGetLine doesn't take flags anymore but instead a parsing mode.
Previously, the flags had not been combined anyway.

At the beginning of Parse_File, fatals is already guaranteed to be 0, and
even if not, it would be wrong to just discard the fatal errors.
2020-11-15 12:02:44 +00:00
rillig c687019fa0 make(1): add tests for edge cases when parsing directives 2020-11-15 11:57:00 +00:00
rillig b98bad40ff make(1): clean up make.c stylistically 2020-11-15 10:11:26 +00:00
rillig bc1d97ac3e make(1): rename checked to checked_seqno
The new name is more precise and also matches the GNode field.
2020-11-15 09:57:05 +00:00