Commit 7eba2d1f by Luis Machado Committed by Luis Machado

alias.c (find_base_term): Check for NULL term before returning.

2009-06-01  Luis Machado  <luisgpm@br.ibm.com>

	* alias.c (find_base_term): Check for NULL term before returning.

From-SVN: r148047
parent ee88d9aa
2009-06-01 Luis Machado <luisgpm@br.ibm.com>
* alias.c (find_base_term): Check for NULL term before returning.
2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com> 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
Revert due to PR40320: Revert due to PR40320:
......
...@@ -1511,10 +1511,18 @@ find_base_term (rtx x) ...@@ -1511,10 +1511,18 @@ find_base_term (rtx x)
/* If either operand is known to be a pointer, then use it /* If either operand is known to be a pointer, then use it
to determine the base term. */ to determine the base term. */
if (REG_P (tmp1) && REG_POINTER (tmp1)) if (REG_P (tmp1) && REG_POINTER (tmp1))
return find_base_term (tmp1); {
rtx base = find_base_term (tmp1);
if (base)
return base;
}
if (REG_P (tmp2) && REG_POINTER (tmp2)) if (REG_P (tmp2) && REG_POINTER (tmp2))
return find_base_term (tmp2); {
rtx base = find_base_term (tmp2);
if (base)
return base;
}
/* Neither operand was known to be a pointer. Go ahead and find the /* Neither operand was known to be a pointer. Go ahead and find the
base term for both operands. */ base term for both operands. */
......
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