Fix description of OpenMP parallel directive in the C and C++ front ends.
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 17 Dec 2013 15:21:07 +0000 (16:21 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Tue, 17 Dec 2013 15:21:07 +0000 (16:21 +0100)
gcc/c/
* c-parser.c (c_parser_omp_parallel): Fix description.
gcc/cp/
* parser.c (cp_parser_omp_parallel): Fix description.

From-SVN: r206052

gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c

index 17ca2c5..9db78c6 100644 (file)
@@ -1,3 +1,7 @@
+2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * c-parser.c (c_parser_omp_parallel): Fix description.
+
 2013-12-11  Balaji V. Iyer  <balaji.v.iyer@intel.com>
 
        * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
index c78d269..28f53c1 100644 (file)
@@ -12032,9 +12032,16 @@ c_parser_omp_sections (location_t loc, c_parser *parser,
 }
 
 /* OpenMP 2.5:
-   # pragma parallel parallel-clause new-line
-   # pragma parallel for parallel-for-clause new-line
-   # pragma parallel sections parallel-sections-clause new-line
+   # pragma omp parallel parallel-clause[optseq] new-line
+     structured-block
+   # pragma omp parallel for parallel-for-clause[optseq] new-line
+     structured-block
+   # pragma omp parallel sections parallel-sections-clause[optseq] new-line
+     structured-block
+
+   OpenMP 4.0:
+   # pragma omp parallel for simd parallel-for-simd-clause[optseq] new-line
+     structured-block
 
    LOC is the location of the #pragma token.
 */
index 5cb02e2..d44ff7c 100644 (file)
@@ -1,3 +1,7 @@
+2013-12-17  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * parser.c (cp_parser_omp_parallel): Fix description.
+
 2013-12-12  Jason Merrill  <jason@redhat.com>
 
        PR c++/58954
index dd02734..9f8ad39 100644 (file)
@@ -29512,12 +29512,16 @@ cp_parser_omp_sections (cp_parser *parser, cp_token *pragma_tok,
 }
 
 /* OpenMP 2.5:
-   # pragma parallel parallel-clause new-line
-   # pragma parallel for parallel-for-clause new-line
-   # pragma parallel sections parallel-sections-clause new-line
+   # pragma omp parallel parallel-clause[optseq] new-line
+     structured-block
+   # pragma omp parallel for parallel-for-clause[optseq] new-line
+     structured-block
+   # pragma omp parallel sections parallel-sections-clause[optseq] new-line
+     structured-block
 
    OpenMP 4.0:
-   # pragma parallel for simd parallel-for-simd-clause new-line */
+   # pragma omp parallel for simd parallel-for-simd-clause[optseq] new-line
+     structured-block */
 
 #define OMP_PARALLEL_CLAUSE_MASK                               \
        ( (OMP_CLAUSE_MASK_1 << PRAGMA_OMP_CLAUSE_IF)           \