https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37549
sandra at gcc dot gnu.org changed:
What|Removed |Added
CC||sandra at gcc dot gnu.org
--- Comment #4 from tromey at gcc dot gnu dot org 2009-03-30 23:22 ---
Try this.
I'll submit it if it regression tests ok.
Index: c-ppoutput.c
===
--- c-ppoutput.c(revision 145295)
+++ c-ppoutput.c(working
--- Comment #3 from jsm28 at gcc dot gnu dot org 2009-03-30 00:39 ---
It seems -dD used not to print predefined macros (whether defined by the
compiler or the user) but this changed in 3.0. Since the documentation did
not change, I will guess the change was not deliberate.
--
jsm28
--- Comment #1 from pinskia at gmail dot com 2008-09-17 03:13 ---
Subject: Re: New: gcc -E -dD prints predefined macros, contrary to docs
Sent from my iPhone
On Sep 16, 2008, at 7:25 PM, martinrb at google dot com
[EMAIL PROTECTED]
wrote:
The docs for preprocessor -dD flag
--- Comment #2 from martinrb at google dot com 2008-09-17 04:27 ---
I tried to check how -dM and -dD treats macros defined on the command line
and in the source file:
([EMAIL PROTECTED]) ~/src/toy $ cat foo.c
#define FOO 1
([EMAIL PROTECTED]) ~/src/toy $ gcc -E -dM -x c -DBAR=1 foo.c |