https://gcc.gnu.org/g:9ad3d1c5814976b8dcd3821bb27ec3bfe9c32aec
commit r15-2442-g9ad3d1c5814976b8dcd3821bb27ec3bfe9c32aec Author: Sam James <s...@gentoo.org> Date: Tue Jul 30 21:55:30 2024 +0100 testsuite: fix dg-require-effective-target order vs dg-additional-sources Per gccint, 'dg-require-effective-target' must come before any 'dg-additional-sources' directives. Fix a handful of deviant cases. gcc/testsuite/ChangeLog: * gcc.target/aarch64/aapcs64/func-ret-3.c: Fix dg-require-effective-target directive order. * gcc.target/aarch64/aapcs64/func-ret-4.c: Likewise. * gfortran.dg/PR100914.f90: Likewise. libgomp/ChangeLog: * testsuite/libgomp.c++/pr24455.C: Fix dg-require-effective-target directive order. * testsuite/libgomp.c/pr24455.c: Likewise. Diff: --- gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-3.c | 2 +- gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-4.c | 2 +- gcc/testsuite/gfortran.dg/PR100914.f90 | 2 +- libgomp/testsuite/libgomp.c++/pr24455.C | 2 +- libgomp/testsuite/libgomp.c/pr24455.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-3.c b/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-3.c index 1d35ebf14b4b..ebd2e8dd8791 100644 --- a/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-3.c +++ b/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-3.c @@ -4,9 +4,9 @@ in AAPCS64 \S 4.3.5. */ /* { dg-do run { target aarch64-*-* } } */ +/* { dg-require-effective-target aarch64_big_endian } */ /* { dg-additional-options "-mbranch-protection=none" } */ /* { dg-additional-sources "abitest.S" } */ -/* { dg-require-effective-target aarch64_big_endian } */ #ifndef IN_FRAMEWORK #define TESTFILE "func-ret-3.c" diff --git a/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-4.c b/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-4.c index 15e1408c62d7..03d42f3dd047 100644 --- a/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-4.c +++ b/gcc/testsuite/gcc.target/aarch64/aapcs64/func-ret-4.c @@ -5,9 +5,9 @@ are treated as general composite types. */ /* { dg-do run { target aarch64*-*-* } } */ +/* { dg-require-effective-target aarch64_big_endian } */ /* { dg-additional-options "-mbranch-protection=none" } */ /* { dg-additional-sources "abitest.S" } */ -/* { dg-require-effective-target aarch64_big_endian } */ #ifndef IN_FRAMEWORK #define TESTFILE "func-ret-4.c" diff --git a/gcc/testsuite/gfortran.dg/PR100914.f90 b/gcc/testsuite/gfortran.dg/PR100914.f90 index 8588157e59c0..161f1265fa21 100644 --- a/gcc/testsuite/gfortran.dg/PR100914.f90 +++ b/gcc/testsuite/gfortran.dg/PR100914.f90 @@ -1,7 +1,7 @@ ! Fails on x86 targets where sizeof(long double) == 16. ! { dg-do run } -! { dg-additional-sources PR100914.c } ! { dg-require-effective-target fortran_real_c_float128 } +! { dg-additional-sources PR100914.c } ! { dg-additional-options "-Wno-pedantic" } ! ! Test the fix for PR100914 diff --git a/libgomp/testsuite/libgomp.c++/pr24455.C b/libgomp/testsuite/libgomp.c++/pr24455.C index 8256b6693c8f..9816d37461a5 100644 --- a/libgomp/testsuite/libgomp.c++/pr24455.C +++ b/libgomp/testsuite/libgomp.c++/pr24455.C @@ -1,6 +1,6 @@ // { dg-do run } -// { dg-additional-sources pr24455-1.C } // { dg-require-effective-target tls_runtime } +// { dg-additional-sources pr24455-1.C } // { dg-options "-fno-extern-tls-init" } extern "C" void abort (void); diff --git a/libgomp/testsuite/libgomp.c/pr24455.c b/libgomp/testsuite/libgomp.c/pr24455.c index 8af449e7b5c3..4284c1095293 100644 --- a/libgomp/testsuite/libgomp.c/pr24455.c +++ b/libgomp/testsuite/libgomp.c/pr24455.c @@ -1,6 +1,6 @@ /* { dg-do run } */ -/* { dg-additional-sources pr24455-1.c } */ /* { dg-require-effective-target tls_runtime } */ +/* { dg-additional-sources pr24455-1.c } */ extern void abort (void);