Patchwork [MMIX] Remove REG_OK_FOR_BASE_P and REG_OK_FOR_INDEX_P macros

login
register
mail settings
Submitter Anatoly Sokolov
Date Aug. 8, 2011, 7:41 p.m.
Message ID <1514290592.20110808234145@post.ru>
Download mbox | patch
Permalink /patch/109091/
State New
Headers show

Comments

Anatoly Sokolov - Aug. 8, 2011, 7:41 p.m.
Hello.

  This patch remove unused REG_OK_FOR_BASE_P and REG_OK_FOR_INDEX_P macros 
from the MMIX back end.

  Regression tested on mmix-knuth-mmixware.

  OK to install?

        * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.


Anatoly.
Hans-Peter Nilsson - Aug. 8, 2011, 9:50 p.m.
On Mon, 8 Aug 2011, Anatoly Sokolov wrote:
> Hello.
>
>   This patch remove unused REG_OK_FOR_BASE_P and REG_OK_FOR_INDEX_P macros
> from the MMIX back end.
>
>   Regression tested on mmix-knuth-mmixware.
>
>   OK to install?
>
>         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.

Yes, thanks.

brgds, H-P

Patch

Index: gcc/config/mmix/mmix.h
===================================================================
--- gcc/config/mmix/mmix.h      (revision 177573)
+++ gcc/config/mmix/mmix.h      (working copy)
@@ -597,18 +597,7 @@ 
 
 #define MAX_REGS_PER_ADDRESS 2
 
-#ifndef REG_OK_STRICT
-# define REG_OK_FOR_BASE_P(X)                  \
-  (REGNO (X) <= MMIX_LAST_GENERAL_REGISTER     \
-   || REGNO (X) == MMIX_ARG_POINTER_REGNUM     \
-   || REGNO (X) >= FIRST_PSEUDO_REGISTER)
-#else
-# define REG_OK_FOR_BASE_P(X) REGNO_OK_FOR_BASE_P (REGNO (X))
-#endif /* REG_OK_STRICT */
 
-#define REG_OK_FOR_INDEX_P(X) REG_OK_FOR_BASE_P (X)
-
-
 /* Node: Condition Code */
 
 #define SELECT_CC_MODE(OP, X, Y)               \