aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2019-03-28 17:14:05 +0000
committerJakub Jelinek <jakub@redhat.com>2019-03-28 17:14:05 +0000
commitef6171b7030244d2fe9a2e0bb537941e6acd7fb3 (patch)
tree92648aaee266f7e19bfdb83733a8cdc316754ac3
parent471adfddc404b85976b1b2b25d08e4517dd222cb (diff)
PR c/89812
* gcc.dg/attr-aligned-3.c: Limit the test to known ELF targets other than AVR. Add dg-options "". git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@270001 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/attr-aligned-3.c7
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 <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.
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))))