Subject: -mstrict-align on powerpc
To: None <hannken@netbsd.org>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-toolchain
Date: 03/15/2003 21:25:08
On Saturday, March 15, 2003, at 08:09  AM, Juergen Hannken-Illjes wrote:

>
> Module Name:	src
> Committed By:	hannken
> Date:		Sat Mar 15 16:09:35 UTC 2003
>
> Modified Files:
> 	src/gnu/dist/toolchain/gcc/config/rs6000: netbsd.h
>
> Log Message:
> Add -mstrict-align to the CC1 default options.
> At least the 403 ports cannot handle unaligned access.
>
> Discussed with Jason Thorpe and Matt Thomas.
>

Hm.  Maybe what we should do is default to -mstrict-align, but disable 
-mstrict-align for -mcpu=foo where foo doesn't require strict alignment 
(e.g. 603, 604, 750, etc.).  All of those CPUs can do unaligned access 
on integer loads/stores, right?  Is it only the 403 that actually has 
the problem?  (I honestly can't remember if the 405 can do unaligned 
access or not...)

         -- Jason R. Thorpe <thorpej@wasabisystems.com>