This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [options] Allow Var() and Mask() to be used together
DJ Delorie wrote:-
>
> > It sounds like we'll have TARGET_* macros associated with non-target
> > things. Using MASK_* constants for non-target options might also be
> > dangerous because of the risk of a name clash.
> >
> > I think it would also make sense to extend:
>
> This one uses:
>
> #define OPTION_MASK_BART (1 << 1)
> #define OPTION_BART ((warn_dj2 & OPTION_MASK_BART) != 0)
>
> for this:
>
> Wdj-bart
> C Var(warn_dj2) Mask(BART)
> Warn about DJ bart
>
> with these errors:
>
> #error too many target masks
> #error too many masks for warn_dj
If you and Richard are agreed, then this is OK with a Changelog.
Neil.