diff options
author | Bernd Schmidt <bernds@codesourcery.com> | 2011-10-24 11:46:04 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2011-10-24 11:46:04 +0000 |
commit | eec8a31a7388a0c5abd82feaccc320de4ea558d1 (patch) | |
tree | a68af5d5aac329919d45682c60aac07c97998eb3 /gcc/function.c | |
parent | 9f02e6a5b5c53618d4081e5e5a9796267552905d (diff) | |
download | gcc-eec8a31a7388a0c5abd82feaccc320de4ea558d1.zip gcc-eec8a31a7388a0c5abd82feaccc320de4ea558d1.tar.gz gcc-eec8a31a7388a0c5abd82feaccc320de4ea558d1.tar.bz2 |
re PR rtl-optimization/50833 (ICE: in maybe_record_trace_start, at dwarf2cfi.c:2243 with -fshrink-wrap)
PR rtl-optimization/50833
* function.c (thread_prologue_and_epilogue_insns): Expect the
return insn optimization only if optimize.
From-SVN: r180377
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 a9c7d8b..2058d75 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); |