Commit a0f8cad6 by Richard Biener Committed by Richard Biener

re PR tree-optimization/82102 (ICE: Segmentation fault in…

re PR tree-optimization/82102 (ICE: Segmentation fault in /home/arnd/git/gcc/gcc/tree-ssa-pre.c:4863)

2017-09-05  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/82102
	* tree-ssa-pre.c (fini_eliminate): Check if lhs is NULL.

	* gcc.dg/torture/pr82102.c: New testcase.

From-SVN: r251692
parent babf697a
2017-09-05 Richard Biener <rguenther@suse.de>
PR tree-optimization/82102
* tree-ssa-pre.c (fini_eliminate): Check if lhs is NULL.
2017-09-05 Martin Liska <mliska@suse.cz>
PR tree-optimization/82032
......
2017-09-05 Richard Biener <rguenther@suse.de>
PR tree-optimization/82102
* gcc.dg/torture/pr82102.c: New testcase.
2017-09-05 Eric Botcazou <ebotcazou@adacore.com>
* testsuite/gnat.dg/array29.ad[sb]: New test.
......
/* { dg-do compile } */
void *a, *b;
struct pt3_i2cbuf {
int num_cmds;
} c;
void *memcpy(void *, void *, __SIZE_TYPE__);
void put_stop();
void translate(struct pt3_i2cbuf *p1, int p2)
{
p1->num_cmds = 0;
if (p2)
put_stop();
}
void pt3_i2c_master_xfer(int p1)
{
translate(&c, p1);
memcpy(a, b, c.num_cmds);
for (; p1;)
;
}
......@@ -4860,6 +4860,7 @@ fini_eliminate (void)
lhs = gimple_get_lhs (stmt);
if (inserted_exprs
&& lhs
&& TREE_CODE (lhs) == SSA_NAME
&& bitmap_bit_p (inserted_exprs, SSA_NAME_VERSION (lhs)))
continue;
......
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