diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-21 04:08:51 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-21 04:08:51 (GMT) |
commit | 222e001c1d9af9c78823d13daf9145c2375cf4aa (patch) | |
tree | 4e495b1c6aa39192db29265ceeb6a6fd8cd64b75 | |
parent | 00d5fd8e2fa36e34e77c7baca7538703c158c826 (diff) | |
download | hdf5-222e001c1d9af9c78823d13daf9145c2375cf4aa.zip hdf5-222e001c1d9af9c78823d13daf9145c2375cf4aa.tar.gz hdf5-222e001c1d9af9c78823d13daf9145c2375cf4aa.tar.bz2 |
[svn-r7684] Purpose:
Bug fix
Description:
Reduce optimization level from -O3 to -O for gcc 3.*, since it seems to
be generating bad code for the atomic type conversions now...
Platforms tested:
FreeBSD 4.9 (sleipnir)
Linux 2.4 (eirene, verbena)
h5committest not necessary, this is a GNU-only change.
-rw-r--r-- | config/gnu-flags | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/config/gnu-flags b/config/gnu-flags index afb451a..1a7a786 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -117,7 +117,20 @@ case "$cc_vendor-$cc_version" in # Production case "$cc_vendor-$cc_version" in - gcc-2.95.[34]|gcc-3*) + gcc-2.95.[34]) + PROD_CFLAGS="-O3 $NOFP" + ;; + gcc-3.[0-3]*) + # The optimization level is reduced for gcc 3.* due to problems + # with code generation for src/H5Tconv.c with the -O2 & -O3 + # optimization levels for gcc 3.2.2 and gcc 3.3.2 (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 $NOFP" + ;; + gcc-3*) + # Be optimistic about future versions of gcc.. :-) - QAK - 2003/10/20 PROD_CFLAGS="-O3 $NOFP" ;; *) |