summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2013-08-16 23:14:23 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2013-08-16 23:14:23 (GMT)
commitd663d78cd274a48b702a2d3ce17fa6bb01be1ae1 (patch)
treecc2ed2b75ddb31213afbce58bd44ad052d4c12d6 /config
parent170b7275c07ade473ba6f324305972517cbf1c96 (diff)
downloadhdf5-d663d78cd274a48b702a2d3ce17fa6bb01be1ae1.zip
hdf5-d663d78cd274a48b702a2d3ce17fa6bb01be1ae1.tar.gz
hdf5-d663d78cd274a48b702a2d3ce17fa6bb01be1ae1.tar.bz2
[svn-r24017] 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 and Koala where it failed and now passes.
Diffstat (limited to 'config')
-rw-r--r--config/gnu-flags5
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"
;;