summaryrefslogtreecommitdiffstats
path: root/src/H5FDmulti.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2005-07-05 19:08:58 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2005-07-05 19:08:58 (GMT)
commitac75ce4141e000ce3a32e02710ae9b9f2a1fbe7f (patch)
treec03450a25b2e7474e0f649e5518e5c8434d1d0f5 /src/H5FDmulti.c
parent7c7a856c5fe4091636c0b6a58a0d841bda5cefce (diff)
downloadhdf5-ac75ce4141e000ce3a32e02710ae9b9f2a1fbe7f.zip
hdf5-ac75ce4141e000ce3a32e02710ae9b9f2a1fbe7f.tar.gz
hdf5-ac75ce4141e000ce3a32e02710ae9b9f2a1fbe7f.tar.bz2
[svn-r11019] Purpose: Add detection
Description: pgcc version 6.0x have optimization (-O, -O2, or -O3) problem. It caused multi driver test to fail. The problem happened in a macro definition. Solution: Detect these versions and add option "-Mx,28,0x8" to the compiler to avoid the problem if optimization is enable. Platforms tested: mir and fuss - simple change.
Diffstat (limited to 'src/H5FDmulti.c')
-rw-r--r--src/H5FDmulti.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/H5FDmulti.c b/src/H5FDmulti.c
index 9ab752b..155ec68 100644
--- a/src/H5FDmulti.c
+++ b/src/H5FDmulti.c
@@ -54,10 +54,6 @@
#endif
/* Loop through all mapped files */
-#ifdef TMP
-/*The -O2 optimization of the PGCC in mir has a bug for this macro. A workaround
- *is provided here to avoid the problem temporarily until the compiler bug is fixed.
- *SLU - 2005/6/13 */
#define UNIQUE_MEMBERS(MAP,LOOPVAR) { \
H5FD_mem_t _unmapped, LOOPVAR; \
hbool_t _seen[H5FD_MEM_NTYPES]; \
@@ -68,23 +64,6 @@
if (H5FD_MEM_DEFAULT==LOOPVAR) LOOPVAR=_unmapped; \
assert(LOOPVAR>0 && LOOPVAR<H5FD_MEM_NTYPES); \
if (_seen[LOOPVAR]++) continue;
-#else /*TMP*/
-#define UNIQUE_MEMBERS(MAP,LOOPVAR) { \
- H5FD_mem_t _unmapped, LOOPVAR; \
- hbool_t _seen[H5FD_MEM_NTYPES]; \
- \
- memset(_seen, 0, sizeof _seen); \
- for (_unmapped=H5FD_MEM_SUPER; _unmapped<H5FD_MEM_NTYPES; _unmapped=(H5FD_mem_t)(_unmapped+1)) { \
- LOOPVAR = MAP[_unmapped]; \
- if (H5FD_MEM_DEFAULT==LOOPVAR) LOOPVAR=_unmapped; \
- assert(LOOPVAR>0 && LOOPVAR<H5FD_MEM_NTYPES); \
- \
- if(_seen[LOOPVAR]) { \
- _seen[LOOPVAR]++; \
- continue; \
- } \
- _seen[LOOPVAR]++;
-#endif /*TMP*/
#ifdef LATER
#define MAPPED_MEMBERS(MAP,LOOPVAR) { \