]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Docs, OpenMP: Small fixes to internal OMP_FOR doc.
authorFrederik Harwath <frederik@codesourcery.com>
Mon, 24 Apr 2023 13:53:43 +0000 (15:53 +0200)
committerFrederik Harwath <frederik@codesourcery.com>
Mon, 24 Apr 2023 13:53:43 +0000 (15:53 +0200)
gcc/ChangeLog:

* doc/generic.texi (OpenMP): Add != to allowed
conditions and state that vars can be unsigned.

* tree.def (OMP_FOR): Likewise.

gcc/doc/generic.texi
gcc/tree.def

index 2c14b7abce2db0a3da0a21e916907947cb56a265..8b2882da4fe7da07d22b4e5384d049ba7d3907bf 100644 (file)
@@ -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
index ee02754354f015a16737c7e879d89c3e3be0d5aa..90ceeec0b512bfa5f983359c0af03cc71de32007 100644 (file)
@@ -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