This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
egcs mips patch
- To: Jim Wilson <wilson at cygnus dot com>
- Subject: egcs mips patch
- From: Gavin Romig-Koch <gavin at cygnus dot com>
- Date: Tue, 8 Sep 1998 16:21:52 -0400 (EDT)
- CC: egcs-patches at cygnus dot com
For 64 bit mips targets, if -mips1 or -mips2 is set, LONG_MAX is not
correct. Is this OK to push?
-gavin...
* mips/abi64.h (LONG_MAX_SPEC): Don't set LONG_MAX for
mips1 or mips2 either.
Index: abi64.h
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/config/mips/abi64.h,v
retrieving revision 1.4
diff -c -r1.4 abi64.h
*** abi64.h 1998/04/04 17:39:12 1.4
--- abi64.h 1998/09/08 20:12:28
***************
*** 217,223 ****
#undef LONG_MAX_SPEC
#if ((MIPS_ABI_DEFAULT == ABI_64) || ((MIPS_ABI_DEFAULT == ABI_EABI) && ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_64BIT)))
#define LONG_MAX_SPEC \
! "%{!mabi=n32:%{!mno-long64:%{!mgp32:-D__LONG_MAX__=9223372036854775807L}}}"
#else
#define LONG_MAX_SPEC \
"%{mabi=64:-D__LONG_MAX__=9223372036854775807L} \
--- 217,223 ----
#undef LONG_MAX_SPEC
#if ((MIPS_ABI_DEFAULT == ABI_64) || ((MIPS_ABI_DEFAULT == ABI_EABI) && ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_64BIT)))
#define LONG_MAX_SPEC \
! "%{!mabi=n32:%{!mno-long64:%{!mgp32:%{!mips1:%{!mips2:-D__LONG_MAX__=9223372036854775807L}}}}}"
#else
#define LONG_MAX_SPEC \
"%{mabi=64:-D__LONG_MAX__=9223372036854775807L} \