This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
global.c: Remove unused macros.
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 21 Jul 2002 21:37:54 +0100
- Subject: global.c: Remove unused macros.
OK?
Neil.
* global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
============================================================
Index: gcc/global.c
*** gcc/global.c 4 Jun 2002 11:30:38 -0000 1.82
--- gcc/global.c 21 Jul 2002 18:58:16 -0000
*************** static int allocno_row_words;
*** 171,180 ****
(conflicts[(I) * allocno_row_words + (unsigned) (J) / INT_BITS] \
& ((INT_TYPE) 1 << ((unsigned) (J) % INT_BITS)))
- #define SET_CONFLICT(I, J) \
- (conflicts[(I) * allocno_row_words + (unsigned) (J) / INT_BITS] \
- |= ((INT_TYPE) 1 << ((unsigned) (J) % INT_BITS)))
-
/* For any allocno set in ALLOCNO_SET, set ALLOCNO to that allocno,
and execute CODE. */
#define EXECUTE_IF_SET_IN_ALLOCNO_SET(ALLOCNO_SET, ALLOCNO, CODE) \
--- 171,176 ----
*************** static int local_reg_freq[FIRST_PSEUDO_R
*** 231,242 ****
static int local_reg_live_length[FIRST_PSEUDO_REGISTER];
! /* Test a bit in TABLE, a vector of HARD_REG_SETs,
! for vector element I, and hard register number J. */
!
! #define REGBITP(TABLE, I, J) TEST_HARD_REG_BIT (allocno[I].TABLE, J)
!
! /* Set to 1 a bit in a vector of HARD_REG_SETs. Works like REGBITP. */
#define SET_REGBIT(TABLE, I, J) SET_HARD_REG_BIT (allocno[I].TABLE, J)
--- 227,234 ----
static int local_reg_live_length[FIRST_PSEUDO_REGISTER];
! /* Set to 1 a bit in a vector TABLE of HARD_REG_SETs, for vector
! element I, and hard register number J. */
#define SET_REGBIT(TABLE, I, J) SET_HARD_REG_BIT (allocno[I].TABLE, J)
*************** static INT_TYPE *allocnos_live;
*** 246,255 ****
/* Test, set or clear bit number I in allocnos_live,
a bit vector indexed by allocno. */
-
- #define ALLOCNO_LIVE_P(I) \
- (allocnos_live[(unsigned) (I) / INT_BITS] \
- & ((INT_TYPE) 1 << ((unsigned) (I) % INT_BITS)))
#define SET_ALLOCNO_LIVE(I) \
(allocnos_live[(unsigned) (I) / INT_BITS] \
--- 238,243 ----