__sparcv9 vs. __sparc_v9__ is a mess in 3.2.1
Jakub Jelinek
jakub@redhat.com
Tue Dec 3 02:23:00 GMT 2002
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
More information about the Gcc
mailing list