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


> ...why?  Do you really have > 31 masks that need to be controlled
> by the configury machinery?  If not, you can just use Var(...)s.
> (And that was the reason why I started on the target .opt thing
> in the first place.)

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.

Also, given that gcc's memory footprint keeps growing, it seems
wasteful to use a huge 32 bit variable to store only one bit of data ;-)


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