backport: re PR target/85993 (config/sh/sh.c:10878: suspicious if .. else chain)

gcc/
2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>

	Backport from mainline
	2018-07-15  Jeff Law  <law@redhat.com>

	PR target/85993
	* config/sh/sh.c (output_mi_thunk): Remove dead conditional
	block.

From-SVN: r276239
This commit is contained in:
Oleg Endo 2019-09-28 07:29:06 +00:00
parent 5d60ba12b8
commit 5c9f68d586
2 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,12 @@
2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
Backport from mainline
2018-07-15 Jeff Law <law@redhat.com>
PR target/85993
* config/sh/sh.c (output_mi_thunk): Remove dead conditional
block.
2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
Backport from mainline

View File

@ -10814,12 +10814,6 @@ sh_output_mi_thunk (FILE *file, tree thunk_fndecl ATTRIBUTE_UNUSED,
emit_insn (gen_add2_insn (scratch0, GEN_INT (vcall_offset)));
offset_addr = scratch0;
}
else if (scratch0 != scratch1)
{
emit_move_insn (scratch1, GEN_INT (vcall_offset));
emit_insn (gen_add2_insn (scratch0, scratch1));
offset_addr = scratch0;
}
else
gcc_unreachable (); /* FIXME */
emit_load_ptr (scratch0, offset_addr);