]> 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)
committerBruno Haible <bruno@clisp.org>
Tue, 1 Oct 2024 20:57:01 +0000 (22:57 +0200)
commit54aafa800a0346268801dfd5fef65fa42962cd6e
tree68a3be4e97b1b99c2172d219952c05c683b9a820
parent1506c1454cb3462be1c3a4b989ba658fe209bf29
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