Skip to content
  • Sergei Trofimovich's avatar
    UNREG: use __builtin___clear_cache where available · 34b7f63e
    Sergei Trofimovich authored
    
    
    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: default avatarSergei Trofimovich <slyfox@gentoo.org>
    34b7f63e