resolve target/5886
Richard Henderson
rth@redhat.com
Fri Mar 29 15:40:00 GMT 2002
The Intel ABI specifies _LP64, not __LP64__.
r~
* config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
* config/ia64/hpux.h, config/ia64/linux.h: Likewise.
Index: aix.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/aix.h,v
retrieving revision 1.8
diff -c -p -d -r1.8 aix.h
*** aix.h 2002/01/21 02:24:02 1.8
--- aix.h 2002/03/29 23:37:26
*************** Boston, MA 02111-1307, USA. */
*** 87,93 ****
#undef CPP_PREDEFINES
#define CPP_PREDEFINES "\
-D__ia64 -D__ia64__ -D_AIX -D_AIX64 -D_LONGLONG -Dunix \
! -D__LP64__ -D__ELF__ -Asystem=unix -Asystem=aix -Acpu=ia64 -Amachine=ia64 \
-D__64BIT__ -D_LONG_LONG -D_IA64 -D__int128=__size128_t"
/* The GNU C++ standard library requires that these macros be defined. */
--- 87,94 ----
#undef CPP_PREDEFINES
#define CPP_PREDEFINES "\
-D__ia64 -D__ia64__ -D_AIX -D_AIX64 -D_LONGLONG -Dunix \
! -D_LP64 -D__LP64__ -D__ELF__ \
! -Asystem=unix -Asystem=aix -Acpu=ia64 -Amachine=ia64 \
-D__64BIT__ -D_LONG_LONG -D_IA64 -D__int128=__size128_t"
/* The GNU C++ standard library requires that these macros be defined. */
Index: hpux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/hpux.h,v
retrieving revision 1.5
diff -c -p -d -r1.5 hpux.h
*** hpux.h 2001/12/11 23:03:22 1.5
--- hpux.h 2002/03/29 23:37:26
*************** Boston, MA 02111-1307, USA. */
*** 40,46 ****
#undef CPP_SPEC
#define CPP_SPEC "\
%{mcpu=itanium:-D__itanium__} \
! %{mlp64:-D__LP64__ -D__LONG_MAX__=9223372036854775807L} \
%{!ansi:%{!std=c*:%{!std=i*: -D_HPUX_SOURCE -D__STDC_EXT__}}} \
-D__fpreg=long\\ double \
-D__float80=long\\ double \
--- 40,46 ----
#undef CPP_SPEC
#define CPP_SPEC "\
%{mcpu=itanium:-D__itanium__} \
! %{mlp64:-D__LP64__ -D_LP64 -D__LONG_MAX__=9223372036854775807L} \
%{!ansi:%{!std=c*:%{!std=i*: -D_HPUX_SOURCE -D__STDC_EXT__}}} \
-D__fpreg=long\\ double \
-D__float80=long\\ double \
Index: linux.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ia64/linux.h,v
retrieving revision 1.16
diff -c -p -d -r1.16 linux.h
*** linux.h 2002/03/26 21:27:12 1.16
--- linux.h 2002/03/29 23:37:26
***************
*** 12,18 ****
/* ??? Maybe this should be in sysv4.h? */
#define CPP_PREDEFINES "\
-D__ia64 -D__ia64__ -D__linux -D__linux__ -D_LONGLONG -Dlinux -Dunix \
! -D__LP64__ -D__ELF__ -Asystem=linux -Acpu=ia64 -Amachine=ia64"
/* ??? ia64 gas doesn't accept standard svr4 assembler options? */
#undef ASM_SPEC
--- 12,18 ----
/* ??? Maybe this should be in sysv4.h? */
#define CPP_PREDEFINES "\
-D__ia64 -D__ia64__ -D__linux -D__linux__ -D_LONGLONG -Dlinux -Dunix \
! -D_LP64 -D__LP64__ -D__ELF__ -Asystem=linux -Acpu=ia64 -Amachine=ia64"
/* ??? ia64 gas doesn't accept standard svr4 assembler options? */
#undef ASM_SPEC
More information about the Gcc-patches
mailing list