This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Testing with multilibs?
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Jason R Thorpe <thorpej at wasabisystems dot com>
- Cc: Andreas Jaeger <aj at suse dot de>, gcc at gcc dot gnu dot org, Richard dot Earnshaw at arm dot com
- Date: Wed, 02 Oct 2002 13:10:26 +0100
- Subject: Re: Testing with multilibs?
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> 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.