diff options
author | Jonathan Yong <10walls@gmail.com> | 2023-01-08 01:28:34 +0000 |
---|---|---|
committer | Jonathan Yong <10walls@gmail.com> | 2023-01-28 15:16:30 +0000 |
commit | ff3d99c5e72126cf8d4c7611a63a82dfc476cdbe (patch) | |
tree | d9689622301b049b70358254eefdb9afe3ad3ed0 | |
parent | fe4608efc15b881ac908a3f90d7322736495ae72 (diff) | |
download | gcc-ff3d99c5e72126cf8d4c7611a63a82dfc476cdbe.zip gcc-ff3d99c5e72126cf8d4c7611a63a82dfc476cdbe.tar.gz gcc-ff3d99c5e72126cf8d4c7611a63a82dfc476cdbe.tar.bz2 |
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>
-rw-r--r-- | gcc/testsuite/gcc.dg/attr-aligned.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/attr-aligned.c b/gcc/testsuite/gcc.dg/attr-aligned.c index a2e11c9..887bdd0 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 |