This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: __sparcv9 vs. __sparc_v9__ is a mess in 3.2.1
- From: Jakub Jelinek <jakub at redhat dot com>
- To: "David O'Brien" <obrien at FreeBSD dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 3 Dec 2002 05:22:57 -0500
- Subject: Re: __sparcv9 vs. __sparc_v9__ is a mess in 3.2.1
- References: <20021203072207.GA62341@dragon.nuxi.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Dec 02, 2002 at 11:22:07PM -0800, David O'Brien wrote:
> What is supose to be the GCC offical pre-defined symbol for Sparc64??
>
> gcc/config/sparc.h implies it is "__sparc_v9__":
__sparc_v9__ macro is for -mcpu=ultrasparc or -mcpu=v9, which is implied
by -m64, but can be used in 32-bit code as well. __sparc_v9__ means
using v9 instructions, __sparc__ __arch64__ means 64-bit ABI with the
exception of Solaris which uses __sparcv9.
> And why is just plain __arch64__ not enough?
Not all 64-bit ports use __arch64__ (well, most of them don't) and
on the other side it is not sparc specific define name, so has to be
used with __sparc__ unless you're already in sparc specific source.
Jakub