diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-03 09:19:12 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-03 09:19:12 +0000 |
commit | adaf1d614fcbe6f31b0f4a3d30f23137aa007a02 (patch) | |
tree | 66a0b29bb51c49e377df8f017cbf503abbed5c6b /gcc/df.c | |
parent | 9ed01b17b0e5c55e9b0a3c22b6cb50c753a9fad9 (diff) | |
download | gcc-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/df.c')
-rw-r--r-- | gcc/df.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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: |