[Bug optimization/11477] writing 0 to memory-location leads to incorrect optimization
pinskia at physics dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Wed Aug 6 06:07:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11477
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
Target Milestone|3.4 |---
------- Additional Comments From pinskia at physics dot uc dot edu 2003-08-06 06:07 -------
I can confirm this on the mainline (20030728) but this is a valid optimization if you want to
say that the memory is volatile, declare the variable as volatile and gcc produces the
result you want.
More information about the Gcc-bugs
mailing list