diff options
author | Jason Merrill <jason@redhat.com> | 2019-09-16 00:34:12 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2019-09-16 00:34:12 -0400 |
commit | c4438114d6133f4266be57b8678c49badbe60145 (patch) | |
tree | 11acc18cc58f5e10db7a779340e601f933d64b7d /gcc/debug.h | |
parent | 27e0979b8b432e5bc109754d4426f49f190b2359 (diff) | |
download | gcc-c4438114d6133f4266be57b8678c49badbe60145.zip gcc-c4438114d6133f4266be57b8678c49badbe60145.tar.gz gcc-c4438114d6133f4266be57b8678c49badbe60145.tar.bz2 |
Handle location wrappers better in warn_logical_operator.
When we introduced location wrappers, we added fold_for_warn to warnings
that are interested in a constant value, or wrapper-stripping to warnings
that are interested in literal constants. This particular warning is
looking for a literal constant, but was wrongly changed to use
fold_for_warn; this patch makes it strip instead.
* c-warn.c (warn_logical_operator): Strip location wrappers. Don't
fold_for_warn in "|| mask" warning.
From-SVN: r275743
Diffstat (limited to 'gcc/debug.h')
0 files changed, 0 insertions, 0 deletions