This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: -fssa is broken
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: -fssa is broken
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 19 May 2000 00:58:10 -0700
- Cc: Andreas Jaeger <aj at suse dot de>, gcc-bugs at gcc dot gnu dot org, Alex Samuel <samuel at codesourcery dot com>
- References: <u8em719tjz.fsf@gromit.rhein-neckar.de> <20000518210103.C11020@cygnus.com>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
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);
}