diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-22 18:02:06 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-06-22 18:02:06 +0000 |
commit | 8c4a7fb7093a4ee71e610e3f1c8ae9f76a74c47f (patch) | |
tree | 09cf8e6a4c12901e2c4ac308c41636ffb5c92b2f /gcc/cgraph.h | |
parent | d62378a48d208e9b2cf1812e59dec31ec778cde5 (diff) | |
download | gcc-8c4a7fb7093a4ee71e610e3f1c8ae9f76a74c47f.tar.gz |
2011-06-22 Richard Guenther <rguenther@suse.de>
PR tree-optimization/49493
* tree-ssa-structalias.c (get_constraint_for_ssa_var):
Refer to the alias target of variables.
(associate_varinfo_to_alias_1): Remove.
(ipa_pta_execute): Do not associate aliases with anything.
* cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
(cgraph_function_node): Likewise.
(cgraph_function_or_thunk_node): Likewise.
(varpool_variable_node): Likewise.
* gcc.dg/ipa/ipa-pta-17.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175300 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index dd08febaf12..f912af2a393 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -981,7 +981,7 @@ varpool_alias_aliased_node (struct varpool_node *n) ipa_ref_list_reference_iterate (&n->ref_list, 0, ref); gcc_checking_assert (ref->use == IPA_REF_ALIAS); - if (ref->refered_type == IPA_REF_CGRAPH) + if (ref->refered_type == IPA_REF_VARPOOL) return ipa_ref_varpool_node (ref); return NULL; } @@ -1011,7 +1011,7 @@ cgraph_function_node (struct cgraph_node *node, enum availability *availability) *availability = a; } } - if (*availability) + if (availability) *availability = AVAIL_NOT_AVAILABLE; return NULL; } @@ -1039,7 +1039,7 @@ cgraph_function_or_thunk_node (struct cgraph_node *node, enum availability *avai *availability = a; } } - if (*availability) + if (availability) *availability = AVAIL_NOT_AVAILABLE; return NULL; } @@ -1067,7 +1067,7 @@ varpool_variable_node (struct varpool_node *node, enum availability *availabilit *availability = a; } } - if (*availability) + if (availability) *availability = AVAIL_NOT_AVAILABLE; return NULL; } |