The following code snippet causes an ICE (3.4 branch only)
when compiled with "gcc -O2 -ffast-math" on i686-pc-linux-gnu

===============================
double atan (double);

void foo()
{
   double x, y;

   do
     {
       goto L2;
     L1:
       if (x) goto L1;
     L2:
       x += atan (y);
       goto L1;
     }
   while (1);
}
===============================

bug.c: In function `foo':
bug.c:17: internal compiler error: in subst_stack_regs_pat, at reg-stack.c:1445
Please submit a full bug report, [etc.]

-- 
           Summary: [3.4 regression] ICE in subst_stack_regs_pat, at reg-
                    stack.c:1445
           Product: gcc
           Version: 3.4.4
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: i686-pc-linux-gnu


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

Reply via email to