Commit 28afe3fc by Martin Jambor Committed by Martin Jambor

re PR tree-optimization/55355 (internal compiler error: in tree_low_cst, at tree.c:6415)

2012-12-21  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/55355
	* tree-sra.c (type_internals_preclude_sra_p): Also check that
	bit_position is small enough to fit a single HOST_WIDE_INT.

	* testsuite/g++.dg/torture/pr55355.C: New test.

From-SVN: r194682
parent c84a808e
2012-12-21 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/55355
* tree-sra.c (type_internals_preclude_sra_p): Also check that
bit_position is small enough to fit a single HOST_WIDE_INT.
2012-12-21 Eric Botcazou <ebotcazou@adacore.com>
* rtlanal.c (volatile_insn_p): Delete commented out code.
2012-12-21 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/55355
* g++.dg/torture/pr55355.C: New test.
2012-12-21 Vladimir Makarov <vmakarov@redhat.com>
PR middle-end/55775
......
/* { dg-do compile } */
struct A
{
void funcA(void);
};
struct B {};
struct C
{
void funcC(void) { a_mp->funcA(); }
char buf_ma[268435456];
A *a_mp;
B b_m;
};
void
func(C *c_p)
{
c_p->funcC();
}
......@@ -714,7 +714,12 @@ type_internals_preclude_sra_p (tree type, const char **msg)
{
*msg = "structure field size not fixed";
return true;
}
}
if (!host_integerp (bit_position (fld), 0))
{
*msg = "structure field size too big";
return true;
}
if (AGGREGATE_TYPE_P (ft)
&& int_bit_position (fld) % BITS_PER_UNIT != 0)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment