From ec613b6634d57abc9402ba8c51bdbc9f59807690 Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Tue, 22 Mar 2016 14:25:44 +0000 Subject: Fix endianness issue for moxiebox From-SVN: r234404 --- gcc/ChangeLog | 6 ++++++ gcc/config/moxie/moxiebox.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 01f38d0..57c325d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-03-22 Anthony Green + + * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness + issue for moxiebox targets. + (CC1PLUS_SPEC): Ditto. + 2016-03-22 Richard Biener PR middle-end/70333 diff --git a/gcc/config/moxie/moxiebox.h b/gcc/config/moxie/moxiebox.h index f67bfd6..502ffe1 100644 --- a/gcc/config/moxie/moxiebox.h +++ b/gcc/config/moxie/moxiebox.h @@ -39,6 +39,12 @@ along with GCC; see the file COPYING3. If not see #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 -- cgit v1.1