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>
Wed, 21 Jun 2017 20:26:50 +0000 (21:26 +0100)
commit6dd1257fdd4d18e84d32e89bf0ec664b3c8f7b93
tree4b05e4ebca13d770e006b3d56cf1c3b511256146
parentb1fa386cdae1af45fdd3519014be850f83414ab3
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);
       |   ^

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