This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
egcs-1.1.2 compiler built-in functions
- To: help-gcc at gnu dot org
- Subject: egcs-1.1.2 compiler built-in functions
- From: Amnon Dayan <amnon_d at rad dot co dot il>
- Date: Fri, 24 Dec 1999 17:13:29 +0200
- Newsgroups: gnu.gcc.help
- Organization: RAD Data Communications Ltd.
- Xref: wodc7nx0 gnu.gcc.help:2286
Hi,
I'm using egcs-1.1.2 C++ compiler on Solaris 2.5.1 and I'm getting this
compilation error
on the call to va_start(marker, blabla);
The compiler says:
__builtin_va_alist' undeclared (first use this function)
I had a look at the sys/varargs.h and found this comment:
/*
* Many compilation systems depend upon the use of special functions
* built into the the compilation system to handle variable argument
* lists and stack allocations. The method to obtain this in SunOS
* is to define the feature test macro "__BUILTIN_VA_ARG_INCR" which
* enables the following special built-in functions:
* __builtin_alloca
* __builtin_va_alist
* __builtin_va_arg_incr (not on PowerPC)
* __builtin_va_info (PowerPC only)
* It is intended that the compilation system define this feature test
* macro, not the user of the system.
*
* The tests on the processor type are to provide a transitional period
* for existing compilation systems, and may be removed in a future
* release. PowerPC does not require the transitional period.
*/
I already did:
#define __BUILTIN_VA_ARG_INCR
inside my program. (I also tried it in the compilation command
-D__BUILTIN_VA_ARG_INCR.
Can anyone help me with this one?
Thanks.
Amnon.