OSDN Git Service

* df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Feb 2005 11:57:47 +0000 (11:57 +0000)
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 6 Feb 2005 11:57:47 +0000 (11:57 +0000)
not SET_DEST.

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

gcc/ChangeLog
gcc/df.c

index ac6651a..b1a5558 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-06  Steven Bosscher  <stevenb@suse.de>
+
+       * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
+       not SET_DEST.
+
 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
 
        * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
index 2e9ddfd..1fe44f2 100644 (file)
--- a/gcc/df.c
+++ b/gcc/df.c
@@ -1196,7 +1196,7 @@ df_insn_refs_record (struct df *df, basic_block bb, rtx insn)
                if (global_regs[i])
                  {
                    x = df_reg_use_gen (i);
-                   df_uses_record (df, &SET_DEST (x),
+                   df_uses_record (df, &XEXP (x, 0),
                                    DF_REF_REG_USE, bb, insn, 0);
                  }
            }