Bug 20375 - ia64 varadic regression

Andreas Schwab schwab@suse.de
Tue Mar 8 16:27:00 GMT 2005


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."



More information about the Gcc mailing list