On 6/4/2021 3:43 PM, Martin Sebor via Gcc-patches wrote:
The attached patch replaces the uses of TREE_NO_WARNING in
the Objective-C front end with the new suppress_warning(),
warning_suppressed_p(), and copy_warning() APIs.

gcc-no-warning-objc.diff

Add support for per-location warning groups.

gcc/objc/ChangeLog:

        * objc-act.c (objc_maybe_build_modify_expr): Replace direct uses
        of TREE_NO_WARNING with warning_suppressed_p, and suppress_warning.
        (objc_build_incr_expr_for_property_ref): Same.
        (objc_build_struct): Same.
        (synth_module_prologue): Same.
        * objc-gnu-runtime-abi-01.c (gnu_runtime_01_initialize): Same.
        * objc-next-runtime-abi-01.c (next_runtime_01_initialize): Same.
        * objc-next-runtime-abi-02.c (next_runtime_02_initialize): Same.
OK once prereqs are approved.

Jeff

Reply via email to