]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove s390x __LONG_MAX__ special case from glimits.h;
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Aug 2001 00:53:23 +0000 (00:53 +0000)
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 14 Aug 2001 00:53:23 +0000 (00:53 +0000)
define __LONG_MAX__ in CPP_PREDEFINES instead.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44879 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/s390/linux64.h
gcc/glimits.h

index 4e6f1b893770bd93ac80ad71fb44674d2f99e1e2..abeaba7bde59e6507adedb50b10bf6881c48ab63 100644 (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>
 
        * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
index 36fa1c786a06f20d8b9662a8ae7c99f4be9d2f7f..02c75c8226effa67145111873fddf275add3c8d8 100644 (file)
@@ -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
index 6bdcfefb88850fd54b48593e58175dcc5839d3ea..c3b83da15f9b78a91b2bbe864b1ac7470a80c75f 100644 (file)
@@ -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