diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-09 16:27:14 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-10-09 16:27:14 +0000 |
commit | 5c3667a19751f3f0b11b07c3712b152a70c650ba (patch) | |
tree | 3b365f54da686b951378eabd14acdaf98bd0eb15 /gcc/cgraphunit.c | |
parent | bd09cd3e0a1b43658bb0d2169721ff2b3e95ea0e (diff) | |
download | gcc-5c3667a19751f3f0b11b07c3712b152a70c650ba.tar.gz |
Revert emutls patch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117578 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 6b3cab01df5..10c52ea4284 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -328,7 +328,10 @@ cgraph_varpool_remove_unreferenced_decls (void) node->needed = 0; if (node->finalized - && (decide_is_variable_needed (node, decl) + && ((DECL_ASSEMBLER_NAME_SET_P (decl) + && TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl))) + || node->force_output + || decide_is_variable_needed (node, decl) /* ??? Cgraph does not yet rule the world with an iron hand, and does not control the emission of debug information. After a variable has its DECL_RTL set, we must assume that @@ -1709,7 +1712,6 @@ cgraph_build_static_cdtor (char which, tree body, int priority) { tree_lowering_passes (decl); tree_rest_of_compilation (decl); - cgraph_varpool_assemble_pending_decls (); } else cgraph_finalize_function (decl, 0); |