This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix gcc.c-torture/execute/stdarg-2.c
- From: Geoffrey Keating <geoffk at geoffk dot org>
- To: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 03 Nov 2004 13:45:42 -0800
- Subject: Re: [PATCH] Fix gcc.c-torture/execute/stdarg-2.c
- References: <200411032156.30148.ebotcazou@libertysurf.fr>
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.