#2917: alloca and allocaArray do not respect alignment
-----------------------------+----------------------------------------------
  Reporter:  guest           |          Owner:                  
      Type:  bug             |         Status:  new             
  Priority:  normal          |      Milestone:  _|_             
 Component:  Compiler (FFI)  |        Version:  6.12.3          
Resolution:                  |       Keywords:                  
  Testcase:                  |      Blockedby:                  
Difficulty:  Unknown         |             Os:  Unknown/Multiple
  Blocking:                  |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown    |  
-----------------------------+----------------------------------------------
Changes (by Lemming):

 * cc: g...@… (added)


Comment:

 Replying to [comment:22 simonmar]:
 > Taking it off the milestone.  The only remaining things to do are
 `malloc` and `mallocBytes`: these use C malloc, which satisfies the
 minimum alignment requirement for any native datatype, so there shouldn't
 be a problem in most cases.

 On my machine the 'malloc' manpage says, that 'malloc' aligns correctly
 for any variable, but apparently it does not. Maybe the statement was true
 before the 16-byte vectors of SSE. We are not the first ones who use SSE,
 how could the problem be missed by the kernel developers? So I'm uncertain
 whether the behaviour of 'malloc' is intended or not and thus whether we
 should fix Haskell libraries or the Linux kernel.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2917#comment:24>
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

Reply via email to