Port-sparc64 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: 32-bit distribution for ultrasparc
mrg%eterna.com.au@localhost wrote:
> the _LP64 define is set for 64 bit code.
I wonder which we should use _LP64 or __arch64__.
The former is defined in src/gnu/dist/gcc4/gcc/c-cppbuiltin.c
---
/* Definitions for LP64 model. */
if (TYPE_PRECISION (long_integer_type_node) == 64
&& POINTER_SIZE == 64
&& TYPE_PRECISION (integer_type_node) == 32)
{
cpp_define (pfile, "_LP64");
cpp_define (pfile, "__LP64__");
}
---
and the latter is delived from src/gnu/dist/gcc4/gcc/config/sparc/sparc.h
---
/* Macro used later in this file to determine default architecture. */
#define DEFAULT_ARCH32_P ((TARGET_DEFAULT & MASK_64BIT) == 0)
:
#define CPP_ARCH32_SPEC ""
#define CPP_ARCH64_SPEC "-D__arch64__"
#define CPP_ARCH_DEFAULT_SPEC \
(DEFAULT_ARCH32_P ? CPP_ARCH32_SPEC : CPP_ARCH64_SPEC)
---
Izumi Tsutsui
Home |
Main Index |
Thread Index |
Old Index