]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Mark fn1 in pr81627.c as noinline [PR120101]
authorAndrew Pinski <quic_apinski@quicinc.com>
Wed, 23 Jul 2025 05:11:29 +0000 (22:11 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Wed, 23 Jul 2025 05:14:15 +0000 (22:14 -0700)
Since r16-372-g064cac730f88dc fn1 is now inlined into main
which meant the scan dump was failing since it was looking
for it only once. Marking fn1 as noinline gets us back to
the old behavior and no longer dependent on the inliner.

Pushed as obvious after a quick test.

PR testsuite/120101
gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/pr81627.c (fn1): Mark as noinline.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/testsuite/gcc.dg/tree-ssa/pr81627.c

index 9ba43be5052505070abc3dff3048502bd64261ca..ef35b298f40c2e6724b00ebdcd01601bf6b212b0 100644 (file)
@@ -4,6 +4,7 @@
 int a, b, c, d[6], e = 3, f;
 
 void abort (void);
+void fn1 () __attribute__((noinline));
 void fn1 ()
 {
   for (b = 1; b < 5; b++)