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

[ro@TechFak.Uni-Bielefeld.DE: preprocessor/2074: cpp doesn't emit builtin macros with -E/-save-temps]


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.
-------


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