summaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/linuxaltivec.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/rs6000/linuxaltivec.h')
-rw-r--r--gcc/config/rs6000/linuxaltivec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/rs6000/linuxaltivec.h b/gcc/config/rs6000/linuxaltivec.h
index 632f58d5baf..f778dd8f737 100644
--- a/gcc/config/rs6000/linuxaltivec.h
+++ b/gcc/config/rs6000/linuxaltivec.h
@@ -20,8 +20,13 @@
<http://www.gnu.org/licenses/>. */
/* Override rs6000.h and sysv4.h definition. */
+#if (TARGET_DEFAULT & MASK_LITTLE_ENDIAN)
+#undef TARGET_DEFAULT
+#define TARGET_DEFAULT (MASK_ALTIVEC | MASK_LITTLE_ENDIAN)
+#else
#undef TARGET_DEFAULT
#define TARGET_DEFAULT MASK_ALTIVEC
+#endif
#undef SUBSUBTARGET_OVERRIDE_OPTIONS
#define SUBSUBTARGET_OVERRIDE_OPTIONS rs6000_altivec_abi = 1