From e892493899b225a21746d24221d7dc45fc19fed2 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 4 Apr 2008 14:57:18 +0000 Subject: function.c (free_after_parsing): Replace with cxx_push_function_context from C++ front-end. 2008-04-03 Paolo Bonzini * function.c (free_after_parsing): Replace with cxx_push_function_context from C++ front-end. (allocate_struct_function): Don't call langhook. * langhooks.h (struct lang_hooks_for_functions): Delete. (struct lang_hooks): Add back missing_noreturn_ok_p here, delete member "function". * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add. (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL, LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P, LANG_HOOKS_FUNCTION_INITIALIZER): Delete. (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P, remove LANG_HOOKS_FUNCTION_INITIALIZER. * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook. * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P): Rename to LANG_HOOKS_MISSING_NORETURN_OK_P. cp: 2008-04-03 Paolo Bonzini * decl.c (cxx_push_function_context): Delete. (cxx_pop_function_context): Delete. (start_preparsed_function): Merge cxx_push_function_context (!f->decl code only). * cp-objcp-common.h (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL): Delete. (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P): Rename to LANG_HOOKS_MISSING_NORETURN_OK_P. * cp-tree.h (cxx_push_function_context, cxx_pop_function_context): Delete prototype. * semantics.c (current_stmt_tree): Fix comment. From-SVN: r133900 --- gcc/function.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'gcc/function.c') diff --git a/gcc/function.c b/gcc/function.c index 197c393..240a3e7 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -271,12 +271,7 @@ pop_function_context (void) void free_after_parsing (struct function *f) { - /* f->expr->forced_labels is used by code generation. */ - /* f->emit->regno_reg_rtx is used by code generation. */ - /* f->varasm is used by code generation. */ - /* f->eh->eh_return_stub_label is used by code generation. */ - - lang_hooks.function.final (f); + f->language = 0; } /* Clear out all parts of the state in F that can safely be discarded @@ -3861,7 +3856,6 @@ allocate_struct_function (tree fndecl, bool abstract_p) init_eh_for_function (); - lang_hooks.function.init (cfun); if (init_machine_status) cfun->machine = (*init_machine_status) (); -- cgit v1.1