mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-12 15:04:59 +08:00
[svn-r24098] Issue 8500 - H5detect.c has trouble to find info for long double with GCC 4.8. A user in the forum found the
problem in H5detect.c (uninitialized buffer) and provided the solution. I checked it in yesterday. But it turned out to be a false fix. So I'm back it out. Tested on jam - reverse of changes.
This commit is contained in:
parent
bf1c137c0c
commit
a1fe10691c
@ -156,6 +156,11 @@ case "$cc_vendor-$cc_version" in
|
|||||||
gcc-3.*)
|
gcc-3.*)
|
||||||
PROD_CFLAGS="-O3"
|
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.*)
|
gcc-4.*)
|
||||||
PROD_CFLAGS="-O3"
|
PROD_CFLAGS="-O3"
|
||||||
;;
|
;;
|
||||||
|
@ -238,7 +238,6 @@ precision (detected_t *d)
|
|||||||
unsigned char *_x; \
|
unsigned char *_x; \
|
||||||
\
|
\
|
||||||
HDmemset(&INFO, 0, sizeof(INFO)); \
|
HDmemset(&INFO, 0, sizeof(INFO)); \
|
||||||
HDmemset(INFO.perm, 0, sizeof(INFO.perm)); \
|
|
||||||
INFO.varname = #VAR; \
|
INFO.varname = #VAR; \
|
||||||
INFO.size = sizeof(TYPE); \
|
INFO.size = sizeof(TYPE); \
|
||||||
\
|
\
|
||||||
@ -298,7 +297,6 @@ precision (detected_t *d)
|
|||||||
char *_mesg; \
|
char *_mesg; \
|
||||||
\
|
\
|
||||||
HDmemset(&INFO, 0, sizeof(INFO)); \
|
HDmemset(&INFO, 0, sizeof(INFO)); \
|
||||||
HDmemset(INFO.perm, 0, sizeof(INFO.perm)); \
|
|
||||||
INFO.varname = #VAR; \
|
INFO.varname = #VAR; \
|
||||||
INFO.size = sizeof(TYPE); \
|
INFO.size = sizeof(TYPE); \
|
||||||
\
|
\
|
||||||
|
Loading…
Reference in New Issue
Block a user