re PR c++/79512 (ICE: Segfault in gimple_build_call_1, at gimple.c:218)
authorJakub Jelinek <jakub@redhat.com>
Thu, 16 Feb 2017 12:02:24 +0000 (13:02 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 16 Feb 2017 12:02:24 +0000 (13:02 +0100)
commitbcac0b4dac8901040c029922589d7a06a119b574
treede1876639993a295084e8ff6f66c03c0d20db2ee
parentcc46a51d4ff8bc1c42b7e6ae472494733bed5c49
re PR c++/79512 (ICE: Segfault in gimple_build_call_1, at gimple.c:218)

PR c++/79512
c/
* c-parser.c (c_parser_omp_target): For -fopenmp-simd
ignore #pragma omp target even when not followed by identifier.
cp/
* parser.c (cp_parser_omp_target): For -fopenmp-simd
ignore #pragma omp target even when not followed by identifier.
testsuite/
* c-c++-common/gomp/pr79512.c: New test.

From-SVN: r245504
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr79512.c [new file with mode: 0644]