Skip to content
  • Sergei Trofimovich's avatar
    rts/PrimOps.cmm: add declaration for heapOverflow closure · 51321cf2
    Sergei Trofimovich authored
    
    
    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 <slyfox@gentoo.org>
    51321cf2