summaryrefslogtreecommitdiffstats
path: root/config/gnu-flags
diff options
context:
space:
mode:
Diffstat (limited to 'config/gnu-flags')
-rw-r--r--config/gnu-flags24
1 files changed, 24 insertions, 0 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index e2a84c2..ebdb0c5 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -115,6 +115,11 @@ esac
# Host-specific flags
case "`hostname`" in
sleipnir.ncsa.uiuc.edu)
+# case "$cc_vendor-$cc_version" in
+# gcc-3.2*)
+# ARCH="`echo $ARCH | sed -e 's/i686/athlon-mp/g'`"
+# ;;
+# esac
ARCH="$ARCH -pipe"
;;
esac
@@ -179,6 +184,25 @@ case "$cc_vendor-$cc_version" in
cc_flags_set=yes
;;
+ gcc-3.2*)
+ # Replace -ansi flag with -std=c99 flag
+ CFLAGS="`echo $CFLAGS | sed -e 's/-ansi/-std=c99/g'`"
+
+ # Append warning flags from gcc-2.95.* case
+ CFLAGS="$CFLAGS -Wno-long-long"
+
+ # Append warning flags from gcc-3* case
+ CFLAGS="$CFLAGS -Wfloat-equal -Wmissing-format-attribute -Wpadded"
+
+ # Append more extra warning flags that only gcc3.2+ know about
+ CFLAGS="$CFLAGS -Wmissing-noreturn -Wpacked -Wdisabled-optimization -Wcomments"
+ # The "unreachable code" warning does not appear to be reliable yet...
+ #CFLAGS="$CFLAGS -Wunreachable-code"
+
+ # Flags are set
+ cc_flags_set=yes
+ ;;
+
gcc-3*)
# Replace -ansi flag with -std=c99 flag
CFLAGS="`echo $CFLAGS | sed -e 's/-ansi/-std=c99/g'`"