[commit: ghc] master: In CMM, only allow foreign calls to labels, not arbitrary expressions (be0b1df)

Ian Lynagh igloo at earth.li
Wed Apr 24 04:00:36 CEST 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : master

https://github.com/ghc/ghc/commit/be0b1dffb0a3aa73720b4de8887b837430bffcce

>---------------------------------------------------------------

commit be0b1dffb0a3aa73720b4de8887b837430bffcce
Author: Ian Lynagh <ian at 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.

 compiler/cmm/CLabel.hs          |  4 ++--
 compiler/cmm/CmmLayoutStack.hs  |  4 ++--
 compiler/cmm/CmmParse.y         |  5 ++++-
 compiler/cmm/PprC.hs            | 34 +++++++++++-----------------------
 compiler/codeGen/StgCmmBind.hs  |  2 +-
 compiler/codeGen/StgCmmPrim.hs  |  5 ++---
 compiler/codeGen/StgCmmUtils.hs | 11 +++++------
 7 files changed, 27 insertions(+), 38 deletions(-)


Diff suppressed because of size. To see it, use:

    git show be0b1dffb0a3aa73720b4de8887b837430bffcce



More information about the ghc-commits mailing list