aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/moxie
diff options
context:
space:
mode:
authorAnthony Green <green@moxielogic.com>2016-03-22 14:25:44 +0000
committerAnthony Green <green@gcc.gnu.org>2016-03-22 14:25:44 +0000
commitec613b6634d57abc9402ba8c51bdbc9f59807690 (patch)
tree4ed19d42433c0f1c10978513c6fd9ad9514ff3c4 /gcc/config/moxie
parent5c240f4db3d1a9dc5503e566ec9ab8cbe26d6f3a (diff)
downloadgcc-ec613b6634d57abc9402ba8c51bdbc9f59807690.zip
gcc-ec613b6634d57abc9402ba8c51bdbc9f59807690.tar.gz
gcc-ec613b6634d57abc9402ba8c51bdbc9f59807690.tar.bz2
Fix endianness issue for moxiebox
From-SVN: r234404
Diffstat (limited to 'gcc/config/moxie')
-rw-r--r--gcc/config/moxie/moxiebox.h6
1 files changed, 6 insertions, 0 deletions
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