This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dg-skip-if usage problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]