summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-03 09:19:12 +0000
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2003-12-03 09:19:12 +0000
commitadaf1d614fcbe6f31b0f4a3d30f23137aa007a02 (patch)
tree66a0b29bb51c49e377df8f017cbf503abbed5c6b /gcc
parent9ed01b17b0e5c55e9b0a3c22b6cb50c753a9fad9 (diff)
downloadgcc-adaf1d614fcbe6f31b0f4a3d30f23137aa007a02.tar.gz
* df.c (df_uses_record) <MEM>: The argument of a MEM is read-only,
never read-write. <REG>: Delete incorrect comment. <SET>: Remove 'use_flags' variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74221 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/df.c10
2 files changed, 10 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 26349e4445c..1ea9b2c6da8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2003-12-02 Geoffrey Keating <geoffk@geoffk.org>
+
+ * df.c (df_uses_record) <MEM>: The argument of a MEM is read-only,
+ never read-write.
+ <REG>: Delete incorrect comment.
+ <SET>: Remove 'use_flags' variable.
+
2003-12-03 David Edelsohn <edelsohn@gnu.org>
* function.c (assign_parms): Make sure parm PARALLEL combined
diff --git a/gcc/df.c b/gcc/df.c
index ae99d8eb64f..e061faee13f 100644
--- a/gcc/df.c
+++ b/gcc/df.c
@@ -971,7 +971,7 @@ df_uses_record (struct df *df, rtx *loc, enum df_ref_type ref_type,
return;
case MEM:
- df_uses_record (df, &XEXP (x, 0), DF_REF_REG_MEM_LOAD, bb, insn, flags);
+ df_uses_record (df, &XEXP (x, 0), DF_REF_REG_MEM_LOAD, bb, insn, 0);
return;
case SUBREG:
@@ -987,7 +987,6 @@ df_uses_record (struct df *df, rtx *loc, enum df_ref_type ref_type,
/* ... Fall through ... */
case REG:
- /* See a REG (or SUBREG) other than being set. */
df_ref_record (df, x, loc, insn, ref_type, flags);
return;
@@ -999,14 +998,12 @@ df_uses_record (struct df *df, rtx *loc, enum df_ref_type ref_type,
switch (GET_CODE (dst))
{
- enum df_ref_flags use_flags;
case SUBREG:
if ((df->flags & DF_FOR_REGALLOC) == 0
&& read_modify_subreg_p (dst))
{
- use_flags = DF_REF_READ_WRITE;
df_uses_record (df, &SUBREG_REG (dst), DF_REF_REG_USE, bb,
- insn, use_flags);
+ insn, DF_REF_READ_WRITE);
break;
}
/* ... FALLTHRU ... */
@@ -1025,9 +1022,8 @@ df_uses_record (struct df *df, rtx *loc, enum df_ref_type ref_type,
dst = XEXP (dst, 0);
if (GET_CODE (dst) != SUBREG)
abort ();
- use_flags = DF_REF_READ_WRITE;
df_uses_record (df, &SUBREG_REG (dst), DF_REF_REG_USE, bb,
- insn, use_flags);
+ insn, DF_REF_READ_WRITE);
break;
case ZERO_EXTRACT:
case SIGN_EXTRACT: