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: function overloading and variadic arguments


>> i'd like to hear your comments.
> 
>   Is va_list a typedef for char* on your system, then?  What ever happened to
> it being an alias for __builtin_va_list via __gnuc_va_list?

i don't know what happened, but it seems like a char*. my system is a
debian i636 etch, here are compiler versions:

$ gcc-4.3-exp -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ./configure --program-suffix=-4.3-exp
Thread model: posix
gcc version 4.3.0 20070914 (experimental) (GCC)

gives 'warning: deprecated conversion from string constant to âchar*â'



$ gcc-4.2 -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ./configure --program-suffix=-4.2
Thread model: posix
gcc version 4.2.1

gives the same warning



$ gcc-4.1 -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --with-tune=i686
--enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

no warning



$ gcc-3.3 -v
Reading specs from /usr/lib/gcc-lib/i486-linux-gnu/3.3.6/specs
Configured with: ../src/configure -v --enable-languages=c,c++
--prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared
--enable-__cxa_atexit --with-system-zlib --enable-nls
--without-included-gettext --enable-clocale=gnu --enable-debug
i486-linux-gnu
Thread model: posix
gcc version 3.3.6 (Debian 1:3.3.6-15)

no warning



regards, p


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