A bug in GCC 2.95.2 for SPARC
David S. Miller
davem@redhat.com
Thu May 11 16:25:00 GMT 2000
Date: Thu, 11 May 2000 16:07:05 -0700 (PDT)
From: James Cheng <James.Cheng@eng.sun.com>
It turned out to be an implementation dependency of the UltraSPARC.
On page 249 of "UltraSPARC User's Manual, Revision 2.0 - June 1996"
there is:
LDDF{A}/STDF{A} cause an LDDF/STDF_mem_address_not_aligned
trap if the effective address is 32-bit aligned but not
64-bit (doubleword) aligned.
I have tried the gcc 2.96 version 2.96 20000501 (experimental) with
-mcpu=ultrasparc, and the problem I reported earlier is gone.
Solaris should have been resolving and handling those unaligned
accesses for the application though, at least Linux on UltraSparc
does.
Later,
David S. Miller
davem@redhat.com
More information about the Gcc-bugs
mailing list