From f37f5f30a09421747bdeef41f84622f0fc06acf9 Mon Sep 17 00:00:00 2001 From: kazu Date: Tue, 2 Oct 2007 17:25:18 +0000 Subject: config/ * no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function. libstdc++/ * acinclude.m4 (GLIBCXX_ENABLE_C99): Temporarily add -fno-exceptions to CXXFLAGS. Use GCC_TRY_COMPILE_OR_LINK. Make the tests assign results to volatile variables. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128959 138bc75d-0d04-0410-961f-82ee72b054a4 --- config/no-executables.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config/no-executables.m4') diff --git a/config/no-executables.m4 b/config/no-executables.m4 index 54e5a024288..c4d0b70c375 100644 --- a/config/no-executables.m4 +++ b/config/no-executables.m4 @@ -59,3 +59,11 @@ fi) m4_divert_pop()dnl ])# GCC_NO_EXECUTABLES + +# Use the strongest available test out of AC_TRY_COMPILE and AC_TRY_LINK. +AC_DEFUN([GCC_TRY_COMPILE_OR_LINK], +[if test x$gcc_no_link = xyes; then + AC_TRY_COMPILE([$1], [$2], [$3], [$4]) +else + AC_TRY_LINK([$1], [$2], [$3], [$4]) +fi]) -- cgit v1.2.1