Patchwork [PR48461] define emit_use_return_register_into_block only if HAVE_return.

login
register
mail settings
Submitter Tom de Vries
Date April 5, 2011, 3:50 p.m.
Message ID <4D9B3A4A.6090601@codesourcery.com>
Download mbox | patch
Permalink /patch/89898/
State New
Headers show

Comments

Tom de Vries - April 5, 2011, 3:50 p.m.
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
Richard Guenther - April 5, 2011, 3:51 p.m.
On Tue, Apr 5, 2011 at 5:50 PM, Tom de Vries <vries@codesourcery.com> wrote:
> 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?

Ok.

Thanks,
Richard.

> Thanks,
> - Tom
>

Patch

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.  */