This is the mail archive of the gcc-help@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]

egcs-1.1.2 compiler built-in functions


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.


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