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: [options] Allow Var() and Mask() to be used together


On Apr 27, 2005, at 2:45 PM, DJ Delorie wrote:
It's for grouping flags that have nothing to do with the target.

The case I was considering was a group of warnings, where you want to
quickly test to see if ANY of the warnings are enabled, but allow
individual testing as well.  Having the warnings be bits sharing an
int variable makes testing them as a group trivial.  This is in the
context of the warning control project I'm working on, where we want
to add fine grained control over warnings without sacrificing
performance.

This is also handy for the optimization pragmas, where you want to save and restore a group of flags on a per-function basis. (My patch for that keeps breaking because other people are changing the same areas, so I'm going to wait for things to settle down.)


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