glibc/stdlib
Joseph Myers a0f0c08e4f Fix stdlib/tst-setcontext.c for GCC 12 -Warray-compare
Building stdlib/tst-setcontext.c fails with GCC mainline:

tst-setcontext.c: In function 'f2':
tst-setcontext.c:61:16: error: comparison between two arrays [-Werror=array-compare]
   61 |   if (on_stack < st2 || on_stack >= st2 + sizeof (st2))
      |                ^
tst-setcontext.c:61:16: note: use '&on_stack[0] < &st2[0]' to compare the addresses

The comparison in this case is deliberate, so adjust it as suggested
in that note.

Tested with build-many-glibcs.py (GCC mainline) for aarch64-linux-gnu.
2021-10-05 14:25:40 +00:00
..
bits Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sys Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
a64l.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
abort.c Force building with -fno-common 2021-07-09 20:09:14 +02:00
abs.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
add_n.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
addmul_1.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
alloca.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
at_quick_exit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
atexit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
atof.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
atoi.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
atol.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
atoll.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
bsearch.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
bug-fmtmsg1.c
bug-getcontext.c Simplify tilegx sysdeps folder 2017-12-20 16:55:26 -02:00
bug-strtod2.c Refactor strtod tests 2016-10-25 17:05:47 -02:00
bug-strtod.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
canonicalize.c stdlib: Sync canonicalize with gnulib [BZ #10635] [BZ #26592] [BZ #26341] [BZ #24970] 2021-01-05 11:33:16 -03:00
cmp.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
cxa_at_quick_exit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
cxa_atexit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
cxa_finalize.c fork.h: replace with register-atfork.h 2021-03-29 21:41:09 +02:00
cxa_thread_atexit_impl.c __cxa_thread_atexit_impl: Abort on allocation failure [BZ #18524] 2021-07-28 13:55:42 +05:30
dbl2mpn.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Depend
div.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
divmod_1.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
divrem.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
drand48_r.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
drand48-iter.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
drand48.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
erand48_r.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
erand48.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
errno.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
exit.c stdlib: Fix data race in __run_exit_handlers [BZ #27749] 2021-05-14 11:36:40 -03:00
exit.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fmtmsg.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
fmtmsg.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fpioconst.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fpioconst.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gen-fpioconst.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gen-tst-strtod-round.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getcontext.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getentropy.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getenv.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getrandom.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getsubopt.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gmp-impl.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gmp.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
grouping.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
grouping.h Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
groupingwc.c
inlines.c
inttypes.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
isomac.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
jrand48_r.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
jrand48.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
l64a.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
labs.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
lcong48_r.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
lcong48.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
ldbl2mpn.c
ldiv.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
llabs.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
lldiv.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
longlong.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
lrand48_r.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
lrand48.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
lshift.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
makecontext.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile dlfcn: Cleanups after -ldl is no longer required 2021-06-03 09:11:45 +02:00
mblen.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mbstowcs.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mbtowc.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mod_1.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
monetary.h Annotate additional APIs with GCC attribute access. 2021-05-06 11:01:05 -06:00
mp_clz_tab.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mpn2dbl.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mpn2flt.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mpn2ldbl.c
mrand48_r.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
mrand48.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
msort.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
mul_1.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mul_n.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mul.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nrand48_r.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
nrand48.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
old_atexit.c
on_exit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
putenv.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
qsort.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
quick_exit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
rand_r.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
rand.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
random_r.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
random.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
rpmatch.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
rshift.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
secure-getenv.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
seed48_r.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
seed48.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
setcontext.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
setenv.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
srand48_r.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
srand48.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
stdint.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
stdlib.h Enable support for GCC 11 -Wmismatched-dealloc. 2021-05-16 15:21:18 -06:00
strfmon_l.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strfmon.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strfrom-skeleton.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strfromd.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strfromf.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strfroml.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtod_l.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strtod_nan_main.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtod_nan_narrow.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtod_nan_wide.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtod_nan.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtod.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strtof_l.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strtof_nan.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtof.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strtol_l.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strtol.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtold_l.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtold_nan.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtold.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strtoll_l.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strtoll.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtoul_l.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strtoul.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strtoull_l.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
strtoull.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sub_n.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
submul_1.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
swapcontext.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
system.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tens_in_limb.c
test-a64l.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-at_quick_exit-race.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-atexit-race-common.c Define PTHREAD_STACK_MIN to sysconf(_SC_THREAD_STACK_MIN) 2021-07-09 15:10:35 -07:00
test-atexit-race.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-bz22786.c stdlib: Sync canonicalize with gnulib [BZ #10635] [BZ #26592] [BZ #26341] [BZ #24970] 2021-01-05 11:33:16 -03:00
test-canon2.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-canon.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-cxa_atexit-race2.c stdlib: Fix data race in __run_exit_handlers [BZ #27749] 2021-05-14 11:36:40 -03:00
test-cxa_atexit-race.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-dlclose-exit-race-helper.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-dlclose-exit-race.c test-dlclose-exit-race: avoid hang on pthread_create error 2021-08-04 15:33:21 -04:00
test-on_exit-race.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
testdiv.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
testdiv.input
testmb2.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
testmb.c
testrand.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
testsort.c
tst-at_quick_exit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-atexit-common.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-atexit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-atof1.c
tst-atof2.c
tst-bsearch.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tst-bz20544.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-canon-bz26341.c stdlib: Fix BZ #26241 testcase on GNU/Hurd 2021-03-24 21:58:05 +01:00
tst-cxa_atexit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-empty-env.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-environ.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-fmtmsg.c
tst-fmtmsg.sh Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-getrandom.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-limits.c
tst-makecontext2.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-makecontext3.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-makecontext-align.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-makecontext.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-on_exit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-putenv.c
tst-putenvmod.c
tst-qsort2.c
tst-qsort.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tst-quick_exit.cc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-rand48-2.c
tst-rand48.c
tst-random2.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tst-random.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tst-realpath.c Enable support for GCC 11 -Wmismatched-dealloc. 2021-05-16 15:21:18 -06:00
tst-secure-getenv.c support: Add capability to fork an sgid child 2021-04-12 19:03:19 +05:30
tst-setcontext2.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-setcontext3.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-setcontext3.sh Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-setcontext4.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-setcontext5.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-setcontext6.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-setcontext7.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-setcontext8.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-setcontext9.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-setcontext.c Fix stdlib/tst-setcontext.c for GCC 12 -Warray-compare 2021-10-05 14:25:40 +00:00
tst-strfmon_l.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strfrom-locale.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strfrom.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strfrom.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtod1i.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtod2.c
tst-strtod3.c
tst-strtod4.c Adapt test case data to the changes in the thousands separators 2017-08-12 17:20:24 +02:00
tst-strtod5.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtod5i.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtod6.c Refactor strtod tests 2016-10-25 17:05:47 -02:00
tst-strtod-nan-locale-main.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtod-nan-locale.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtod-nan-sign-main.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtod-nan-sign.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtod-overflow.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtod-round-data Fix strtod multiple-precision division bug (bug 26137). 2020-06-30 23:04:06 +00:00
tst-strtod-round-data.h Fix strtod multiple-precision division bug (bug 26137). 2020-06-30 23:04:06 +00:00
tst-strtod-round-skeleton.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtod-round.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtod-underflow.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtod.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtod.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtol-locale-main.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtol-locale.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-strtol.c
tst-strtoll.c
tst-swapcontext1.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-system.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tst-thread-quick_exit.cc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-tininess.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-tls-atexit-lib.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-tls-atexit-nodelete.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-tls-atexit.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-unsetenv1.c
tst-width-stdint.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-width.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
tst-xpg-basename.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
ucontext.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
udiv_qrnnd.c
Versions Move mcheck symbol from stdlib to malloc 2021-07-08 18:47:21 +05:30
wcstombs.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
wctomb.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
xpg_basename.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30