re PR tree-optimization/69355 (Wrong results with -O1 optimization)
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 Jan 2016 07:59:32 +0000 (08:59 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 21 Jan 2016 07:59:32 +0000 (08:59 +0100)
commit5463c2c89362c64ad49953bd06e10cc8925bfe06
treecba686a88e409c5c096dcbba16a02aa2df958b48
parent2ef59b981131e0fd8ef2c2b1c4862d490210390a
re PR tree-optimization/69355 (Wrong results with -O1 optimization)

PR c++/69355
* tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
for bitsize instead of GET_MODE_PRECISION (mode).

* g++.dg/torture/pr69355.C: New test.

From-SVN: r232663
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr69355.C [new file with mode: 0644]
gcc/tree-dfa.c