This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bug 20375 - ia64 varadic regression
- From: Andreas Schwab <schwab at suse dot de>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: Nathan Sidwell <nathan at codesourcery dot com>,"Joseph S. Myers" <joseph at codesourcery dot com>,Richard Henderson <rth at redhat dot com>, gcc <gcc at gcc dot gnu dot org>
- Date: Tue, 08 Mar 2005 17:26:48 +0100
- Subject: Re: Bug 20375 - ia64 varadic regression
- References: <422DCBEF.7010905@codesourcery.com><da686edadfd5045a5d6fe56bedd3af50@physics.uc.edu>
Andrew Pinski <pinskia@physics.uc.edu> writes:
> On Mar 8, 2005, at 10:59 AM, Nathan Sidwell wrote:
>
>> Bug 20375 is logged as a C++ bug, but it is a middle end
>> bug that cannot be expressed in C. Here's a reduced testcase
>>
>> union U
>> {
>> void *m[7];
>> };
>>
>> struct C;
>>
>> void f(struct C *c, float f, union U, ...)
>> { }
>
> I almost want to say this is undefined as there is no way to get
> at the varaidic arguments.
If you never invoke va_start this is not a problem.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."