http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46217
Summary: [4.6 Regression] store to volatile is removed Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: tree-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: pins...@gcc.gnu.org CC: rgue...@gcc.gnu.org Take: int foo(int a) { int t; *(volatile int *)&t = a; } --- CUT --- We remove the store to t now. I think this was caused by MEM_REF.