diff options
author | Richard Sandiford <richard@codesourcery.com> | 2007-10-02 17:25:18 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2007-10-02 17:25:18 +0000 |
commit | b32265748a6cdc6b0ec0847df950a5dfe3e814df (patch) | |
tree | e0496d2db1016505bf73dc8cd73cf2d885bd0b32 /config/no-executables.m4 | |
parent | 506f93badbb17e744622fc38b5045226ac74dcfc (diff) | |
download | gcc-b32265748a6cdc6b0ec0847df950a5dfe3e814df.zip gcc-b32265748a6cdc6b0ec0847df950a5dfe3e814df.tar.gz gcc-b32265748a6cdc6b0ec0847df950a5dfe3e814df.tar.bz2 |
no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function.
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.
From-SVN: r128959
Diffstat (limited to 'config/no-executables.m4')
-rw-r--r-- | config/no-executables.m4 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/no-executables.m4 b/config/no-executables.m4 index 54e5a02..c4d0b70 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]) |