[PATCH][RFC] -EB / -EL don't properly affect gcc predefined symbols

Hiroki Kaminaga kaminaga@sm.sony.co.jp
Thu Oct 12 08:41:00 GMT 2006


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



More information about the Gcc mailing list