From patchwork Fri Feb 23 11:25:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 205323 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp518806dyb; Fri, 23 Feb 2024 03:27:04 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVCw/CZL0RIUAl66Kquxy+Bjt7XNLoJbopTED79JvFVCpaSZJ6zK/GqTeYdggcYkiYc6WsGzfsWGjsC9a4QUYkjSJkRiw== X-Google-Smtp-Source: AGHT+IEdGDVqZ+Z7kB3BcSsMNbvKIs8P855234Rr+IiQQglSsTpjhr1Le5y6d4Kzt/68SHzP4sMN X-Received: by 2002:a05:622a:40e:b0:42c:66c9:ed76 with SMTP id n14-20020a05622a040e00b0042c66c9ed76mr2043309qtx.59.1708687624450; Fri, 23 Feb 2024 03:27:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708687624; cv=pass; d=google.com; s=arc-20160816; b=WztNClnJtJTZX39HYKWhenQmbOP/uzy3xXj+AgIH40BG5RznVEbkX7mZRocfsB4MF5 7bBscf6qcDFKa1urLKW1G72m+CVBaSoIcDBFE/479vj9Bu3WjXiZr3FR6V0QnvsyuXSP 1auOS7EiW6facgyCyuYMoBA1z20XDRkn5qsVqfEL28jXljDaco3kV8djflHycoJqf0GK wu6PZU8KVqW+RVaVFWhKWdez0jy91vcZrAHyYM18oNXZ1CcDSQsorN8VOrdx+Kr4znW1 aDril5n6RuHTd9CszIO+mrOfE80VZk50GfVlbhzWWH0W+VM97aPjwe2E4fLt/PzDsQ9B GsvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:from:to :content-language:user-agent:mime-version:date:message-id :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=JbRKjLLj/RaqR7BLhbvzFMYTDNX8lsOMADjnGPOwBV0=; fh=DzHbQ9EbCzBrEBRWJmx/npI45IW4RQ4ZsX6kkKxVBQc=; b=ssJfcE62V+M/ausRxei2OW0XEAvvCXCWjyG7a09gVMl2K1sEFQDmbxKwbAWAdl6fcg h9IWtSS1F1F2seNihkyINTnbbfy3f8oMmTQfWhQ/WUJLpVGg3viA0ftuzuV5Ij2Uh/oq 8My95jKxE6iSHK1ESqltAonK7UTgWZhV6Btzdn6Ua2Y907xlV1vCX9M0gTErNX68AzQl Tvj2Kp0cwEVkRXnATztGp4YCAyRW8Rbisk2U2qpVqMu6UTUS85eYGNrQoZG5nVczY1fR m+N4s1jgX/rRv2fACANVqa/pv5htTn0oMJb0SDRWdN1uXE8V8e5G9YTFr0K1W0SaMYpu 7VGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=OUjj0OEX; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id j11-20020ac8664b000000b0042e4f157265si2979825qtp.241.2024.02.23.03.27.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 03:27:04 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=OUjj0OEX; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 171533858438 for ; Fri, 23 Feb 2024 11:27:04 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id 3E8A1385843B for ; Fri, 23 Feb 2024 11:25:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3E8A1385843B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=baylibre.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3E8A1385843B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::430 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708687560; cv=none; b=pw854k3Nwf+8IslVhpo4hTWQo9E5+mvuhtk5P5+70SkLAx00JejkvFQocPctYqYGcSl+DTP8ioePuneMVH0Z6yw5HElyif3LFrZwCbB4Ut61T7IgLacYic44ox2DWDkp5mw2xP0wkT2ntXiIF1HZPfVbFnzjRC9mxboHibF26nw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708687560; c=relaxed/simple; bh=lwUhTUHPY30nnr6QXq1XoavIHo0nSW0k/MZ75JcKhEE=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=VXYeDxnD6uoA7q99/mBAJwvJZ3tHkQGzR5Gpaee6QcqubOYbg5oK79oChZfqENR9oO5QScEag0PfjabHsk29z8syQcmXG8qatScAuu0onx6v0bAT8oNZL8WUfLcJ6tZDbAO/z6/YpV88H23Xb+0K0fJj1jHNcd1WW9nEBaokY4Y= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-3394ca0c874so476383f8f.2 for ; Fri, 23 Feb 2024 03:25:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1708687557; x=1709292357; darn=gcc.gnu.org; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=JbRKjLLj/RaqR7BLhbvzFMYTDNX8lsOMADjnGPOwBV0=; b=OUjj0OEXaYzc+FuwqWAMZEmE7QIQAUPExUzIUOPlTpQp4Ffw9wIhBLxaigjrxpIU2T HTEvmTGQhA1CrdQ8KHnTPn0ikqr8x6q024sAeDVC2jrcw4tTQ/zmz7PgXzFiDhHjoxDK aIE08YP6gBOjtPKc5PGWxNc9KLTEP/gEGDBGHlBQ/fVg9muVTvbMbs62yh/CeeXl6FYG V16DwNxd7n5OT1+6wgMhPzui4LSYWMZ7PZbU5dIvgyxrPP0nyvlfZ8lBENjAJpoT9u8g FAU2WnU5v9vxNpIhsIKQty+ALqB4qYZVI/QGTQDaP5HEhKjlsdnJRV/Xks1qABel+Vxi EnBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708687557; x=1709292357; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JbRKjLLj/RaqR7BLhbvzFMYTDNX8lsOMADjnGPOwBV0=; b=Bfo5UHf59gszWSbC+YvuFuivsUmT/mGxEXK5kI/LCUPOia/9m/VX27KTDN1vLbiJB9 jZzKQFEDjO+ISkU+KQKCdpqFA28e/GjhkoAcHHL2MkMtZTMFhZcMr8uO0sQh8aXtg1Xy iMZJ+vI6Kv9lk/BxbOO33UxxG9nuuZEsJe52uBmS1fjqTKioTVCgzcQvuZXdtWr5bwYp cK8oraZ3/goSQ30ueLrXJ02YWQIuwOLlVRLUEnzJ+b5aGNgN7B8tgU3U5julPe3kCgIe C4yNKPL1Q5ujk83LOcGy5YNDX+nec7U+tasrdguO9APZr9p5BzC295HxUZp6gqbKlaI4 a5ag== X-Gm-Message-State: AOJu0YyCc2wkgyXsaIDZSwZDel2BXaNcCd3PLpw3jJEmA4BoqiqTXdEX 2yH1lRexEC0JQ9dPhOKIZch7qsMacPXv1R9Cg7oyb4u/F3gbvbOCczUX7mbE6/KPSVBNgHJpXtC vLJs= X-Received: by 2002:adf:f252:0:b0:33d:3098:c1f with SMTP id b18-20020adff252000000b0033d30980c1fmr1254242wrp.44.1708687556892; Fri, 23 Feb 2024 03:25:56 -0800 (PST) Received: from ?IPV6:2001:16b8:2a75:300:4acd:325b:5c39:b10f? (200116b82a7503004acd325b5c39b10f.dip.versatel-1u1.de. [2001:16b8:2a75:300:4acd:325b:5c39:b10f]) by smtp.gmail.com with ESMTPSA id z3-20020adff743000000b0033d6bd4eab9sm2443055wrp.1.2024.02.23.03.25.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 23 Feb 2024 03:25:56 -0800 (PST) Message-ID: <46730498-e4c6-4a9a-bd27-a38f96b683a0@baylibre.com> Date: Fri, 23 Feb 2024 12:25:54 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: gcc-patches , "fortran@gcc.gnu.org" , Jakub Jelinek From: Tobias Burnus Subject: [Patch] Fortran/Openmp: Use OPT_Wopenmp for gfc_match_omp_depobj warning X-Spam-Status: No, score=-13.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791688834468128925 X-GMAIL-MSGID: 1791688834468128925 When checking something else, I noticed that there was one warning in openmp.cc that did not use OPT_Wopenmp. I intent to commit the attached patch later today as obvious. Tobias Fortran/Openmp: Use OPT_Wopenmp for gfc_match_omp_depobj warning gcc/fortran/ChangeLog: * openmp.cc (gfc_match_omp_depobj): Use OPT_Wopenmp as warning category in gfc_warning. gcc/fortran/openmp.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/fortran/openmp.cc b/gcc/fortran/openmp.cc index 77f6e1732f9..38de60238c0 100644 --- a/gcc/fortran/openmp.cc +++ b/gcc/fortran/openmp.cc @@ -4768,8 +4768,8 @@ gfc_match_omp_depobj (void) if (gfc_match (" ( %v ) ", &destroyobj) == MATCH_YES) { if (destroyobj->symtree != depobj->symtree) - gfc_warning (0, "The same depend object should be used as DEPOBJ " - "argument at %L and as DESTROY argument at %L", + gfc_warning (OPT_Wopenmp, "The same depend object should be used as" + " DEPOBJ argument at %L and as DESTROY argument at %L", &depobj->where, &destroyobj->where); gfc_free_expr (destroyobj); }