On Thu, 7 Apr 2011, Gunther Nikl wrote:

> On Fri, Oct 08, 2010 at 09:58:14AM -0400, Nathan Froyd wrote:
> > The patch below hookizes FUNCTION_ARG and related macros for the m68k
> > backend.  Nothing special here.
> 
> With the old macro approach it was easy for a subtarget to override
> these target properties. That doesn't work anymore for target hooks.
> Is there a (recommended) way how a subtarget can override hook
> functions?

The implementation of the hook should contain "if" (preferred over #if) 
conditions on the particular ABI in use, which could be determined by a 
macro in subtarget headers.  (The key difference from the old system is 
that the macro is one only used within target code rather than being used 
in the target-independent compiler.)

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to