This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[ro@TechFak.Uni-Bielefeld.DE: preprocessor/2074: cpp doesn't emit builtin macros with -E/-save-temps]
- To: Zack Weinberg <zackw at Stanford dot EDU>
- Subject: [ro@TechFak.Uni-Bielefeld.DE: preprocessor/2074: cpp doesn't emit builtin macros with -E/-save-temps]
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Date: Fri, 23 Feb 2001 21:27:14 +0000
- Cc: gcc at gcc dot gnu dot org
Zack,
What do you think of this PR? I suspect we should do something about this.
All constant builtins, apart from __STDC__ and __GXX_WEAK__ are reported. Of
course, we can't list dynamic builtins like __FILE__.
I suspect we should make these 2 regular macros, rather than handle them with
the builtin_macro routine, apart from __STDC__ on Solaris where it will need
to stay dynamic.
Do you agree?
Neil.
-------
Whereas gcc 2.95 emitted the definitions of builtin macros (like __STDC__) in
gcc -E or gcc -save-temps output, the current version (with integrated cpp) does
not (this behaviour already occurs in gcc 2.96 20000725 (experimental)).
This makes it quite hard to investigate problems especially in gcc -g3 -E
output. Since this is a regression from 2.95, this should be fixed before
the 3.0 release.
-------