Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/gcc/config/rs6000 Add -mstrict-align to t...



details:   https://anonhg.NetBSD.org/src/rev/2432968c4058
branches:  trunk
changeset: 544250:2432968c4058
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sat Mar 15 16:09:34 2003 +0000

description:
Add -mstrict-align to the CC1 default options.
At least the 403 ports cannot handle unaligned access.

Discussed with Jason Thorpe and Matt Thomas.

diffstat:

 gnu/dist/toolchain/gcc/config/rs6000/netbsd.h |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r cb3a1df4ca18 -r 2432968c4058 gnu/dist/toolchain/gcc/config/rs6000/netbsd.h
--- a/gnu/dist/toolchain/gcc/config/rs6000/netbsd.h     Sat Mar 15 14:10:21 2003 +0000
+++ b/gnu/dist/toolchain/gcc/config/rs6000/netbsd.h     Sat Mar 15 16:09:34 2003 +0000
@@ -48,9 +48,11 @@
 %{mlittle} %{mlittle-endian} %{mbig} %{mbig-endian}"
 
 /* The `multiple' instructions may not be universally implemented.
-   We avoid their use here. */
+   We avoid their use here.
+   The 403 ports cannot access unaligned data.
+   Force strict alignment. */
 #undef CC1_SPEC
-#define        CC1_SPEC        "-mno-multiple"
+#define        CC1_SPEC        "-mno-multiple -mstrict-align"
 
 /* Provide a LINK_SPEC approriate for NetBSD. */
 #undef LINK_SPEC



Home | Main Index | Thread Index | Old Index