diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-02-05 11:52:12 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-02-05 11:52:12 (GMT) |
commit | ddd3318020919e3d30e80296d07b6100b7bfafe8 (patch) | |
tree | 8b6e9528739b693419690d8448b0653a8433ff26 | |
parent | f5bc4ed58a16dbdd965db02ee5bd68f4368f4990 (diff) | |
download | hdf5-ddd3318020919e3d30e80296d07b6100b7bfafe8.zip hdf5-ddd3318020919e3d30e80296d07b6100b7bfafe8.tar.gz hdf5-ddd3318020919e3d30e80296d07b6100b7bfafe8.tar.bz2 |
[svn-r16429] Description:
Turn down optimizations further when using gcc 4.3.x
Tested on:
FreeBSD/64 6.3 (liberty) w/gcc 4.3.3
-rw-r--r-- | config/gnu-flags | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/config/gnu-flags b/config/gnu-flags index 0bfd365..1aa038a 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -145,7 +145,17 @@ case "$cc_vendor-$cc_version" in gcc-2.95.[34]) PROD_CFLAGS="-O3" ;; - gcc-3.[0-4]*|gcc-4.[0123]*) + gcc-4.3*) + # 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 + # Turn off optimizations for gcc 4.3.x, there's either a bug in gcc or + # our code is making some bad assumption that the optimizer in gcc is + # exposing. - QAK - 2009/02/05 + PROD_CFLAGS="-O0" + ;; + 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 |