[Bug middle-end/62103] Incorrect folding of bitfield in a union on big endian targets
thopre01 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 12 02:37:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62103
--- Comment #3 from thopre01 at gcc dot gnu.org ---
Author: thopre01
Date: Tue Aug 12 02:36:37 2014
New Revision: 213846
URL: https://gcc.gnu.org/viewcvs?rev=213846&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/gcc.c-torture/execute/bitfld-6.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gimple-fold.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list