Add --enable-ubsan
authorTom Tromey <tom@tromey.com>
Sat, 18 Aug 2018 21:32:46 +0000 (15:32 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 3 Oct 2018 21:19:06 +0000 (15:19 -0600)
commitf35d5adea1cee8ce9141ad85a7e59d008c2e4d42
tree88cb5d24575333e1977ac5aab23466d476992288
parent1dffa580e7e083a43216fd7cbcadd72c760cf29d
Add --enable-ubsan

This adds --enable-ubsan to gdb's configure.  By default it is enabled
in development mode, and disabled otherwise.  This passes both
-fsanitize=undefined and -fno-sanitize-recover=undefined to
compilations, so that undefined behavior violations will be sure to
cause test failures.

gdb/ChangeLog
2018-10-03  Tom Tromey  <tom@tromey.com>

* README: Mention --enable-ubsan.
* NEWS: Mention --enable-ubsan.
* acinclude.m4: Include sanitize.m4.
* configure: Rebuild.
* configure.ac: Call AM_GDB_UBSAN.
* sanitize.m4: New file.

gdb/doc/ChangeLog
2018-10-03  Tom Tromey  <tom@tromey.com>

* gdb.texinfo (Configure Options): Document --enable-ubsan.
gdb/ChangeLog
gdb/NEWS
gdb/README
gdb/acinclude.m4
gdb/configure
gdb/configure.ac
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/sanitize.m4 [new file with mode: 0644]