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
This commit is contained in:
parent
8fa53379d5
commit
9d2681a399
@ -1,3 +1,9 @@
|
||||
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
|
||||
|
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
21
gcc/testsuite/gcc.dg/tree-ssa/pr61090.c
Normal file
21
gcc/testsuite/gcc.dg/tree-ssa/pr61090.c
Normal file
@ -0,0 +1,21 @@
|
||||
/* { 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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user