rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST to extract items in the...
authorKazu Hirata <kazu@hxi.com>
Thu, 10 Jan 2002 00:38:03 +0000 (00:38 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Thu, 10 Jan 2002 00:38:03 +0000 (00:38 +0000)
* rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
to extract items in the expr_list chain.

From-SVN: r48702

gcc/ChangeLog
gcc/rtlanal.c

index f6e09c585494c4f6d6c4aa29af339e6d930a951f..52da86cc9335f171baaf378881ba70fa77e35f86 100644 (file)
@@ -1,3 +1,8 @@
+2002-01-09  Kazu Hirata  <kazu@hxi.com>
+
+       * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
+       to extract items in the expr_list chain.
+
 2002-01-09  Richard Henderson  <rth@redhat.com>
 
        * config/vax/vax.c (vax_rtx_cost): Never abort.
index 427e3fbe9212f3dcd0996033e7c83ecf7a09e66f..c536df7ef2fdba0b646dfec26ad64aec65b1a15d 100644 (file)
@@ -1,6 +1,6 @@
 /* Analyze RTL for C-Compiler
    Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-   1999, 2000, 2001 Free Software Foundation, Inc.
+   1999, 2000, 2001, 2002 Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -1867,7 +1867,7 @@ find_reg_fusage (insn, code, datum)
            link;
           link = XEXP (link, 1))
         if (GET_CODE (XEXP (link, 0)) == code
-           && rtx_equal_p (datum, SET_DEST (XEXP (link, 0))))
+           && rtx_equal_p (datum, XEXP (XEXP (link, 0), 0)))
           return 1;
     }
   else