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 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.

Thanks!

> The option list compared against doesn't include "-c", which is
> added when actually compiling the test.

According to "-v -v -v" (verbose level 3), "-c" is one of the
options tested against (which was the reason I used that of
course. ;-)  I can s/"*"/"-c"/ above and it still works.

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"?

brgds, H-P


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