https://gcc.gnu.org/g:1b6a9697de7616fb12ce8521472f5817a312c6d5
commit r16-7356-g1b6a9697de7616fb12ce8521472f5817a312c6d5 Author: Jonathan Wakely <[email protected]> Date: Thu Feb 5 16:52:46 2026 +0000 testsuite: Fix pr61053.c testsuite failure on mingw 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. Diff: --- 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;
