This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/47698] CMOV accessing volatile memory with read side effect
- 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: Fri, 11 Feb 2011 16:34:49 +0000
- Subject: [Bug rtl-optimization/47698] CMOV accessing volatile memory with read side effect
- Auto-submitted: auto-generated
- References: <bug-47698-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47698
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.02.11 16:34:48
Ever Confirmed|0 |1
Known to fail| |4.3.4, 4.5.2, 4.6.0
--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-02-11 16:34:48 UTC ---
Confirmed. C testcase:
extern volatile unsigned long mmio;
unsigned long foo(int cond)
{
if (cond)
return mmio;
return 0;
}