This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: __sparcv9 vs. __sparc_v9__ is a mess in 3.2.1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]