This is the mail archive of the gcc-bugs@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]

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


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?

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