From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2102) id 295003858D1E; Mon, 24 Apr 2023 14:01:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 295003858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1682344867; bh=DM3KMXDw7v/zdVVOkmcrbna0lLfRUf2Zj1L/acLfLKc=; h=From:To:Subject:Date:From; b=j8TReYA7XM/LfqJVGFkNt9+IVo9ot7v83Kz2i/IvRRXTlbtiX6zd9HWZozHHEvGF9 nCXqPjKgP3gTBerWYIEB+5y05BYyH3OFRsSG/zZ1TGw+EftFPwx1/R4oxbxiqtoWTH Ej+EfF5RNNuA47S7L/LHMr/yASeYohui/SB7NMe4= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Frederik Harwath To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-197] Docs, OpenMP: Small fixes to internal OMP_FOR doc. X-Act-Checkin: gcc X-Git-Author: Frederik Harwath X-Git-Refname: refs/heads/master X-Git-Oldrev: b98c63e9e8ceaf9e04c28d83500f98313284c7f8 X-Git-Newrev: b6d8e2975a9e1b9c3e839c09f265cd40426d23c1 Message-Id: <20230424140107.295003858D1E@sourceware.org> Date: Mon, 24 Apr 2023 14:01:07 +0000 (GMT) List-Id: https://gcc.gnu.org/g:b6d8e2975a9e1b9c3e839c09f265cd40426d23c1 commit r14-197-gb6d8e2975a9e1b9c3e839c09f265cd40426d23c1 Author: Frederik Harwath Date: Mon Apr 24 15:53:43 2023 +0200 Docs, OpenMP: Small fixes to internal OMP_FOR doc. gcc/ChangeLog: * doc/generic.texi (OpenMP): Add != to allowed conditions and state that vars can be unsigned. * tree.def (OMP_FOR): Likewise. Diff: --- gcc/doc/generic.texi | 4 ++-- gcc/tree.def | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/doc/generic.texi b/gcc/doc/generic.texi index 2c14b7abce2..8b2882da4fe 100644 --- a/gcc/doc/generic.texi +++ b/gcc/doc/generic.texi @@ -2323,7 +2323,7 @@ Operand @code{OMP_FOR_INIT} is a vector containing iteration variable initializations of the form @code{VAR = N1}. Operand @code{OMP_FOR_COND} is vector containing loop -conditional expressions of the form @code{VAR @{<,>,<=,>=@} N2}. +conditional expressions of the form @code{VAR @{<,>,<=,>=,!=@} N2}. Operand @code{OMP_FOR_INCR} is a vector containing loop index increment expressions of the form @code{VAR @{+=,-=@} INCR}. @@ -2349,7 +2349,7 @@ adjust their data-sharing attributes and diagnose errors. @code{OMP_FOR_ORIG_DECLS} is a vector field, with each element holding a list of @code{VAR_DECLS} for the corresponding collapse level. -The loop index variable @code{VAR} must be a signed integer variable, +The loop index variable @code{VAR} must be an integer variable, which is implicitly private to each thread. For rectangular loops, the bounds @code{N1} and @code{N2} and the increment expression @code{INCR} are required to be loop-invariant integer expressions diff --git a/gcc/tree.def b/gcc/tree.def index ee02754354f..90ceeec0b51 100644 --- a/gcc/tree.def +++ b/gcc/tree.def @@ -1159,7 +1159,7 @@ DEFTREECODE (OMP_TASK, "omp_task", tcc_statement, 2) variable initializations of the form VAR = N1. Operand 3: OMP_FOR_COND is vector containing loop - conditional expressions of the form VAR {<,>,<=,>=} N2. + conditional expressions of the form VAR {<,>,<=,>=,!=} N2. Operand 4: OMP_FOR_INCR is a vector containing loop index increment expressions of the form VAR {+=,-=} INCR. @@ -1185,7 +1185,7 @@ DEFTREECODE (OMP_TASK, "omp_task", tcc_statement, 2) OMP_FOR_ORIG_DECLS is a vector field, with each element holding a list of VAR_DECLS for the corresponding collapse level. - The loop index variable VAR must be a signed integer variable, + The loop index variable VAR must be an integer variable, which is implicitly private to each thread. For rectangular loops, the bounds N1 and N2 and the increment expression INCR are required to be loop-invariant integer expressions