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: [4.5] PR32061 PR36954 Wlogical-op fixes


On Wed, 18 Feb 2009, Manuel López-Ibáñez wrote:

> The following patch makes Wlogical-op warn less (in particular, not
> warn for op && 1 or op && 0), it fixes two bugs and it also enables it
> with Wextra. It also changes the wording of the warning from:
> 
> logical '&&' with non-zero constant will always evaluate as true
> logical '||' with non-zero constant will always evaluate as true
> 
> to:
> 
> logical 'and' applied to non-boolean constant
> logical 'or' applied to non-boolean constant
> 
> Bootstrapped and regression tested on x86_64-unknown-linux-gnu.
> 
> OK for 4.5?

The C parts are OK for 4.5.

-- 
Joseph S. Myers
joseph@codesourcery.com

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