Re: [GHC] #2918: Storable alignment for Double is 4
#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 Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #2918: Storable alignment for Double is 4
#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 | ---+ Comment (by guest): Yes, there are really two kinds of alignment (or even three), and LLVM distinguishes them: the ABI alignment an the optimal alignment (and then there's also the minimal alignment). -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2918#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #2918: Storable alignment for Double is 4
#2918: Storable alignment for Double is 4 ---+ Reporter: guest |Owner: Type: bug | Status: new Priority: high|Milestone: 6.10.2 Component: Compiler (FFI) | Version: 6.10.1 Severity: normal | Resolution: Keywords: | Difficulty: Unknown Testcase: | Os: Unknown/Multiple Architecture: x86 | ---+ Changes (by igloo): * priority: normal = high * difficulty: = Unknown * milestone: = 6.10.2 Comment: Thanks for the report; we'll take a look. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2918#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #2918: Storable alignment for Double is 4
#2918: Storable alignment for Double is 4 ---+ Reporter: guest |Owner: Type: bug | Status: new Priority: high|Milestone: 6.10.2 Component: Compiler (FFI) | Version: 6.10.1 Severity: normal | Resolution: Keywords: | Difficulty: Unknown Testcase: | Os: Unknown/Multiple Architecture: x86 | ---+ Comment (by guest): I don't really care if this gets changed or now, it was just an observation. -- Lennart -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2918#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs