Subject: Re: -mstrict-align on powerpc
To: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-toolchain
Date: 03/16/2003 08:44:40
On Sunday, March 16, 2003, at 04:05 AM, Juergen Hannken-Illjes wrote:
> I understand.=A0What about
>
> #define CC1_SPEC "-mno-multiple %{!mcpu*: -mstrict-align}"
>
> to set this flag only when there is no -mXXX?
I don't think that's quite right, either. You want this to be enabled=20=
if e.g. -mcpu=3D403, right? :-)
Maybe something like:
#define CC1_SPEC \
"-mno-multiple \
%{mstrict-align: -mstrict-align} \
%{mno-strict-align: -mno-strict-align} \
%{!mstrict-align: \
%{!mno-strict-align: \
%{!mcpu=3D60*: \
%{!mcpu=3D74*: \
%{!mcpu=3D75*: -mstrict-align}}}}}"
(I think I got the logic right there :-)
Also note that this should be done in the NetBSD-specific rs6000 config=20=
file, not in the generic rs6000.h.
-- Jason R. Thorpe <thorpej@wasabisystems.com>