Subject: Re: CVS commit: basesrc
To: Todd Vierling <tv@wasabisystems.com>
From: Richard Earnshaw <rearnsha@arm.com>
List: tech-toolchain
Date: 02/12/2001 16:31:10
> On Fri, 9 Feb 2001, Jason R Thorpe wrote:
> 
> :  > Log Message:
> :  > __arm26__ || __arm32__ -> __arm__
> :  > Not least because the unified NetBSD/arm compiler probably won't predefine
> :  > __arm26__ or __arm32__.
> :
> : Err.... if MACHINE_ARCH == arm32, then it should -D__arm32__, etc.
> 
> And a similar converse:  If both system types use the same compiler
> executables by default, the MACHINE_ARCH should be "arm", not
> "arm26"/"arm32", indicating their ABI compatibility.
> 
> (Both these considerations should be kept in mind when dealing with
> MACHINE_ARCH related stuff.)
> 


All ARM compilers should define __arm__, regardless of what NetBSD also 
wants defining.  If you remove this definition then other software may 
fail to work when ported to NetBSD.  If NetBSD can move away from needing 
__arm32__ or __arm26__ being defined as well, then all well and good.

R.