From: Jonathan Yong <10walls@gmail.com> Date: Sun, 8 Jan 2023 01:28:34 +0000 (+0000) Subject: PR c/108150 - Fix alignment test for Windows targets X-Git-Tag: basepoints/gcc-14~1733 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff3d99c5e72126cf8d4c7611a63a82dfc476cdbe;p=thirdparty%2Fgcc.git PR c/108150 - Fix alignment test for Windows targets gcc/testsuite/ChangeLog: PR c/108150 * gcc.dg/attr-aligned.c: Make errors emitted on Windows target same as on Linux. Signed-off-by: Jonathan Yong <10walls@gmail.com> --- diff --git a/gcc/testsuite/gcc.dg/attr-aligned.c b/gcc/testsuite/gcc.dg/attr-aligned.c index a2e11c961800..887bdd0f3799 100644 --- a/gcc/testsuite/gcc.dg/attr-aligned.c +++ b/gcc/testsuite/gcc.dg/attr-aligned.c @@ -22,6 +22,9 @@ # define ALIGN_MAX_STATIC 2 /* Work around a pdp11 ICE (see PR target/87821). */ # define ALIGN_MAX_AUTO (ALIGN_MAX_HARD >> 14) +#elif __WIN32__ || __CYGWIN__ +# define ALIGN_MAX_STATIC 8192 +# define ALIGN_MAX_AUTO 8192 #elif __powerpc64__ || __x86_64__ /* Is this processor- or operating-system specific? */ # define ALIGN_MAX_STATIC ALIGN_MAX_HARD