From: Neil Booth <neil@daikokuya.demon.co.uk>
To: Jim Blandy <jimb@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFC: preprocessor macro support (should actually work now)
Date: Fri, 29 Mar 2002 02:01:00 -0000 [thread overview]
Message-ID: <20020329100102.GA1261@daikokuya.demon.co.uk> (raw)
In-Reply-To: <20020328070504.24F455EA11@zwingli.cygnus.com>
Jim Blandy wrote:-
>
> This is a revised version of the preprocessor macro support patch I
> posted before, tested against the current GCC sources. I've fixed a
> bunch of bugs, and made it tolerant of the GCC bugs that came up.
>
> So please try it out; compile with the -gdwarf-2 -g3 flags.
Hi Jim,
I've done a bit more research into examples of when token marking is
needed when expanding macros. There are a few in the CPP testsuite;
here is one (I got this by disabling the feature in CPP and seeing
what broke):
#define M(x) 2 + M(x)
#define N(a) M(a)
N (N (9))
The correct expansion is
2 + M(2 + M(9))
I expect your code (though I've not tested it!) will get:
2 + M(2 + 2 + M(9))
Would you try this? Thanks,
Neil.
next prev parent reply other threads:[~2002-03-29 10:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-27 23:05 Jim Blandy
2002-03-28 0:55 ` Eli Zaretskii
2002-03-29 2:01 ` Neil Booth [this message]
2002-03-29 13:17 ` Jim Blandy
2002-03-29 13:27 ` Neil Booth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020329100102.GA1261@daikokuya.demon.co.uk \
--to=neil@daikokuya.demon.co.uk \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox