re PR c/48778 (gcc 4.6 -Waddress adds unhelpful new warning case when using from...
authorMarek Polacek <polacek@redhat.com>
Wed, 4 May 2016 13:46:15 +0000 (13:46 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 4 May 2016 13:46:15 +0000 (13:46 +0000)
commitde55efd5a26ac59b22099af9384d9014ca522576
tree497a6cd6c5659738c48cd499a417ed9968eae538
parentec6be46228e05303e920886d1baf66323457738b
re PR c/48778 (gcc 4.6 -Waddress adds unhelpful new warning case when using from a macro)

PR c/48778
* c-typeck.c (build_binary_op): Don't issue -Waddress warnings
for macro expansions.

* gcc.dg/Waddress-2.c: New test.

From-SVN: r235878
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Waddress-2.c [new file with mode: 0644]