From 1b89fa3640004e4989b89f79031b4b93792ee4d9 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Thu, 23 Aug 2001 12:14:06 -0500 Subject: [svn-r4408] Purpose: Feature Addition Description: Added support for gcc 3.0.x. GCC 3.0.x supports the C99 specification. The "-std=c99" gets rid of those annoying "warning long long not supported by ANSI standard" messages. Platforms tested: Linux and gcc 3.0.1 --- config/gnu-flags | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/config/gnu-flags b/config/gnu-flags index 22ed2be..1938563 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -89,7 +89,7 @@ case "$host_os-$host_cpu" in *Pro*|*II*) # This check should be kept in sync with the *-i686 check below case "$cc_vendor-$cc_version" in - gcc-2.95*) + gcc-2.95*|gcc-3*) ARCH=${ARCH:="-march=i686"} ;; gcc-*|egcs-*|pgcc-*) @@ -102,7 +102,7 @@ case "$host_os-$host_cpu" in *-i686) case "$cc_vendor-$cc_version" in - gcc-2.9[56]*) + gcc-2.9[56]*|gcc-3*) ARCH=${ARCH:="-march=i686"} ;; gcc-*|egcs-*|pgcc-*) @@ -177,6 +177,13 @@ case "$cc_vendor-$cc_version" in cc_flags_set=yes ;; + gcc-3.*) + CFLAGS="`echo $CFLAGS | sed -e 's/-ansi/-std=c99/g'`" + + # Flags are set + cc_flags_set=yes + ;; + egcs-2.*|pgcc-2.*) # General CFLAGS="$CFLAGS $ARCH -Wsign-compare" -- cgit v0.12