]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sh.c (expand_cbranchdi4): Initialize skip_label.
authorKaz Kojima <kkojima@gcc.gnu.org>
Mon, 13 Nov 2006 23:08:24 +0000 (23:08 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Mon, 13 Nov 2006 23:08:24 +0000 (23:08 +0000)
* config/sh/sh.c (expand_cbranchdi4): Initialize skip_label.
(sh_optimize_target_register_callee_saved): #if 0 the code
using NOTE_INSN_LOOP_{BEG,END}.

From-SVN: r118784

gcc/ChangeLog
gcc/config/sh/sh.c

index 965a9cf2281e6bee5afb36447a4f147dca44d408..ecdbbf86f6f71a8c929a235f14a5dacea1ad77fe 100644 (file)
@@ -1,3 +1,9 @@
+2006-11-13  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       * config/sh/sh.c (expand_cbranchdi4): Initialize skip_label.
+       (sh_optimize_target_register_callee_saved): #if 0 the code
+       using NOTE_INSN_LOOP_{BEG,END}.
+
 2006-11-13  Roger Sayle  <roger@eyesopen.com>
 
        * fold-const.c (optimize_bit_field_compare): Recursively call
index 9f733b852f1d9d12260f02d19bc8ff7370f0c19f..bc3a7b7fbbbc46f9b6b8963fd8e0d469905cb279 100644 (file)
@@ -1483,7 +1483,7 @@ bool
 expand_cbranchdi4 (rtx *operands, enum rtx_code comparison)
 {
   enum rtx_code msw_taken, msw_skip, lsw_taken;
-  rtx skip_label;
+  rtx skip_label = NULL_RTX;
   rtx op1h, op1l, op2h, op2l;
   int num_branches;
   int prob, rev_prob;
@@ -9398,7 +9398,9 @@ static bool
 sh_optimize_target_register_callee_saved (bool after_prologue_epilogue_gen)
 {
   HARD_REG_SET dummy;
+#if 0
   rtx insn;
+#endif
 
   if (! shmedia_space_reserved_for_target_registers)
     return 0;
@@ -9406,6 +9408,7 @@ sh_optimize_target_register_callee_saved (bool after_prologue_epilogue_gen)
     return 0;
   if (calc_live_regs (&dummy) >= 6 * 8)
     return 1;
+#if 0
   /* This is a borderline case.  See if we got a nested loop, or a loop
      with a call, or with more than 4 labels inside.  */
   for (insn = get_insns(); insn; insn = NEXT_INSN (insn))
@@ -9428,6 +9431,7 @@ sh_optimize_target_register_callee_saved (bool after_prologue_epilogue_gen)
                 || NOTE_LINE_NUMBER (insn) != NOTE_INSN_LOOP_END);
        }
     }
+#endif
   return 0;
 }