This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
dg-skip-if usage problem
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Janis Johnson <janis187 at us dot ibm dot com>
- Date: Sun, 28 Nov 2004 16:56:39 -0500 (EST)
- Subject: dg-skip-if usage problem
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?
brgds, H-P