This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [committed] Skip gcc.dg/Warray-bounds.c and g++.dg/warn/Warray-bounds.C
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: janis187 at us dot ibm dot com (Janis Johnson)
- Cc: mark at codesourcery dot com, janis187 at us dot ibm dot com, gcc-patches at gcc dot gnu dot org
- Date: Fri, 20 Apr 2007 20:49:43 -0400 (EDT)
- Subject: Re: [committed] Skip gcc.dg/Warray-bounds.c and g++.dg/warn/Warray-bounds.C
> Try using dg-excess-errors, with a reminder to remove it when the ICE
> is gone.
The following change does work. Tested on hppa2.0w-hp-hpux11.11 and
hppa64-hp-hpux11.11. I believe that if the PR is fixed, the current
XFAILs will change to XPASSs. This should provide sufficient indication
to remove the dg-xfail-if and dg-excess-errors tests.
I must admit that I'm confused by the documentation and the XFAIL
condition for the dg-excess-errors test. It seems reversed.
Ok?
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)
2007-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* gcc.dg/Warray-bounds.c: XFAIL test on 32-bit hppa targets.
* g++.dg/warn/Warray-bounds.C: Likewise.
Index: gcc.dg/Warray-bounds.c
===================================================================
--- gcc.dg/Warray-bounds.c (revision 123965)
+++ gcc.dg/Warray-bounds.c (working copy)
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-skip-if "PR 31500" { hppa*-*-* } { "*" } { "" } } */
+/* { dg-xfail-if "PR 31500" { hppa*-*-* && { ! hppa*64*-*-* } } } */
/* { dg-options "-O2 -Warray-bounds" } */
int a[10];
@@ -91,5 +91,5 @@
a[i] = 1; /* { dg-warning "array subscript" } */
return a;
-}
+} /* { dg-excess-errors "PR 31500" { xfail { hppa*-*-* && { ! hppa*64*-*-* } } } } */
Index: g++.dg/warn/Warray-bounds.C
===================================================================
--- g++.dg/warn/Warray-bounds.C (revision 123965)
+++ g++.dg/warn/Warray-bounds.C (working copy)
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-skip-if "PR 31500" { hppa*-*-* } { "*" } { "" } } */
+/* { dg-xfail-if "PR 31500" { hppa*-*-* && { ! hppa*64*-*-* } } } */
/* { dg-options "-O2 -Warray-bounds" } */
int a[10];
@@ -88,5 +88,5 @@
c.c[-1] = 0;
return a;
-}
+} /* { dg-excess-errors "PR 31500" { xfail { hppa*-*-* && { ! hppa*64*-*-* } } } } */