Loading...

gcc@gcc.gnu.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: Option ordering Diego Novillo Thu May 31 00:00:35 2007

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.