aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRichard Sandiford <richard@codesourcery.com>2007-10-02 17:25:18 +0000
committerKazu Hirata <kazu@codesourcery.com>2007-10-02 17:25:18 +0000
commit1e0b76823ef5e79f4e7e912daf6b72f8d7d85bd5 (patch)
treee0496d2db1016505bf73dc8cd73cf2d885bd0b32 /config
parente775e8e06c85ad829a583540eaeff89e2bc082df (diff)
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: https://gcc.gnu.org/svn/gcc/trunk@128959 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'config')
-rw-r--r--config/ChangeLog4
-rw-r--r--config/no-executables.m48
2 files changed, 12 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog
index f3d9fe98d70..67763a20ea6 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2007-10-02 Richard Sandiford <richard@codesourcery.com>
+
+ * no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function.
+
2007-09-21 Richard Sandiford <rsandifo@nildram.co.uk>
* mt-sde (CFLAGS_FOR_TARGET): Replace -fno-optimize-sibling-calls
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])