This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: va_start still...


On Friday 23 August 2002 23:45, you wrote:
> On Fri, Aug 23, 2002 at 11:43:05PM -0400, Pablo Bleyer Kocik wrote:
> >  Hello.
> >
> >  I thought this was being fixed in 3.2, but I am still getting
> > "'va_start' used in function with fixed args" under gcc 3.2 with
> > optimization levels above 2 when compiling functions with ellipses. Is
> > this right?
>
> Post a test case, please.
>
> zw

 Hello. Thanks for replying.

 I can't replicate the problem with small examples, but the error happens to 
me compiling apps like ethereal-0.9.5 (eg packet-esis.c file) and xemacs.

Example:

make[2]: Entering directory `/dta/build/ethereal-0.9.5'
gcc -DHAVE_CONFIG_H -I. -I. -I.   -I. -I./wiretap -I/usr/local/include 
-I/usr/include/pcap -I/usr/local/include/pcap  -DINET6 
-D_U_="__attribute__((unused))" -Wall -W -O9 -march=pentium3 
-fomit-frame-pointer -I/usr/include/net -I. -I./wiretap -I/usr/local/include 
-I/usr/local/include/gtk-1.2 -I/usr/local/include/glib-1.2 
-I/usr/local/lib/glib/include -I/usr/X11R6/include -I/usr/include/pcap 
-I/usr/local/include/pcap -c packet-esis.c
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it is the same as non-system directory "/usr/local/include"
packet-esis.c: In function `dissect_esis':
packet-esis.c:149: `va_start' used in function with fixed args
packet-esis.c:149: `va_start' used in function with fixed args
make[2]: *** [packet-esis.o] Error 1
make[2]: Leaving directory `/dta/build/ethereal-0.9.5'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/dta/build/ethereal-0.9.5'
make: *** [all-recursive-am] Error 2

 Cheers.

--
PabloBleyerKocik/"Freedom of religion afforded only to Christians
 pbleyer       / in US, a secular state with no official religion."
  @embedded.cl/ -- This place sucks 28.6.02, Gene Kan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]