Commit d5fed62d by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/49712 (internal compiler error: in gen_lsm_tmp_name, at…

re PR tree-optimization/49712 (internal compiler error: in gen_lsm_tmp_name, at tree-ssa-loop-im.c:2048)

	PR tree-optimization/49712
	* tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.

	* gcc.c-torture/execute/pr49712.c: New test.

From-SVN: r176195
parent 1be4e803
2011-07-12 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/49712
* tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
* genautomata.c (add_arc): Return void. All callers changed.
......
2011-07-12 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/49712
* gcc.c-torture/execute/pr49712.c: New test.
2011-07-11 Jason Merrill <jason@redhat.com>
PR c++/44609
......
/* PR tree-optimization/49712 */
int a[2], b, c, d, e;
void
foo (int x, int y)
{
}
int
bar (void)
{
int i;
for (; d <= 0; d = 1)
for (i = 0; i < 4; i++)
for (e = 0; e; e = 1)
;
return 0;
}
int
main ()
{
for (b = 0; b < 2; b++)
while (c)
foo (a[b] = 0, bar ());
return 0;
}
......@@ -1982,6 +1982,7 @@ gen_lsm_tmp_name (tree ref)
switch (TREE_CODE (ref))
{
case MEM_REF:
case TARGET_MEM_REF:
gen_lsm_tmp_name (TREE_OPERAND (ref, 0));
lsm_tmp_name_add ("_");
break;
......
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