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 23:50: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 23:50 -------
(In reply to comment #6)
> Subject: Re: -E -dD includes predefined macros
>
> jason at catapult dot com wrote:-
>
> > 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.
>
> OK, so 2 bugs here then 8-)
>
Maybe not. The docs mention that "The standard predefined macros remain
defined.". I guess it depend on what sort of predefined macro __STDC_HOSTED__ is.
Another problem with the -dD flag I've just found is that it includes the macros
predefined with the -D flag.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19836