public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] ipa: Fix testsuite/gcc.dg/ipa/remref-6.c
@ 2021-08-09 12:44 Martin Jambor
  0 siblings, 0 replies; only message in thread
From: Martin Jambor @ 2021-08-09 12:44 UTC (permalink / raw)
  To: GCC Patches

Hi,

I forgot to add -fdump-ipa-inline to options of
testsuite/gcc.dg/ipa/remref-6.c and so the dump scan test were not
PASSing but ended up as UNRESOLVED.  Fixing that revealed that the one
of the dumps it was looking for had a double space, so I removed it
too.

Tested with
  make -k check-gcc RUNTESTFLAGS="ipa.exp"
  make -k check-g++ RUNTESTFLAGS="dg.exp=ipa/*.C"

I will shortly push it to master as obvious.

Thanks and sorry for the stupid mistake,

Martin


gcc/ChangeLog:

2021-08-09  Martin Jambor  <mjambor@suse.cz>

	PR testsuite/101654
	* ipa-prop.c (propagate_controlled_uses): Removed a spurious space.

gcc/testsuite/ChangeLog:

2021-08-09  Martin Jambor  <mjambor@suse.cz>

	PR testsuite/101654
	* gcc.dg/ipa/remref-6.c: Added missing -fdump-ipa-inline option.
---
 gcc/ipa-prop.c                      | 2 +-
 gcc/testsuite/gcc.dg/ipa/remref-6.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c
index 0afd05eb95c..1c69d9766c5 100644
--- a/gcc/ipa-prop.c
+++ b/gcc/ipa-prop.c
@@ -4204,7 +4204,7 @@ propagate_controlled_uses (struct cgraph_edge *cs)
 		      new_root->create_reference (n, IPA_REF_LOAD, NULL);
 		      if (dump_file)
 			fprintf (dump_file, "ipa-prop: ...replaced it with "
-				 " LOAD one from %s to %s.\n",
+				 "LOAD one from %s to %s.\n",
 				 new_root->dump_name (), n->dump_name ());
 		    }
 
diff --git a/gcc/testsuite/gcc.dg/ipa/remref-6.c b/gcc/testsuite/gcc.dg/ipa/remref-6.c
index de3649315c2..7deae3114a4 100644
--- a/gcc/testsuite/gcc.dg/ipa/remref-6.c
+++ b/gcc/testsuite/gcc.dg/ipa/remref-6.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2 -fno-early-inlining -fno-ipa-cp -fdump-tree-optimized"  }  */
+/* { dg-options "-O2 -fno-early-inlining -fno-ipa-cp -fdump-ipa-inline -fdump-tree-optimized"  }  */
 
 static double global = 0.0;
 
-- 
2.32.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-09 12:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-09 12:44 [PATCH] ipa: Fix testsuite/gcc.dg/ipa/remref-6.c Martin Jambor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).