UNREG: fix implicit declarations from pdep and pext
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 9 Mar 2018 17:43:01 +0000 (17:43 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Fri, 9 Mar 2018 17:54:19 +0000 (17:54 +0000)
commitdd3906bf5debdb74bb8e356cede7f6ac6d770007
treebd8011f2b300b861b10dd19e7ca7dfd4501def62
parentdf2ea10655984234924ad9f2c237289ab8f4baa6
UNREG: fix implicit declarations from pdep and pext

Unreg build failed as:

  $ ./configure --enable-unregisterised
  $ make

  HC [stage 1] libraries/ghc-prim/dist-install/build/GHC/PrimopWrappers.o
    ghc_1.hc: In function 'ghczmprim_GHCziPrimopWrappers_pdep8zh_entry':

    ghc_1.hc:1810:9: error:
     error: implicit declaration of function 'hs_pdep8'; did you mean 'hs_ctz8'?
       [-Werror=implicit-function-declaration]
     _c3jz = hs_pdep8(*Sp, Sp[1]);
             ^~~~~~~~
             hs_ctz8
       |
  1810 | _c3jz = hs_pdep8(*Sp, Sp[1]);
       |         ^

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
includes/stg/Prim.h
libraries/ghc-prim/cbits/pdep.c
libraries/ghc-prim/cbits/pext.c