[Bug c/33653] New: volatile memory access optimized away
marcus at jet dot franken dot de
gcc-bugzilla@gcc.gnu.org
Thu Oct 4 09:50:00 GMT 2007
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
More information about the Gcc-bugs
mailing list