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] Provide a default definition for HARD_REGNO_NREGS.


Hi,

> Index: defaults.h
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/defaults.h,v
> retrieving revision 1.130
> diff -u -r1.130 defaults.h
> --- defaults.h	7 Mar 2004 20:23:26 -0000	1.130
> +++ defaults.h	7 Mar 2004 20:30:41 -0000
> @@ -707,4 +707,7 @@
>  #define LEGITIMIZE_ADDRESS(X, OLDX, MODE, WIN)
>  #endif
>  
> +#define HARD_REGNO_NREGS(REGNO, MODE)   \
> +  ((GET_MODE_SIZE (MODE) + UNITS_PER_WORD - 1) / UNITS_PER_WORD)
> +
>  #endif  /* ! GCC_DEFAULTS_H */

This would cause a multiple definition.  Let me drop my patch.

Kazu Hirata


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]