X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=configure.ac;h=6309b6e033df021ce7d8f5cb789186cb5431554c;hb=d431cc14f36657ac7cabdfad0d124b8fce3620bb;hp=9c38fadfd9425d26d49853b97081b19199d410df;hpb=ffa8bd48e33d601fc4fccc3ad14449c80483daa2;p=deliverable%2Fbinutils-gdb.git diff --git a/configure.ac b/configure.ac index 9c38fadfd9..6309b6e033 100644 --- a/configure.ac +++ b/configure.ac @@ -2566,7 +2566,13 @@ if test "$GCC" = yes; then # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it. CFLAGS="$CFLAGS -fkeep-inline-functions" AC_MSG_CHECKING([whether -fkeep-inline-functions is supported]) - AC_TRY_COMPILE(,, + AC_TRY_COMPILE([ +#if (__GNUC__ < 3) \ + || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \ + || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1))) +#error http://gcc.gnu.org/PR29382 +#endif + ],, [AC_MSG_RESULT([yes]); stage1_cflags="$stage1_cflags -fkeep-inline-functions"], [AC_MSG_RESULT([no])])