aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2013-06-19 20:06:12 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2013-06-19 18:06:12 +0000
commit6a6dac5293ee21d9aed0d394a0cb23948bb1efad (patch)
tree1d4237222ae0ad0d8207eb6ee9f94b244ffae6e5 /gcc/cgraphunit.c
parent216c12abf6eccbcf5c5ff1898e8b063a494af40c (diff)
downloadgcc-6a6dac5293ee21d9aed0d394a0cb23948bb1efad.zip
gcc-6a6dac5293ee21d9aed0d394a0cb23948bb1efad.tar.gz
gcc-6a6dac5293ee21d9aed0d394a0cb23948bb1efad.tar.bz2
cgraph.h (const_value_known_p): Replace by ...
* cgraph.h (const_value_known_p): Replace by ... (ctor_for_folding): .. this one. * cgraphunit.c (process_function_and_variable_attributes): Use it. * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding. * expr.c (expand_expr_real_1): Likewise. (string_constant): Likewise. * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise. * ipa.c (process_references): Likewise. (symtab_remove_unreachable_nodes): Likewise. * ipa-inline-analysis.c (param_change_prob): Likewise. * gimple-fold.c (canonicalize_constructor_val): Likewise. (get_base_constructor): Likwise. * varpool.c (varpool_remove_node): Likewise. (varpool_remove_initializer): LIkewise. (dump_varpool_node): LIkwise. (const_value_known_p): Rewrite to ... (ctor_for_folding): ... this one. * lto-partition.c (add_references_to_partition): Use ctor_for_folding. * gcc.dg/tree-ssa/attr-alias-2.c: New testcase. From-SVN: r200211
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 51365eb..731a0e9 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -762,8 +762,7 @@ process_function_and_variable_attributes (struct cgraph_node *first,
{
tree decl = vnode->symbol.decl;
if (DECL_EXTERNAL (decl)
- && DECL_INITIAL (decl)
- && const_value_known_p (decl))
+ && DECL_INITIAL (decl))
varpool_finalize_decl (decl);
if (DECL_PRESERVE_P (decl))
vnode->symbol.force_output = true;