[commit: ghc] master: UNREG: include CCS_OVERHEAD to STG (2fa00f5)

git at git.haskell.org git at git.haskell.org
Sat Dec 17 16:53:08 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/2fa00f5b22dd9ea39eb1f5c9b52bbdbca0a37925/ghc

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

commit 2fa00f5b22dd9ea39eb1f5c9b52bbdbca0a37925
Author: Sergei Trofimovich <siarheit at google.com>
Date:   Sat Dec 17 13:25:43 2016 +0000

    UNREG: include CCS_OVERHEAD to STG
    
    Commit 394231b301efb6b56654b0a480ab794fe3b7e4db aded
    CCS_OVERHEAD annotation to 'rts/Apply.cmm'.
    
    Before the change CCS_OVERHEAD was used only in C code.
    
    The change exports CCS_OVERHEAD to STG.
    
    Fixes UNREG build failure:
      rts_dist_HC rts/dist/build/Apply.p_o
        /tmp/ghc29563_0/ghc_4.hc: In function 'cm_entry':
    
        /tmp/ghc29563_0/ghc_4.hc:73:13: error:
         error: 'CCS_OVERHEAD' undeclared (first use in this function)
         *((P_)((W_)&CCS_OVERHEAD+72)) = ...
                     ^~~~~~~~~~~~
    
    Signed-off-by: Sergei Trofimovich <siarheit at google.com>


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

2fa00f5b22dd9ea39eb1f5c9b52bbdbca0a37925
 includes/stg/MiscClosures.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/includes/stg/MiscClosures.h b/includes/stg/MiscClosures.h
index 65562b2..b3f9a69 100644
--- a/includes/stg/MiscClosures.h
+++ b/includes/stg/MiscClosures.h
@@ -512,6 +512,7 @@ extern unsigned int RTS_VAR(era);
 extern unsigned int RTS_VAR(entering_PAP);
 extern StgWord      RTS_VAR(CC_LIST);          /* registered CC list */
 extern StgWord      RTS_VAR(CCS_LIST);         /* registered CCS list */
+extern StgWord      CCS_OVERHEAD[];
 extern StgWord      CCS_SYSTEM[];
 extern unsigned int RTS_VAR(CC_ID);            /* global ids */
 extern unsigned int RTS_VAR(CCS_ID);



More information about the ghc-commits mailing list