Commit 24f8d71e by Jakub Jelinek Committed by Jakub Jelinek

re PR bootstrap/43767 (Revision 158401 failed to bootstrap)

	PR bootstrap/43767
	* alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.

From-SVN: r158450
parent f1665f5c
2010-04-16 Jakub Jelinek <jakub@redhat.com>
PR bootstrap/43767
* alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
2010-04-16 Doug Kwan <dougkwan@google.com> 2010-04-16 Doug Kwan <dougkwan@google.com>
* tree-ssa-reassoc.c (struct operand_entry): Add new field ID. * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
......
...@@ -1792,7 +1792,8 @@ memrefs_conflict_p (int xsize, rtx x, int ysize, rtx y, HOST_WIDE_INT c) ...@@ -1792,7 +1792,8 @@ memrefs_conflict_p (int xsize, rtx x, int ysize, rtx y, HOST_WIDE_INT c)
{ {
if (REG_P (y)) if (REG_P (y))
{ {
struct elt_loc_list *l; struct elt_loc_list *l = NULL;
if (CSELIB_VAL_PTR (x))
for (l = CSELIB_VAL_PTR (x)->locs; l; l = l->next) for (l = CSELIB_VAL_PTR (x)->locs; l; l = l->next)
if (REG_P (l->loc) && rtx_equal_for_memref_p (l->loc, y)) if (REG_P (l->loc) && rtx_equal_for_memref_p (l->loc, y))
break; break;
...@@ -1809,7 +1810,8 @@ memrefs_conflict_p (int xsize, rtx x, int ysize, rtx y, HOST_WIDE_INT c) ...@@ -1809,7 +1810,8 @@ memrefs_conflict_p (int xsize, rtx x, int ysize, rtx y, HOST_WIDE_INT c)
{ {
if (REG_P (x)) if (REG_P (x))
{ {
struct elt_loc_list *l; struct elt_loc_list *l = NULL;
if (CSELIB_VAL_PTR (y))
for (l = CSELIB_VAL_PTR (y)->locs; l; l = l->next) for (l = CSELIB_VAL_PTR (y)->locs; l; l = l->next)
if (REG_P (l->loc) && rtx_equal_for_memref_p (l->loc, x)) if (REG_P (l->loc) && rtx_equal_for_memref_p (l->loc, x))
break; 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