This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/45819] [4.5 Regression] unexpected unaligned access to volatile int
- From: "anemo at mba dot ocn.ne.jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 Feb 2011 13:04:11 +0000
- Subject: [Bug middle-end/45819] [4.5 Regression] unexpected unaligned access to volatile int
- Auto-submitted: auto-generated
- References: <bug-45819-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45819
--- Comment #7 from Atsushi Nemoto <anemo at mba dot ocn.ne.jp> 2011-02-22 13:04:10 UTC ---
(In reply to comment #5)
> arm-linux-gnueabi-gcc-4.6.0-20101124 works fine (generates ldr instruction),
It seems that was a side-effect of -fstrict-volatile-bitfields which was
enabled
by default on ARM EABI.
With -fno-strict-volatile-bitfields, arm-linux-gnueabi-gcc-4.6.0-20110222
generates
four ldrb instructions.