This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Poison SMALL_REGISTER_CLASSES


I would classify these as "obvious" but please make sure they go in
before the poison patch ;-)

> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]