gcc: * loop.c (scan_loop): Don't mark separate insns out of a libcall for moving. (move_movables): Abort if we see the first insn of a libcall. gcc/testsuite * gcc.c-torture/execute/loop-14.c: New test. From-SVN: r56823
21 lines
166 B
C
21 lines
166 B
C
int a3[3];
|
|
|
|
void f(int *a)
|
|
{
|
|
int i;
|
|
|
|
for (i=3; --i;)
|
|
a[i] = 42 / i;
|
|
}
|
|
|
|
int
|
|
main ()
|
|
{
|
|
f(a3);
|
|
|
|
if (a3[1] != 42 || a3[2] != 21)
|
|
abort ();
|
|
|
|
exit (0);
|
|
}
|