r14-5628-g53ba8d669550d3 added noipa to f1 but `-fno-ipa-vrp` should have been 
used
instead. The testcase is testing about the clone of f1 so turning off
IPA VRP is the correct approach here rather than turning off of IPA on the 
function.

gcc/testsuite/ChangeLog:

        PR testsuite/112691
        * gcc.dg/vla-1.c: Add -fno-ipa-vrp.
        Remove noipa from f1.

Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>
---
 gcc/testsuite/gcc.dg/vla-1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/vla-1.c b/gcc/testsuite/gcc.dg/vla-1.c
index 12aa314f385..d16e73d1dc3 100644
--- a/gcc/testsuite/gcc.dg/vla-1.c
+++ b/gcc/testsuite/gcc.dg/vla-1.c
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
-/* { dg-options "-g -O3 -fdump-tree-optimized -fvar-tracking-assignments 
-fno-selective-scheduling -fno-selective-scheduling2" } */
+/* { dg-options "-g -O3 -fdump-tree-optimized -fvar-tracking-assignments 
-fno-selective-scheduling -fno-selective-scheduling2 -fno-ipa-vrp" } */
 
-int __attribute__((noinline,noipa))
+int __attribute__((noinline))
 f1 (int i)
 {
   char a[i + 1];
-- 
2.39.3

Reply via email to