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 08:15:08 +0000 (09:15 +0100)
commit3eeb55e9578f6eaebccf27170eb1324990affb51
tree21757aa268ddfeca01d9c8c6366e2de8f4088bb0
parent7040660528f597c12f8bc49ca87f3697ab3d3653
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