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: more predicates


"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


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