diff options
author | Tom Tromey <tom@tromey.com> | 2018-08-18 15:32:46 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-10-03 15:19:06 -0600 |
commit | f35d5adea1cee8ce9141ad85a7e59d008c2e4d42 (patch) | |
tree | 88cb5d24575333e1977ac5aab23466d476992288 /gdb/configure.ac | |
parent | 1dffa580e7e083a43216fd7cbcadd72c760cf29d (diff) | |
download | gdb-f35d5adea1cee8ce9141ad85a7e59d008c2e4d42.zip gdb-f35d5adea1cee8ce9141ad85a7e59d008c2e4d42.tar.gz gdb-f35d5adea1cee8ce9141ad85a7e59d008c2e4d42.tar.bz2 |
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.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r-- | gdb/configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac index 88f2fc4..dfb7c87 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1838,6 +1838,7 @@ GDB_AC_WITH_DIR(SYSTEM_GDBINIT, system-gdbinit, []) AM_GDB_WARNINGS +AM_GDB_UBSAN # In the Cygwin environment, we need some additional flags. AC_CACHE_CHECK([for cygwin], gdb_cv_os_cygwin, |