[xiph-commits] r9686 - trunk/vorbis

giles at svn.xiph.org giles at svn.xiph.org
Mon Aug 1 11:41:29 PDT 2005


Author: giles
Date: 2005-08-01 11:41:28 -0700 (Mon, 01 Aug 2005)
New Revision: 9686

Modified:
   trunk/vorbis/configure.in
Log:
Apparently gcc -dumpversion has worked at least since 2.7.2, use this for
version detection instead since it's cleaner and probably more reliable.


Modified: trunk/vorbis/configure.in
===================================================================
--- trunk/vorbis/configure.in	2005-08-01 04:56:12 UTC (rev 9685)
+++ trunk/vorbis/configure.in	2005-08-01 18:41:28 UTC (rev 9686)
@@ -99,6 +99,9 @@
         esac
 else
 
+	AC_MSG_CHECKING([GCC version])
+	GCC_VERSION=`$CC -dumpversion`
+	AC_MSG_RESULT([$GCC_VERSION])
 	case $host in 
 	*86-*-linux*)
 		DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
@@ -166,6 +169,14 @@
 		CFLAGS="-O20 -D__NO_MATH_INLINES -fsigned-char"
 		PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
         esac
+
+	case "$GCC_VERSION" in
+	4.*)
+		# work around a problem with the gcc4 optimizer
+		PROFILE="$DEBUG -fno-inline-functions"
+		CFLAGS="$CFLAGS -fno-inline-functions"
+		PROFILE="$PROFILE -fno-inline-functions" ;;
+	esac
 fi
 CFLAGS="$CFLAGS $cflags_save"
 LDFLAGS="$LDFLAGS $ldflags_save"



More information about the commits mailing list