This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r278204 - in /trunk/gcc: c/ChangeLog c/c-parser...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 14 Nov 2019 08:14:16 -0000
- Subject: r278204 - in /trunk/gcc: c/ChangeLog c/c-parser...
Author: jakub
Date: Thu Nov 14 08:14:16 2019
New Revision: 278204
URL: https://gcc.gnu.org/viewcvs?rev=278204&root=gcc&view=rev
Log:
* c-parser.c (c_parser_omp_context_selector): Don't require score
argument to fit into shwi, just to be INTEGER_CST. Diagnose
negative score.
* parser.c (cp_parser_omp_context_selector): Don't require score
argument to fit into shwi, just to be INTEGER_CST. Diagnose
negative score.
* pt.c (tsubst_attribute): Likewise.
* c-c++-common/gomp/declare-variant-2.c: Add test for non-integral
score and for negative score.
* c-c++-common/gomp/declare-variant-3.c: Add test for zero score.
* g++.dg/gomp/declare-variant-8.C: Add test for negative and zero
scores.
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-parser.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/c-c++-common/gomp/declare-variant-2.c
trunk/gcc/testsuite/c-c++-common/gomp/declare-variant-3.c
trunk/gcc/testsuite/g++.dg/gomp/declare-variant-8.C