aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc/objc-gnu-runtime-abi-01.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-05-09 11:17:45 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-05-09 11:17:45 +0000
commit641da50a0c73f734e672f8e6b9e7d2c86bde840d (patch)
tree50f0386875fa98e4952321dcf3a16862b140cb74 /gcc/objc/objc-gnu-runtime-abi-01.c
parent40abbbea6659b07309e39355d06792dd7db13884 (diff)
downloadgcc-641da50a0c73f734e672f8e6b9e7d2c86bde840d.zip
gcc-641da50a0c73f734e672f8e6b9e7d2c86bde840d.tar.gz
gcc-641da50a0c73f734e672f8e6b9e7d2c86bde840d.tar.bz2
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
Diffstat (limited to 'gcc/objc/objc-gnu-runtime-abi-01.c')
-rw-r--r--gcc/objc/objc-gnu-runtime-abi-01.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/objc/objc-gnu-runtime-abi-01.c b/gcc/objc/objc-gnu-runtime-abi-01.c
index beeec58..d1686e6 100644
--- a/gcc/objc/objc-gnu-runtime-abi-01.c
+++ b/gcc/objc/objc-gnu-runtime-abi-01.c
@@ -888,7 +888,7 @@ objc_add_static_instance (tree constructor, tree class_decl)
/* We may be writing something else just now.
Postpone till end of input. */
DECL_DEFER_OUTPUT (decl) = 1;
- pushdecl_top_level (decl);
+ lang_hooks.decls.pushdecl (decl);
rest_of_decl_compilation (decl, 1, 0);
/* Add the DECL to the head of this CLASS' list. */