This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: dg-skip-if usage problem
- From: Janis Johnson <janis187 at us dot ibm dot com>
- To: Hans-Peter Nilsson <hp at bitrange dot com>
- Cc: gcc at gcc dot gnu dot org, Janis Johnson <janis187 at us dot ibm dot com>
- Date: Mon, 29 Nov 2004 10:06:34 -0800
- Subject: Re: dg-skip-if usage problem
- References: <Pine.BSF.4.58.0411281644460.23936@dair.pair.com>
On Sun, Nov 28, 2004 at 04:56:39PM -0500, Hans-Peter Nilsson wrote:
> I'm trying to skip the faulty gcc.dg/20040813-1.c for MMIX (see
> PR target/18336). It seems dg-skip-if should let me do that:
> "Skip the test (report it as UNSUPPORTED) if the target list and
> included flags are matched and the excluded flags are not
> matched" but I don't know how how to use it, and existing usage
> doesn't give me a working clue. For example these permutations
> don't work:
> /* { dg-skip-if "" { mmix-*-* } { "" } { "" } } */
> /* { dg-skip-if "" { mmix-*-* } { "" } { "-c" } } */
> /* { dg-skip-if "" { mmix-*-* } { "-c" } { "" } } */
> /* { dg-skip-if "" { mmix-*-* } { "-c" } { "-c" } } */
> (plus some variants with "no-such-option"). Better would be
> to add a dg-require-stabs, of course, but I still need a way to
> skip a test, and I'm not happy with just xfailing it: "xfail" is
> not "unsupported".
>
> Help?
To skip a test for a list of targets regardless of options, do
/* { dg-skip-if "" { mmix-*-* } { "*" } { "" } } */
The option list compared against doesn't include "-c", which is
added when actually compiling the test.
Janis