OSDN Git Service

PR rtl-optimization/50833
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Oct 2011 11:46:04 +0000 (11:46 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Oct 2011 11:46:04 +0000 (11:46 +0000)
* 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

gcc/ChangeLog
gcc/function.c

index 98dbe81..d91e39f 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 a9c7d8b..2058d75 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);