From: Richard Kenner Date: Mon, 6 May 1996 13:43:48 +0000 (-0400) Subject: (rtx_addr_varies_p): Scan operands of type `E'. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=833c0b26acf93940a534d9633ef8d423c7ba3016;p=gcc.git (rtx_addr_varies_p): Scan operands of type `E'. From-SVN: r11935 --- diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index c8433c500fc..47c253595f9 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -1,5 +1,5 @@ /* Analyze RTL for C-Compiler - Copyright (C) 1987, 88, 91, 92, 93, 94, 1995 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 9-5, 1996 Free Software Foundation, Inc. This file is part of GNU CC. @@ -177,8 +177,17 @@ rtx_addr_varies_p (x) fmt = GET_RTX_FORMAT (code); for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--) if (fmt[i] == 'e') - if (rtx_addr_varies_p (XEXP (x, i))) - return 1; + { + if (rtx_addr_varies_p (XEXP (x, i))) + return 1; + } + else if (fmt[i] == 'E') + { + int j; + for (j = 0; j < XVECLEN (x, i); j++) + if (rtx_addr_varies_p (XVECEXP (x, i, j))) + return 1; + } return 0; }