* [PATCH, PR48461] define emit_use_return_register_into_block only if HAVE_return.
@ 2011-04-05 15:50 Tom de Vries
2011-04-05 15:51 ` Richard Guenther
0 siblings, 1 reply; 2+ messages in thread
From: Tom de Vries @ 2011-04-05 15:50 UTC (permalink / raw)
To: gcc-patches, ebotcazou; +Cc: danglin
[-- Attachment #1: Type: text/plain, Size: 232 bytes --]
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
[-- Attachment #2: pr48461.log --]
[-- Type: text/x-log, Size: 153 bytes --]
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.
[-- Attachment #3: pr48461.patch --]
[-- Type: text/x-patch, Size: 577 bytes --]
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. */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH, PR48461] define emit_use_return_register_into_block only if HAVE_return.
2011-04-05 15:50 [PATCH, PR48461] define emit_use_return_register_into_block only if HAVE_return Tom de Vries
@ 2011-04-05 15:51 ` Richard Guenther
0 siblings, 0 replies; 2+ messages in thread
From: Richard Guenther @ 2011-04-05 15:51 UTC (permalink / raw)
To: Tom de Vries; +Cc: gcc-patches, ebotcazou, danglin
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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-05 15:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-05 15:50 [PATCH, PR48461] define emit_use_return_register_into_block only if HAVE_return Tom de Vries
2011-04-05 15:51 ` Richard Guenther
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).