summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-02-26 19:55:27 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-02-26 19:55:27 (GMT)
commit55a42d534a0e20b7f549d9997c1da0653c1d70b4 (patch)
tree8a010c53d14a2acbead2b8dcb8a36e5cb4d046c0
parent425f0dad1ea7339fdfbbd8fa879707b9c1712f92 (diff)
downloadhdf5-55a42d534a0e20b7f549d9997c1da0653c1d70b4.zip
hdf5-55a42d534a0e20b7f549d9997c1da0653c1d70b4.tar.gz
hdf5-55a42d534a0e20b7f549d9997c1da0653c1d70b4.tar.bz2
[svn-r6439] Purpose:
Bug fix w/gcc 2.95.x where x<3 Description: -O3 optimization level causes problems for gcc 2.95.2 on eirene Solution: Only enable -O3 if using gcc 2.95.x (where x>=3) or gcc 3 Otherwise, use older setting of -O2 -finline-functions Platforms tested: FreeBSD 4.7 (sleipnir) Linux 2.2 (eirene)
-rw-r--r--config/gnu-flags9
1 files changed, 8 insertions, 1 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index b5e9a48..a337f75 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -131,7 +131,14 @@ case "$cc_vendor-$cc_version" in
CFLAGS="$CFLAGS $ARCH -ansi -pedantic -Wall -W -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline"
# Production
- PROD_CFLAGS="-O3 $NOFP"
+ case "$cc_vendor-$cc_version" in
+ gcc-2.95.3|gcc-2.95.4|gcc-3*)
+ PROD_CFLAGS="-O3 $NOFP"
+ ;;
+ *)
+ PROD_CFLAGS="-O2 $NOFP -finline-functions"
+ ;;
+ esac
PROD_CPPFLAGS=
# Debug