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]

Solaris long long patches



Solaris has library functions to convert between float and long long.

Sun Jun  7 10:19:14 1998  John Carr  <jfc@mit.edu>

	* sol2.h (INIT_SUBTARGET_OPTABS): Use Solaris libc float/long long
	conversion functions.

*** sol2.h	1998/04/18 01:24:55	1.7
--- sol2.h	1998/06/07 14:15:52
*************** Boston, MA 02111-1307, USA.  */
*** 193,198 ****
--- 193,205 ----
  #define MODDI3_LIBCALL "__rem64"
  #define UMODDI3_LIBCALL "__urem64"
  
+ #undef INIT_SUBTARGET_OPTABS
+ #define INIT_SUBTARGET_OPTABS	\
+   fixsfdi_libfunc = gen_rtx_SYMBOL_REF (Pmode, "__ftoll");	\
+   fixunssfdi_libfunc = gen_rtx_SYMBOL_REF (Pmode, "__ftoull");	\
+   fixdfdi_libfunc = gen_rtx_SYMBOL_REF (Pmode, "__dtoll");	\
+   fixunsdfdi_libfunc = gen_rtx_SYMBOL_REF (Pmode, "__dtoull")
+ 
  /* No weird SPARC variants on Solaris */
  #undef TARGET_LIVE_G0
  #define TARGET_LIVE_G0	0


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