diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-21 04:08:45 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2003-10-21 04:08:45 (GMT) |
commit | 017c6dc88d2f060b533ff215f1d13f0d79cfc108 (patch) | |
tree | 270ba7ee7812d8d3ddc4a507f54142a99fd4342c | |
parent | b14862e2f85e5ad3bf442d1f38ce678e9ffa8ee2 (diff) | |
download | hdf5-017c6dc88d2f060b533ff215f1d13f0d79cfc108.zip hdf5-017c6dc88d2f060b533ff215f1d13f0d79cfc108.tar.gz hdf5-017c6dc88d2f060b533ff215f1d13f0d79cfc108.tar.bz2 |
[svn-r7683] 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 7833aaf..be94082 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" ;; *) |