From d498e79ebe90415047b0bdfdb70e0d579a88965b Mon Sep 17 00:00:00 2001 From: Sam James <sam@gentoo.org> Date: Tue, 30 Jul 2024 22:01:42 +0100 Subject: [PATCH] testsuite: fix dg-require-* order vs dg-additional-sources Per gccint, 'dg-require-*' must come before any 'dg-additional-sources' directives. Fix a handful of deviant cases. * gcc.dg/tree-prof/crossmodule-indir-call-topn-1.c: Fix dg-require-profiling directive order. * gcc.dg/tree-prof/crossmodule-indir-call-topn-2.c: Likewise. --- gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-1.c | 2 +- gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-1.c b/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-1.c index b57d30f91637..f6ec71a9298d 100644 --- a/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-1.c +++ b/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-1.c @@ -1,6 +1,6 @@ /* { dg-require-effective-target lto } */ -/* { dg-additional-sources "crossmodule-indir-call-topn-1a.c" } */ /* { dg-require-profiling "-fprofile-generate" } */ +/* { dg-additional-sources "crossmodule-indir-call-topn-1a.c" } */ /* { dg-options "-O2 -flto -DDOJOB=1 -fdump-ipa-profile_estimate" } */ #ifdef FOR_AUTOFDO_TESTING diff --git a/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-2.c b/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-2.c index 6b5ae93214a5..2ace3c3b9bf1 100644 --- a/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-2.c +++ b/gcc/testsuite/gcc.dg/tree-prof/crossmodule-indir-call-topn-2.c @@ -1,6 +1,6 @@ /* { dg-require-effective-target lto } */ -/* { dg-additional-sources "crossmodule-indir-call-topn-1a.c" } */ /* { dg-require-profiling "-fprofile-generate" } */ +/* { dg-additional-sources "crossmodule-indir-call-topn-1a.c" } */ /* { dg-options "-O2 -flto -DDOJOB=1 -fdump-ipa-profile_estimate" } */ #ifdef FOR_AUTOFDO_TESTING -- GitLab