aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2007-10-06 20:28:15 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2007-10-06 20:28:15 +0000
commit2f09ef38b898ddd79ac5627e0916e2ea8cdf90dd (patch)
tree3fdfba6221c02d90626e89e38beb0d0e6c7bb335 /gcc/cgraphunit.c
parent53747374f94953daa2a8fb58d366d14232e39dae (diff)
downloadgcc-2f09ef38b898ddd79ac5627e0916e2ea8cdf90dd.zip
gcc-2f09ef38b898ddd79ac5627e0916e2ea8cdf90dd.tar.gz
gcc-2f09ef38b898ddd79ac5627e0916e2ea8cdf90dd.tar.bz2
Revert:
2007-02-12 Eric Botcazou <ebotcazou@adacore.com> * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL. * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on the function, temporarily point the debug interface to the null one. From-SVN: r129056
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index e4b2e5c..b2e1960 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1044,8 +1044,6 @@ cgraph_mark_functions_to_output (void)
static void
cgraph_expand_function (struct cgraph_node *node)
{
- enum debug_info_type save_write_symbols = NO_DEBUG;
- const struct gcc_debug_hooks *save_debug_hooks = NULL;
tree decl = node->decl;
/* We ought to not compile any inline clones. */
@@ -1056,14 +1054,6 @@ cgraph_expand_function (struct cgraph_node *node)
gcc_assert (node->lowered);
- if (DECL_IGNORED_P (decl))
- {
- save_write_symbols = write_symbols;
- write_symbols = NO_DEBUG;
- save_debug_hooks = debug_hooks;
- debug_hooks = &do_nothing_debug_hooks;
- }
-
/* Generate RTL for the body of DECL. */
if (lang_hooks.callgraph.emit_associated_thunks)
lang_hooks.callgraph.emit_associated_thunks (decl);
@@ -1073,12 +1063,6 @@ cgraph_expand_function (struct cgraph_node *node)
/* ??? Can happen with nested function of extern inline. */
gcc_assert (TREE_ASM_WRITTEN (node->decl));
- if (DECL_IGNORED_P (decl))
- {
- write_symbols = save_write_symbols;
- debug_hooks = save_debug_hooks;
- }
-
current_function_decl = NULL;
if (!cgraph_preserve_function_body_p (node->decl))
{