From a2a6f3cf6be67b838c80b304a9bf29887b831d26 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Sat, 6 Dec 2008 03:18:15 +0000 Subject: re PR rtl-optimization/38272 (Revision 142207 caused libgomp.fortran/threadprivate2.f90) 2008-12-05 Bernd Schmidt PR rtl-optimization/38272 * reload1.c (choose_reload_regs): Keep reload_spill_index correct in all cases. From-SVN: r142514 --- gcc/ChangeLog | 6 ++++++ gcc/reload1.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5318c3e..cf34965 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-12-05 Bernd Schmidt + + PR rtl-optimization/38272 + * reload1.c (choose_reload_regs): Keep reload_spill_index correct + in all cases. + 2008-12-05 Jakub Jelinek PR c++/35336 diff --git a/gcc/reload1.c b/gcc/reload1.c index 2f95fa5..ac1e874 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, -- cgit v1.1