]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c/47963 (ICE: tree check: expected tree that contains 'decl common...
authorJakub Jelinek <jakub@redhat.com>
Thu, 7 Apr 2011 18:27:20 +0000 (20:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 7 Apr 2011 18:27:20 +0000 (20:27 +0200)
commit8732fce0b589de70cc04fd50f4af0d4f08a95357
tree3f27f13eb3b217169abd1c759fdab84eeb069276
parentb748529647205ff2a3bf1f39f570c6ed8c572219
backport: re PR c/47963 (ICE: tree check: expected tree that contains 'decl common' structure, have 'integer_cst' in is_global_var, at tree-flow-inline.h:599 on invalid code with -fopenmp)

Backported from mainline
2011-03-03  Jakub Jelinek  <jakub@redhat.com>

PR c/47963
* gimplify.c (omp_add_variable): Only call omp_notice_variable
on TYPE_SIZE_UNIT if it is a DECL.

* gcc.dg/gomp/pr47963.c: New test.
* g++.dg/gomp/pr47963.C: New test.

From-SVN: r172115
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr47963.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/pr47963.c [new file with mode: 0644]