This is the mail archive of the gcc-patches@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: Testsuite patch for Solaris 10


On Fri, 12 Nov 2004, Janis Johnson wrote:

>   { dg-do run [dg-target-list target
>        [dg-and [dg-or [istarget i?86-*-*] [istarget powerpc-*-linux]]
>                [is-effective-target ilp32]]] }
> 
> Would it be acceptable to do things like this within tests?

Mark can probably comment better on what is sensibly implementable in the 
QMTest DejaGnu compatibility module.

What in this framework would the equivalents be of (a) the plain { 
dg-forbid-option "-m64" } on a test that only runs for { target i?86-*-* 
}, (b) { dg-forbid-option "-m64" { target i?86-*-* } } for a test that 
runs on other targets (maybe all targets, maybe only x86 and x86-64) but 
has special options for x86 meaning that -m64 shouldn't be used?  (Or, 
alternatively, how would the special options be enabled only for x86 
without -m64, with x86 with -m64 getting the default options, which might 
be the better thing to do for such tests e.g. gcc.dg/20030926-1.c?)

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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