On Fri, Feb 22, 2013 at 09:31:54AM -0800, Steve Ellcey wrote:
> On Fri, 2013-02-22 at 11:03 +0100, Jakub Jelinek wrote:
>
> > The problem I believe is that Aldy has changed init_optabs and insn-opinit.c
> > to use this_fn_optabs instead of this_target_optabs, but it is only set in
> > invoke_set_current_function_hook. During save_target_globals we want to
> > init this_target_optabs, so we need to temporarily switch this_fn_optabs to
> > make that happen.
> >
> > 2013-02-22 Jakub Jelinek <[email protected]>
> >
> > PR target/52555
> > * target-globals.c (save_target_globals): For init_reg_sets and
> > target_reinit remporarily set this_fn_optabs to this_target_optabs.
> >
>
> I built with this patch and ran the GCC testsuite (using the target
> mips-mti-linux-gnu), it fixed the problem and caused no regressions for
> me.
Richard, is that ok for trunk then?
Jakub