]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR middle-end/62103 (Incorrect folding of bitfield in a union on big...
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 13 Aug 2014 09:37:41 +0000 (09:37 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Wed, 13 Aug 2014 09:37:41 +0000 (09:37 +0000)
commit6851753fdc2b2d4f1b3c3e7439714e7bd47f44e1
treecb9c76e69a925693431457fc6f0efb9bd3e4111c
parent0402e26894040b7fc16916d976e61500800b60e8
backport: re PR middle-end/62103 (Incorrect folding of bitfield in a union on big endian targets)

2014-08-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    Backport from mainline
    2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    PR middle-end/62103
    * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
    bitfields, that is when size doesn't match the size of type or the
    size of the constructor.

    gcc/testsuite/
    PR middle-end/62103
    * gcc.c-torture/execute/bitfld-6.c: New test.

From-SVN: r213899
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/bitfld-6.c [new file with mode: 0644]