re PR c/79431 (ICE in get, at cgraph.h:397)
authorJakub Jelinek <jakub@redhat.com>
Thu, 9 Feb 2017 14:01:44 +0000 (15:01 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 9 Feb 2017 14:01:44 +0000 (15:01 +0100)
commit56f71478487174d7bacbe51a9c35d23257db905e
treeba5ea5a312dcc3928e3e794b521fe4484cde12e0
parent1bbe0d8f47f2007fcb70d69a0952347ece474ac7
re PR c/79431 (ICE in get, at cgraph.h:397)

PR c/79431
* gimplify.c (gimplify_adjust_omp_clauses): Ignore
"omp declare target link" attribute unless is_global_var.
* omp-offload.c (find_link_var_op): Likewise.
c/
* c-parser.c (c_parser_omp_declare_target): Don't invoke
symtab_node::get on automatic variables.
cp/
* parser.c (cp_parser_oacc_declare): Formatting fix.
(cp_parser_omp_declare_target): Don't invoke symtab_node::get on
automatic variables.
testsuite/
* c-c++-common/gomp/pr79431.c: New test.

From-SVN: r245302
gcc/ChangeLog
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/gimplify.c
gcc/omp-offload.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr79431.c [new file with mode: 0644]