This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Use known value ranges while evaluating ipa predicates


> PASS: gcc.dg/ipa/inline-9.c (test for excess errors)
> gcc.dg/ipa/inline-9.c: dump file does not exist
> UNRESOLVED: gcc.dg/ipa/inline-9.c scan-tree-dump inline "Inlined 1 calls"
> 
> but fixing the obvious bug in there, s/scan-tree-dump/scan-ipa-dump/
> doesn't help, nothing is really inlined.

It gets inlined, but need -details to get the message.
I remember correcting this testcase before, but I must have used old
copy in the patch. Sorry for that.

The following makes testcase to pass.

Honza

	* gcc.dg/ipa/inline-9.c: Fix template.
Index: testsuite/gcc.dg/ipa/inline-9.c
===================================================================
--- testsuite/gcc.dg/ipa/inline-9.c	(revision 278222)
+++ testsuite/gcc.dg/ipa/inline-9.c	(working copy)
@@ -1,4 +1,4 @@
-/* { dg-options "-Os -fdump-ipa-inline"  } */
+/* { dg-options "-Os -fdump-ipa-inline-details"  } */
 int foo (void);
 int test(int a)
 {
@@ -20,4 +20,4 @@ main()
   for (int i=0;i<100;i++)
     test(i);
 }
-/* { dg-final { scan-tree-dump "Inlined 1 calls" "inline" } } */
+/* { dg-final { scan-ipa-dump "Inlined 1 calls" "inline" } } */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]