diff mbox

-fuse-caller-save - Collect register usage information

Message ID 5386F325.1080604@mentor.com
State New
Headers show

Commit Message

Tom de Vries May 29, 2014, 8:43 a.m. UTC
On 29-05-14 00:42, Bill Schmidt wrote:
> Tom, the final version of this patch that you committed breaks bootstrap
> on powerpc64le-linux-gnu.  The problem is that all uses of the variable
> i are guarded by #ifdef STACK_REGS, but the declaration of i is
> unconditional.  We get an unused variable warning that becomes an error
> during stage 3.
>

Bill,

thanks for letting me know.

I've bootstrapped attached patch on x86_64, and committed it.

Thanks,
- Tom
diff mbox

Patch

2014-05-29  Tom de Vries  <tom@codesourcery.com>

	* final.c (collect_fn_hard_reg_usage): Guard variable declaration
	with #ifdef STACK_REGS.

diff --git a/gcc/final.c b/gcc/final.c
index a345fe7..c32e177 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -4750,7 +4750,9 @@  static void
 collect_fn_hard_reg_usage (void)
 {
   rtx insn;
+#ifdef STACK_REGS
   int i;
+#endif
   struct cgraph_rtl_info *node;
 
   /* ??? To be removed when all the ports have been fixed.  */