This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/50677] volatile forces load into register
- 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: Sun, 09 Oct 2011 17:36:30 +0000
- Subject: [Bug rtl-optimization/50677] volatile forces load into register
- Auto-submitted: auto-generated
- References: <bug-50677-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50677
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-10-09
Ever Confirmed|0 |1
--- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-09 17:36:30 UTC ---
Well, the issue is that most optimization passes just don't do anything
for volatile qualified accesses. That's a safe thing. Deciding what
kind of optimizations are allowed for volatile accesses might introduce bugs,
and sofar the consensus was "volatile? don't bother with optimization, it'll
be slow anyway".
It very likely is combine that gives up here.