diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2013-08-17 15:58:20 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2013-08-17 15:58:20 (GMT) |
commit | a39c7228fba25c52c0a1da7dcb88a7c85f23a83a (patch) | |
tree | da7f9d5d4fb2fc08e1880dcd09a3432875b19394 | |
parent | dd327986b9d8137a1106c6f750712d68e5e27813 (diff) | |
download | hdf5-a39c7228fba25c52c0a1da7dcb88a7c85f23a83a.zip hdf5-a39c7228fba25c52c0a1da7dcb88a7c85f23a83a.tar.gz hdf5-a39c7228fba25c52c0a1da7dcb88a7c85f23a83a.tar.bz2 |
[svn-r24018] Bug fix: HDFFV-8500
The new gcc v4.8.* compilers does not work well with dt_arith which failed
in production mode.
Solution:
A temporary patch by removing any optimization (-O*) from the PROD_CFLAGS
so that dt_arith will pass for now. A more through investigation is needed.
Tested: Jam, platypus and Koala where it failed and now passes.
-rw-r--r-- | config/gnu-flags | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/gnu-flags b/config/gnu-flags index a79cc72..eef38ad 100644 --- a/config/gnu-flags +++ b/config/gnu-flags @@ -156,6 +156,11 @@ 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" ;; |