]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR target/85993 (config/sh/sh.c:10878: suspicious if .. else chain)
authorOleg Endo <olegendo@gcc.gnu.org>
Sat, 28 Sep 2019 07:29:06 +0000 (07:29 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Sat, 28 Sep 2019 07:29:06 +0000 (07:29 +0000)
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

gcc/ChangeLog
gcc/config/sh/sh.c

index 6cc435da536e5f3457cd495fa4923e34498ba05f..3828edd0fb243754841cf564b4fec9d98f02f3ad 100644 (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
index ff79b93adc263e02114c815ff3706ad57d5cad60..11f121d716276b8a4b9a278757f77d8488a15624 100644 (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);