aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2002-02-01 10:27:36 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2002-02-01 10:27:36 +0000
commitac282977f6122a328b4bed3c9b14f39086ddea34 (patch)
tree00edba498e220239a66e7e15db7ee59d3cef869a
parent9b1856d6c8c54a1b4b7e3a312f46a76f6d89c3df (diff)
downloadgcc-ac282977f6122a328b4bed3c9b14f39086ddea34.zip
gcc-ac282977f6122a328b4bed3c9b14f39086ddea34.tar.gz
gcc-ac282977f6122a328b4bed3c9b14f39086ddea34.tar.bz2
mips.h (ENDIAN_SPEC): Output the endianness flag if the -me[lb] option is given.
* config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if the -me[lb] option is given. Don't output the default flag twice. From-SVN: r49392
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/mips/mips.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bd2aa0d..419e869 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2002-02-01 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.
+
2002-01-31 Zack Weinberg <zack@codesourcery.com>
* c-lex.c (yyparse): Call debug_hooks->start_source_file for
diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h
index 898f9f7..2471cfc 100644
--- a/gcc/config/mips/mips.h
+++ b/gcc/config/mips/mips.h
@@ -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