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]

Re: egcs mips patch


Gavin,

 be careful on mips-sgi-irix6.x systems. 64-bit implies
mips3/mips4 in this case. This is probably true for all
configs, as (to my knowledge) 64-bit pointers are only
supported in mips3 and above. It may be better to make
mips1/mips2 illegal for 64-bit (address) code.

Martin
===
------------------------------------------------------
Martin Knoblauch
email: knobi@knobisoft.de or knobi@rocketmail.com
www:   http://www.knobisoft.de







---Gavin Romig-Koch <gavin@cygnus.com> wrote:
>
> 
> 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} \
> 

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com



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