Simon Marlow wrote:
Wed Nov 21 02:26:27 PST 2007  Bertram Felgenhauer <[EMAIL PROTECTED]>
  * FIX #1910: fix code generated for GDTOI on x86_32

This patch breaks the HEAD on MacOS 10.5. The error is:

GHC/PrimopWrappers.s:6631:0: bad register name `%st(-8)'

GHC/PrimopWrappers.s:6632:0: bad register name `%fake0'

and so on. The generated assembler code is as follows:

        ffree %st(7) ; fld %st(-8)
        movzwl 4(%esp), %fake0 ; orl $0xC00, %fake0
        movl %fake0, 0(%esp) ; fldcw 0(%esp)
        fistpl 0(%esp)
        fldcw 4(%esp) ; movl 0(%esp), %fake0
        addl $8, %esp
#       gstl %fake0,56(%ebx)

Roman


_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to