Patchwork [STORMY16] Remove REG_OK_FOR_BASE_P and REG_OK_FOR_INDEX_P macros

login
register
mail settings
Submitter Anatoly Sokolov
Date Feb. 21, 2011, 9:08 p.m.
Message ID <1058604273.20110222000814@post.ru>
Download mbox | patch
Permalink /patch/83878/
State New
Headers show

Comments

Anatoly Sokolov - Feb. 21, 2011, 9:08 p.m.
Hello.

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

  Regression tested on xstormy16-unknown-elf.

  OK to install?

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




Anatoly.
Nick Clifton - Feb. 22, 2011, 9:42 a.m.
Hi Anatoly,

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

Approved - please apply.

Cheers
   Nick

Patch

Index: gcc/config/stormy16/stormy16.h
===================================================================
--- gcc/config/stormy16/stormy16.h      (revision 170367)
+++ gcc/config/stormy16/stormy16.h      (working copy)
@@ -362,15 +356,6 @@ 
 
 #define MAX_REGS_PER_ADDRESS 1
 
-#ifdef REG_OK_STRICT
-#define REG_OK_FOR_BASE_P(X)                                              \
-  (REGNO_OK_FOR_BASE_P (REGNO (X)) && (REGNO (X) < FIRST_PSEUDO_REGISTER))
-#else
-#define REG_OK_FOR_BASE_P(X) REGNO_OK_FOR_BASE_P (REGNO (X))
-#endif
-
-#define REG_OK_FOR_INDEX_P(X) REG_OK_FOR_BASE_P (X)
-
 #define LEGITIMATE_CONSTANT_P(X) 1