From: Kazu Hirata Date: Wed, 3 Oct 2007 14:35:31 +0000 (+0000) Subject: * no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function. X-Git-Tag: sid-snapshot-20071101~454 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f754a10f32c68b26f7caccdc5e1836ee4d6b8934;p=thirdparty%2Fbinutils-gdb.git * no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function. --- diff --git a/config/ChangeLog b/config/ChangeLog index f3d9fe98d70..d1ee4bc7cb8 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,17 @@ +2007-10-03 Richard Sandiford + + * no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function. + +2007-10-03 Kazu Hirata + + Revert: + 2007-10-02 Richard Sandiford + * no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function. + +2007-10-02 Richard Sandiford + + * no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function. + 2007-09-21 Richard Sandiford * 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])