aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2020-07-13 14:47:44 +0100
committerGary Benson <gbenson@redhat.com>2020-07-13 14:47:44 +0100
commit2a122642b4e4a7ec0f414b30d6ed7c48bc5c2eeb (patch)
tree33bbc8cf61298451c57238118d44bd92d9d9ba10 /binutils
parent3f00c730acee9d452ba81a3083f2c02d13c9f312 (diff)
downloadfsf-binutils-gdb-2a122642b4e4a7ec0f414b30d6ed7c48bc5c2eeb.zip
fsf-binutils-gdb-2a122642b4e4a7ec0f414b30d6ed7c48bc5c2eeb.tar.gz
fsf-binutils-gdb-2a122642b4e4a7ec0f414b30d6ed7c48bc5c2eeb.tar.bz2
Use volatile pointers when attempting to trigger SIGSEGVs
Clang fails to compile a number of files with the following warning: indirection of non-volatile null pointer will be deleted, not trap [-Wnull-dereference]. This commit qualifies the relevant pointers with 'volatile'. gdb/testsuite/ChangeLog: * gdb.base/bigcore.c (main): Use a volatile pointer when attempting to trigger a SIGSEGV. * gdb.base/gcore-relro-pie.c (break_here): Likewise. * gdb.base/gcore-tls-pie.c (break_here): Likewise. * gdb.base/savedregs.c (thrower): Likewise. * gdb.mi/mi-syn-frame.c (bar): Likewise.
Diffstat (limited to 'binutils')
0 files changed, 0 insertions, 0 deletions