aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/ChangeLog5
-rw-r--r--gcc/objc/objc-gnu-runtime-abi-01.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog
index 5649ddc..88ec3b3 100644
--- a/gcc/objc/ChangeLog
+++ b/gcc/objc/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-09 Nathan Sidwell <nathan@acm.org>
+
+ * objc-gnu-runtime-abi-01.c (objc_add_static_instance): Use
+ pushdecl lang_hook.
+
2017-05-04 Martin Sebor <msebor@redhat.com>
PR translation/80280
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. */