Commit 9d2681a3 by Martin Jambor Committed by Martin Jambor

re PR tree-optimization/61090 (ICE in build_ref_for_offset)

2014-05-15  Martin Jambor  <mjambor@suse.cz>

	PR tree-optimization/61090
	* tree-sra.c (sra_modify_expr): Pass the current gsi to
	build_ref_for_model.

testsuite/
	* gcc.dg/tree-ssa/pr61090.c: New test.

From-SVN: r210476
parent 8fa53379
2014-05-15 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/61090
* tree-sra.c (sra_modify_expr): Pass the current gsi to
build_ref_for_model.
2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
......
2014-05-15 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/61090
* gcc.dg/tree-ssa/pr61090.c: New test.
2014-05-15 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/61158
......
/* { dg-do compile } */
/* { dg-options "-O" } */
struct i {
int c;
};
static int
p(struct i a)
{
return 0;
}
void
h(void)
{
struct i z[] = {{ 0 }};
int e[] = {};
int x;
e[0] = p(z[x]) + z[x].c;
}
......@@ -2812,7 +2812,7 @@ sra_modify_expr (tree *expr, gimple_stmt_iterator *gsi, bool write)
{
tree ref;
ref = build_ref_for_model (loc, orig_expr, 0, access, NULL, false);
ref = build_ref_for_model (loc, orig_expr, 0, access, gsi, false);
if (write)
{
......
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