This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] replace LIBGCC2_WORDS_BIG_ENDIAN with __WORDS_BIG_ENDIAN__


On 10/13/2010 6:01 PM, David Daney wrote:

>> Why not make CLEAR_INSN_CACHE a builtin, then, with the target back-end
>> providing the definition of the built-in?
> 
> I think it is (see __builtin___clear_cache) , and this libgcc function
> is the fallback.

Yes, but there's no reason that the fallback couldn't *also* be a
builtin, intended for use only within ligbcc.

> The original motivation was for libffi closure and nested function
> trampolines, but it is an utter failure on SMP systems, so it couldn't
> be used.  Now it lives on as legacy GCC code.

I'm not sure it's as bad an invention as you think, but in any case,
yes, we have to keep both the builtin and the libgcc interface now.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]