diff options
Diffstat (limited to 'gcc/c')
-rw-r--r-- | gcc/c/c-decl.c | 6 | ||||
-rw-r--r-- | gcc/c/c-parser.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/c/c-decl.c b/gcc/c/c-decl.c index ec0d0ef..b4995a6 100644 --- a/gcc/c/c-decl.c +++ b/gcc/c/c-decl.c @@ -8665,12 +8665,12 @@ finish_function (void) /* ??? Objc emits functions after finalizing the compilation unit. This should be cleaned up later and this conditional removed. */ - if (cgraph_global_info_ready) + if (symtab->global_info_ready) { cgraph_node::add_new_function (fndecl, false); return; } - cgraph_finalize_function (fndecl, false); + cgraph_node::finalize_function (fndecl, false); } else { @@ -10428,7 +10428,7 @@ c_write_global_declarations (void) /* We're done parsing; proceed to optimize and emit assembly. FIXME: shouldn't be the front end's responsibility to call this. */ - finalize_compilation_unit (); + symtab->finalize_compilation_unit (); timevar_stop (TV_PHASE_OPT_GEN); timevar_start (TV_PHASE_DBGINFO); diff --git a/gcc/c/c-parser.c b/gcc/c/c-parser.c index d634bb1..34f1e47 100644 --- a/gcc/c/c-parser.c +++ b/gcc/c/c-parser.c @@ -1980,7 +1980,7 @@ c_parser_asm_definition (c_parser *parser) { tree asm_str = c_parser_simple_asm_expr (parser); if (asm_str) - add_asm_node (asm_str); + symtab->finalize_toplevel_asm (asm_str); c_parser_skip_until_found (parser, CPP_SEMICOLON, "expected %<;%>"); } |