I'd like to remove -mstrict-align for little-endian powerpc, because
the assumption that mis-aligned accesses are massively slow isn't true
for current powerpc processors. However I also don't want to break
old machines, so probably should add -mstrict-align back for some set
of cpus. Can anyone tell me the set?
Index: gcc/config/rs6000/sysv4.h
===================================================================
--- gcc/config/rs6000/sysv4.h (revision 199718)
+++ gcc/config/rs6000/sysv4.h (working copy)
@@ -538,12 +538,7 @@
#define CC1_ENDIAN_BIG_SPEC ""
-#define CC1_ENDIAN_LITTLE_SPEC "\
-%{!mstrict-align: %{!mno-strict-align: \
- %{!mcall-i960-old: \
- -mstrict-align \
- } \
-}}"
+#define CC1_ENDIAN_LITTLE_SPEC ""
#define CC1_ENDIAN_DEFAULT_SPEC "%(cc1_endian_big)"
--
Alan Modra
Australia Development Lab, IBM