[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: toolchain/45138 (stdarg.h: Deficiency in va_arg handling of array arguments.)
The following reply was made to PR toolchain/45138; it has been noted by GNATS.
From: Wolfgang Solfrank <Wolfgang%Solfrank.net@localhost>
Subject: Re: toolchain/45138 (stdarg.h: Deficiency in va_arg handling of array
Date: Tue, 04 Oct 2011 16:05:17 +0200
> Does gcc 4.5 need this patch? If so, please send it upstream...
Yes, gcc 4.5 still has the problem.
I did already submit a PR to gcc bugzilla (see
it seems that they don't want to change gcc in this direction,
as behaviour when passing an array type to va_arg is obviously
undefined according to the standard. They might add a
warning/error if array types are passed to va_arg.
My real problem with this is that this prohibits portable code
from passing some va_list recursively, as va_list is defines as
a one element array on some architectures.
Main Index |
Thread Index |