diff options
author | Jan Hubicka <jh@suse.cz> | 2009-03-28 13:04:38 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2009-03-28 12:04:38 +0000 |
commit | 257eb6e3ef00aa111907c4b9411aaa81cdc80396 (patch) | |
tree | 69b155323bbc7a05d3f5fd2ca7a7962ead5a3ce3 /gcc/dwarf2out.c | |
parent | b7551676632af6f5641aaeb500acc566c4e20922 (diff) | |
download | gcc-257eb6e3ef00aa111907c4b9411aaa81cdc80396.zip gcc-257eb6e3ef00aa111907c4b9411aaa81cdc80396.tar.gz gcc-257eb6e3ef00aa111907c4b9411aaa81cdc80396.tar.bz2 |
cgraph.c (dump_cgraph_node): Add replace output flag by process.
* cgraph.c (dump_cgraph_node): Add replace output flag by process.
* cgraph.h (cgraph_node): Likewise.
* cgraphunit.c (cgraph_process_new_functions): Set process flag.
(cgraph_reset_node): Use process flag.
(cgraph_mark_functions_to_output): Likewise.
(cgraph_expand_function): Likewise.
(cgraph_expand_all_functions): Likewise.
(cgraph_output_in_order): Likewise.
* dwarf2out.c (reference_to_unused): Likewise.
* passes.c do_per_function_toporder): Likewise.
From-SVN: r145178
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 1c82f9c..9bab2a4 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -11319,7 +11319,7 @@ reference_to_unused (tree * tp, int * walk_subtrees, && (!DECL_EXTERNAL (*tp) || DECL_DECLARED_INLINE_P (*tp))) { struct cgraph_node *node = cgraph_node (*tp); - if (!node->output) + if (node->process || TREE_ASM_WRITTEN (*tp)) return *tp; } else if (TREE_CODE (*tp) == STRING_CST && !TREE_ASM_WRITTEN (*tp)) |