-fssa is broken

Ulrich Drepper drepper@redhat.com
Fri May 19 00:58:00 GMT 2000


Richard Henderson <rth@cygnus.com> writes:

> Or something like that.  Sigh.  I guess I'll have to track it down again...

Here's the test again.  Haven't tested it since then (since I'm still
not back).  If the exit value is 4 the compiler is buggy.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#include <stdarg.h>

int
bar (int a, va_list ap)
{
  int b;

  do
    b = va_arg (ap, int);
  while (b > 10);

  return a + b;
}

int
foo (int a, ...)
{
  va_list ap;

  va_start (ap, a);
  return bar (a, ap);
}

int
main ()
{
  return foo (1, 2, 3);
}


More information about the Gcc-bugs mailing list