Patchwork Fix PR rtl-optimization/54290

login
register
mail settings
Submitter Eric Botcazou
Date Sept. 20, 2012, 10:36 p.m.
Message ID <5026332.AZAM1WxtxX@polaris>
Download mbox | patch
Permalink /patch/185518/
State New
Headers show

Comments

Eric Botcazou - Sept. 20, 2012, 10:36 p.m.
> This breaks bootstrap on ARM:
> 
> /home/rearnsha/gnusrc/gcc/gcc-fsf/gcc/reload1.c: In function `void
> choose_reload_regs(insn_chain*)':
> /home/rearnsha/gnusrc/gcc/gcc-fsf/gcc/reload1.c:6959:19: error: unused
> variable `tem' [-Werror=unused-variable]
>     rtx check_reg, tem;

My bad... fixed thusly.


2012-09-20  Eric Botcazou  <ebotcazou@adacore.com>

	* reload1.c (choose_reload_regs): Add missing #ifdef/#endif pair.

Patch

Index: reload1.c
===================================================================
--- reload1.c	(revision 191591)
+++ reload1.c	(working copy)
@@ -6956,7 +6956,10 @@  choose_reload_regs (struct insn_chain *c
       for (j = 0; j < n_reloads; j++)
 	{
 	  int r = reload_order[j];
-	  rtx check_reg, tem;
+	  rtx check_reg;
+#ifdef SECONDARY_MEMORY_NEEDED
+	  rtx tem;
+#endif
 	  if (reload_inherited[r] && rld[r].reg_rtx)
 	    check_reg = rld[r].reg_rtx;
 	  else if (reload_override_in[r]