re PR c/65586 (-fopenmp-simd rejects valid input)
authorTobias Burnus <burnus@net-b.de>
Fri, 27 Mar 2015 20:21:52 +0000 (21:21 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 27 Mar 2015 20:21:52 +0000 (21:21 +0100)
commit62021f64e550290e77a8e56270617a0a4ba673da
treead32bfb3fd8ce11eb2a69dff037732d2d6e6fb80
parenta5eef8e9b024741b8d661c628643a9850616b813
re PR c/65586 (-fopenmp-simd rejects valid input)

2015-03-27  Tobias Burnus  <burnus@net-b.de>

        PR c/65586
gcc/c/
        * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
        error out.
        (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
        c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
        Update calls to not error for skipped omp pragmas with -fopenmp-simd.

gcc/cp/
        * parser.c (cp_parser_omp_for, cp_parser_omp_parallel,
        cp_parser_omp_distribute, cp_parser_omp_teams, cp_parser_omp_target,
        cp_parser_omp_declare): Don't show error for skipped omp pragmas
        with -fopenmp-simd.

gcc/testsuite/
        * g++.dg/gomp/openmp-simd-3.C: New.
        * gcc.dg/gomp/openmp-simd-3.c: New.

From-SVN: r221744
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/openmp-simd-3.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/openmp-simd-3.c [new file with mode: 0644]