NetBSD-Bugs archive
[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: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: toolchain/45138 (stdarg.h: Deficiency in va_arg handling of
array arguments.)
Date: Sat, 5 Nov 2011 16:21:50 +0000
On Tue, Oct 04, 2011 at 02:10:06PM +0000, Wolfgang Solfrank wrote:
> > 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
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50581), however,
> 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.
Unfortunately, if they don't want it, we probably shouldn't diverge...
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index