aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2015-08-25 19:43:02 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2015-08-25 19:43:02 +0000
commit5a08165c8df02fce80d7fd7c88b12b7a66775f4f (patch)
tree47c91d37fdf02c314bbecd7433629eea373ed00d /gcc/optabs.c
parent25486c2827c7801fc475d2c54f129750006699d5 (diff)
downloadgcc-5a08165c8df02fce80d7fd7c88b12b7a66775f4f.zip
gcc-5a08165c8df02fce80d7fd7c88b12b7a66775f4f.tar.gz
gcc-5a08165c8df02fce80d7fd7c88b12b7a66775f4f.tar.bz2
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
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 97c1d38..e533e6e 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 ();
+ }
}