]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR rtl-optimization/50833 (ICE: in maybe_record_trace_start, at dwarf2cfi.c:2243...
authorBernd Schmidt <bernds@codesourcery.com>
Mon, 24 Oct 2011 11:46:04 +0000 (11:46 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Mon, 24 Oct 2011 11:46:04 +0000 (11:46 +0000)
PR rtl-optimization/50833
* function.c (thread_prologue_and_epilogue_insns): Expect the
return insn optimization only if optimize.

From-SVN: r180377

gcc/ChangeLog
gcc/function.c

index 98dbe8147e4aebde39684d9014180696f8bbe922..d91e39f74a675d884b140ca7ae5f3c382e2d0263 100644 (file)
@@ -3,6 +3,10 @@
        PR bootstrap/50836
        * rtlanal.c: Swap includes of "hard-reg-set.h" and "rtl.h".
 
+       PR rtl-optimization/50833
+       * function.c (thread_prologue_and_epilogue_insns): Expect the
+       return insn optimization only if optimize.
+
 2011-10-24  Georg-Johann Lay  <avr@gjlay.de>
 
        * config/avr/avr.c: Break long lines.
index a9c7d8b3b84791a75e2ffe0ae55f6df80b0f9e84..2058d754080646d4705b206573dceedc7fafd4fb 100644 (file)
@@ -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);