aboutsummaryrefslogtreecommitdiff
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
parent5c240f4db3d1a9dc5503e566ec9ab8cbe26d6f3a (diff)
downloadgcc-ec613b6634d57abc9402ba8c51bdbc9f59807690.zip
gcc-ec613b6634d57abc9402ba8c51bdbc9f59807690.tar.gz
gcc-ec613b6634d57abc9402ba8c51bdbc9f59807690.tar.bz2
Fix endianness issue for moxiebox
From-SVN: r234404
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/moxie/moxiebox.h6
2 files changed, 12 insertions, 0 deletions
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 <green@moxielogic.com>
+
+ * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
+ issue for moxiebox targets.
+ (CC1PLUS_SPEC): Ditto.
+
2016-03-22 Richard Biener <rguenther@suse.de>
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