From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by sourceware.org (Postfix) with ESMTPS id 5EA2439960D8 for ; Thu, 24 Jun 2021 05:09:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5EA2439960D8 Received: by mail-pg1-x530.google.com with SMTP id t9so3741083pgn.4 for ; Wed, 23 Jun 2021 22:09:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=jpAasE417vyt8zf8oNr+rByEMJXawUAK1wPWLC4Jt54=; b=tHu9NUS2AMcKgrVp4IKITltBsUy41zKaA5LTZpzxhunee4uAGGDriPli+JG3YZhyrE +kVopEg76Eze1FQH8zV6hllwuTK0kwKe5ZG1wgp7DvsJgOCuE8zpcOZcyArFjtNZazwU OW3h1IpEnFX5+batRpUCSU6Z0VttqR6yX/Vg2D2wtTcBcMaWVt1vbLXUWJGv+UobPTpJ 7qfuelACr5C0ja2eA3EJ7WOIXdkaYof2g/EmnWaPwtln0fkuYkbXg7R0NDKAGg+Dybrt 3m2nRa78aT+69sKGR3OxHwip2Kw3+x5twR0hoYimNzyBefW3pEF4v687LXr+jdiYoL+X w4Ow== X-Gm-Message-State: AOAM531OWd+4Cwzm4LoB0ijg+zm6rSdmidvDnP2XC7wN+28OIAIGzTof eoMMo5dA7Vz+duO4eMPSS/8s5DU3EiALoQ== X-Google-Smtp-Source: ABdhPJxOQMdzYmiccDeC5Jel9KYES4NHYNBOlRsltF6i1T6yc7KLt+emRTRCjX1nPe5ERj0nHpgh4A== X-Received: by 2002:a65:4689:: with SMTP id h9mr3042296pgr.347.1624511367463; Wed, 23 Jun 2021 22:09:27 -0700 (PDT) Received: from [192.168.1.39] (65-130-74-37.slkc.qwest.net. [65.130.74.37]) by smtp.gmail.com with ESMTPSA id b6sm1366693pfo.64.2021.06.23.22.09.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Jun 2021 22:09:27 -0700 (PDT) Subject: Re: [PATCH 3/13] v2 Use new per-location warning APIs in C front end To: Martin Sebor , gcc-patches References: <92db3776-af59-fa20-483b-aa67b17d0751@gmail.com> <47d06c821a53f5bd2246f0fca2c9a693bff6b882.camel@redhat.com> <3a5ea83c-0d91-d123-f537-f8f1223df890@gmail.com> <8a7235a2-93ed-a9ed-bd22-1353ad56f009@gmail.com> From: Jeff Law Message-ID: <4df55abb-06dd-b776-d805-d093f547adfb@gmail.com> Date: Wed, 23 Jun 2021 23:09:26 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <8a7235a2-93ed-a9ed-bd22-1353ad56f009@gmail.com> Content-Language: en-US X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2021 05:09:30 -0000 On 6/4/2021 3:41 PM, Martin Sebor via Gcc-patches wrote: > The attached patch replaces the uses of TREE_NO_WARNING in the C front > end with the new suppress_warning(), warning_suppressed_p(), and > copy_warning() APIs. > > gcc-no-warning-c.diff > > Add support for per-location warning groups. > > 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. OK once prereqs are approved. jeff