From 2cd66592cd01340419625899f8b3e88f63ea07f9 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Sun, 15 Jul 2018 14:28:15 -0600 Subject: [PATCH] re PR target/85993 (config/sh/sh.c:10878: suspicious if .. else chain) PR target/85993 * config/sh/sh.c (output_mi_thunk): Remove dead conditional block. From-SVN: r262671 --- gcc/ChangeLog | 6 ++++++ gcc/config/sh/sh.c | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9179987e98c..c9e3f0b956d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-07-15 Jeff Law + + PR target/85993 + * config/sh/sh.c (output_mi_thunk): Remove dead conditional + block. + 2018-07-14 Jim Wilson * config/riscv/linux.h (TARGET_ASM_FILE_END): New. diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index a1cad42eb70..e58533c3bab 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -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); -- 2.30.2