aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2015-08-25 19:43:02 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2015-08-25 19:43:02 +0000
commitc8fc2ce7dcfc74a634c98e9fb6416f400c6f7b0d (patch)
tree47c91d37fdf02c314bbecd7433629eea373ed00d /gcc/optabs.c
parentd0eb27146ed478dcf722ed8e906d327bf753fc42 (diff)
* optabs.c (emit_indirect_jump): Don't try an emit a jump if the
target doesn't have one. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227185 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r--gcc/optabs.c12
1 files changed, 7 insertions, 5 deletions
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 ();
+ }
}