[PATCH] decl lang hooks

Nathan Sidwell nathan@acm.org
Mon May 8 19:29:00 GMT 2017


cp/name-lookup has a twisty maze of forwarding functions.  One reason is 
that a couple of the names are used directly by c-common.c.  However, we 
now have lang hooks for these things.

This patch changes the C++ FE to override the pushdecl and getdecl lang 
hooks.  In addition to simply overriding them there, I had to fixup a 
couple of places in c-family/c-common.c and 
objc/objc-gnu-runtime-abi-01.c to use the pushdecl hook.

This patch doesn't reduce the twisty maze, but will enable me to do so 
shortly.

ok?

nathan
-- 
Nathan Sidwell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hook.diff
Type: text/x-patch
Size: 4497 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170508/9dd15661/attachment.bin>


More information about the Gcc-patches mailing list