This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: fix PR preprocessor/37549
On Tue, Mar 31, 2009 at 07:47:51PM -0700, Andrew Pinski wrote:
> On Tue, Mar 31, 2009 at 6:18 PM, Tom Tromey <tromey@redhat.com> wrote:
> > This patch fixes PR preprocessor/37549.
> >
> > The bug is that -dD prints all macro definitions, even though it is
> > documented as skipping built-in macros.
> >
> > This patch fixes the problem by checking the defining line, and
> > skipping the printing if it is a built-in.
> >
> > Bootstrapped and regtested on x86-64 (compile farm).
> > Ok?
>
> Actually I think there are other documentation that says to use -dD to
> get the builtin-macros.
I think it would be at this point much better to adjust the documentation,
rather than -dD behavior.
Jakub