[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
This commit is contained in:
Paul Harten 1999-03-03 18:00:22 -05:00
parent 9280cf8e04
commit 2925631a49

View File

@ -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; \