diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2007-10-03 14:35:31 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2007-10-03 14:35:31 +0000 |
commit | f754a10f32c68b26f7caccdc5e1836ee4d6b8934 (patch) | |
tree | 95573bbe03b6c865cf37a5aab5b994957d685a6b | |
parent | 73f4d86e6bf362bd025556c33fecbdc341a88e95 (diff) | |
download | gdb-f754a10f32c68b26f7caccdc5e1836ee4d6b8934.zip gdb-f754a10f32c68b26f7caccdc5e1836ee4d6b8934.tar.gz gdb-f754a10f32c68b26f7caccdc5e1836ee4d6b8934.tar.bz2 |
* no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function.
-rw-r--r-- | config/ChangeLog | 14 | ||||
-rw-r--r-- | config/no-executables.m4 | 8 |
2 files changed, 22 insertions, 0 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index f3d9fe9..d1ee4bc 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,17 @@ +2007-10-03 Richard Sandiford <richard@codesourcery.com> + + * no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function. + +2007-10-03 Kazu Hirata <kazu@codesourcery.com> + + Revert: + 2007-10-02 Richard Sandiford <richard@codesourcery.com> + * no-executables.m4 (GCC_TRY_COMPILE_OR_LINK): New function. + +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 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]) |