]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR c/108150 - Fix alignment test for Windows targets
authorJonathan Yong <10walls@gmail.com>
Sun, 8 Jan 2023 01:28:34 +0000 (01:28 +0000)
committerJonathan Yong <10walls@gmail.com>
Sat, 28 Jan 2023 15:16:30 +0000 (15:16 +0000)
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>
gcc/testsuite/gcc.dg/attr-aligned.c

index a2e11c9618002a291f0a76131e6dc3a932c0fa7c..887bdd0f379903a89648c3789d7f3e0ae5821e91 100644 (file)
@@ -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