[PATCH] Fix gcc.c-torture/execute/stdarg-2.c

Jakub Jelinek jakub@redhat.com
Wed Nov 3 21:03:00 GMT 2004


On Wed, Nov 03, 2004 at 09:56:30PM +0100, Eric Botcazou wrote:
> The testcase is miscompiled on the SPARC because of the following construct:
> 
>   foo_arg = va_arg (ap, int) + va_arg (ap, double);
> 
> I think it is not valid ISO C because ap is modified twice without an 
> intervening sequence point.

You're right, I'm sorry for that.

	Jakub



More information about the Gcc-patches mailing list