This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Use MODE_BASE_REG_CLASS in ARM legitimize macros
- From: Nick Clifton <nickc at cambridge dot redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: 12 Jan 2002 11:16:11 +0000
- Subject: Use MODE_BASE_REG_CLASS in ARM legitimize macros
Hi Guys,
I am applying the patch below to update
ARM_LEGITIMIZE_RELOAD_ADDRESS and THUMB_LEGITIMIZE_RELOAD_ADDRESS to
make use of the new MODE_BASE_REG_CLASS macro when calling
push_reloads. The change to the ARM macro is for consistency
purposes only since for the ARM MODE_BASE_REG_CLASS is the same as
BASE_REG_CLASS, but the Thumb one is important.
Cheers
Nick
2002-01-12 Nick Clifton <nickc@cambridge.redhat.com>
* config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
MODE_BASE_REG_CLASS.
(THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
Index: config/arm/arm.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/arm/arm.h,v
retrieving revision 1.130
diff -c -3 -p -r1.130 arm.h
*** arm.h 2002/01/08 22:51:21 1.130
--- arm.h 2002/01/12 11:12:41
*************** enum reg_class
*** 1287,1294 ****
GEN_INT (high)), \
GEN_INT (low)); \
push_reload (XEXP (X, 0), NULL_RTX, &XEXP (X, 0), NULL, \
! BASE_REG_CLASS, GET_MODE (X), VOIDmode, 0, 0, \
! OPNUM, TYPE); \
goto WIN; \
} \
} \
--- 1287,1294 ----
GEN_INT (high)), \
GEN_INT (low)); \
push_reload (XEXP (X, 0), NULL_RTX, &XEXP (X, 0), NULL, \
! MODE_BASE_REG_CLASS (MODE), GET_MODE (X), \
! VOIDmode, 0, 0, OPNUM, TYPE); \
goto WIN; \
} \
} \
*************** enum reg_class
*** 1314,1320 ****
rtx orig_X = X; \
X = copy_rtx (X); \
push_reload (orig_X, NULL_RTX, &X, NULL, \
! BASE_REG_CLASS, \
Pmode, VOIDmode, 0, 0, OPNUM, TYPE); \
goto WIN; \
} \
--- 1314,1320 ----
rtx orig_X = X; \
X = copy_rtx (X); \
push_reload (orig_X, NULL_RTX, &X, NULL, \
! MODE_BASE_REG_CLASS (MODE), \
Pmode, VOIDmode, 0, 0, OPNUM, TYPE); \
goto WIN; \
} \