[MLton-devel] Pb with Sparc compilation
Stephen Weeks
MLton@mlton.org
Thu, 21 Aug 2003 21:18:23 -0700
> A quick look at c-chunk.h seems to indicate that the above functions
> should be remapped to Real32_Move or Real64_Move, doesn't it ?
Yes. The problem is in c-codegen.fun. I've checked in a fix. Here's
the patch.
diff -u -r1.62 -r1.63
--- c-codegen.fun 19 Jul 2003 01:23:27 -0000 1.62
+++ c-codegen.fun 22 Aug 2003 04:14:07 -0000 1.63
@@ -565,11 +565,11 @@
!Control.align = Control.Align4
andalso !Control.hostArch = Control.Sparc
fun addr z = concat ["&(", z, ")"]
- fun realFetch z = concat ["Real_fetch(", addr z, ")"]
+ fun realFetch z = concat ["Real64_fetch(", addr z, ")"]
fun realMove {dst, src} =
- concat ["Real_move(", addr dst, ", ", addr src, ");\n"]
+ concat ["Real64_move(", addr dst, ", ", addr src, ");\n"]
fun realStore {dst, src} =
- concat ["Real_store(", addr dst, ", ", src, ");\n"]
+ concat ["Real64_store(", addr dst, ", ", src, ");\n"]
fun move {dst: string, dstIsMem: bool,
src: string, srcIsMem: bool,
ty: Type.t}: string =
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel