This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/18462] macro deprecation
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Thu, 11 Jun 2015 19:25:49 +0000
- Subject: [Bug translator/18462] macro deprecation
- Auto-submitted: auto-generated
- References: <bug-18462-6586 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18462
--- Comment #5 from Josh Stone <jistone at redhat dot com> ---
(In reply to Martin Cermak from comment #4)
> But when the unwanted macro is being skipped in skip_pp(), scan_pp1() gets
> called, putting the macro into the pp1_namespace --- so later on the macro
> gets inadvertently expanded anyway:
Good catch! We definitely don't want that.
A similar problem would be when both the true and false side of a conditional
are defining the same macro name -- these should not be considered duplicates
since only one is actually defined in use.
> So what seems to fix the issue for me is to modify skip_pp() to call newly
> created scan_pp1_temp(), which behaves like scan_pp1() except of putting
> stuff into pp1_namespace.
Instead of duplicating any scan_pp1 logic, how about just adding a "skip"
parameter to short-circuit it when needed.
You have an XXX added to the library macro error - just for your debugging?
Other than that, just need some new tests covering macros within conditionals.
--
You are receiving this mail because:
You are the assignee for the bug.