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]
Other format: [Raw text]

Re: sh-elf / sh-linux configuration merge and generalization


Joern Rennecke <joern.rennecke@superh.com> 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.

Great!

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?

Regards,
	kaz
--
	* 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
 
 LIB2FUNCS_EXTRA=
 
-MULTILIB_OPTIONS= $(MULTILIB_ENDIAN) m3e/m4
 MULTILIB_DIRNAMES= 
 MULTILIB_MATCHES = 
 MULTILIB_EXCEPTIONS=


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