#5423: Registers above R8 corrupt when called through prim import
---------------------------------+------------------------------------------
    Reporter:  pumpkin           |       Owner:              
        Type:  bug               |      Status:  new         
    Priority:  normal            |   Component:  Compiler    
     Version:  7.2.1             |    Keywords:              
    Testcase:                    |   Blockedby:              
          Os:  Unknown/Multiple  |    Blocking:              
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown
---------------------------------+------------------------------------------

Comment(by ezyang):

 At the very least the compiler should complain about foreign prims that
 have too many arguments.

 I think what we actually want here for the intended application (integer-
 gmp style bindings) is some sort of facility for inlinable C--. In this
 case, we can reuse the local registers that already hold all of these
 values, for only a small code increase.

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

Reply via email to