This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Eric Botcazou <ebotcazou@libertysurf.fr> writes:

> Hello,
> 
> 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.
> 
> OK for mainline?

Yes, this is OK.

> 2004-11-03 ?Eric Botcazou ?<ebotcazou@libertysurf.fr>
> 
> 	* gcc.c-torture/execute/stdarg-2.c (foo): Split multiple
> 	invocations of va_arg.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]