[PATCH] Move cpp_macro to cpplib.h
Nathan Sidwell
nathan@acm.org
Fri Aug 17 12:01:00 GMT 2018
Way back Geoff Keating broke cpp-id-data.h out of internal.h so that PCH
could write out tokenized macro definitions. That removed the need to
stringize and retokenize them. cpp-id-data.h was fed to the gty
machinery, and users of cpplib continued to use cpplib.h unaware of the
cpp_macro definition. but some of its effects are felt in cpplib.h (the
GTY markup for instance).
Since then we now include cpp-id-data.h in a few places where we need to
look inside a cpp_macro. That's a nasty hole punched through the
abstraction layer :(
This patch moves a couple of cpplib-internal declarations to internal.h
and moves cpp_macro to cpplib.h, thereby exposing it to users properly.
The remains of cpp-id-data.h will evaporate with this patch series, but
we're not there yet.
This allows the includers of cpp-id-data.h to become better citizens and
use cpplib.h. I'll be morphing the cpp_macro definition, but thought it
better to move then morph, than vice-versa.
booted & tested on x86_64-linux
nathan
--
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mac-inc.diff
Type: text/x-patch
Size: 6673 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180817/49c155ee/attachment.bin>
More information about the Gcc-patches
mailing list