summaryrefslogtreecommitdiff
path: root/gcc/ipa-icf.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-03-21 09:26:49 +0100
committerMartin Liska <marxin@gcc.gnu.org>2018-03-21 08:26:49 +0000
commitcc614ac0b6b6a482b21baa1b1e095506f5d35c38 (patch)
tree2a7e9bc2bfd88ecd7b02c4b022cb26926546f3e0 /gcc/ipa-icf.c
parent9a4dbf9100ab622212aa8eb78f380fd932dd4582 (diff)
Remove superfluous return statement (PR ipa/84963).
2018-03-21 Martin Liska <mliska@suse.cz> PR ipa/84963 * ipa-icf.c (sem_item_optimizer::fixup_points_to_sets): Remove not intended return statement. 2018-03-21 Martin Liska <mliska@suse.cz> PR ipa/84963 * gfortran.dg/goacc/pr84963.f90: New test. From-SVN: r258705
Diffstat (limited to 'gcc/ipa-icf.c')
-rw-r--r--gcc/ipa-icf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c
index 1376a54e95e..f974d9f769f 100644
--- a/gcc/ipa-icf.c
+++ b/gcc/ipa-icf.c
@@ -3612,15 +3612,16 @@ void
sem_item_optimizer::fixup_points_to_sets (void)
{
/* TODO: remove in GCC 9 and trigger PTA re-creation after IPA passes. */
-
cgraph_node *cnode;
- return;
FOR_EACH_DEFINED_FUNCTION (cnode)
{
tree name;
unsigned i;
function *fn = DECL_STRUCT_FUNCTION (cnode->decl);
+ if (!gimple_in_ssa_p (fn))
+ continue;
+
FOR_EACH_SSA_NAME (i, name, fn)
if (POINTER_TYPE_P (TREE_TYPE (name))
&& SSA_NAME_PTR_INFO (name))