re PR middle-end/79089 (error: incorrect sharing of tree nodes)
authorJakub Jelinek <jakub@redhat.com>
Mon, 16 Jan 2017 21:35:30 +0000 (22:35 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 16 Jan 2017 21:35:30 +0000 (22:35 +0100)
commit98e92fb2104bcee038c0de4a116424b093001ae6
treeee97ac356e8734e988a1ffa5b6f8e942425a0f7c
parente1bcfb924ae9b6dffd7757a6f1a193793af58c2f
re PR middle-end/79089 (error: incorrect sharing of tree nodes)

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.

From-SVN: r244507
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr79089.c [new file with mode: 0644]