From: Oleg Endo Date: Sat, 28 Sep 2019 07:29:06 +0000 (+0000) Subject: backport: re PR target/85993 (config/sh/sh.c:10878: suspicious if .. else chain) X-Git-Tag: releases/gcc-7.5.0~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c9f68d5869aa6f5f7cd52f8367332e2ed46face;p=thirdparty%2Fgcc.git backport: re PR target/85993 (config/sh/sh.c:10878: suspicious if .. else chain) gcc/ 2019-09-28 Oleg Endo Backport from mainline 2018-07-15 Jeff Law PR target/85993 * config/sh/sh.c (output_mi_thunk): Remove dead conditional block. From-SVN: r276239 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6cc435da536e..3828edd0fb24 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2019-09-28 Oleg Endo + + Backport from mainline + 2018-07-15 Jeff Law + + PR target/85993 + * config/sh/sh.c (output_mi_thunk): Remove dead conditional + block. + 2019-09-27 Iain Sandoe Backport from mainline diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index ff79b93adc26..11f121d71627 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -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);