Hello, The attached patch fixes an endianness issue for the moxiebox configuration of the moxie target. I've just committed it.
Thanks, AG 2016-03-22 Anthony Green <gr...@moxielogic.com> * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness issue for moxiebox targets. (CC1PLUS_SPEC): Ditto. Index: gcc/config/moxie/moxiebox.h =================================================================== --- gcc/config/moxie/moxiebox.h (revision 234061) +++ gcc/config/moxie/moxiebox.h (working copy) @@ -39,6 +39,12 @@ #undef ASM_SPEC #define ASM_SPEC "-EL" +#undef CC1_SPEC +#define CC1_SPEC "-mel %{meb:%ethis target is little-endian}" + +#undef CC1PLUS_SPEC +#define CC1PLUS_SPEC CC1_SPEC + #undef MULTILIB_DEFAULTS #undef SIZE_TYPE