rts/PrimOps.cmm: add declaration for heapOverflow closure
authorSergei Trofimovich <slyfox@gentoo.org>
Thu, 2 Nov 2017 23:07:57 +0000 (23:07 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Thu, 2 Nov 2017 23:12:58 +0000 (23:12 +0000)
commit51321cf2eb3b8d7cc525f26808f1340f5f8fd565
treee3f2c4dfe20560354f9dfd39ed1a921579825e94
parentd9b6015d1942aa176e85bb71f34200bab54e1c9c
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@gentoo.org>
rts/PrimOps.cmm