From bb15c8b7f76f90ebcf234e4c772a0e21346ef301 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 28 Mar 2019 18:14:05 +0100 Subject: [PATCH] =?utf8?q?re=20PR=20c/89812=20(incorrect=20maximum=20in=20?= =?utf8?q?error:=20requested=20alignment=20=E2=80=98536870912=E2=80=99=20e?= =?utf8?q?xceeds=20maximum=202147483648)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit PR c/89812 * gcc.dg/attr-aligned-3.c: Limit the test to known ELF targets other than AVR. Add dg-options "". From-SVN: r270001 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/attr-aligned-3.c | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 64457695b20..9c98973f764 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2019-03-28 Jakub Jelinek + PR c/89812 + * gcc.dg/attr-aligned-3.c: Limit the test to known ELF targets + other than AVR. Add dg-options "". + PR c++/89785 * g++.dg/cpp1y/constexpr-89785-1.C: New test. * g++.dg/cpp1y/constexpr-89785-2.C: New test. diff --git a/gcc/testsuite/gcc.dg/attr-aligned-3.c b/gcc/testsuite/gcc.dg/attr-aligned-3.c index 0603377a32d..3d412b91c0c 100644 --- a/gcc/testsuite/gcc.dg/attr-aligned-3.c +++ b/gcc/testsuite/gcc.dg/attr-aligned-3.c @@ -1,7 +1,10 @@ /* PR c/89812 - incorrect maximum in error: requested alignment '536870912' exceeds maximum 2147483648 - { dg-do compile } - { dg-require-effective-target size32plus } */ + Limit to ELF targets that are known to use MAX_OFILE_ALIGNMENT + (1 << 28) * BITS_PER_UNIT. + { dg-do compile { target { { *-*-elf* *-*-gnu* } && { ! avr*-*-* } } } } + { dg-require-effective-target size32plus } + { dg-options "" } */ #define POWALIGN(N) __attribute__ ((aligned ((__UINT64_TYPE__)1 << (N)))) -- 2.30.2