re PR rtl-optimization/38272 (Revision 142207 caused libgomp.fortran/threadprivate2.f90)

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.

From-SVN: r142514
This commit is contained in:
Bernd Schmidt 2008-12-06 03:18:15 +00:00 committed by H.J. Lu
parent d786db7d30
commit a2a6f3cf6b
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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,