[Bug c/61534] Wlogical-op should not warn when either operand comes from macro expansion

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 25 18:09:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61534

--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Marek Polacek from comment #1)
> and then we could use from_macro_expansion_at and don't warn if it's true. 
> But the problem is with -ftrack-macro-expansion=0, since
> from_macro_expansion_at wouldn't work :(.

I think warning in that case (returning false in the macro) is fair. One cannot
expect to turn off features and get the same quality. Is
ftrack-macro-expansion=0 used when bootstrapping gcc?


More information about the Gcc-bugs mailing list