From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1534) id 7EFD8385840C; Fri, 23 Feb 2024 12:14:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7EFD8385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708690469; bh=6ufSUqJLRI4F82lLfJc4XhAKA/WaVT+gzpT3QVql4jo=; h=From:To:Subject:Date:From; b=OO+aYGiU2Ux/fuFgo/7JHirESagdcGqcHnSsIpE4Vlr+jzAvB4eUYdiN6cg/9aEw+ HFftzgOw71VTaWUJldJWnV7HuK7te9Xhg+pU4ZltI6549sG7ocoNKwB96jfDayUPfx HPG1F1h07kiHYdAOrGNaVvKC+9h0Mekc36aLkMHU= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Tobias Burnus To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-9153] Fortran/Openmp: Use OPT_Wopenmp for gfc_match_omp_depobj warning X-Act-Checkin: gcc X-Git-Author: Tobias Burnus X-Git-Refname: refs/heads/master X-Git-Oldrev: 016c4eed368b80a97101f6156ed99e4c5474fbb7 X-Git-Newrev: 9266d9fce2ca8ec704b932e8af7ab04432772c44 Message-Id: <20240223121429.7EFD8385840C@sourceware.org> Date: Fri, 23 Feb 2024 12:14:29 +0000 (GMT) List-Id: https://gcc.gnu.org/g:9266d9fce2ca8ec704b932e8af7ab04432772c44 commit r14-9153-g9266d9fce2ca8ec704b932e8af7ab04432772c44 Author: Tobias Burnus Date: Fri Feb 23 13:12:48 2024 +0100 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. Diff: --- 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 77f6e1732f92..38de60238c0e 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); }