This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/34465] [4.3 Regression] incorrect sharing of tree nodes
- From: "aldyh at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jan 2008 14:50:15 -0000
- Subject: [Bug tree-optimization/34465] [4.3 Regression] incorrect sharing of tree nodes
- References: <bug-34465-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from aldyh at gcc dot gnu dot org 2008-01-04 14:50 -------
Subject: Bug 34465
Author: aldyh
Date: Fri Jan 4 14:49:28 2008
New Revision: 131323
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131323
Log:
PR tree-optimization/34448
PR tree-optimization/34465
* gimplify.c (gimplify_init_constructor): Add new parameter
notify_temp_creation. Use it.
(gimplify_modify_expr_rhs): Take volatiles into account when
optimizing constructors.
Do not optimize constructors if gimplify_init_constructor will dump to
memory.
* gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
* gcc.c-torture/compile/pr34448.c: New.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr34448.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimplify.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/pr32901.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34465