Joseph S. Myers wrote:
> On Thu, 7 Apr 2011, Gunther Nikl wrote:
> 
>> 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.

Yes, that could work. Unfortunately in this particular case "if ()"
won't work because the subtarget does also override CUMULATIVE_ARGS
with a version that has additional fields. This probably means that
the only solution is to redefine the affected target hook definitions
within an #if block and the replacement functions within a similar
#if block.

Regards,
Gunther

Reply via email to