[Bug tree-optimization/46217] New: [4.6 Regression] store to volatile is removed

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 28 20:53:00 GMT 2010


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: unassigned@gcc.gnu.org
        ReportedBy: pinskia@gcc.gnu.org
                CC: rguenth@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.



More information about the Gcc-bugs mailing list