This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Testsuite array-quals-1.c: xfail for AVR target
- From: Andy H <hutchinsonandy at aim dot com>
- To: janis187 at us dot ibm dot com, gcc-patches at gcc dot gnu dot org
- Date: Mon, 19 May 2008 17:28:28 -0400
- Subject: [PATCH] Testsuite array-quals-1.c: xfail for AVR target
This patch xfails tests on assembler file for AVR target, as AVR does
not use read only sections in this sense.
Left as XFAIL rather than skipping completely, so it retains test of
compilation.
Tested with AVR target. Ok for 4.4 mainline?
2008-05-19 Andy Hutchinson <hutchinsonandy@aim.com>
* gcc/testsuite/gcc.dg/array-quals-1.c: xfail read only section
check for avr target.
Index: gcc/testsuite/gcc.dg/array-quals-1.c
===================================================================
--- gcc/testsuite/gcc.dg/array-quals-1.c (revision 135416)
+++ gcc/testsuite/gcc.dg/array-quals-1.c (working copy)
@@ -4,7 +4,7 @@
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* The MMIX port always switches to the .data section at the end of a file. */
-/* { dg-final { scan-assembler-not "\\.data(?!\\.rel\\.ro)" { xfail powerpc*-*-aix* mmix-*-* x86_64-*-mingw* } } } */
+/* { dg-final { scan-assembler-not "\\.data(?!\\.rel\\.ro)" { xfail powerpc*-*-aix* mmix-*-* x86_64-*-mingw* avr-*-*} } } */
static const int a[2] = { 1, 2 };
const int a1[2] = { 1, 2 };
typedef const int ci;