]> Savannah Git Hosting - gnulib.git/commit
sigsegv-tests: port to GCC 14
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 21 Sep 2024 02:24:39 +0000 (19:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 21 Sep 2024 02:24:39 +0000 (19:24 -0700)
commitc6942e47da903adc68b887cbedfac07b099088f2
tree6ba6f0310882ae1b895f1f2c9fdccfbd785e9df9
parent5eee46d1f789d2988c6ab3321357b49a29d6ea47
sigsegv-tests: port to GCC 14

GCC 14 on x86-64 with -O2 apparently outsmarts our test for null
pointer dereference, and this is something the C standard allows.
Fix the test by putting ‘volatile’ at the right place.
* tests/test-sigsegv-catch-stackoverflow2.c (null_pointer):
Make it a volatile pointer, not a pointer to volatile.
Also, rename from null_pointer_to_volatile_int; use changed.
ChangeLog
tests/test-sigsegv-catch-stackoverflow2.c