summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-24 11:46:04 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-24 11:46:04 +0000
commitbba37413073a2f0c461af99a85652def3991f145 (patch)
treea68af5d5aac329919d45682c60aac07c97998eb3 /gcc/function.c
parentb2528b76f2353d7ae22eed5f5e6db41123ba9c63 (diff)
downloadgcc-bba37413073a2f0c461af99a85652def3991f145.tar.gz
PR rtl-optimization/50833
* function.c (thread_prologue_and_epilogue_insns): Expect the return insn optimization only if optimize. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180377 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index a9c7d8b3b84..2058d754080 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -5791,7 +5791,7 @@ thread_prologue_and_epilogue_insns (void)
to convert jumps to it to (potentially conditional) return
insns later. This means we don't necessarily need a prologue
for paths reaching it. */
- if (last_bb)
+ if (last_bb && optimize)
{
if (!last_bb_active)
bitmap_clear_bit (&bb_flags, last_bb->index);