rts/sm/Storage.c: tweak __clear_cache proto for clang
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 5 Jul 2017 07:36:08 +0000 (08:36 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 5 Jul 2017 07:46:00 +0000 (08:46 +0100)
commit9492703a5862ee8623455209e50344cf8c4de077
treee111f10720040e72f8f3ec03256fc1e745a11f02
parentfd7a7a6363d8dde1813bc23cb4ef00ebb70a49c0
rts/sm/Storage.c: tweak __clear_cache proto for clang

clang defines '__clear_cache' slightly differently from gcc:
    rts/sm/Storage.c:1349:13: error:
         error: conflicting types for '__clear_cache'
         |
    1349 | extern void __clear_cache(char * begin, char * end);
         |             ^
    extern void __clear_cache(char * begin, char * end);
                ^
         note: '__clear_cache' is a builtin with type 'void (void *, void *)'

Reported by Moritz Angermann.

While at it used '__builtin___clear_cache' if advertised by clang.

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