aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-objc-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-objc-common.c')
-rw-r--r--gcc/c-objc-common.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/c-objc-common.c b/gcc/c-objc-common.c
index 5754071..e736110 100644
--- a/gcc/c-objc-common.c
+++ b/gcc/c-objc-common.c
@@ -206,7 +206,7 @@ start_cdtor (int method_type)
body = c_begin_compound_stmt ();
- pushlevel (0);
+ push_scope ();
clear_last_expr ();
add_scope_stmt (/*begin_p=*/1, /*partial_p=*/0);
@@ -220,7 +220,7 @@ finish_cdtor (tree body)
tree block;
scope = add_scope_stmt (/*begin_p=*/0, /*partial_p=*/0);
- block = poplevel (0, 0, 0);
+ block = pop_scope ();
SCOPE_STMT_BLOCK (TREE_PURPOSE (scope)) = block;
SCOPE_STMT_BLOCK (TREE_VALUE (scope)) = block;
@@ -237,10 +237,6 @@ c_objc_common_finish_file (void)
if (pch_file)
c_common_write_pch ();
- /* If multiple translation units were built, copy information between
- them based on linkage rules. */
- merge_translation_unit_decls ();
-
cgraph_finalize_compilation_unit ();
cgraph_optimize ();