
#9806: malloc and mallocArray ignore Storable alignment requirements -------------------------------------+------------------------------------- Reporter: ekmett | Owner: ekmett Type: bug | Status: new Priority: normal | Milestone: Component: Core | Version: 7.8.3 Libraries | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: | Difficulty: Unknown Unknown/Multiple | Blocked By: Type of failure: | Related Tickets: #8627 None/Unknown | Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by carter): {{{ [14/11/22-17:13:25] <edwardk> the posix_memalign thing is probably the right fix [14/11/22-17:13:37] <edwardk> that'd ensure that malloc aligns to whatever boundary the actual storable requires [14/11/22-17:13:50] <edwardk> so when folks make data types for SIMD blocks of floats they work right [14/11/22-17:14:30] <edwardk> in theory it could affect even old x86 stuff with the old 10 byte long doubles [14/11/22-17:14:35] <edwardk> which want a 16 byte alignment }}} notes by edward for this ticket -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9806#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler