This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71372] GCC Optimization "tree-dse" does not respect access to volatile* upon explicit cast.
- 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: Wed, 01 Jun 2016 13:14:46 +0000
- Subject: [Bug c++/71372] GCC Optimization "tree-dse" does not respect access to volatile* upon explicit cast.
- Auto-submitted: auto-generated
- References: <bug-71372-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71372
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I've seen a similar bug being reported recently and was not able to confirm on
x86_64 so I made it target specific (IIRC it was mingw or cygwin).
GCC certainly honors volatile here (on x86_64-linux).
I can only guess that alignment and bitfield expansion may play a role.