diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-08-25 23:21:42 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-08-25 23:21:42 +0000 |
commit | e4aaa55c065bd271c7641bf29b7297f6da5a28aa (patch) | |
tree | 5562b71815b9659e39731477d1833ddad07f684c /gcc/config/rs6000/eabi.h | |
parent | 7a8dd0d320fb71a8d5985177729a2236d996f86f (diff) | |
download | gcc-e4aaa55c065bd271c7641bf29b7297f6da5a28aa.tar.gz |
(STRICT_ALIGNMENT): If little endian, always set strict alignment to 1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10280 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/eabi.h')
-rw-r--r-- | gcc/config/rs6000/eabi.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/config/rs6000/eabi.h b/gcc/config/rs6000/eabi.h index 829a180401a..c244843c7b1 100644 --- a/gcc/config/rs6000/eabi.h +++ b/gcc/config/rs6000/eabi.h @@ -33,9 +33,12 @@ Boston, MA 02111-1307, USA. */ /* Define this macro to be the value 1 if instructions will fail to work if given data not on the nominal alignment. If instructions - will merely go slower in that case, define this macro as 0. */ + will merely go slower in that case, define this macro as 0. + + Note, little endian systems trap on unaligned addresses, so never + turn off strict alignment in that case. */ #undef STRICT_ALIGNMENT -#define STRICT_ALIGNMENT (TARGET_STRICT_ALIGN) +#define STRICT_ALIGNMENT (TARGET_STRICT_ALIGN || TARGET_LITTLE_ENDIAN) /* Align stack to 8 byte boundaries, rather than 16 bytes Sys V.4 uses */ #undef STACK_BOUNDARY |