re PR middle-end/62103 (Incorrect folding of bitfield in a union on big endian targets)
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 4 Feb 2015 08:22:45 +0000 (08:22 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Wed, 4 Feb 2015 08:22:45 +0000 (08:22 +0000)
commitcc9ef6a6419a8c343a5f0d233405411e8c5ca4cc
treee96e1033253fd235a5ba2291f141bd766024c589
parent6a5fd0f8c1ecdae5c74fd058c524efdc44f87b80
re PR middle-end/62103 (Incorrect folding of bitfield in a union on big endian targets)

2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    PR middle-end/62103
    * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
    to compute size of referenced value in the constant case.

    gcc/testsuite/
    PR middle-end/62103
    * gcc.c-torture/execute/bitfld-7.c: New test adapted from bitfld-6.c
    to use 24 bits for bitfield b.

From-SVN: r220390
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/bitfld-7.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c