From: Tom de Vries Date: Tue, 5 Apr 2011 15:54:13 +0000 (+0000) Subject: re PR middle-end/48461 (function.c:5268:1: error: emit_use_return_register_into_block... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=170d8157ba1edcc212bc9186eaf23b488ebaa258;p=gcc.git re PR middle-end/48461 (function.c:5268:1: error: emit_use_return_register_into_block defined but not used) 2011-04-05 Tom de Vries PR middle-end/48461 * function.c (emit_use_return_register_into_block): Only define if HAVE_return. From-SVN: r171990 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ae9f9d0d867..6708146d252 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-04-05 Tom de Vries + + PR middle-end/48461 + * function.c (emit_use_return_register_into_block): Only define if + HAVE_return. + 2011-04-05 Eric Botcazou * stor-layout.c (self_referential_size): Fix 2010-07-13 commit. diff --git a/gcc/function.c b/gcc/function.c index 7c500a656bc..63ecd7c378d 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -5262,6 +5262,7 @@ prologue_epilogue_contains (const_rtx insn) return 0; } +#ifdef HAVE_return /* Insert use of return register before the end of BB. */ static void @@ -5275,7 +5276,6 @@ emit_use_return_register_into_block (basic_block bb) emit_insn_before (seq, BB_END (bb)); } -#ifdef HAVE_return /* Insert gen_return at the end of block BB. This also means updating block_for_insn appropriately. */