From 222e001c1d9af9c78823d13daf9145c2375cf4aa Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Mon, 20 Oct 2003 23:08:51 -0500 Subject: [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. --- config/gnu-flags | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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" ;; *) -- cgit v0.12