This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/14782] [3.3/3.4/3.5 Regression] produces an unaligned data access at -O2
- From: "danglin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2004 00:08:25 -0000
- Subject: [Bug rtl-optimization/14782] [3.3/3.4/3.5 Regression] produces an unaligned data access at -O2
- References: <20040330073832.14782.tausq@debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From danglin at gcc dot gnu dot org 2004-06-20 00:08 -------
With Carlos's testcase at -O2, the initial insns in the function bug are:
ldi 0,%r20
ldo 1(%r26),%r26
ldo 1(%r20),%r20
ldd 23(%r26),%r21
This appears to be a bug in the PA GO_IF_LEGITIMATE_ADDRESS macro. It should
reject 14-bit offsets for DImode loads that aren't properly aligned as ldd
doesn't support them. ldd differs from ldb/ldh/ldw in this respect. It
needs both the base and displacement aligned.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14782