re PR ipa/84628 (attribute(warning/error) functions should not be merged together)
authorJakub Jelinek <jakub@redhat.com>
Fri, 2 Mar 2018 16:19:43 +0000 (17:19 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 2 Mar 2018 16:19:43 +0000 (17:19 +0100)
commit16225110ca8ae760f001c57571fa7e7e03c2c1fc
tree507c8717f341392d7b3c7b820b83416ffbd72560
parente3a72bc5dba4df94f74e6c49849e7b1b0c45ac11
re PR ipa/84628 (attribute(warning/error) functions should not be merged together)

PR ipa/84628
* expr.c (expand_expr_real_1) <case CALL_EXPR>: Don't emit diagnostics
for error or warning attributes if CALL_FROM_THUNK_P is set.
Formatting fixes.

* gcc.dg/pr84628.c: New test.

Co-Authored-By: Richard Biener <rguenther@suse.de>
From-SVN: r258140
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84628.c [new file with mode: 0644]