This test expects an error for x32 where long has smaller alignment than
long long and double, but the same is also true for *-*-mingw* targets.
Add that triplet to the target selectors for the dg-error directives.
gcc/testsuite/ChangeLog:
* gcc.dg/pr61053.c: Add *-*-mingw* to the dg-error directives
that currently only match x32.
---
As discussed with Nightstrike on IRC, this test needs a tweak for mingw*
targets.
Tested x86_64-linux, -m32 and -m64, and verified by Nightstrike for
x86_64-w64-mingw32 too.
gcc/testsuite/gcc.dg/pr61053.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/pr61053.c b/gcc/testsuite/gcc.dg/pr61053.c
index 1c090e062b6b..1ec9b0510685 100644
--- a/gcc/testsuite/gcc.dg/pr61053.c
+++ b/gcc/testsuite/gcc.dg/pr61053.c
@@ -41,7 +41,7 @@ _Alignas (long double) long int lild;
_Alignas (char) long long int llic; /* { dg-error "cannot reduce alignment" }
*/
_Alignas (short int) long long int llis; /* { dg-error "cannot reduce
alignment" } */
_Alignas (int) long long int llii; /* { dg-error "cannot reduce alignment" ""
{ target { ! { ia32 } } } } */
-_Alignas (long int) long long int llil; /* { dg-error "cannot reduce
alignment" "" { target { x32 } } } */
+_Alignas (long int) long long int llil; /* { dg-error "cannot reduce
alignment" "" { target { x32 || *-*-mingw* } } } */
_Alignas (long long int) long long int llill;
_Alignas (float) long long int llif; /* { dg-error "cannot reduce alignment"
"" { target { ! { ia32 } } } } */
_Alignas (double) long long int llid;
@@ -59,7 +59,7 @@ _Alignas (long double) float fld;
_Alignas (char) double dc; /* { dg-error "cannot reduce alignment" } */
_Alignas (short int) double ds; /* { dg-error "cannot reduce alignment" } */
_Alignas (int) double di; /* { dg-error "cannot reduce alignment" "" { target
{ ! { ia32 } } } } */
-_Alignas (long int) double dl; /* { dg-error "cannot reduce alignment" "" {
target { x32 } } } */
+_Alignas (long int) double dl; /* { dg-error "cannot reduce alignment" "" {
target { x32 || *-*-mingw* } } } */
_Alignas (long long int) double dll;
_Alignas (float) double df; /* { dg-error "cannot reduce alignment" "" {
target { ! { ia32 } } } } */
_Alignas (double) double dd;
--
2.52.0