This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r277814 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 05 Nov 2019 07:46:03 -0000
- Subject: r277814 - in /trunk/gcc: cp/ChangeLog cp/decl.c...
Author: jakub
Date: Tue Nov 5 07:46:03 2019
New Revision: 277814
URL: https://gcc.gnu.org/viewcvs?rev=277814&root=gcc&view=rev
Log:
* decl.c (omp_declare_variant_finalize_one): Call
declare_simd_adjust_this not just on the context, but also on the
variant-id expression for methods. Don't call
cp_get_callee_fndecl_nofold, call cp_get_callee and only if it is
safe cp_get_fndecl_from_callee. Don't try to print as %qD
NULL in diagnostics.
* pt.c (tsubst_attribute): Handle "omp declare variant base"
attribute.
(tsubst_function_decl): Call omp_declare_variant_finalize
if there are any "omp declare variant base" attributes left.
* g++.dg/gomp/declare-variant-7.C: New test.
* g++.dg/gomp/declare-variant-8.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/gomp/declare-variant-7.C
trunk/gcc/testsuite/g++.dg/gomp/declare-variant-8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog