This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/79089] [7 Regression] error: incorrect sharing of tree nodes
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Jan 2017 21:36:03 +0000
- Subject: [Bug middle-end/79089] [7 Regression] error: incorrect sharing of tree nodes
- Auto-submitted: auto-generated
- References: <bug-79089-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79089
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Jan 16 21:35:30 2017
New Revision: 244507
URL: https://gcc.gnu.org/viewcvs?rev=244507&root=gcc&view=rev
Log:
PR c/79089
* gimplify.c (gimplify_init_constructor): If want_value and
object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
fix.
* gcc.c-torture/compile/pr79089.c: New test.
Added:
trunk/gcc/testsuite/gcc.c-torture/compile/pr79089.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimplify.c
trunk/gcc/testsuite/ChangeLog