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 tree-optimization/81884] [6/7 Regression] Invalid code generation with zero size arrays or flexible array members


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81884

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Aug 21 07:37:59 2017
New Revision: 251217

URL: https://gcc.gnu.org/viewcvs?rev=251217&root=gcc&view=rev
Log:
2017-08-21  Richard Biener  <rguenther@suse.de>

        PR middle-end/81884
        * tree-ssa-alias.c (stmt_kills_ref_p): Handle array accesses
        at struct end conservatively when comparing common bases.

        * g++.dg/torture/pr81884.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/torture/pr81884.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-alias.c

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