From: Nathan Sidwell Date: Tue, 25 Aug 2015 19:43:02 +0000 (+0000) Subject: optabs.c (emit_indirect_jump): Don't try an emit a jump if the target doesn't have... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a08165c8df02fce80d7fd7c88b12b7a66775f4f;p=gcc.git 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 --- 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 (); + } }