diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-08-01 20:52:46 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-08-01 20:52:46 +0100 |
commit | 9fbd2e55a11d518f049ed3e7b0b9f647383eb020 (patch) | |
tree | 02c34fc0edd2a4239fadb2a51359fd012e2bb882 /libstdc++-v3/configure | |
parent | c191b1abe9db08abdf3b2d792980e8eee63735b5 (diff) |
Add -D_GLIBCXX_ASSERTIONS to DEBUG_FLAGS
Enable assertions in the extra debug library built when
--enable-libstdcxx-debug is used. Replace some Debug Mode assertions
in src/c++11/futex.cc with __glibcxx_assert, because the library will
never be built with Debug Mode.
* configure: Regenerate.
* configure.ac: Add -D_GLIBCXX_ASSERTIONS to default DEBUG_FLAGS.
* src/c++11/futex.cc: Use __glibcxx_assert instead of
_GLIBCXX_DEBUG_ASSERT.
From-SVN: r263235
Diffstat (limited to 'libstdc++-v3/configure')
-rwxr-xr-x | libstdc++-v3/configure | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure index 54a2e8a380e..d33081d544c 100755 --- a/libstdc++-v3/configure +++ b/libstdc++-v3/configure @@ -1571,7 +1571,7 @@ Optional Features: --enable-concept-checks use Boost-derived template checks [default=no] --enable-libstdcxx-debug-flags=FLAGS pass compiler FLAGS when building debug library - [default="-gdwarf-4 -g3 -O0"] + [default="-gdwarf-4 -g3 -O0 -D_GLIBCXX_ASSERTIONS"] --enable-libstdcxx-debug build extra debug library [default=no] --enable-cxx-flags=FLAGS @@ -17932,7 +17932,7 @@ if test "${enable_libstdcxx_debug_flags+set}" = set; then : *) as_fn_error "--enable-libstdcxx-debug-flags needs compiler flags as arguments" "$LINENO" 5 ;; esac else - enable_libstdcxx_debug_flags="-gdwarf-4 -g3 -O0" + enable_libstdcxx_debug_flags="-gdwarf-4 -g3 -O0 -D_GLIBCXX_ASSERTIONS" fi |