diff options
author | Patrick Palka <ppalka@gcc.gnu.org> | 2016-04-07 16:12:05 +0000 |
---|---|---|
committer | Patrick Palka <ppalka@gcc.gnu.org> | 2016-04-07 16:12:05 +0000 |
commit | 0146e25f9098f7ae86a2c4798668784f0928b5af (patch) | |
tree | 1b70b58146831b251b514bfafe6d51777e32e783 /gcc/testsuite/c-c++-common/attr-simd.c | |
parent | 9817ae350c2d63997551eb8fab3df34ff70ebd32 (diff) | |
download | gcc-0146e25f9098f7ae86a2c4798668784f0928b5af.zip gcc-0146e25f9098f7ae86a2c4798668784f0928b5af.tar.gz gcc-0146e25f9098f7ae86a2c4798668784f0928b5af.tar.bz2 |
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.
From-SVN: r234810
Diffstat (limited to 'gcc/testsuite/c-c++-common/attr-simd.c')
0 files changed, 0 insertions, 0 deletions