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

--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <mse...@gcc.gnu.org>:

https://gcc.gnu.org/g:6feb628a706e86eb3f303aff388c74bdb29e7381

commit r12-1992-g6feb628a706e86eb3f303aff388c74bdb29e7381
Author: Martin Sebor <mse...@redhat.com>
Date:   Fri Jul 2 16:16:31 2021 -0600

    Improve warning suppression for inlined functions [PR98512].

    Resolves:
    PR middle-end/98871 - Cannot silence -Wmaybe-uninitialized at declaration
site
    PR middle-end/98512 - #pragma GCC diagnostic ignored ineffective in
conjunction with alias attribute

    gcc/ChangeLog:

            PR middle-end/98871
            PR middle-end/98512
            * diagnostic.c (get_any_inlining_info): New.
            (update_effective_level_from_pragmas): Handle inlining context.
            (diagnostic_enabled): Same.
            (diagnostic_report_diagnostic): Same.
            * diagnostic.h (struct diagnostic_info): Add ctor.
            (struct diagnostic_context): Add new member.
            * tree-diagnostic.c (set_inlining_locations): New.
            (tree_diagnostics_defaults): Set new callback pointer.

Reply via email to