This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81273] Wrong code generated for ARM setting volatile struct field with a literal
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 03 Jul 2017 09:04:47 +0000
- Subject: [Bug target/81273] Wrong code generated for ARM setting volatile struct field with a literal
- Auto-submitted: auto-generated
- References: <bug-81273-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81273
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2017-07-03
Ever confirmed|0 |1
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Your testcase cannot be built. On GIMPLE ShowBug looks ok so the issue must
be at RTL expansion. _NOTE_ that *(volatile uint32_t*) makes alignment
guarantees to the access while your TimerRegisters struct is aligned at byte
boundary only! I suppose you may want
__attribute__((__packed__,aligned(alignof(uint32_t)))))?