summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2008-12-06 03:18:15 +0000
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>2008-12-06 03:18:15 +0000
commit143af097b1e869081aa8e917a9c06cabbba40fb2 (patch)
tree39bf01196c48c56c69df955d284b2d69af561845 /gcc
parente400740855fdbf9db08c77f8ba7ae54022cacd97 (diff)
downloadgcc-143af097b1e869081aa8e917a9c06cabbba40fb2.tar.gz
2008-12-05 Bernd Schmidt <bernd.schmidt@analog.com>
PR rtl-optimization/38272 * reload1.c (choose_reload_regs): Keep reload_spill_index correct in all cases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142514 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/reload1.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5318c3e41da..cf349650fa5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-05 Bernd Schmidt <bernd.schmidt@analog.com>
+
+ PR rtl-optimization/38272
+ * reload1.c (choose_reload_regs): Keep reload_spill_index correct
+ in all cases.
+
2008-12-05 Jakub Jelinek <jakub@redhat.com>
PR c++/35336
diff --git a/gcc/reload1.c b/gcc/reload1.c
index 2f95fa55aa2..ac1e874b124 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -6362,6 +6362,7 @@ choose_reload_regs (struct insn_chain *chain)
int nr = hard_regno_nregs[regno][rld[r].mode];
int k;
rld[r].reg_rtx = equiv;
+ reload_spill_index[r] = regno;
reload_inherited[r] = 1;
/* If reg_reloaded_valid is not set for this register,