UNREG: use __builtin___clear_cache where available
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 21 Jun 2017 20:17:51 +0000 (21:17 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Thu, 22 Jun 2017 20:31:09 +0000 (21:31 +0100)
commit34b7f63e285e6152875e75f677ad8f8e9ead5963
tree1dea47258c54d91344c70325885e9200bcfa7907
parenta9bf7d42bb31d66e8669546e47191961bc03da03
UNREG: use __builtin___clear_cache where available

Noticed when was building UNREG ghc with -optc{-Wall,-Werror}:

  rts/sm/Storage.c:1359:3: error:
     error: implicit declaration of function '__clear_cache'
       [-Werror=implicit-function-declaration]
       __clear_cache((void*)begin, (void*)end);
       ^~~~~~~~~~~~~
       |
  1359 |   __clear_cache((void*)begin, (void*)end);
       |   ^

Left direct '__clear_cache' usage gcc toolchain before 4.4.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
rts/sm/Storage.c