summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2016-10-20 08:49:48 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2016-10-20 08:49:48 +0000
commitc72bf91129c519f36686434ed4f1d7114201e104 (patch)
treeeaf4fefd23878ee067a9f658dce72d2897a8686e /gcc/cgraphunit.c
parentad6502915190926311669afa0cfb73a5ab65035c (diff)
downloadgcc-c72bf91129c519f36686434ed4f1d7114201e104.tar.gz
2016-10-20 Richard Biener <rguenther@suse.de>
* cgraphunit.c (analyze_functions): Set node->definition to false to signal symbol removal to debug_hooks->late_global_decl. * ipa.c (symbol_table::remove_unreachable_nodes): When not in WPA signal symbol removal to the debuginfo machinery. * dwarf2out.c (dwarf2out_late_global_decl): Instead of using early_finised to guard the we're called for symbol removal case look at the symtabs definition flag. (gen_variable_die): Remove redundant check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241363 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 4fa518d27c6..e315a77ae7c 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -1208,6 +1208,7 @@ analyze_functions (bool first_time)
so they effectively appear as readonly. Show that to
the debug machinery. */
TREE_READONLY (node->decl) = 1;
+ node->definition = false;
(*debug_hooks->late_global_decl) (node->decl);
}