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 was Re: gcc 4.3.0 i386 default question


On Thu, 13 Mar 2008, Joel Sherrill wrote:

> > Also, if you use a multilib option in testing, that option goes on the
> > command line *after* the options specified in dg-options.  The tests may
> > need to use dg-skip-if to skip them if any CPU option other than the one
> > in the test is explicitly specified (so it would be tested if no explicit
> > -mcpu option is used, or if -mcpu=405 is the multilib option being
> > tested).
> >   
> 
> Are you thinking of something roughly like this?
> 
> /* { dg-skip-if "" { { !-mcpu=405 } } { "*" } { "" } } */

I'm thinking of

/* { dg-skip-if "" { *-*-* } { "-mcpu=*" } { "-mcpu=405" } } */

but I don't guarantee that will work as expected.  (There are some tests 
in gcc.target/cris skipping on "-march*", which seems similar.)

-- 
Joseph S. Myers
joseph@codesourcery.com


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