Commit 51321cf2 authored by Sergei Trofimovich's avatar Sergei Trofimovich

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: default avatarSergei Trofimovich <>
parent d9b6015d
......@@ -30,6 +30,7 @@ import pthread_mutex_lock;
import pthread_mutex_unlock;
import CLOSURE base_ControlziExceptionziBase_nestedAtomically_closure;
import CLOSURE base_GHCziIOziException_heapOverflow_closure;
import EnterCriticalSection;
import LeaveCriticalSection;
import CLOSURE ghczmprim_GHCziTypes_False_closure;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment