Re: [rfa:ppc64] Use target in convert_from_func_ptr_addr

Andrew Cagney
2003-10-23T16:26:12Z

> On Oct 22, 9:37pm, Andrew Cagney wrote:
>
>
>> The attached rewrites the PPC64 GNU/Linux convert_from_func_ptr_addr
>> method so that it makes use of the explicit "struct target_ops"
>> parameter I recently added (previously it was indirectly using
>> current_target).

>
> IMO, this version of the code is harder to read than the old version.
>
> Can you explain what using an explicit `struct target_ops'' parameter
> buys us?

By using the explicit "struct target_ops", I've eliminated the
assumption that the _single_ _global_ current_target contains the
function descriptor.

Andrew