From 5a08165c8df02fce80d7fd7c88b12b7a66775f4f Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Tue, 25 Aug 2015 19:43:02 +0000 Subject: [PATCH] optabs.c (emit_indirect_jump): Don't try an emit a jump if the target doesn't have one. * optabs.c (emit_indirect_jump): Don't try an emit a jump if the target doesn't have one. From-SVN: r227185 --- gcc/ChangeLog | 5 +++++ gcc/optabs.c | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3900191fcee..8cb2aeb7633 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-08-25 Nathan Sidwell + + * optabs.c (emit_indirect_jump): Don't try an emit a jump if the + target doesn't have one. + 2015-08-25 Segher Boessenkool PR target/67346 diff --git a/gcc/optabs.c b/gcc/optabs.c index 97c1d387672..e533e6efb36 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -4488,11 +4488,13 @@ emit_indirect_jump (rtx loc) { if (!targetm.have_indirect_jump ()) sorry ("indirect jumps are not available on this target"); - - struct expand_operand ops[1]; - create_address_operand (&ops[0], loc); - expand_jump_insn (targetm.code_for_indirect_jump, 1, ops); - emit_barrier (); + else + { + struct expand_operand ops[1]; + create_address_operand (&ops[0], loc); + expand_jump_insn (targetm.code_for_indirect_jump, 1, ops); + emit_barrier (); + } } -- 2.30.2