From: Jakub Jelinek Date: Thu, 28 Mar 2019 17:14:05 +0000 (+0100) Subject: re PR c/89812 (incorrect maximum in error: requested alignment ‘536870912’ exceeds... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb15c8b7f76f90ebcf234e4c772a0e21346ef301;p=gcc.git re PR c/89812 (incorrect maximum in error: requested alignment ‘536870912’ exceeds maximum 2147483648) 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 --- 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))))