Re: Option ordering

2007-05-31 Thread Ian Lance Taylor
Sergei Organov <[EMAIL PROTECTED]> writes: > I like the idea. I'd also suggest that group options won't do anything > else but affecting [default values of] simple options. It means that one > will be able to substitute a set of simple options for a "group option" > without change in behavior (for

Re: Option ordering

2007-05-31 Thread Sergei Organov
"Manuel López-Ibáñez" <[EMAIL PROTECTED]> writes: > On 30 May 2007 16:12:12 -0700, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: >> Joe Buck <[EMAIL PROTECTED]> writes: >> >> > How about: have -Wall still set warn_strict_overflow >> > to 1, but to have -Wall -Wstrict-overflow *or* -Wstrict-overflow

Re: Option ordering

2007-05-31 Thread Manuel López-Ibáñez
On 31/05/07, Jakub Jelinek <[EMAIL PROTECTED]> wrote: 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*

Re: Option ordering

2007-05-31 Thread Jakub Jelinek
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 w

Re: Option ordering

2007-05-30 Thread Diego Novillo
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 wa

Re: Option ordering

2007-05-30 Thread Manuel López-Ibáñez
On 30 May 2007 16:12:12 -0700, Ian Lance Taylor <[EMAIL PROTECTED]> wrote: Joe Buck <[EMAIL PROTECTED]> writes: > 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 cha

Re: Option ordering

2007-05-30 Thread Ian Lance Taylor
Joe Buck <[EMAIL PROTECTED]> writes: > 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. Sure, makes sen

Re: Option ordering

2007-05-30 Thread Joe Buck
On Wed, May 30, 2007 at 03:48:05PM -0700, Ian Lance Taylor wrote: > http://gcc.gnu.org/PR32102 is about the fact that -Wall > -Wstrict-overflow is not the same as -Wstrict-overflow -Wall (i.e., > the order of the options matter). The reason is that -Wall sets > warn_strict_overflow to 1 and -Wstri

Option ordering

2007-05-30 Thread Ian Lance Taylor
http://gcc.gnu.org/PR32102 is about the fact that -Wall -Wstrict-overflow is not the same as -Wstrict-overflow -Wall (i.e., the order of the options matter). The reason is that -Wall sets warn_strict_overflow to 1 and -Wstrict-overflow sets warn_strict_overflow to 2. It is normal and expected tha