Andrew Haley wrote:

> > So it seems I have to abandom the system compiler for doing bootstraps.

Can you make a simple testcase for this?

Andrew.
Attached.
This fails at -O0..-O2 for gcc 3.2.2 and gcc 3.2.3 on i686-pc-linux-gnu. For gcc 3.4.3,
it still fails at -O1.
4.2.0 appears to be OK, although it might be this bug only hidden by the tree optimizers
optimizing the test case into something that doesn't trigger the bug.

:ADDPATCH testsuite:
2006-07-05  J"orn Rennecke  <[EMAIL PROTECTED]>

       * gcc.c-torture/execute/bootfail.c: New test.


extern int ok (int);
extern void exit ();
static int gen_x86_64_shrd (int);
static int
gen_x86_64_shrd(int a __attribute__ ((__unused__)))
{
  return 0;
}

extern int gen_x86_shrd_1 (int);
extern void ix86_split_ashr (int);

void
ix86_split_ashr (int mode)
{
          (mode != 0
                      ? ok
                      : gen_x86_64_shrd) (0);
}

int main ()
{
  ix86_split_ashr (1);
  return 1;
}

int
ok (int i)
{
  exit (i);
}

Reply via email to