diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-25 12:31:29 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-25 12:31:29 +0000 |
commit | 0bab3365ab64388aec5a25060aa40f6022d2db47 (patch) | |
tree | 88c621c773a19487886fc4758388f68856812312 /gcc/emit-rtl.c | |
parent | f0741be49ab8138a5448c6bbe293357ae6a3b854 (diff) | |
download | gcc-0bab3365ab64388aec5a25060aa40f6022d2db47.tar.gz |
2008-06-25 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r137105
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@137106 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index d6929cf154b..fa2b78a4d95 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -963,6 +963,12 @@ set_reg_attrs_from_value (rtx reg, rtx x) { int offset; + /* Hard registers can be reused for multiple purposes within the same + function, so setting REG_ATTRS, REG_POINTER and REG_POINTER_ALIGN + on them is wrong. */ + if (HARD_REGISTER_P (reg)) + return; + offset = byte_lowpart_offset (GET_MODE (reg), GET_MODE (x)); if (MEM_P (x)) { |