On Wed, Feb 15, 2012 at 7:36 PM, Steven Bosscher <stevenb....@gmail.com> wrote: > Hello, > > While going through some old patches of mine, I noticed this: > > config/rl78/rl78.h:#define SMALL_REGISTER_CLASSES 1 > config/rx/rx.h:#define SMALL_REGISTER_CLASSES 0 > > Can't possibly work, that target macro was replaced with a hook. > > Attached patch OK for trunk?
And this will be needed to make those ports do what was intended: * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook. * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES. Index: config/rl78/rl78.h =================================================================== --- config/rl78/rl78.h (revision 184217) +++ config/rl78/rl78.h (working copy) @@ -258,7 +258,7 @@ enum reg_class { 0xff7fffff, 0x0000001f } /* All registers. */ \ } -#define SMALL_REGISTER_CLASSES 1 +#define TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P hook_bool_mode_true #define N_REG_CLASSES (int) LIM_REG_CLASSES #define CLASS_MAX_NREGS(CLASS, MODE) ((GET_MODE_SIZE (MODE) \ + UNITS_PER_WORD - 1) \ Index: config/rx/rx.h =================================================================== --- config/rx/rx.h (revision 184217) +++ config/rx/rx.h (working copy) @@ -185,7 +185,6 @@ enum reg_class { 0x0000ffff } /* All registers. */ \ } -#define SMALL_REGISTER_CLASSES 0 #define N_REG_CLASSES (int) LIM_REG_CLASSES #define CLASS_MAX_NREGS(CLASS, MODE) ((GET_MODE_SIZE (MODE) \ + UNITS_PER_WORD - 1) \