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 | |
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')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/optabs.c | 12 |
2 files changed, 12 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3900191..8cb2aeb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-08-25 Nathan Sidwell <nathan@acm.org> + + * optabs.c (emit_indirect_jump): Don't try an emit a jump if the + target doesn't have one. + 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org> PR target/67346 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 (); + } } |