diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2011-10-24 11:46:04 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@codesourcery.com> | 2011-10-24 11:46:04 +0000 |
commit | b46b87adffe2a3dbaea3c7fa50ac7bfb29f01993 (patch) | |
tree | a68af5d5aac329919d45682c60aac07c97998eb3 /gcc/function.c | |
parent | 48741f495b04eb325ae99b2c4f8ef991ebd512bd (diff) |
PR rtl-optimization/50833
* function.c (thread_prologue_and_epilogue_insns): Expect the
return insn optimization only if optimize.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@180377 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 2 |
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); |