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: Testing with multilibs?


> On Wed, Oct 02, 2002 at 06:28:17AM +0200, Andreas Jaeger wrote:
> 
>  > x86-64 uses multilibs to support both 32-bit and 64-bit code.  If I
>  > run the testsuite, only the 64-bit tests are run.  
>  > 
>  > How can I test also the 32-bit code pass?  What kind of magic flag do
>  > I have to pass to make check for this?
> 
> FWIW, you're not the only person who's been trying to figure out how
> to do this -- the dejagnu magic required to do both arm and thumb in
> the arm-elf sim as so far escaped me...

Set the DEJAGNU environment variable to point to a "site.exp" file that 
changes the flags.

For arm-elf with ARM code I use

case "$target_triplet" in {
    { "arm*-*-netbsd*" } {
      set board_info(unix,gcc,no_trampolines) "true"
      set board_info(unix,objc,no_trampolines) "true"
      set board_info(unix,g77,no_trampolines) "true"
    }
    { "arm*-*-elf*" } {
      set target_list { "arm-sim" }
    }
}

And for Thumb code I use

case "$target_triplet" in {
    { "arm*-*-netbsd*" } {
      set board_info(unix,gcc,no_trampolines) "true"
      set board_info(unix,objc,no_trampolines) "true"
      set board_info(unix,g77,no_trampolines) "true"
    }
    { "arm*-*-elf*" } {
      set target_list { "arm-sim/-mthumb" }
    }
}

I believe it's possible to have more than one entry in the target list, in 
which case all the combinations will be run, but I've never tried it.

R.


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