diff options
author | Martin Sebor <msebor@redhat.com> | 2021-07-02 16:16:31 -0600 |
---|---|---|
committer | Martin Sebor <msebor@redhat.com> | 2021-07-02 16:19:35 -0600 |
commit | 6feb628a706e86eb3f303aff388c74bdb29e7381 (patch) | |
tree | ba6a85ba22347904863dc5d156881106a9a667b8 /contrib | |
parent | 9984f63aab93a370101966b7eb198dc61130b3c8 (diff) | |
download | gcc-6feb628a706e86eb3f303aff388c74bdb29e7381.zip gcc-6feb628a706e86eb3f303aff388c74bdb29e7381.tar.gz gcc-6feb628a706e86eb3f303aff388c74bdb29e7381.tar.bz2 |
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.
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions