From: Martin Liska Date: Wed, 21 Mar 2018 08:26:49 +0000 (+0100) Subject: Remove superfluous return statement (PR ipa/84963). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc614ac0b6b6a482b21baa1b1e095506f5d35c38;p=gcc.git Remove superfluous return statement (PR ipa/84963). 2018-03-21 Martin Liska PR ipa/84963 * ipa-icf.c (sem_item_optimizer::fixup_points_to_sets): Remove not intended return statement. 2018-03-21 Martin Liska PR ipa/84963 * gfortran.dg/goacc/pr84963.f90: New test. From-SVN: r258705 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 62899c0e874..06adf9c2af8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-03-21 Martin Liska + + PR ipa/84963 + * ipa-icf.c (sem_item_optimizer::fixup_points_to_sets): Remove + not intended return statement. + 2018-03-21 Martin Liska PR target/84988 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)) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f3cc7574e9c..2b47cac8042 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-03-21 Martin Liska + + PR ipa/84963 + * gfortran.dg/goacc/pr84963.f90: New test. + 2018-03-21 Marek Polacek PR c++/71638, ICE with NSDMI and reference. diff --git a/gcc/testsuite/gfortran.dg/goacc/pr84963.f90 b/gcc/testsuite/gfortran.dg/goacc/pr84963.f90 new file mode 100644 index 00000000000..4548082bee3 --- /dev/null +++ b/gcc/testsuite/gfortran.dg/goacc/pr84963.f90 @@ -0,0 +1,7 @@ +! PR ipa/84963 +! { dg-options "-O2" } + +program p + print *, sin([1.0, 2.0]) + print *, cos([1.0, 2.0]) +end