The following code snippet triggers an ICE on mainline (i686-pc-linux-gnu)
when compiled with "-O2 -fPIC":

=========================
volatile _Decimal32 d;
volatile int i;

void foo()
{
  d += i;
  d += i;
}
=========================

bug.c: In function 'foo':
bug.c:8: internal compiler error: in eliminate_regs_in_insn, at reload1.c:3180
Please submit a full bug report, [etc.]

The regression was introduced between 2008-08-23 and 2008-08-29.


-- 
           Summary: [4.4 regression] ICE with volatiles
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37435

Reply via email to