Message ID | 1330632394.2929.182.camel@yam-132-YW-E178-FTW |
---|---|
State | New |
Headers | show |
Oleg Endo <oleg.endo@t-online.de> wrote: > The function tertiary_reload_operand in sh.c seems to be dead code. The > attached patch deletes it. > > Tested with: make all-gcc > > OK to apply? > > Cheers, > Oleg > > 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org> > > * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead > function. > * config/sh/sh.c (tertiary_reload_operand): Likewise. OK with updating copyright years. Regards, kaz
On Fri, 2012-03-02 at 06:45 +0900, Kaz Kojima wrote: > Oleg Endo <oleg.endo@t-online.de> wrote: > > The function tertiary_reload_operand in sh.c seems to be dead code. The > > attached patch deletes it. > > > > Tested with: make all-gcc > > > > OK to apply? > > > > Cheers, > > Oleg > > > > 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org> > > > > * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead > > function. > > * config/sh/sh.c (tertiary_reload_operand): Likewise. > > OK with updating copyright years. > I will go through the other SH source files and fix the copyright years in a separate patch, OK?
Oleg Endo <oleg.endo@t-online.de> wrote: > I will go through the other SH source files and fix the copyright years > in a separate patch, OK? OK. Regards, kaz
Index: gcc/config/sh/sh-protos.h =================================================================== --- gcc/config/sh/sh-protos.h (revision 184757) +++ gcc/config/sh/sh-protos.h (working copy) @@ -104,7 +104,6 @@ extern int arith_operand (rtx, enum machine_mode); extern int arith_reg_or_0_operand (rtx, enum machine_mode); extern int logical_operand (rtx, enum machine_mode); -extern int tertiary_reload_operand (rtx, enum machine_mode); extern int fpscr_operand (rtx, enum machine_mode); extern int fpul_operand (rtx, enum machine_mode); extern int commutative_float_operator (rtx, enum machine_mode); Index: gcc/config/sh/sh.c =================================================================== --- gcc/config/sh/sh.c (revision 184757) +++ gcc/config/sh/sh.c (working copy) @@ -9201,13 +9201,6 @@ return 1; } -int -tertiary_reload_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED) -{ - enum rtx_code code = GET_CODE (op); - return code == MEM || (TARGET_SH4 && code == CONST_DOUBLE); -} - /* Return the TLS type for TLS symbols, 0 for otherwise. */ enum tls_model tls_symbolic_operand (rtx op, enum machine_mode mode ATTRIBUTE_UNUSED)