diff options
author | Neil Fortner <nfortne2@hdfgroup.org> | 2013-09-19 18:57:41 (GMT) |
---|---|---|
committer | Neil Fortner <nfortne2@hdfgroup.org> | 2013-09-19 18:57:41 (GMT) |
commit | be3a33155025d6ef2d57533b60b96c888ab314a6 (patch) | |
tree | 2becf1264da71c35b6942b5858704f85cd8f189d /config/gnu-flags | |
parent | 0653325f0d4a92164842bb30b797f130e44cbc68 (diff) | |
download | hdf5-be3a33155025d6ef2d57533b60b96c888ab314a6.zip hdf5-be3a33155025d6ef2d57533b60b96c888ab314a6.tar.gz hdf5-be3a33155025d6ef2d57533b60b96c888ab314a6.tar.bz2 |
[svn-r24171] Purpose: Fix problem with gcc 4.8
Description:
With optimization enabled, gcc 4.8 inserts garbage into the padding bytes of
floating point types when assigning from a literal constant. This caused
problems when H5detect.c scanned the bits in floating point types to determine
their properties.
Modified H5detect.c to scan for padding before further analyzing the type, and
to ignore all information in the padding areas. Also removed code that
temporarily disabled optimization.
Tested: jam, koala, ostrich, platypus (h5committest)
Diffstat (limited to 'config/gnu-flags')
-rw-r--r-- | config/gnu-flags | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/config/gnu-flags b/config/gnu-flags index 57fc23a..b965bf0 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -156,11 +156,6 @@ case "$cc_vendor-$cc_version" in gcc-3.*) PROD_CFLAGS="-O3" ;; - gcc-4.8.*) - # temp patch: when GCC 4.8.x is used for Linux, dt_arith fails if -O* - # is used. Remove any -O* flags. (AKC HDFFV-8500) - PROD_CFLAGS="`echo $PROD_CFLAGS | sed -e 's/-O[0-3]*//'`" - ;; gcc-4.*) PROD_CFLAGS="-O3" ;; |