[GHC] #7792: unregisterised build broken
#7792: unregisterised build broken ---------------------------------+------------------------------------------ Reporter: igloo | Owner: Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Unregisterised builds are currently broken: Compiling C calls in CMM files fails with e.g. {{{ error: ‘debugBelch’ undeclared }}} The C call is being translated into {{{ _cH = (W_)&debugBelch; _cG = (W_)&stg_ap_0_ret_str; ((void (*)(void *))_cH)((void *)_cG);; }}} so `pprForeignCall` isn't getting called, and thus doesn't add the prototype for `debugBelch`. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7792> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7792: unregisterised build broken ---------------------------------+------------------------------------------ Reporter: igloo | Owner: igloo Type: bug | Status: new Priority: highest | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by igloo): * owner: => igloo -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7792#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#7792: unregisterised build broken -------------------------------+-------------------------------------------- Reporter: igloo | Owner: igloo Type: bug | Status: closed Priority: highest | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: fixed | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by igloo): * status: new => closed * resolution: => fixed Comment: Fixed by: commit be0b1dffb0a3aa73720b4de8887b837430bffcce {{{ Author: Ian Lynagh <ian@well-typed.com> Date: Tue Apr 23 20:53:06 2013 +0100 In CMM, only allow foreign calls to labels, not arbitrary expressions I'm not sure if we want to make this change permanently, but for now it fixes the unreg build. I've also removed some redundant special-case code that generated prototypes for foreign functions. The standard pprTempAndExternDecls now generates them. }}} -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7792#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC