+2006-10-24 Richard Sandiford <richard@codesourcery.com>
+ David Daney <ddaney@avtrex.com>
+
+ PR middle-end/29519
+ * rtlanal.c (nonzero_address_p): Remove check for values wrapping.
+
2006-10-25 Ben Elliston <bje@au.ibm.com>
* doc/extend.texi (Variable Attributes): Typo fix.
case PLUS:
if (GET_CODE (XEXP (x, 1)) == CONST_INT)
- {
- /* Pointers aren't allowed to wrap. If we've got a register
- that is known to be a pointer, and a positive offset, then
- the composite can't be zero. */
- if (INTVAL (XEXP (x, 1)) > 0
- && REG_P (XEXP (x, 0))
- && REG_POINTER (XEXP (x, 0)))
- return true;
-
- return nonzero_address_p (XEXP (x, 0));
- }
+ return nonzero_address_p (XEXP (x, 0));
/* Handle PIC references. */
else if (XEXP (x, 0) == pic_offset_table_rtx
&& CONSTANT_P (XEXP (x, 1)))