This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems on SGI Irix 6.x.


On Fri, 5 Dec 1997, Lee Iverson wrote:

> 2) LONG_MAX is set completely wrong under Irix 6.x.
> 
> Fixes for both problems are included below.

Your patch does not seem to fix it. The default is a LONG_MAX for
sizeof(long) == 8, but the default for sizeof(long) is 4. If i reverse the
patch below, all seems to be well.

Greetings, Swen


> diff -rpc2 ../DIST-egcs-snapshot/gcc/config/mips/abi64.h ./gcc/config/mips/abi64.h
> *** ../DIST-egcs-snapshot/gcc/config/mips/abi64.h	Fri Dec  5 11:34:56 1997
> --- ./gcc/config/mips/abi64.h	Wed Sep 17 17:31:49 1997
> *************** extern struct rtx_def *mips_function_val
> *** 215,219 ****
>   
>   #undef LONG_MAX_SPEC
> ! #define LONG_MAX_SPEC "%{mabi=64: %{!mno-long64:-D__LONG_MAX__=9223372036854775807LL}}"
>   
>   /* ??? Unimplemented stuff follows.  */
> --- 215,219 ----
>   
>   #undef LONG_MAX_SPEC
> ! #define LONG_MAX_SPEC "%{!mno-long64:-D__LONG_MAX__=9223372036854775807LL}"




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]