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.
This commit is contained in:
Sam James 2024-07-30 21:55:30 +01:00
parent d398581485
commit 9ad3d1c581
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
5 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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

View File

@ -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);

View File

@ -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);