This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/19836] -E -dD includes predefined macros
- From: "jason at catapult dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Feb 2005 22:44:40 -0000
- Subject: [Bug preprocessor/19836] -E -dD includes predefined macros
- References: <20050209061037.19836.jason@catapult.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jason at catapult dot com 2005-02-09 22:44 -------
(In reply to comment #3)
> (In reply to comment #2)
> > (In reply to comment #1)
> > > This is documented to do this so this is not a bug.
> >
> > I thought -dD was supposed to NOT include predefined macros?
> This is what the documentation say:
> Tell the preprocessing to pass all macro definitions into the output, in their
proper sequence in the rest
> of the output.
>
> see the "all" there it really means all, even predefined ones.
Where did you read this? This is what is written in the CPP and GCC manpages,
and the GCC online docs.
D - Like M except in two respects: it does not include the predefined macros,
and it outputs both the #define directives and the result of preprocessing. Both
kinds of output go to the standard output file.
Neil, thanks for the suggestion, it removed all of them except for #define
__STDC_HOSTED__ 1, which I can take out with sed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19836