#2918: Storable alignment for Double is 4
-------------------------------+--------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: closed
Priority: high | Milestone: 6.10.2
Component: Compiler (FFI) | Version: 6.10.1
Severity: normal | Resolution: wontfix
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: x86 |
-------------------------------+--------------------------------------------
Changes (by simonmar):
* status: new => closed
* resolution: => wontfix
Comment:
The alignment for `Storable` instances is determined by configure tests.
The test currently generates a C struct like
{{{
struct foo { char c; TYPE t; }
}}}
for the `TYPE` of interest, and then determines what alignment the C
compiler uses. For double on x86, it turns out that it uses 4 (though on
x86_64 it uses 8). So perhaps gcc would like to use 8 but is constrained
by the ABI here, I'm not quite sure.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2918#comment:3>
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