When I try compile a small program I get an error.


[EMAIL PROTECTED]:~> gcc -Wall prog.c -O2 -S
prog.c: In function ‘main’:
prog.c:21: error: Attempt to delete prologue/epilogue insn:
(insn/f 92 91 93 0 (set (mem:SI (plus:SI (reg/f:SI 6 bp)
                (const_int -16 [0xfffffff0])) [0 S4 A8])
        (reg:SI 2 cx)) -1 (nil)
    (nil))
prog.c:21: internal compiler error: in propagate_one_insn, at flow.c:1699



file contents (prog.c)
#include <stdio.h>

int main()
{
  int x[4];
  int y[4];
  int n;

  for(n=0;n<5;n++)
    x[n]=10;

  for(n=0;n<5;n++)
    y[n]=20;

  printf("n: %d\n",n);

  for(n=0;n<4;n++)
    printf("%d | %d\n",x[n],y[n]);

  return 0;
}


-- 
           Summary: Program compilation problem
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rui dot c dot a dot g at gmail dot com


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

Reply via email to