This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
mips -mel/-meb don't always make it to as/ld as -EL/EB
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 01 Feb 2002 08:24:51 -0200
- Subject: mips -mel/-meb don't always make it to as/ld as -EL/EB
- Organization: GCC Team, Red Hat
This patch fixes the problem. Approved by Eric Christopher. Tested
only with a Red Hat-internal mips variant, but the change is pretty
obvious, so I didn't build it again with FSF GCC and I'm checking this
in.
Index: gcc/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
the -me[lb] option is given. Don't output the default flag
twice.
Index: gcc/config/mips/mips.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/mips/mips.h,v
retrieving revision 1.151
diff -u -p -r1.151 mips.h
--- gcc/config/mips/mips.h 2002/01/31 01:40:54 1.151
+++ gcc/config/mips/mips.h 2002/02/01 10:24:28
@@ -577,9 +577,9 @@ extern void sbss_section PARAMS ((void)
#ifndef ENDIAN_SPEC
#if TARGET_ENDIAN_DEFAULT == 0
-#define ENDIAN_SPEC "%{!EB:%{!meb:-EL}} %{EL} %{EB}"
+#define ENDIAN_SPEC "%{!EB:%{!meb:-EL}} %{EB|meb:-EB}"
#else
-#define ENDIAN_SPEC "%{!EL:%{!mel:-EB}} %{EB} %{EL}"
+#define ENDIAN_SPEC "%{!EL:%{!mel:-EB}} %{EL|mel:-EL}"
#endif
#endif
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer