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: [C/C++/IRA] PR 16302 gcc fails to warn about some common logic errors


Manuel López-Ibáñez wrote:

> -Wlogical-op has never been part of -Wextra in any released GCC.

OK, I think that's a good argument for moving it back out, then.

> On the other hand, I wonder if some of the warnings are just some bug
> in the logic, like the one for "if (foo & 0 && x)" that I fixed
> already. Those could (and should) be fixed.

Yes, of course, we should try to make the warning as sensible as special.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713


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