This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: where is the definition of "_builtin_va_list"
- From: Ian Lance Taylor <iant at google dot com>
- To: yzysea <yangjing47686 at 163 dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 20 Oct 2009 22:39:55 -0700
- Subject: Re: where is the definition of "_builtin_va_list"
- References: <25985646.post@talk.nabble.com>
yzysea <yangjing47686@163.com> writes:
> Recently, I am reading a C parser source code generated by Bison. The
> underlying OS is opensolaris. However, when I use it to parse a simple C
> source file, say,"Hello.c", I get the error message
> "/usr/inclue/sys/va_list.h:parse error before __gnuc_va_list". As I open
> this file, I find the following line "typedef __builtin_va_list
> __gnuc_va_list</i>". Strangely, I couldn't find the definition of
> "__builtin_va_list " even I checked all its including head files and
> recursively theirs. I have been confused about it for long.
>
> Would anyone give me some ideas about it? What is the "_builtin_va_list"
> referring to? What can it be used for?
__builtin_va_list is automatically defined by gcc. This permits gcc
to recognize and optimize uses of va_start and friends.
Ian