This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: dg-skip-if usage problem
On Mon, Nov 29, 2004 at 03:06:52PM -0500, Hans-Peter Nilsson wrote:
> On Mon, 29 Nov 2004, Janis Johnson wrote:
> > To skip a test for a list of targets regardless of options, do
> >
> > /* { dg-skip-if "" { mmix-*-* } { "*" } { "" } } */
>
> Oh it's a glob! Big doh, I should've guessed.
>
> Hmm, dg-skip-if *does* work (for example, the line above), but
> *only if it's put on a line after the dg-do line*! I think
> that's where I failed.
Yeah, I'm planning to document this stuff to warn about things like
that. GCC-specific dg- directives can override things set up by the
dg- directives from DejaGnu, but not the other way around.
> BTW, how do you feel about respectively a dg-require-fpic
> (target must support -fpic/fPIC) and dg-require-stabs
> (target must support the STABS debug format)?
>
> "Too many dg-require-*" or "send a patch"?
Support "fpic" and "stabs" as new effective-target keywords recognized
by dg-require-effective-target; the more the merrier as far as I'm
concerned.
See http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01507.html for my
proposal to use those keywords in more places where target lists are
now used.
Janis