This is the mail archive of the
mailing list for the GCC project.
Re: sh-elf / sh-linux configuration merge and generalization
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: joern dot rennecke at superh dot com
- Cc: thorpej at wasabisystems dot com, uwe at kaos-group dot de, gcc-patches at gcc dot gnu dot org
- Date: Thu, 17 Jun 2004 09:10:40 +0900 (JST)
- Subject: Re: sh-elf / sh-linux configuration merge and generalization
- References: <200406162023.i5GKNKs03431@linsvr1.uk.superh.com>
Joern Rennecke <firstname.lastname@example.org> wrote:
> There is currently a lot of configuration code duplicated between sh-elf
> and sh-linux. Moreover, the selection of multilibs and target default
> is currently hardcoded, and is often not quite what a user wants.
> Therefore, I have set out to merge the sh-elf and sh-linux configurations
> and implemented three configuration options:
> --with-endian selects the endianness; 'big' and 'little' give you a
> single-endian toolchain, while 'big,little' and 'little,big' give you a
> bi-endian toolchain, which defaults to the first named endiannesses.
> --with-multilib-list sets the list of multilibs to build in the cpu/abi
> dimension (endianness is controlled independently by --with-endian,
> as explained above). This accppts 'm' as well as 'sh' designators,
> ignores case, and can use blanks, tabs or commas for separators,
> i.e. 'sh1,sh3e' 'm4,m4-nofpu' and 'SH3 SH4' are all valid.
> --with-cpu selects the the default cpu/abi to compile for. If the cpu is not
> already included in the multilib list - no matter if this was set
> implicitly by the target triple or explicitly by --with-multilib-list -
> then it is added to the list.
With the patch below, the default configure works well for
x86 x sh4-unknown-linux-gnu and x86 x sh-unknown-linux-gnu
together with the new configury system.
Is it OK for sh-elf-3_5-branch?
* config/sh/t-linux (MULTILIB_OPTIONS): Remove.
diff -uprN ORIG/gcc-sh-elf-3_5-branch/gcc/config/sh/t-linux LOCAL/gcc-sh-elf-3_5-branch/gcc/config/sh/t-linux
--- ORIG/gcc-sh-elf-3_5-branch/gcc/config/sh/t-linux 2004-05-28 12:21:07.000000000 +0900
+++ LOCAL/gcc-sh-elf-3_5-branch/gcc/config/sh/t-linux 2004-06-17 08:24:52.000000000 +0900
@@ -3,7 +3,6 @@ LIB1ASMFUNCS_CACHE = _ic_invalidate
-MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) m3e/m4