https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120859

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> I think this file just needs `/* { dg-do compile } */`
> 
> I will check tomorrow.

I actually think this is the correct fix:
```
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 dd532952f97..79ba529c747 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 (*)()))

```

The reason is because afdo-crossmodule-1b.c has some scans in it.

Reply via email to