https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84628

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Mar  3 13:43:30 2018
New Revision: 258208

URL: https://gcc.gnu.org/viewcvs?rev=258208&root=gcc&view=rev
Log:
        Backported from mainline
        2018-03-02  Jakub Jelinek  <ja...@redhat.com>
                    Richard Biener  <rguent...@suse.de>

        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:
    branches/gcc-7-branch/gcc/testsuite/gcc.dg/pr84628.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/expr.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Reply via email to