c: add support for per-location warning groups.
authorMartin Sebor <msebor@redhat.com>
Thu, 24 Jun 2021 21:35:20 +0000 (15:35 -0600)
committerMartin Sebor <msebor@redhat.com>
Fri, 25 Jun 2021 01:23:43 +0000 (19:23 -0600)
commit1ebd2b2c9407796cd526137038b9b885f68ffb4d
tree3cad29c233769e764d045ba8383bcd16df07bb04
parent7036e9ef462fde8181bece4ac4e03f3aa27204dc
c: add support for per-location warning groups.

gcc/ChangeLog:
* tree.h (warning_suppressed_at, copy_warning,
warning_suppressed_p, suppress_warning): New functions.

gcc/c/ChangeLog:

* c-decl.c (pop_scope): Replace direct uses of TREE_NO_WARNING with
warning_suppressed_p, suppress_warning, and copy_no_warning.
(diagnose_mismatched_decls): Same.
(duplicate_decls): Same.
(grokdeclarator): Same.
(finish_function): Same.
(c_write_global_declarations_1): Same.
* c-fold.c (c_fully_fold_internal): Same.
* c-parser.c (c_parser_expr_no_commas): Same.
(c_parser_postfix_expression): Same.
* c-typeck.c (array_to_pointer_conversion): Same.
(function_to_pointer_conversion): Same.
(default_function_array_conversion): Same.
(convert_lvalue_to_rvalue): Same.
(default_conversion): Same.
(build_indirect_ref): Same.
(build_function_call_vec): Same.
(build_atomic_assign): Same.
(build_unary_op): Same.
(c_finish_return): Same.
(emit_side_effect_warnings): Same.
(c_finish_stmt_expr): Same.
(c_omp_clause_copy_ctor): Same.
gcc/c/c-decl.c
gcc/c/c-fold.c
gcc/c/c-parser.c
gcc/c/c-typeck.c
gcc/tree.h