bd52d17906
too large to list, but see: http://gcc.gnu.org/gcc-3.4/changes.html http://gcc.gnu.org/gcc-4.0/changes.html http://gcc.gnu.org/gcc-4.1/changes.html for the details.
28 lines
448 B
C
28 lines
448 B
C
/* { dg-do compile } */
|
|
/* { dg-options "-O1 -fschedule-insns2 -fsched2-use-traces" } */
|
|
/* { dg-skip-if "No scheduling" { mmix-*-* cris-*-* m68k-*-* } { "*" } { "" } } */
|
|
|
|
extern double f (double x);
|
|
|
|
double g (int a)
|
|
{
|
|
int b, c, d, e = 0;
|
|
double h;
|
|
|
|
for (d = 0; d < a; d++)
|
|
for (c = 0; c < a; c++)
|
|
b = 1;
|
|
|
|
h = (double) e / (double) a;
|
|
|
|
if (h)
|
|
{
|
|
h = 1.0 / h;
|
|
h = f (h);
|
|
}
|
|
else
|
|
h = 1.0;
|
|
|
|
return h;
|
|
}
|