#5230: Segfault in cgrun064
----------------------------------+-----------------------------------------
Reporter: daniel.is.fischer | Owner: tibbe
Type: bug | Status: patch
Priority: normal | Component: Compiler
Version: 7.1 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: x86 | Failure: None/Unknown
----------------------------------+-----------------------------------------
Comment(by tibbe):
This raises an interesting question: with the direct call's to the C
functions in `CgPrimOp` being replaced with the `CallishMachOp`s David
Terei added, who is responsible for making sure that we call C's memcpy
with a value of the right width? In the new world order I think
`emitMemset` should be called with a `W8` value and each backend should do
the right thing e.g. emit the value as is in the LLVM backend and convert
the value to word width in the backends that call C's memcpy (e.g. the x86
backend).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5230#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs