This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, PR48461] define emit_use_return_register_into_block only if HAVE_return.
- From: Tom de Vries <vries at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org, ebotcazou at libertysurf dot fr
- Cc: danglin at gcc dot gnu dot org
- Date: Tue, 05 Apr 2011 17:50:34 +0200
- Subject: [PATCH, PR48461] define emit_use_return_register_into_block only if HAVE_return.
Hi,
I introduced the function emit_use_return_register_into_block for
PR43920, but should have guarded it with HAVE_return.
The patch fixes this.
Tested by doing x86_64 non-bootstrap c/fortran build.
OK for trunk?
Thanks,
- Tom
2011-04-05 Tom de Vries <tom@codesourcery.com>
PR middle-end/48461
* function.c (emit_use_return_register_into_block): Only define if
HAVE_return.
Index: gcc/function.c
===================================================================
--- gcc/function.c (revision 171977)
+++ gcc/function.c (working copy)
@@ -5262,6 +5262,7 @@ prologue_epilogue_contains (const_rtx in
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 (bas
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. */