re PR middle-end/6102 (sparc-sun-solaris2.7 gcc-3.1 RTL checking failure on gcc.dg...
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Apr 2002 21:35:46 +0000 (23:35 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Apr 2002 21:35:46 +0000 (23:35 +0200)
PR middle-end/6102
* df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
USE argument.

From-SVN: r51813

gcc/ChangeLog
gcc/df.c

index 6419ade58c173536788b7552a29d8c24d49e7f89..eea96e305b2dc3b4ee429298be62b14b810bd413 100644 (file)
@@ -1,3 +1,9 @@
+2002-04-03  Jakub Jelinek  <jakub@redhat.com>
+
+       PR middle-end/6102
+       * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
+       USE argument.
+
 2002-04-03  Richard Henderson  <rth@redhat.com>
 
        PR opt/4120
index 8d5e8b6da4a8a3cf9f4a2143b7bfa39f6cd938d4..ed0fd77029beee46d883941b1779f5df8ae2b46c 100644 (file)
--- a/gcc/df.c
+++ b/gcc/df.c
@@ -1236,7 +1236,7 @@ df_insn_refs_record (df, bb, insn)
               note = XEXP (note, 1))
            {
              if (GET_CODE (XEXP (note, 0)) == USE)
-               df_uses_record (df, &SET_DEST (XEXP (note, 0)), DF_REF_REG_USE,
+               df_uses_record (df, &XEXP (XEXP (note, 0), 0), DF_REF_REG_USE,
                                bb, insn, 0);
            }