This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]