]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix gcc.dg/vla-1.c
authorAndrew Pinski <quic_apinski@quicinc.com>
Sun, 26 Nov 2023 04:24:56 +0000 (20:24 -0800)
committerAndrew Pinski <quic_apinski@quicinc.com>
Sun, 26 Nov 2023 04:28:14 +0000 (20:28 -0800)
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_apinski@quicinc.com>
gcc/testsuite/gcc.dg/vla-1.c

index 12aa314f385620c1d10b1c224e4d4766a84cabb8..d16e73d1dc3accc5ea70075a4505f3832d81b8bf 100644 (file)
@@ -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];