Commit cdebbc6d by Jakub Jelinek Committed by Jakub Jelinek

re PR target/52555 (ICE unrecognizable insn with -ffast-math and __attribute__((optimize(xx))))

	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.

From-SVN: r196245
parent 9bcc87ea
2013-02-24 Jakub Jelinek <jakub@redhat.com>
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.
2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
* config/aarch64/aarch64-simd-builtins.def: Add copyright header.
......
......@@ -67,6 +67,7 @@ struct target_globals *
save_target_globals (void)
{
struct target_globals *g;
struct target_optabs *saved_this_fn_optabs = this_fn_optabs;
g = ggc_alloc_target_globals ();
g->flag_state = XCNEW (struct target_flag_state);
......@@ -86,8 +87,10 @@ save_target_globals (void)
g->bb_reorder = XCNEW (struct target_bb_reorder);
g->lower_subreg = XCNEW (struct target_lower_subreg);
restore_target_globals (g);
this_fn_optabs = this_target_optabs;
init_reg_sets ();
target_reinit ();
this_fn_optabs = saved_this_fn_optabs;
return g;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment