This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Solaris long long patches
- To: rth at cygnus dot com, egcs-patches at cygnus dot com
- Subject: Solaris long long patches
- From: John Carr <jfc at mit dot edu>
- Date: Sun, 07 Jun 1998 10:24:25 -0400
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