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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.

Reply via email to