This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/79089] [7 Regression] error: incorrect sharing of tree nodes


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]