re PR target/85993 (config/sh/sh.c:10878: suspicious if .. else chain)
authorJeff Law <law@redhat.com>
Sun, 15 Jul 2018 20:28:15 +0000 (14:28 -0600)
committerJeff Law <law@gcc.gnu.org>
Sun, 15 Jul 2018 20:28:15 +0000 (14:28 -0600)
PR target/85993
* config/sh/sh.c (output_mi_thunk): Remove dead conditional
block.

From-SVN: r262671

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

index 9179987e98ccc722c8f97f4a6f5509f00b694c1b..c9e3f0b956d863a314bc2c1332fbbd7a2975270c 100644 (file)
@@ -1,3 +1,9 @@
+2018-07-15  Jeff Law  <law@redhat.com>
+
+       PR target/85993
+       * config/sh/sh.c (output_mi_thunk): Remove dead conditional
+       block.
+
 2018-07-14  Jim Wilson  <jimw@sifive.com>
 
        * config/riscv/linux.h (TARGET_ASM_FILE_END): New.
index a1cad42eb70b61ddf31e78c03ab2a5e780c3242d..e58533c3babaa254f746dbf140c99a6b9bbf33eb 100644 (file)
@@ -10890,12 +10890,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);