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
2014-05-29 Tom de Vries <t...@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. */