This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: undefined declaration in pre-processed generated C file
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: GALLEGGIANTI Bruno <bruno dot galleggianti at cea dot fr>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 30 Mar 2006 22:22:25 +0900
- Subject: Re: undefined declaration in pre-processed generated C file
- References: <4F685ECBA385E14EB62A25701660103A15EA85@LAXA.intra.cea.fr>
GALLEGGIANTI Bruno wrote:-
> typedef __builtin_va_list __gnu_va_list;
>
> My problem is that __builtin_va_list is never declared/defined in the
> pre-processed file. I've no warning about that (-Wall option)
>
> Following this behaviour, I have 3 questions:
>
> 1) How does gcc compiler resolve this typedef (before link stage) ?
__builtin_va_list is, as described, built-in to the compiler. It is
not defined anywhere; it's built-in definition may well be target-
specific.
You will always have this problem operating on preprocessed source.
Other compilers have similar built-in definitions, such as
__NAN__. Preprocessed source is compiler-specific.
Neil.