Ticket #8748: ghc-HEAD-rts_prof.patch

File ghc-HEAD-rts_prof.patch, 857 bytes (added by slyfox, 4 years ago)

ghc-HEAD-rts_prof.patch - export used RTS prof bits to STG

  • includes/stg/MiscClosures.h

    Fix --enable-unregisterised build by declaring missing RTS functions for STG
    
    /tmp/ghc7183_0/ghc7183_1.p_hc: In function 's6Y_entry':
    
    /tmp/ghc7183_0/ghc7183_1.p_hc:79:40:
         error: 'enterFunCCS' undeclared (first use in this function)
         ghcFunPtr = ((void (*)(void *, void *))enterFunCCS);
                                                ^
    diff --git a/includes/stg/MiscClosures.h b/includes/stg/MiscClosures.h
    index f8c8f0d..ff781dd 100644
    a b extern StgWord RTS_VAR(CCS_LIST); /* registered CCS list */ 
    465465extern StgWord      CCS_SYSTEM[];
    466466extern unsigned int RTS_VAR(CC_ID);            /* global ids */
    467467extern unsigned int RTS_VAR(CCS_ID);
     468RTS_FUN_DECL(enterFunCCS);
     469RTS_FUN_DECL(pushCostCentre);
    468470
    469471// Capability.c
    470472extern unsigned int n_capabilities;