[PATCH] Fix PR64822: incorrect folding of bitfield in union on big endian targets

Jakub Jelinek jakub@redhat.com
Wed Feb 4 07:54:00 GMT 2015


On Wed, Feb 04, 2015 at 10:45:11AM +0800, Thomas Preud'homme wrote:
> 2015-01-30  Thomas Preud'homme  <thomas.preudhomme@arm.com>
> 
> 	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.
> 
> 2015-01-30  Thomas Preud'homme  <thomas.preudhomme@arm.com>
> 
> 	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.

Richard already acked it with the new testcase, so yes, this is ok for the
trunk (just use today's date).

	Jakub



More information about the Gcc-patches mailing list