summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Harten <pharten@ncsa.uiuc.edu>1999-03-03 23:00:22 (GMT)
committerPaul Harten <pharten@ncsa.uiuc.edu>1999-03-03 23:00:22 (GMT)
commit2925631a496cbd9890e967946b46c974998b13cd (patch)
tree7b12cb82ca9962b0f3b0f17c0ad3f38df47a74b2
parent9280cf8e04b7d3ef8c88dfd22f36efffeea9033d (diff)
downloadhdf5-2925631a496cbd9890e967946b46c974998b13cd.zip
hdf5-2925631a496cbd9890e967946b46c974998b13cd.tar.gz
hdf5-2925631a496cbd9890e967946b46c974998b13cd.tar.bz2
[svn-r1114] Purpose:
Bug fix Problem: On Solaris2.5, once the library has been compilied with any type of optimization, a bus error comes up in the "dtypes" test. Solution: The problem appears to be in the compilers' version of memcpy() that is used when optimized. Apparently, the same optimization problem is not associated with the similar function memmove(). So, as a solution to this problem, memmove() is substituted in for memcpy(). Platform tested: Solaris2.5
-rw-r--r--src/H5Tconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Tconv.c b/src/H5Tconv.c
index 12df642..f16a738 100644
--- a/src/H5Tconv.c
+++ b/src/H5Tconv.c
@@ -305,7 +305,7 @@ static intn interface_initialize_g = 0;
if (d_mv) priv->d_aligned += nelmts; \
for (elmtno=0; elmtno<nelmts; elmtno++, DIR src, DIR dst) { \
if (s_mv) { \
- HDmemcpy(&aligned, src, sizeof(ST)); \
+ HDmemmove(&aligned, src, sizeof(ST)); \
s = (ST*)&aligned; \
} else { \
s = src; \