public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* MIPS patch: make -mel=-EL and -meb=-EB
@ 2002-08-13  3:09 Richard Sandiford
  2002-08-16 15:45 ` Eric Christopher
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Sandiford @ 2002-08-13  3:09 UTC (permalink / raw)
  To: gcc-patches

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) \

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: MIPS patch: make -mel=-EL and -meb=-EB
  2002-08-13  3:09 MIPS patch: make -mel=-EL and -meb=-EB Richard Sandiford
@ 2002-08-16 15:45 ` Eric Christopher
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Christopher @ 2002-08-16 15:45 UTC (permalink / raw)
  To: gcc-patches

> 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).
> 

Yes. Sorry about the delay, I'd gotten used to you ccing me :)

-eric

-- 
I don't want a pony, I want a rocket
powered jetpack!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-16 22:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-13  3:09 MIPS patch: make -mel=-EL and -meb=-EB Richard Sandiford
2002-08-16 15:45 ` Eric Christopher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).