This is the mail archive of the gcc-patches@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]

egcs mips patch



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} \


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