diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-21 19:54:01 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-04-21 19:54:01 +0000 |
commit | c3d22aafe2ea6e541c10236456731e16d71e05f5 (patch) | |
tree | 572d0ae3c24e3be1bc0c147e731c9efac7d01182 /gcc/fwprop.c | |
parent | 89c21b2fa07ccaeefcd9f13f1b0674f7881b79c4 (diff) | |
download | gcc-c3d22aafe2ea6e541c10236456731e16d71e05f5.tar.gz |
2008-04-21 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r134525
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@134526 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fwprop.c')
-rw-r--r-- | gcc/fwprop.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/fwprop.c b/gcc/fwprop.c index d265af37f97..93329875705 100644 --- a/gcc/fwprop.c +++ b/gcc/fwprop.c @@ -679,6 +679,7 @@ update_df (rtx insn, rtx *loc, struct df_ref **use_rec, enum df_ref_type type, struct df_ref *orig_use = use, *new_use; int width = -1; int offset = -1; + enum machine_mode mode = 0; rtx *new_loc = find_occurrence (loc, DF_REF_REG (orig_use)); use_rec++; @@ -687,15 +688,17 @@ update_df (rtx insn, rtx *loc, struct df_ref **use_rec, enum df_ref_type type, if (DF_REF_FLAGS_IS_SET (orig_use, DF_REF_SIGN_EXTRACT | DF_REF_ZERO_EXTRACT)) { - width = DF_REF_WIDTH (orig_use); - offset = DF_REF_OFFSET (orig_use); + width = DF_REF_EXTRACT_WIDTH (orig_use); + offset = DF_REF_EXTRACT_OFFSET (orig_use); + mode = DF_REF_EXTRACT_MODE (orig_use); } /* Add a new insn use. Use the original type, because it says if the use was within a MEM. */ new_use = df_ref_create (DF_REF_REG (orig_use), new_loc, insn, BLOCK_FOR_INSN (insn), - type, DF_REF_FLAGS (orig_use) | new_flags, width, offset); + type, DF_REF_FLAGS (orig_use) | new_flags, + width, offset, mode); /* Set up the use-def chain. */ df_chain_copy (new_use, DF_REF_CHAIN (orig_use)); |