This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch, testsuite] Fix more bogus failures for avr
- From: Senthil Kumar Selvaraj <senthil_kumar dot selvaraj at atmel dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 1 Sep 2016 16:45:05 +0530
- Subject: [Patch, testsuite] Fix more bogus failures for avr
- Authentication-results: sourceware.org; auth=none
Hi,
The below patch fixes some bogus testsuite failures for the avr
target. The first three expect 32 bit ints, and the last one uses too
much RAM for a typical avr device.
Regtested with avr and x86_64-pc-linux, and committed to trunk.
Regards
Senthil
gcc/testsuite/ChangeLog
2016-09-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
* gcc.dg/pr64252.c: Require int32plus.
* gcc.dg/pr66299-1.c: Likewise.
* gcc.dg/pr66299-2.c: Likewise.
* gcc.dg/torture/20131115-1.c: Skip for avr.
Index: gcc/testsuite/gcc.dg/pr64252.c
===================================================================
--- gcc/testsuite/gcc.dg/pr64252.c (revision 239920)
+++ gcc/testsuite/gcc.dg/pr64252.c (working copy)
@@ -1,6 +1,7 @@
/* PR target/64252 */
/* { dg-do run } */
/* { dg-options "-O2" } */
+/* { dg-require-effective-target int32plus } */
typedef unsigned int V __attribute__((vector_size (32)));
Index: gcc/testsuite/gcc.dg/pr66299-1.c
===================================================================
--- gcc/testsuite/gcc.dg/pr66299-1.c (revision 239920)
+++ gcc/testsuite/gcc.dg/pr66299-1.c (working copy)
@@ -1,6 +1,7 @@
/* PR tree-optimization/66299 */
/* { dg-do run } */
/* { dg-options "-fdump-tree-original" } */
+/* { dg-require-effective-target int32plus } */
void
test1 (int x)
Index: gcc/testsuite/gcc.dg/pr66299-2.c
===================================================================
--- gcc/testsuite/gcc.dg/pr66299-2.c (revision 239920)
+++ gcc/testsuite/gcc.dg/pr66299-2.c (working copy)
@@ -1,6 +1,7 @@
/* PR tree-optimization/66299 */
/* { dg-do run } */
/* { dg-options "-fdump-tree-optimized -O" } */
+/* { dg-require-effective-target int32plus } */
void
test1 (int x, unsigned u)
Index: gcc/testsuite/gcc.dg/torture/20131115-1.c
===================================================================
--- gcc/testsuite/gcc.dg/torture/20131115-1.c (revision 239920)
+++ gcc/testsuite/gcc.dg/torture/20131115-1.c (working copy)
@@ -1,4 +1,5 @@
/* { dg-do run } */
+/* { dg-skip-if "RAM usage too large" { "avr-*-*" } } */
struct S { int i; };
__attribute__((const, noinline, noclone))