On Wed, May 30, 2007 at 09:23:34PM -0400, Diego Novillo wrote: > On 5/30/07 7:07 PM, Joe Buck wrote: > > > How about: have -Wall still set warn_strict_overflow > > to 1, but to have -Wall -Wstrict-overflow *or* -Wstrict-overflow -Wall > > *or* just -Wstrict-overflow set it to 2? The only change would be > > to prevent -Wall from *decreasing* the value. > > Yes. My idea was along similar lines. Given an umbrella option like > -Wall or -Ox, it should only set specific options iff those options are > not present in the command line. > > That means that we have to have presence bits for each option.
Or evaluate first the group options (-W{,no}-all, -Wextra, -O{,0,1,2,3,s}) and then all other options. Jakub