aboutsummaryrefslogtreecommitdiff
path: root/gcc/varpool.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2014-08-01 10:20:57 +0200
committerMartin Liska <marxin@gcc.gnu.org>2014-08-01 08:20:57 +0000
commitfd29c0247aa4af7492782e6c933c713c6732b4b0 (patch)
tree34ecf6784681ee0ad5b65f264b03ec52f19e5524 /gcc/varpool.c
parent0ef40c649bd668717cb99a0dfc90a7218bdfbc29 (diff)
downloadgcc-fd29c0247aa4af7492782e6c933c713c6732b4b0.zip
gcc-fd29c0247aa4af7492782e6c933c713c6732b4b0.tar.gz
gcc-fd29c0247aa4af7492782e6c933c713c6732b4b0.tar.bz2
IPA ICF pass 1/N
* gimple-iterator.h (gsi_next_nonvirtual_phi): New function. * ipa-prop.h (count_formal_params): Global function created from static. * ipa-prop.c (count_formal_params): Likewise. * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge profiles for semantically equivalent functions. * passes.c (do_per_function): If we load body of a function during WPA, this condition should behave same. * varpool.c (ctor_for_folding): More tolerant assert for variable aliases created during WPA. From-SVN: r213417
Diffstat (limited to 'gcc/varpool.c')
-rw-r--r--gcc/varpool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/varpool.c b/gcc/varpool.c
index 74117e2..f1f6a31 100644
--- a/gcc/varpool.c
+++ b/gcc/varpool.c
@@ -405,6 +405,7 @@ ctor_for_folding (tree decl)
if (decl != real_decl)
{
gcc_assert (!DECL_INITIAL (decl)
+ || (node->alias && node->get_alias_target () == real_node)
|| DECL_INITIAL (decl) == error_mark_node);
if (node->weakref)
{