aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly in 64-bit mode.

* config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
in 64-bit mode.
* glimits.h: Don't do #if defined for ARCH_PPC.

From-SVN: r35165
This commit is contained in:
Geoff Keating 2000-07-21 00:47:27 +00:00 committed by Geoffrey Keating
parent a9098fd024
commit 538befca2c
3 changed files with 6 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2000-07-20 Geoff Keating <geoffk@cygnus.com>
* config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly
in 64-bit mode.
* glimits.h: Don't do #if defined for ARCH_PPC.
* config/rs6000/rs6000.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): All
constants of size no larger than a pointer should go in the TOC.
Add 'MODE' parameter.

View File

@ -108,7 +108,7 @@ do { \
#undef CPP_SPEC
#define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
%{ansi: -D_ANSI_C_SOURCE}\
%{maix64: -D__64BIT__ -D_ARCH_PPC}\
%{maix64: -D__64BIT__ -D_ARCH_PPC -D__LONG_MAX__=9223372036854775807L}\
%{mpe: -I/usr/lpp/ppe.poe/include}\
%{pthread: -D_THREAD_SAFE}\
%(cpp_cpu)"

View File

@ -64,7 +64,7 @@
/* Minimum and maximum values a `signed long int' can hold.
(Same as `int'). */
#ifndef __LONG_MAX__
#if defined (__alpha__) || (defined (_ARCH_PPC) && defined (__64BIT__)) || (defined (__sparc__) && defined(__arch64__)) || defined (__sparcv9)
#if defined (__alpha__) || (defined (__sparc__) && defined(__arch64__)) || defined (__sparcv9)
#define __LONG_MAX__ 9223372036854775807L
#else
#define __LONG_MAX__ 2147483647L