r234810 - in /trunk/gcc/cp: ChangeLog constexpr.c
ppalka@gcc.gnu.org
ppalka@gcc.gnu.org
Thu Apr 7 16:12:00 GMT 2016
Author: ppalka
Date: Thu Apr 7 16:12:05 2016
New Revision: 234810
URL: https://gcc.gnu.org/viewcvs?rev=234810&root=gcc&view=rev
Log:
Avoid needless unsharing during constexpr evaluation (PR c++/70452)
gcc/cp/ChangeLog:
PR c++/70452
* constexpr.c (find_constructor): New function.
(unshare_constructor): New function.
(cxx_eval_call_expression): Use unshare_constructor instead of
unshare_expr.
(find_array_ctor_elt): Likewise.
(cxx_eval_vec_init_1): Likewise.
(cxx_eval_store_expression): Likewise.
(cxx_eval_constant_expression): Likewise.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
More information about the Gcc-cvs
mailing list