From 881e8e294912f7ebabbd528346520fa5c3a33cf4 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Tue, 14 Aug 2001 00:53:23 +0000 Subject: [PATCH] Remove s390x __LONG_MAX__ special case from glimits.h; define __LONG_MAX__ in CPP_PREDEFINES instead. From-SVN: r44879 --- gcc/ChangeLog | 5 +++++ gcc/config/s390/linux64.h | 6 ++++-- gcc/glimits.h | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e6f1b89377..abeaba7bde5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-08-13 Ulrich Weigand : + + * glimits.h: Remove the __LONG_MAX__ special case for s390x. + * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES. + 2001-08-13 Richard Henderson * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove. diff --git a/gcc/config/s390/linux64.h b/gcc/config/s390/linux64.h index 36fa1c786a0..02c75c8226e 100644 --- a/gcc/config/s390/linux64.h +++ b/gcc/config/s390/linux64.h @@ -36,8 +36,10 @@ Boston, MA 02111-1307, USA. */ /* Names to predefine in the preprocessor for this target machine. */ #undef CPP_PREDEFINES -#define CPP_PREDEFINES "-Dlinux -Asystem(linux) -Acpu(s390) -Amachine(s390) -D__s390x__ -Asystem(unix) -Dunix -D__ELF__" - +#define CPP_PREDEFINES \ + "-Dlinux -Asystem(linux) -Acpu(s390) -Amachine(s390) -D__s390x__ \ + -Asystem(unix) -Dunix -D__ELF__ \ + -D__LONG_MAX__=9223372036854775807L" #undef LINK_SPEC #ifdef CROSS_COMPILE diff --git a/gcc/glimits.h b/gcc/glimits.h index 6bdcfefb888..c3b83da15f9 100644 --- a/gcc/glimits.h +++ b/gcc/glimits.h @@ -67,7 +67,7 @@ /* Minimum and maximum values a `signed long int' can hold. (Same as `int'). */ #ifndef __LONG_MAX__ -#if defined (__alpha__) || (defined (__sparc__) && defined(__arch64__)) || defined (__sparcv9) || defined (__s390x__) +#if defined (__alpha__) || (defined (__sparc__) && defined(__arch64__)) || defined (__sparcv9) #define __LONG_MAX__ 9223372036854775807L #else #define __LONG_MAX__ 2147483647L