aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2001-08-14 00:53:23 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2001-08-14 00:53:23 +0000
commit881e8e294912f7ebabbd528346520fa5c3a33cf4 (patch)
treeb65fce9bdedd9909d43dba99a5bad008b0194d74 /gcc
parentd80dedbe52bc5261cc08ee94a904d522813c93ab (diff)
downloadgcc-881e8e294912f7ebabbd528346520fa5c3a33cf4.zip
gcc-881e8e294912f7ebabbd528346520fa5c3a33cf4.tar.gz
gcc-881e8e294912f7ebabbd528346520fa5c3a33cf4.tar.bz2
Remove s390x __LONG_MAX__ special case from glimits.h;
define __LONG_MAX__ in CPP_PREDEFINES instead. From-SVN: r44879
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/s390/linux64.h6
-rw-r--r--gcc/glimits.h2
3 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4e6f1b8..abeaba7 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 36fa1c7..02c75c8 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 6bdcfef..c3b83da 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