diff options
author | David Malcolm <dmalcolm@redhat.com> | 2018-12-20 14:18:48 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2018-12-20 14:18:48 +0000 |
commit | 573767d4d2cbea5ba5c6de753455055fe4de355d (patch) | |
tree | 299ef323018ddbe9a66484111699585cbff65fa4 /gcc/c | |
parent | 49fb2968516474bf2d825b62933e2ddcdef2c296 (diff) | |
download | gcc-573767d4d2cbea5ba5c6de753455055fe4de355d.zip gcc-573767d4d2cbea5ba5c6de753455055fe4de355d.tar.gz gcc-573767d4d2cbea5ba5c6de753455055fe4de355d.tar.bz2 |
-Wtautological-compare: fix comparison of macro expansions
gcc/c-family/ChangeLog:
PR c++/87504
* c-warn.c (get_outermost_macro_expansion): New function.
(spelled_the_same_p): Use it to unwind the macro expansions, and
compare the outermost macro in each nested expansion, rather than
the innermost.
gcc/testsuite/ChangeLog:
PR c++/87504
* c-c++-common/Wtautological-compare-8.c: New test.
From-SVN: r267299
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions