PR middle-end/6102
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Apr 2002 21:35:46 +0000 (21:35 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Apr 2002 21:35:46 +0000 (21:35 +0000)
* df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
USE argument.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51813 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/df.c

index 6419ade..eea96e3 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 8d5e8b6..ed0fd77 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);
            }