#2918: Storable alignment for Double is 4
-----------------------------+----------------------------------------------
Reporter:  guest             |          Owner:                
    Type:  bug               |         Status:  new           
Priority:  normal            |      Component:  Compiler (FFI)
 Version:  6.10.1            |       Severity:  normal        
Keywords:                    |       Testcase:                
      Os:  Unknown/Multiple  |   Architecture:  x86           
-----------------------------+----------------------------------------------
 The alignment for Double is 4.  This makes little sense, it should be 8.
 That's the alignment that guarantees best performance, and is also
 necessary on some architectures.
 (On x86 a Double can be byte align, so any value from 1 and up works for
 the alignment, but 8 is the natural one.)

 {{{
 import Foreign.Storable

 main = print (alignment (0::Double))
 }}}

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