This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r237151 - in /trunk/gcc: cp/ChangeLog cp/cp-gim...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Mon, 06 Jun 2016 19:48:22 -0000
- Subject: r237151 - in /trunk/gcc: cp/ChangeLog cp/cp-gim...
Author: jakub
Date: Mon Jun 6 19:48:22 2016
New Revision: 237151
URL: https://gcc.gnu.org/viewcvs?rev=237151&root=gcc&view=rev
Log:
PR c++/70847
PR c++/71330
PR c++/71393
* cp-gimplify.c (cp_fold_r): Set *walk_subtrees = 0 and return NULL
right after cp_fold call if cp_fold has returned the same stmt
already in some earlier cp_fold_r call.
(cp_fold_function): Add pset automatic variable, pass its address
to cp_walk_tree.
* g++.dg/opt/pr70847.C: New test.
* g++.dg/ubsan/pr70847.C: New test.
* g++.dg/ubsan/pr71393.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/opt/pr70847.C
trunk/gcc/testsuite/g++.dg/ubsan/pr70847.C
trunk/gcc/testsuite/g++.dg/ubsan/pr71393.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-gimplify.c
trunk/gcc/testsuite/ChangeLog