Commit 5c97e2de by Richard Guenther Committed by Richard Biener

tree-dfa.c (mark_new_vars_to_rename): Protect against calling with a PHI_NODE argument.

2005-07-25  Richard Guenther  <rguenther@suse.de>

	* tree-dfa.c (mark_new_vars_to_rename): Protect against
	calling with a PHI_NODE argument.

	* tree-flow-inline.h (overlap_subvar): Protect against
	possible overflow.

From-SVN: r102358
parent 7fefc172
2005-07-25 Richard Guenther <rguenther@suse.de>
* tree-dfa.c (mark_new_vars_to_rename): Protect against
calling with a PHI_NODE argument.
* tree-flow-inline.h (overlap_subvar): Protect against
possible overflow.
2005-07-25 Paolo Bonzini <bonzini@gnu.org> 2005-07-25 Paolo Bonzini <bonzini@gnu.org>
* aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory. * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
......
...@@ -708,6 +708,9 @@ mark_new_vars_to_rename (tree stmt) ...@@ -708,6 +708,9 @@ mark_new_vars_to_rename (tree stmt)
int v_may_defs_before, v_may_defs_after; int v_may_defs_before, v_may_defs_after;
int v_must_defs_before, v_must_defs_after; int v_must_defs_before, v_must_defs_after;
if (TREE_CODE (stmt) == PHI_NODE)
return;
vars_in_vops_to_rename = BITMAP_ALLOC (NULL); vars_in_vops_to_rename = BITMAP_ALLOC (NULL);
/* Before re-scanning the statement for operands, mark the existing /* Before re-scanning the statement for operands, mark the existing
......
...@@ -1518,7 +1518,7 @@ overlap_subvar (unsigned HOST_WIDE_INT offset, unsigned HOST_WIDE_INT size, ...@@ -1518,7 +1518,7 @@ overlap_subvar (unsigned HOST_WIDE_INT offset, unsigned HOST_WIDE_INT size,
{ {
return true; return true;
} }
else if (offset < sv->offset && (offset + size > sv->offset)) else if (offset < sv->offset && (size > sv->offset - offset))
{ {
return true; return true;
} }
......
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