This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/51360] [4.6/4.7 Regression] spurious unused-but-set-variable warning for var used in OpenMP pragma


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51360

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-15 17:29:29 UTC ---
Author: jakub
Date: Thu Dec 15 17:29:25 2011
New Revision: 182381

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182381
Log:
    PR c/51360
    * c-parser.c (c_parser_omp_clause_num_threads,
    c_parser_omp_clause_schedule): Call mark_exp_read.

    * semantics.c (finish_omp_clauses): For OMP_CLAUSE_NUM_THREADS_EXPR
    and OMP_CLAUSE_SCHEDULE_CHUNK_EXPR call mark_rvalue_use.

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

Added:
    trunk/gcc/testsuite/c-c++-common/gomp/pr51360.c
    trunk/gcc/testsuite/g++.dg/gomp/pr51360.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-parser.c
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]