c-tree.h (pushdecl): Declare.
authorNathan Sidwell <nathan@acm.org>
Tue, 9 May 2017 11:17:45 +0000 (11:17 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 9 May 2017 11:17:45 +0000 (11:17 +0000)
commit641da50a0c73f734e672f8e6b9e7d2c86bde840d
tree50f0386875fa98e4952321dcf3a16862b140cb74
parent40abbbea6659b07309e39355d06792dd7db13884
c-tree.h (pushdecl): Declare.

gcc/c/
* c-tree.h (pushdecl): Declare.
gcc/cp/
* cp-lang.c (get_global_decls, cxx_pushdecl): New.
(LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Override.
* name-lookup.h (pushdecl_top_level): Declare.
gcc/c-family/
* c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
* c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
gcc/objc/
* objc-gnu-runtime-abi-01.c (objc_add_static_instance): Use
pushdecl lang_hook.

From-SVN: r247785
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c/ChangeLog
gcc/c/c-tree.h
gcc/cp/ChangeLog
gcc/cp/cp-lang.c
gcc/cp/name-lookup.h
gcc/objc/ChangeLog
gcc/objc/objc-gnu-runtime-abi-01.c