Fix endianness issue for moxiebox
authorAnthony Green <green@moxielogic.com>
Tue, 22 Mar 2016 14:25:44 +0000 (14:25 +0000)
committerAnthony Green <green@gcc.gnu.org>
Tue, 22 Mar 2016 14:25:44 +0000 (14:25 +0000)
From-SVN: r234404

gcc/ChangeLog
gcc/config/moxie/moxiebox.h

index 01f38d02123df8f3091284d705e6a7b5ebc07870..57c325d1ab5eb35de612bb32b12614e75fb70921 100644 (file)
@@ -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
index f67bfd67d858bda51e46190ae665c45ecff2f5a6..502ffe121e10d729cbe6002ce25f3f95331a6ce0 100644 (file)
@@ -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