This testcase started to fail after r14-5628-g53ba8d669550d3 because
IPA-VRP can now start to figure out the functions return a constant
value and there was nothing that profiling needed to profile any more.
This disables IPA-VRP for this testcase to be able to profile again.

Bootrapped/tested on x86_64-linux-gnu with no regressions.

gcc/testsuite/ChangeLog:

        * gcc.dg/tree-prof/time-profiler-3.c: Add -fno-ipa-vrp.
---
 gcc/testsuite/gcc.dg/tree-prof/time-profiler-3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/tree-prof/time-profiler-3.c 
b/gcc/testsuite/gcc.dg/tree-prof/time-profiler-3.c
index 69ce0260828..e54a06a7827 100644
--- a/gcc/testsuite/gcc.dg/tree-prof/time-profiler-3.c
+++ b/gcc/testsuite/gcc.dg/tree-prof/time-profiler-3.c
@@ -1,4 +1,4 @@
-/* { dg-options "-O2 -fdump-ipa-profile -fprofile-update=atomic" } */
+/* { dg-options "-O2 -fdump-ipa-profile -fprofile-update=atomic -fno-ipa-vrp" 
} */
 /* { dg-require-effective-target profile_update_atomic } */
 
 __attribute__ ((noinline))
-- 
2.39.3

Reply via email to