]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/ChangeLog
re PR c++/63249 ([OpenMP] Spurious »set but not used« warnings when actually used...
authorJakub Jelinek <jakub@redhat.com>
Thu, 25 Sep 2014 06:47:43 +0000 (08:47 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 25 Sep 2014 06:47:43 +0000 (08:47 +0200)
commitd90c0a5980ceedb40f9f7536c32f17856997435a
tree11854d3aa5d168c198966468dbfb18b3c2fd2f09
parenta16ee37946f575365bb39d238863422465902054
re PR c++/63249 ([OpenMP] Spurious »set but not used« warnings when actually used in OpenMP target's array section's lower-bound and length)

PR c++/63249
* semantics.c (handle_omp_array_sections_1): Call mark_rvalue_use
on low_bound and length.

* g++.dg/gomp/pr63249.C: New test.
* c-c++-common/gomp/pr63249.c: New test.

2014-09-25  Thomas Schwinge  <thomas@codesourcery.com>

PR c++/63249
* c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
on low_bound and length.

From-SVN: r215580
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr63249.c [new file with mode: 0644]
gcc/testsuite/g++.dg/gomp/pr63249.C [new file with mode: 0644]