diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-14 00:53:23 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-08-14 00:53:23 +0000 |
commit | 2bf0f58dabdef53f56d7e2a315fccaa227f7adfd (patch) | |
tree | b65fce9bdedd9909d43dba99a5bad008b0194d74 | |
parent | e910681136e7cd7891080de2a9283da43d614680 (diff) | |
download | gcc-2bf0f58dabdef53f56d7e2a315fccaa227f7adfd.tar.gz |
Remove s390x __LONG_MAX__ special case from glimits.h;
define __LONG_MAX__ in CPP_PREDEFINES instead.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44879 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/s390/linux64.h | 6 | ||||
-rw-r--r-- | 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 <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> * 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 |