[llvm] r181785 - Declare __clear_cache.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue May 14 11:10:16 PDT 2013


>>  extern "C" void sys_icache_invalidate(const void *Addr, size_t len);
>> +extern "C" void __clear_cache(char *, char*);
>
> With gcc 4.7:
>
> lib/Support/Unix/Memory.inc:36:44: error: new declaration 'void
> __clear_cache(char*, char*)' [-Werror]
> lib/Support/Unix/Memory.inc:36:44: error: ambiguates built-in
> declaration 'void __clear_cache(void*, void*)' [-Werror]

Really sorry about the confusion. I realized I was testing this
without the 'extern "C"', so gcc would warn precisely when the type
was correct!

Should be fixed by 181811 and 181810.

Cheers,
Rafael



More information about the llvm-commits mailing list