Skip to content

Commit

Permalink
Fix gcc.dg/vla-1.c
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
apinski-quic committed Nov 26, 2023
1 parent a9693bf commit bd7f16b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcc/testsuite/gcc.dg/vla-1.c
Original file line number Diff line number Diff line change
@@ -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];
Expand Down

0 comments on commit bd7f16b

Please sign in to comment.