summaryrefslogtreecommitdiffstats
path: root/config/gnu-flags
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-04-27 02:47:02 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-04-27 02:47:02 (GMT)
commitbb8251f926850758dadb6251855d051d03f3f883 (patch)
treeaea7a2ee5e2a4709254822f724952bbfb176c0cd /config/gnu-flags
parentb23da3a7f52628fd846c7cd991cd820b3b217112 (diff)
downloadhdf5-bb8251f926850758dadb6251855d051d03f3f883.zip
hdf5-bb8251f926850758dadb6251855d051d03f3f883.tar.gz
hdf5-bb8251f926850758dadb6251855d051d03f3f883.tar.bz2
[svn-r18631] Description:
Bring r18630 from trunk to 1.8 branch: Fix remaining aliasing problems and enable optimizations w/gcc now. This addresses the remaining issues for Bug#1398. Tested on: Mac OS X/32 10.6.3 (amazon) in debug mode Mac OS X/32 10.6.3 (amazon) w/C++ & FORTRAN, w/threadsafe, in production mode (h5committested on trunk)
Diffstat (limited to 'config/gnu-flags')
-rw-r--r--config/gnu-flags20
1 files changed, 4 insertions, 16 deletions
diff --git a/config/gnu-flags b/config/gnu-flags
index 427b839..96db51d 100644
--- a/config/gnu-flags
+++ b/config/gnu-flags
@@ -147,23 +147,11 @@ case "$cc_vendor-$cc_version" in
gcc-2.95.[34])
PROD_CFLAGS="-O3"
;;
- gcc-4.[345]*)
- # The optimization level is reduced for gcc 4.[345] due to problems
- # with code generation for src/H5Tconv.c with the -O (same -O1)
- # optimization levels (which shows up as failures for long double
- # types -> signed char conversion in the test/dt_arith test).
- # There's either a bug in gcc or our code. Need further investigation.
- # Turn off all optimizations to allow the tests to pass for now.
- # - AKC - 2009/04/19
- PROD_CFLAGS="-O0"
+ gcc-3.*)
+ PROD_CFLAGS="-O3"
;;
- gcc-3.[0-4]*|gcc-4.[012]*)
- # 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
- # types -> long long conversions in the test/dtypes test). Perhaps
- # later versions of gcc will fix this bug... - QAK - 2003/10/20
- PROD_CFLAGS="-O"
+ gcc-4.*)
+ PROD_CFLAGS="-O3"
;;
*)
PROD_CFLAGS="-O"