This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/33653] New: volatile memory access optimized away
- From: "marcus at jet dot franken dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Oct 2007 09:50:43 -0000
- Subject: [Bug c/33653] New: volatile memory access optimized away
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Wines IsBadReadPtr() is not working anymore, since memory reads are optimized
away, since the result of the read is not used. However the memory is marked
volatile so this should perhaps not happen.
See attached testcase and check the assembly
--
Summary: volatile memory access optimized away
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: marcus at jet dot franken dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33653