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]

Re: h8300-elf: gcc testsuite patches


  In message <200108311228.f7VCSK018822@phal.cambridge.redhat.com>you write:
  > > It's the same target.  You have to look at the compiler options used;
  > > specifically -mh and -ms.
  > 
  > I'm curently looking into changing baseboards/h8300-sim.exp to set
  > appropriate information; can I assume that the -mh / -ms tests are
  > run with
  > check-gcc RUNTESTFLAGS='--target_board=h8300-sim/-mh'
  > and
  > check-gcc RUNTESTFLAGS='--target_board=h8300-sim/-ms'
  > , respectively?
I usually use something like this in my site.exp file:


    { "h8300-*elf" } {
        set target_list { "h8300-sim{-mno-h,-mh,-ms,-mh -mint32, -ms -mint32}" 
}    }


As for testing for specific flags in the gcc testsuite.  I think you can
do something similar to this:

if { [istarget "d10v-*-*"] && ! [string-match "*-mint32*" $CFLAGS] } 
[ ... ]

jeff


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