[commit: ghc] master: rts/PrimOps.cmm: add declaration for heapOverflow closure (51321cf)

git at git.haskell.org git at git.haskell.org
Thu Nov 2 23:16:34 UTC 2017


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/51321cf2eb3b8d7cc525f26808f1340f5f8fd565/ghc

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

commit 51321cf2eb3b8d7cc525f26808f1340f5f8fd565
Author: Sergei Trofimovich <slyfox at gentoo.org>
Date:   Thu Nov 2 23:07:57 2017 +0000

    rts/PrimOps.cmm: add declaration for heapOverflow closure
    
    Before the change UNREG ghc build failed as:
    ```
      rts_dist_HC rts/dist/build/PrimOps.o
    /tmp/ghc2370_0/ghc_4.hc: In function 'stg_newByteArrayzh':
    
    /tmp/ghc2370_0/ghc_4.hc:26:13: error:
         error: 'base_GHCziIOziException_heapOverflow_closure'
             undeclared (first use in this function)
         R1.w = (W_)&base_GHCziIOziException_heapOverflow_closure;
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       |
    26 | R1.w = (W_)&base_GHCziIOziException_heapOverflow_closure;
       |             ^
    ```
    
    It's an UNREG-specific failure because C backend always requires
    declarations to be known.
    
    Added missing declaration.
    
    Signed-off-by: Sergei Trofimovich <slyfox at gentoo.org>


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

51321cf2eb3b8d7cc525f26808f1340f5f8fd565
 rts/PrimOps.cmm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rts/PrimOps.cmm b/rts/PrimOps.cmm
index ca519b6..467353a 100644
--- a/rts/PrimOps.cmm
+++ b/rts/PrimOps.cmm
@@ -30,6 +30,7 @@ import pthread_mutex_lock;
 import pthread_mutex_unlock;
 #endif
 import CLOSURE base_ControlziExceptionziBase_nestedAtomically_closure;
+import CLOSURE base_GHCziIOziException_heapOverflow_closure;
 import EnterCriticalSection;
 import LeaveCriticalSection;
 import CLOSURE ghczmprim_GHCziTypes_False_closure;



More information about the ghc-commits mailing list