[GHC] #7383: implement proper type promotion in compilation of C calls

GHC cvs-ghc at haskell.org
Sat Feb 23 20:27:40 CET 2013


#7383: implement proper type promotion in compilation of C calls
---------------------------------+------------------------------------------
    Reporter:  igloo             |       Owner:                  
        Type:  bug               |      Status:  infoneeded      
    Priority:  high              |   Milestone:  7.6.2           
   Component:  Compiler          |     Version:  7.6.1           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:  7684              |  
---------------------------------+------------------------------------------

Comment(by marlowsd@…):

 commit 085e8145f63c8f42d8bc19cd3cff52b8cd5b6455
 {{{
 Author: Simon Marlow <marlowsd at gmail.com>
 Date:   Wed Feb 20 11:43:33 2013 +0000

     x86: promote arguments to C functions according to the ABI (#7383)

     I don't think the x86-64 version is quite right, but this ought to be
     enough to pass cgrun071.

     This code is terrible and needs a complete refactor.  There's a lot of
     duplication, and we ought to be specifying the ABI in a much more
     abstract way (like LLVM).

  compiler/nativeGen/X86/CodeGen.hs |   20 ++++++++++++++------
  1 files changed, 14 insertions(+), 6 deletions(-)
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7383#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list