Commit 610de68d by Richard Biener

re PR tree-optimization/43317 (ICE: Segmentation fault with -fipa-struct-reorg -g)

2010-03-15  Richard Guenther  <rguenther@suse.de>

	PR tree-optimization/43317
	* ipa-struct-reorg.c (create_new_general_access): Update stmt.

	* gcc.dg/pr43317.c: New testcase.

From-SVN: r157457
parent 932e2e64
2010-03-15 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43317
* ipa-struct-reorg.c (create_new_general_access): Update stmt.
2010-03-15 Martin Jambor <mjambor@suse.cz> 2010-03-15 Martin Jambor <mjambor@suse.cz>
PR tree/optimization/43141 PR tree-optimization/43141
* tree-sra.c (create_abstract_origin): New function. * tree-sra.c (create_abstract_origin): New function.
(modify_function): Call create_abstract_origin. (modify_function): Call create_abstract_origin.
......
...@@ -1389,6 +1389,7 @@ create_new_general_access (struct access_site *acc, d_str str) ...@@ -1389,6 +1389,7 @@ create_new_general_access (struct access_site *acc, d_str str)
for now just reset all debug stmts referencing objects that have for now just reset all debug stmts referencing objects that have
been peeled. */ been peeled. */
gimple_debug_bind_reset_value (stmt); gimple_debug_bind_reset_value (stmt);
update_stmt (stmt);
break; break;
default: default:
......
2010-03-15 Richard Guenther <rguenther@suse.de>
PR tree-optimization/43317
* gcc.dg/pr43317.c: New testcase.
2010-03-14 Uros Bizjak <ubizjak@gmail.com> 2010-03-14 Uros Bizjak <ubizjak@gmail.com>
* g++.dg/abi/packed1.C: Expect warning on the alpha*-*-*. * g++.dg/abi/packed1.C: Expect warning on the alpha*-*-*.
......
/* { dg-do compile } */
/* { dg-options "-O -fipa-struct-reorg -fwhole-program -fipa-type-escape -g" } */
extern void *malloc(__SIZE_TYPE__);
struct S {
int i;
};
int main(int argc, char *argv[])
{
int i = argc;
struct S *p = malloc(sizeof (struct S));
return p[i].i;
}
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