summaryrefslogtreecommitdiffstats
path: root/config/gnu-flags
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-01-13 17:16:50 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-01-13 17:16:50 (GMT)
commitce5dca112e7b221b5573137d02baa6acd98a8c43 (patch)
treed630a58ba8318268711d0c4f89ced6ebedfe5a7c /config/gnu-flags
parent3d4529bf2a78fa85c8ca56b30e60e4b9578baf0a (diff)
downloadhdf5-ce5dca112e7b221b5573137d02baa6acd98a8c43.zip
hdf5-ce5dca112e7b221b5573137d02baa6acd98a8c43.tar.gz
hdf5-ce5dca112e7b221b5573137d02baa6acd98a8c43.tar.bz2
[svn-r6274] Purpose:
Code cleanup Description: Added gcc 3.2-specific warnings. Platforms tested: FreeBSD 4.7 (sleipnir) w/gcc 3.2.1
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'`"