This is the mail archive of the gcc@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: RFC: Plan for cleaning up the "Addressing Modes" macros


Hi Dave,

>   I'm basically in agreement with you here, and just want to suggest you can
> avoid an awful lot of code duplication by doing something like
> 
> #ifdef REG_OK_STRICT
> #define ${CPU}_IS_STRICT 1
> #else 
> #define ${CPU}_IS_STRICT 0
> #endif

Sure.  In fact, the FRV port and possible others have already started
doing this like so:

#ifdef REG_OK_STRICT
#define REG_OK_STRICT_P 1
#else
#define REG_OK_STRICT_P 0
#endif

Kazu Hirata


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