[PATCH] always define __sparc64__ on ultrasparc

Jason R Thorpe thorpej@wasabisystems.com
Thu May 16 22:27:00 GMT 2002


On Thu, May 16, 2002 at 09:08:24PM -0700, David S. Miller wrote:

 > If FreeBSD and NetBSD still want to use __sparc64__ then they will
 > have to be handled in the freebsd/netbsd headers.

...which NetBSD does.

 > I would recommend, however, that these two systems stop making use of
 > __sparc64__ and use __arch64__ instead.  If you look, that is what the
 > generic Sparc backend and the floating point headers, use to test this.

NetBSD does use __arch64__ (and also _LP64, which is considered by NetBSD
to be non-arch-specific way of saying "hi, I'm LP64, act accordingly")...
but the NetBSD convention is to also -D__$(MACHINE_ARCH)__, where
MACHINE_ARCH == i386, sparc, sparc64, alpha, m68k, sh, whatever.

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



More information about the Gcc-patches mailing list