This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[PATCH][RFC] -EB / -EL don't properly affect gcc predefined symbols
- From: Hiroki Kaminaga <kaminaga at sm dot sony dot co dot jp>
- To: ralf at linux-mips dot org, gcc at gcc dot gnu dot org
- Cc: kaminaga at sm dot sony dot co dot jp
- Date: Thu, 12 Oct 2006 17:06:55 +0900 (JST)
- Subject: [PATCH][RFC] -EB / -EL don't properly affect gcc predefined symbols
Hi,
Regarding the PR:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29413
Is below patch adequate to fix the problem?
Works fine with me, but haven't done any regression test.
Thanks in Advance
(Hiroki Kaminaga)
t
--
Index: gcc/gcc/config/mips/mips.h
===================================================================
--- gcc.orig/gcc/config/mips/mips.h
+++ gcc/gcc/config/mips/mips.h
@@ -1152,7 +1152,8 @@ extern const struct mips_cpu_info *mips_
#define SUBTARGET_CPP_SPEC ""
#endif
-#define CPP_SPEC "%(subtarget_cpp_spec)"
+#define CPP_SPEC "%(subtarget_cpp_spec) %{EB:-meb} %{EL:-mel} \
+%{EB:%{EL:%emay not use both -EB and -EL}}"
/* This macro defines names of additional specifications to put in the specs
that can be used in various specifications like CC1_SPEC. Its definition