This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: va_arg regression from 2.95.2 to 3.1
- From: Richard Henderson <rth at redhat dot com>
- To: "Schirmer, Hartmut" <HSchirmer at Innovative-Systems dot de>
- Cc: "'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>
- Date: Wed, 27 Mar 2002 02:46:39 -0800
- Subject: Re: va_arg regression from 2.95.2 to 3.1
- References: <1F5C7ECB324CD411B58600D0B723F181D442A2@oehhex01.hbi.ad.harman.com>
On Wed, Mar 27, 2002 at 09:25:44AM +0100, Schirmer, Hartmut wrote:
> Since
> res = va_arg(ap,int16);
> will never be executed the compiler shouldn't give an error.
Possibly. I'm unconvinced.
> Is there any other way to get varguments of unknown size
> through va_arg ?
(1) casting to "long".
(2) application specific ifdefs.
r~