[COMMITTED,4/5] testsuite: fix dg-require-effective-target order vs dg-additional-sources
Checks
Commit Message
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.
---
Committed as obvious.
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(-)
@@ -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"
@@ -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"
@@ -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
@@ -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);
@@ -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);