https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84628
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Mar 2 16:19:43 2018 New Revision: 258140 URL: https://gcc.gnu.org/viewcvs?rev=258140&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/gcc.dg/pr84628.c Modified: trunk/gcc/ChangeLog trunk/gcc/expr.c trunk/gcc/testsuite/ChangeLog