https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62103
--- Comment #4 from thopre01 at gcc dot gnu.org --- Author: thopre01 Date: Wed Aug 13 09:37:41 2014 New Revision: 213899 URL: https://gcc.gnu.org/viewcvs?rev=213899&root=gcc&view=rev Log: 2014-08-13 Thomas Preud'homme <thomas.preudho...@arm.com> Backport from mainline 2014-08-12 Thomas Preud'homme <thomas.preudho...@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. Added: branches/gcc-4_8-branch/gcc/testsuite/gcc.c-torture/execute/bitfld-6.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/gimple-fold.c branches/gcc-4_8-branch/gcc/testsuite/ChangeLog