summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-05-04 16:13:07 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-05-04 16:13:07 (GMT)
commit6f06567887eafcd441a246925cdc3ec727357013 (patch)
treeefd56d641d958540a40d5cf4659d365ec6624456
parentb0f2e2a64f4eb77d8f2eccf12519fe609e0682ef (diff)
downloadhdf5-6f06567887eafcd441a246925cdc3ec727357013.zip
hdf5-6f06567887eafcd441a246925cdc3ec727357013.tar.gz
hdf5-6f06567887eafcd441a246925cdc3ec727357013.tar.bz2
[svn-r10723] Purpose:
Bug fix (sorta) Description: Turn down the optimization level for gcc 4.1 also. Platforms tested: FreeBSD 4.11 (sleipnir) Not tested w/h5committest
-rw-r--r--config/gnu-flags8
1 files changed, 6 insertions, 2 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index 354c7ab..c31bc72 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -129,7 +129,7 @@ case "$cc_vendor-$cc_version" in
gcc-2.95.[34])
PROD_CFLAGS="-O3"
;;
- gcc-3.[0-4]*|gcc-4.0*)
+ gcc-3.[0-4]*|gcc-4.[01]*)
# The optimization level is reduced for gcc 3.* and 4.* due to problems
# with code generation for src/H5Tconv.c with the -O2 & -O3
# optimization levels (which shows up as failures for various integer
@@ -167,7 +167,11 @@ esac
# Please follow the pattern below by adding new versions at the top, copying
# the information from the previous version and adding modifications to that.
case "$cc_vendor-$cc_version" in
- gcc-4.0*)
+
+# Closer to the gcc 4.1 release, we should check for additional flags to
+# include and break it out into it's own section, like the other versions
+# below. -QAK
+ gcc-4.[01]*)
# Replace -ansi flag with -std=c99 flag
CFLAGS="`echo $CFLAGS | sed -e 's/-ansi/-std=c99/g'`"