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: [fix] for: ra-colorize.c:1068: `inv_reg_alloc_order' undeclared


> +/* I don't want to clutter up the actual code with ifdef's.  */
> +#ifdef REG_ALLOC_ORDER
> +#define inv_reg_alloc_order(c) inv_reg_alloc_order[c]
> +#else
> +#define inv_reg_alloc_order(c) c

Should the above be

#define inv_reg_alloc_order(c) FIRST_PSEUDO_REGISTER - 1 - (c)

to obtain the inverse of lowest to highest ordering?

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


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