diff --git a/configure.ac b/configure.ac index 53599073b..fa176d394 100644 --- a/configure.ac +++ b/configure.ac @@ -643,6 +643,21 @@ AM_COND_IF([GCC], CXXFLAGS+=" -fvtable-verify=none" ]) +AM_COND_IF([CLANG], +[ + CXXFLAGS+=" -fasm-blocks" +]) + +AM_COND_IF([GCC], +[ + CXXFLAGS+=" -fverbose-asm" +]) + +dnl Exception safety at instruction boundary rather than function boundary +dnl This option is needed to enable noexcept(false) i.e to throw from a +dnl destructor; without this noexcept(false) still terminates. +CXXFLAGS+=" -fasynchronous-unwind-tables" + dnl -fvisibility-inlines-hidden - for optimization; note the address of inline dnl functions won't be the same between translation units CXXFLAGS+=" -fvisibility-inlines-hidden" @@ -662,17 +677,6 @@ dnl be sufficiently low or simply immaterial for our uses of them. dnl CXXFLAGS+=" -fno-threadsafe-statics" -dnl -AM_COND_IF([GCC], -[ - CXXFLAGS+=" -fverbose-asm" -]) - -AM_COND_IF([CLANG], -[ - CXXFLAGS+=" -fasm-blocks" -]) - dnl dnl Compiler warnings dnl