From 820f9b130b46a30517c5d0089a695a039f154d0b Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 14 Mar 2003 13:18:24 +0100 Subject: [PATCH] * config/i386/linux64.h (CPP_SPEC): Define __LP64__ and _LP64 for 64-bit. From-SVN: r64353 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/linux64.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b638520af3d4..b1e9d81e9289 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-03-14 Andreas Jaeger + + * config/i386/linux64.h (CPP_SPEC): Define __LP64__ and _LP64 for + 64-bit. + 2003-03-12 Richard Henderson PR opt/8178 diff --git a/gcc/config/i386/linux64.h b/gcc/config/i386/linux64.h index 34c6d3cbd4d6..b8586447acac 100644 --- a/gcc/config/i386/linux64.h +++ b/gcc/config/i386/linux64.h @@ -28,7 +28,8 @@ Boston, MA 02111-1307, USA. */ #define CPP_PREDEFINES "-D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -Asystem(posix)" #undef CPP_SPEC -#define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} %{!m32:-D__LONG_MAX__=9223372036854775807L}" +#define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} \ + %{!m32:-D__LONG_MAX__=9223372036854775807L -D__LP64__ -D_LP64}" /* The svr4 ABI for the i386 says that records and unions are returned in memory. In the 64bit compilation we will turn this flag off in -- 2.47.2