#5967: incompatible implicit declaration of function 'memcpy'
---------------------------------+------------------------------------------
Reporter: nomeata | Owner: pcapriotti
Type: bug | Status: patch
Priority: high | Milestone: 7.4.2
Component: Compiler | Version: 7.4.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: Other
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by pcapriotti):
> This does prevent Foreign.coypBytes from using the builtin memcpy in the
C backend, for example
I thought that didn't matter, since functions using `memcpy` through the
FFI call it through a function pointer, and I doubt that GCC would
optimize that anyway. I might be wrong, though.
> so go ahead and push as long as there's no issue with old gcc versions.
The `memmove` builtin seems to have been introduced in GCC 4.1, is that
enough?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5967#comment:11>
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