[Bug tree-optimization/22000] [4.0 Regression] Read from volatile member of struct is optimized away
schlie at comcast dot net
gcc-bugzilla@gcc.gnu.org
Mon Jun 13 14:12:00 GMT 2005
------- Additional Comments From schlie at comcast dot net 2005-06-13 14:12 -------
(In reply to comment #6)
> Changing the expression for accessing the volatile member
> of the struct to:
> "(volatile int)ptr->b;"
> or just:
> "ptr->b;"
> still leads to the access being optimized away.
Which seems like the real problem, as volatile access
sematics should clearly apply in both instances.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22000
More information about the Gcc-bugs
mailing list