[Patch] 1/3 Add new builtin __builtin_flush_icache().

Mark Mitchell mark@codesourcery.com
Fri Jul 6 16:39:00 GMT 2007


David Daney wrote:

> If it is deemed to be useless, I will remove
> __builtin_clear_cache_inline_p() from the patch as it is unneeded for my
> current target of interest (MIPS).

Since you don't need it yet, I would suggest leaving it out for now.
The ARM and 68K ports are using OS syscalls to clear the cache, which is
ISA-independent, so they don't need the inline_p test either.

I understand what you were trying to accomplish, and we may well end up
needing it, but let's not do it until we do.  If we do need it, we may
want it as a predefined macro, not as a builtin, so that it can be used
in preprocessor tests.  (I believe we've done that with other builtins.)

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list