re PR tree-optimization/81884 (Invalid code generation with zero size arrays or flexi...
authorRichard Biener <rguenther@suse.de>
Mon, 21 Aug 2017 07:37:59 +0000 (07:37 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 21 Aug 2017 07:37:59 +0000 (07:37 +0000)
commit8322b607d60d721542792af78b84e9069ea1a662
treef862273caec95a27fb0f0dffcb2344c356018a6c
parent5164293abdea95879f97d4ad711aee010cdbbc95
re PR tree-optimization/81884 (Invalid code generation with zero size arrays or flexible array members)

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.

From-SVN: r251217
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr81884.C [new file with mode: 0644]
gcc/tree-ssa-alias.c