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: Wolfgang Solfrank <Wolfgang%Solfrank.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: dholland%NetBSD.org@localhost
Subject: Re: toolchain/45138 (stdarg.h: Deficiency in va_arg handling of array
arguments.)
Date: Tue, 04 Oct 2011 16:05:17 +0200
Hi,
> 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.
Ciao,
Wolfgang
--
Wolfgang%Solfrank.net@localhost Wolfgang
Solfrank
Home |
Main Index |
Thread Index |
Old Index