Commit f812ca9f authored by geoffk's avatar geoffk
Browse files

* config/rs6000/aix43.h (CPP_SPEC): Define __LONG_MAX__ correctly

in 64-bit mode.
* glimits.h: Don't do #if defined for ARCH_PPC.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35165 138bc75d-0d04-0410-961f-82ee72b054a4
parent e2f08fad
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.
......
......@@ -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)"
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment