https://gcc.gnu.org/g:9de2fbf46cdfb9f0ed8c1fb7e7524443e975ff29

commit r16-2366-g9de2fbf46cdfb9f0ed8c1fb7e7524443e975ff29
Author: Andrew Pinski <quic_apin...@quicinc.com>
Date:   Sat Jul 19 19:11:09 2025 -0700

    testsuite: Fix afdo-crossmodule-1b.c [PR120859]
    
    The problem here is that the testcase is part of another
    testcase but dg-final does not work across source files
    so it needs its own dg-* headers to that match up with
    afdo-crossmodule-1.c.
    
    Pushed as preapproved in 
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120859#c4 .
    
            PR testsuite/120859
    gcc/testsuite/ChangeLog:
    
            * gcc.dg/tree-prof/afdo-crossmodule-1b.c: Add some dg-*
            commands like what is in afdo-crossmodule-1.c
    
    Signed-off-by: Andrew Pinski <quic_apin...@quicinc.com>

Diff:
---
 gcc/testsuite/gcc.dg/tree-prof/afdo-crossmodule-1b.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gcc/testsuite/gcc.dg/tree-prof/afdo-crossmodule-1b.c 
b/gcc/testsuite/gcc.dg/tree-prof/afdo-crossmodule-1b.c
index dd532952f973..79ba529c7475 100644
--- a/gcc/testsuite/gcc.dg/tree-prof/afdo-crossmodule-1b.c
+++ b/gcc/testsuite/gcc.dg/tree-prof/afdo-crossmodule-1b.c
@@ -1,3 +1,8 @@
+/* { dg-require-effective-target lto } */
+/* { dg-additional-sources "afdo-crossmodule-1.c" } */
+/* { dg-options "-O3 -flto -fdump-ipa-afdo_offline 
-fdump-tree-einline-details" } */
+/* { dg-require-profiling "-fauto-profile" } */
+
 extern int foo2 ();
 
 int bar (int (*fooptr) (int (*)()))

Reply via email to