From: Richard Sandiford Date: Wed, 25 Oct 2006 05:49:43 +0000 (+0000) Subject: re PR middle-end/29519 (Bad code on MIPS with -fnon-call-exceptions) X-Git-Tag: releases/gcc-4.3.0~8921 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=942d7821790f4341cfacc5b704f9344cc9c2efc9;p=thirdparty%2Fgcc.git re PR middle-end/29519 (Bad code on MIPS with -fnon-call-exceptions) PR middle-end/29519 * rtlanal.c (nonzero_address_p): Remove check for values wrapping. Co-Authored-By: David Daney From-SVN: r118023 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4edb9060d501..829306c861d8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-10-24 Richard Sandiford + David Daney + + PR middle-end/29519 + * rtlanal.c (nonzero_address_p): Remove check for values wrapping. + 2006-10-25 Ben Elliston * doc/extend.texi (Variable Attributes): Typo fix. diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 53e6d83d1b8a..b0a816106d43 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -368,17 +368,7 @@ nonzero_address_p (rtx x) 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)))