------- Comment #3 from danglin at gcc dot gnu dot org  2007-07-02 18:12 -------
Here's a small test case from Steve Ellcey:

f (int n, ...)
{
  int i, j;
  long x;

  __builtin_va_list ap;
  __builtin_va_start(ap,n);

  for (i = 0; i < n; i++)
      j = __builtin_va_arg(ap,int);

  x = __builtin_va_arg(ap,long);
  if (x != 123)
    abort();

  __builtin_va_end(ap);
}

main ()
{
  f (1, 2, (long) 123);
  exit(0);
}

This test fails with a non-bootstrap PA64 GCC compiler.  Steve says it
looks like a scheduling problem because it doesn't fail when compiled
with -fno-schedule-insns.


-- 


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

Reply via email to