This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/61534] Wlogical-op should not warn when either operand comes from macro expansion
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 25 Jun 2014 18:09:09 +0000
- Subject: [Bug c/61534] Wlogical-op should not warn when either operand comes from macro expansion
- Auto-submitted: auto-generated
- References: <bug-61534-4 at http dot gcc dot gnu dot org/bugzilla/>
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?