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: 86270 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C2DD83858010 for ; Fri, 23 Feb 2024 11:26:48 +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-Google-Smtp-Source: AGHT+IE2yh0B+ynILJ2r8VGEzqo0MpHI2bcaWfiHQ1dnU4E489pYEljGDUvco0G/WEiGO6SwNKBs9Q== 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+patchwork=sourceware.org@gcc.gnu.org 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); }