public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* SPARC/Solaris patch
@ 1997-12-04 17:14 John Carr
  1997-12-11 16:33 ` Jeffrey A Law
  0 siblings, 1 reply; 2+ messages in thread
From: John Carr @ 1997-12-04 17:14 UTC (permalink / raw)
  To: egcs

This adds a runtime and compile time optimization for Solaris.  At compile
time, some TARGET_ macros which are always zero on Solaris are #defined as
zero to permit the compiler to eliminate code which depends on them.  At
run time, the 64 bit multiply and divide functions from libc are used.  At
run time Solaris binds an appropriate version of these functions for the
hardware (e.g. on UltraSPARC the library will use the SPARC V9 64 bit
instructions).

Thu Dec  4 20:08:06 1997  John F. Carr  <jfc@mit.edu>

	* sparc/sol2.h: Use 64 bit multiply and divide functions in
 	Solaris libc.  Define TARGET_LIVE_G0 and TARGET_BROKEN_SAVERESTORE
	as 0.

*** sol2.h.egcs	Mon Oct 20 16:49:16 1997
--- sol2.h	Sat Nov  8 17:31:26 1997
***************
*** 174,176 ****
--- 174,188 ----
  /* Define for support of TFmode long double and REAL_ARITHMETIC.
     Sparc ABI says that long double is 4 words.  */
  #define LONG_DOUBLE_TYPE_SIZE 128
+ 
+ #define MULDI3_LIBCALL "__mul64"
+ #define DIVDI3_LIBCALL "__div64"
+ #define UDIVDI3_LIBCALL "__udiv64"
+ #define MODDI3_LIBCALL "__rem64"
+ #define UMODDI3_LIBCALL "__urem64"
+ 
+ /* No weird SPARC variants on Solaris */
+ #undef TARGET_LIVE_G0
+ #define TARGET_LIVE_G0	0
+ #undef TARGET_BROKEN_SAVERESTORE
+ #define TARGET_BROKEN_SAVERESTORE 0

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: SPARC/Solaris patch
  1997-12-04 17:14 SPARC/Solaris patch John Carr
@ 1997-12-11 16:33 ` Jeffrey A Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1997-12-11 16:33 UTC (permalink / raw)
  To: John Carr; +Cc: egcs

  In message < 199712050114.UAA01549@jfc. >you write:
  > 
  > This adds a runtime and compile time optimization for Solaris.  At compile
  > time, some TARGET_ macros which are always zero on Solaris are #defined as
  > zero to permit the compiler to eliminate code which depends on them.  At
  > run time, the 64 bit multiply and divide functions from libc are used.  At
  > run time Solaris binds an appropriate version of these functions for the
  > hardware (e.g. on UltraSPARC the library will use the SPARC V9 64 bit
  > instructions).
  > 
  > Thu Dec  4 20:08:06 1997  John F. Carr  <jfc@mit.edu>
  > 
  > 	* sparc/sol2.h: Use 64 bit multiply and divide functions in
  >  	Solaris libc.  Define TARGET_LIVE_G0 and TARGET_BROKEN_SAVERESTORE
  > 	as 0.
Thanks.  I've installed this patch.

jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-12-11 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-04 17:14 SPARC/Solaris patch John Carr
1997-12-11 16:33 ` Jeffrey A Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).