This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
MIPS patch: make -mel=-EL and -meb=-EB
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 13 Aug 2002 11:09:13 +0100
- Subject: MIPS patch: make -mel=-EL and -meb=-EB
This patch just tries to make -mel the same as -EL and -meb and -EB.
The cc1 and linker specs already treat them the same, but the assembler
spec doesn't, and there's no MULTILIB_MATCHES entries.
Tested on mips-elf and mipsisa32-elf, and checked that
mips-elf -mel hello.c -Tidt.ld
mipsisa32-elf -mel hello.c -Tidt32.ld
now work. OK to install?
Richard
* config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
config/mips/t-r3900 (MULTILIB_MATCHES): Define.
* config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
Index: config/mips/t-ecoff
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/t-ecoff,v
retrieving revision 1.8
diff -c -d -p -r1.8 t-ecoff
*** config/mips/t-ecoff 29 Jul 2002 22:21:41 -0000 1.8
--- config/mips/t-ecoff 13 Aug 2002 09:51:18 -0000
*************** TARGET_LIBGCC2_CFLAGS = -G 0
*** 21,26 ****
--- 21,27 ----
MULTILIB_OPTIONS = msoft-float/msingle-float EL/EB mips1/mips3
MULTILIB_DIRNAMES = soft-float single el eb mips1 mips3
+ MULTILIB_MATCHES = EL=mel EB=meb
MULTILIB_MATCHES = msingle-float=m4650
LIBGCC = stmp-multilib
Index: config/mips/t-elf
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/t-elf,v
retrieving revision 1.9
diff -c -d -p -r1.9 t-elf
*** config/mips/t-elf 29 Jul 2002 22:21:41 -0000 1.9
--- config/mips/t-elf 13 Aug 2002 09:51:18 -0000
*************** TARGET_LIBGCC2_CFLAGS = -G 0
*** 33,38 ****
--- 33,39 ----
MULTILIB_OPTIONS = msoft-float EL/EB
MULTILIB_DIRNAMES = soft-float el eb
+ MULTILIB_MATCHES = EL=mel EB=meb
#MULTILIB_MATCHES = msingle-float=m4650
EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
Index: config/mips/t-isa3264
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/t-isa3264,v
retrieving revision 1.3
diff -c -d -p -r1.3 t-isa3264
*** config/mips/t-isa3264 29 Jul 2002 22:21:41 -0000 1.3
--- config/mips/t-isa3264 13 Aug 2002 09:51:18 -0000
*************** TARGET_LIBGCC2_CFLAGS = -G 0
*** 35,40 ****
--- 35,41 ----
MULTILIB_OPTIONS = msoft-float EL/EB mips32/mips64
MULTILIB_DIRNAMES = soft-float el eb mips32 mips64
+ MULTILIB_MATCHES = EL=mel EB=meb
EXTRA_MULTILIB_PARTS = crtbegin.o crtend.o crti.o crtn.o
LIBGCC = stmp-multilib
Index: config/mips/t-r3900
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/t-r3900,v
retrieving revision 1.8
diff -c -d -p -r1.8 t-r3900
*** config/mips/t-r3900 29 Jul 2002 22:21:41 -0000 1.8
--- config/mips/t-r3900 13 Aug 2002 09:51:18 -0000
*************** CRTSTUFF_T_CFLAGS = -G 0
*** 25,30 ****
--- 25,31 ----
MULTILIB_OPTIONS = msoft-float EL/EB
MULTILIB_DIRNAMES = soft-float el eb
+ MULTILIB_MATCHES = EL=mel EB=meb
LIBGCC = stmp-multilib
INSTALL_LIBGCC = install-multilib
Index: config/mips/mips.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.h,v
retrieving revision 1.212
diff -c -d -p -r1.212 mips.h
*** config/mips/mips.h 11 Aug 2002 06:20:08 -0000 1.212
--- config/mips/mips.h 13 Aug 2002 09:51:19 -0000
*************** extern int mips_abi;
*** 1006,1012 ****
#undef ASM_SPEC
#define ASM_SPEC "\
! %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64}\
%{mips16:%{!mno-mips16:-mips16}} %{mno-mips16:-no-mips16} \
%(subtarget_asm_optimizing_spec) \
%(subtarget_asm_debugging_spec) \
--- 1006,1012 ----
#undef ASM_SPEC
#define ASM_SPEC "\
! %{G*} %(endian_spec) %{mips1} %{mips2} %{mips3} %{mips4} %{mips32} %{mips64}\
%{mips16:%{!mno-mips16:-mips16}} %{mno-mips16:-no-mips16} \
%(subtarget_asm_optimizing_spec) \
%(subtarget_asm_debugging_spec) \