diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-21 18:39:29 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-21 18:39:29 +0000 |
commit | 20325f61bf17dcfd880c96cafb80f6b89e69ddcd (patch) | |
tree | b565716472649ba4ff8e84298f2475f0afd90105 /gcc/profile.c | |
parent | 12f6b6183972b55ee709e24a5e6bca9361d7d14d (diff) | |
download | gcc-20325f61bf17dcfd880c96cafb80f6b89e69ddcd.tar.gz |
* Makefile.in (fold-const.o, stor-layout.o, stmt.o,
sdbout.o, profile.o): Update.
* c-common.c (c_common_nodes_and_builtins): Use pushdecl
langhook.
* c-common.h (gettags): Move here from tree.h.
* c-tree.h (pushdecl, pushlevel, poplevel, set_block,
insert_block, getdecls, kept_level_p, global_bindings_p): New.
* dbxout.c (dbxout_init): Use getdecls langhook.
* expr.c (expand_expr): Use insert_block langhook.
* fold-const.c: Include langhooks.h.
(fold_range_test, fold_binary_op_with_conditional_arg,
fold): Use global_bindings_p langhook.
* integrate.c (expand_inline_function): Use insert_block langhook.
* langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
LANG_HOOKS_GETDECLS): New.
(LANG_HOOKS_INITIALIZER): Update.
* langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
langhook.
* langhooks.h (struct lang_hooks_for_decls): New.
(struct lang_hooks): Update.
* profile.c: Include langhooks.h.
(output_func_start_profiler): Use new langhooks.
* sdbout.c: Include langhooks.h.
(sdbout_init, sdbout_finish): Use getdecls langhook.
* stmt.c: Include langhooks.h.
(expand_fixup, fixup_gotos): Use new langhooks.
* stor-layout.c: Include langhooks.h.
(variable_size): Use global_bindings_p langhook.
* toplev.c (compile_file): Use getdecls langhook.
* tree-inline.c (remap_block): Use insert_block langhook.
* tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
cp:
* cp-tree.h (pushdecl, pushlevel, poplevel, set_block,
insert_block, getdecls, global_bindings_p): New.
java:
* cp-tree.h (pushdecl, pushlevel, poplevel, set_block,
insert_block, getdecls, kept_level_p, global_bindings_p): New.
f:
* cp-tree.h (pushdecl, pushlevel, poplevel, set_block,
insert_block, getdecls, global_bindings_p): New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51136 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/profile.c')
-rw-r--r-- | gcc/profile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/profile.c b/gcc/profile.c index 09fab359a89..881604e1e27 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -49,6 +49,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "basic-block.h" #include "gcov-io.h" #include "target.h" +#include "langhooks.h" /* Additional information about the edges we need. */ struct edge_info @@ -1153,14 +1154,14 @@ output_func_start_profiler () DECL_RESULT (fndecl) = build_decl (RESULT_DECL, NULL_TREE, void_type_node); - fndecl = pushdecl (fndecl); + fndecl = (*lang_hooks.decls.pushdecl) (fndecl); rest_of_decl_compilation (fndecl, 0, 1, 0); announce_function (fndecl); current_function_decl = fndecl; DECL_INITIAL (fndecl) = error_mark_node; make_decl_rtl (fndecl, NULL); init_function_start (fndecl, input_filename, lineno); - pushlevel (0); + (*lang_hooks.decls.pushlevel) (0); expand_function_start (fndecl, 0); /* Actually generate the code to call __bb_init_func. */ @@ -1171,7 +1172,7 @@ output_func_start_profiler () mode, 1, table_address, Pmode); expand_function_end (input_filename, lineno, 0); - poplevel (1, 0, 1); + (*lang_hooks.decls.poplevel) (1, 0, 1); /* Since fndecl isn't in the list of globals, it would never be emitted when it's considered to be 'safe' for inlining, so turn off |