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
This commit is contained in:
Jakub Jelinek 2019-03-28 18:14:05 +01:00 committed by Jakub Jelinek
parent 337d1fec36
commit bb15c8b7f7
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2019-03-28 Jakub Jelinek <jakub@redhat.com>
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.

View File

@ -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))))