Remove s390x __LONG_MAX__ special case from glimits.h;

define __LONG_MAX__ in CPP_PREDEFINES instead.

From-SVN: r44879
This commit is contained in:
Ulrich Weigand 2001-08-14 00:53:23 +00:00 committed by Ulrich Weigand
parent d80dedbe52
commit 881e8e2949
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2001-08-13 Ulrich Weigand <uweigand@de.ibm.com>:
* 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 <rth@redhat.com> 2001-08-13 Richard Henderson <rth@redhat.com>
* config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove. * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.

View File

@ -36,8 +36,10 @@ Boston, MA 02111-1307, USA. */
/* Names to predefine in the preprocessor for this target machine. */ /* Names to predefine in the preprocessor for this target machine. */
#undef CPP_PREDEFINES #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 #undef LINK_SPEC
#ifdef CROSS_COMPILE #ifdef CROSS_COMPILE

View File

@ -67,7 +67,7 @@
/* Minimum and maximum values a `signed long int' can hold. /* Minimum and maximum values a `signed long int' can hold.
(Same as `int'). */ (Same as `int'). */
#ifndef __LONG_MAX__ #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 #define __LONG_MAX__ 9223372036854775807L
#else #else
#define __LONG_MAX__ 2147483647L #define __LONG_MAX__ 2147483647L