From: Jozef Lawrynowicz Date: Thu, 24 Oct 2019 13:36:52 +0000 (+0000) Subject: MSP430: Remove unused msp430_hard_regno_nregs_*_padding functions X-Git-Tag: upstream/12.2.0~20922 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39a6e72a9e0889180783c2e8810042503b511b11;p=platform%2Fupstream%2Fgcc.git MSP430: Remove unused msp430_hard_regno_nregs_*_padding functions 2019-10-24 Jozef Lawrynowicz * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove and add comment. (msp430_hard_regno_nregs_with_padding): Remove. From-SVN: r277395 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eb0a2f9b..7b433bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2019-10-24 Jozef Lawrynowicz + * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove + and add comment. + (msp430_hard_regno_nregs_with_padding): Remove. + +2019-10-24 Jozef Lawrynowicz + * config/msp430/constraints.md: Allow post_inc for "Ya" constraint. * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant shift amount is between 1 and 4. diff --git a/gcc/config/msp430/msp430.c b/gcc/config/msp430/msp430.c index cd39433..fe1fcc0 100644 --- a/gcc/config/msp430/msp430.c +++ b/gcc/config/msp430/msp430.c @@ -332,28 +332,9 @@ msp430_hard_regno_nregs (unsigned int, machine_mode mode) / UNITS_PER_WORD); } -/* Implements HARD_REGNO_NREGS_HAS_PADDING. */ -int -msp430_hard_regno_nregs_has_padding (int regno ATTRIBUTE_UNUSED, - machine_mode mode) -{ - if (mode == PSImode && msp430x) - return 1; - return ((GET_MODE_SIZE (mode) + UNITS_PER_WORD - 1) - / UNITS_PER_WORD); -} - -/* Implements HARD_REGNO_NREGS_WITH_PADDING. */ -int -msp430_hard_regno_nregs_with_padding (int regno ATTRIBUTE_UNUSED, - machine_mode mode) -{ - if (mode == PSImode) - return 2; - if (mode == CPSImode) - return 4; - return msp430_hard_regno_nregs (regno, mode); -} +/* subreg_get_info correctly handles PSImode registers, so defining + HARD_REGNO_NREGS_HAS_PADDING and HARD_REGNO_NREGS_WITH_PADDING + has no effect. */ #undef TARGET_HARD_REGNO_MODE_OK #define TARGET_HARD_REGNO_MODE_OK msp430_hard_regno_mode_ok