diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-09-25 00:50:38 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-09-25 00:50:38 +0000 |
commit | 59f6e610c56071d2a760b0e950616a339d34d146 (patch) | |
tree | e219fcff1ebdf706a700e8a2e229727a538fd48d /gcc/glimits.h | |
parent | ca07cb2244acd1e12eb7d36308e2ddb271ff25a9 (diff) | |
download | gcc-59f6e610c56071d2a760b0e950616a339d34d146.tar.gz |
* glimits.h (LONG_MAX): Handle sparc64.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@15702 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/glimits.h')
-rw-r--r-- | gcc/glimits.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/glimits.h b/gcc/glimits.h index d413427c7d6..933a3a84055 100644 --- a/gcc/glimits.h +++ b/gcc/glimits.h @@ -63,11 +63,11 @@ /* Minimum and maximum values a `signed long int' can hold. (Same as `int'). */ #ifndef __LONG_MAX__ -#ifndef __alpha__ -#define __LONG_MAX__ 2147483647L -#else +#if defined (__alpha__) || (defined (__sparc_v9__) && defined (__arch64__)) #define __LONG_MAX__ 9223372036854775807L -# endif /* __alpha__ */ +#else +#define __LONG_MAX__ 2147483647L +#endif /* __alpha__ || sparc64 */ #endif #undef LONG_MIN #define LONG_MIN (-LONG_MAX-1) |