diff options
author | Nathan Sidwell <nathan@acm.org> | 2015-08-25 19:43:02 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2015-08-25 19:43:02 +0000 |
commit | 5a08165c8df02fce80d7fd7c88b12b7a66775f4f (patch) | |
tree | 47c91d37fdf02c314bbecd7433629eea373ed00d /gcc/optabs.c | |
parent | 25486c2827c7801fc475d2c54f129750006699d5 (diff) | |
download | gcc-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.c | 12 |
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 (); + } } |