re PR middle-end/80222 (may_alias folded away)
authorRichard Biener <rguenther@suse.de>
Tue, 28 Mar 2017 10:10:01 +0000 (10:10 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 28 Mar 2017 10:10:01 +0000 (10:10 +0000)
commit737f500a0bb2cfdf1e28975a27403e555ede633e
treee79b9e94380748bba99a522e52b8dd348721a2c6
parent62f96a79f10e0c6772e5302c076b8c062e42b0d9
re PR middle-end/80222 (may_alias folded away)

2017-03-28  Richard Biener  <rguenther@suse.de>

PR middle-end/80222
* gimple-fold.c (gimple_fold_indirect_ref): Do not touch
TYPE_REF_CAN_ALIAS_ALL references.
* fold-const.c (fold_indirect_ref_1): Likewise.

* g++.dg/pr80222.C: New testcase.

From-SVN: r246527
gcc/ChangeLog
gcc/fold-const.c
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr80222.C [new file with mode: 0644]