On Wed, Aug 8, 2012 at 5:29 PM, Richard Henderson <r...@redhat.com> wrote: > On 08/08/2012 07:19 AM, Ian Lance Taylor wrote: >>> > I was suggesting to for example register a 2nd mdreorg-like pass and >>> > add a 2nd target hook. regstack should get the same treatment. >> If the mechanism is a proliferation of mdreorg passes in every place >> we want a target-specific pass, that is fine with me. > > I think it makes much more sense to edit the pass ordering from > the backend, rather than hooks upon hooks upon hooks. > > Since the plugin interface exists, we might as well use it.
The issue is that using the plugin interface makes breakage only detectable when you are able to test a target, not by merely building it. That's bad (of course only for those weirdo targets). We should _at least_ provide an interface to internals that for example use the address of the pass structure for pass placement instead of just the dump file name. Richard. > > r~