more predicates

Zack Weinberg zack@codesourcery.com
Sat Jul 17 17:59:00 GMT 2004


"Giovanni Bajo" <giovannibajo@libero.it> writes:

>> #ifdef IN_REGCLASS_C
>> #define HRS_EXTERN /* nothing */
>> #else
>> #define HRS_EXTERN extern
>> #endif
>
> Uhm, why not simply:
>
> #define GLOBAL_REG_P  /*...*/
> #define SET_GLOBAL_REG  /*...*/
> #define DEFINE_GLOBAL_REGS    char global_regs[FIRST_PSEUDO_REGISTER]
> #pragma GCC poison global_regs
> extern DEFINE_GLOBAL_REGS;
>
> and then, in regclass.c:
>
> DEFINE_GLOBAL_REGS;

Sure, that would work too.

zw



More information about the Gcc-patches mailing list