re PR bootstrap/44756 ([meta-bug] --enable-werror-always issues)
authorJoern Rennecke <amylaar@spamcop.net>
Fri, 5 Nov 2010 16:27:25 +0000 (16:27 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Fri, 5 Nov 2010 16:27:25 +0000 (16:27 +0000)
PR bootstrap/44756
* expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
* haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
to i.

From-SVN: r166366

gcc/ChangeLog
gcc/expr.c
gcc/haifa-sched.c

index c5b406a..814e02d 100644 (file)
        * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
        comparing it to a signed value.
 
+       PR bootstrap/44756
+       * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
+       * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
+       to i.
+
 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
 
        * cfgexpand.c (expand_debug_expr): Handle MEM_REF
index e994f93..caac066 100644 (file)
@@ -2261,7 +2261,8 @@ can_store_by_pieces (unsigned HOST_WIDE_INT len,
   enum machine_mode mode, tmode;
   enum insn_code icode;
   int reverse;
-  rtx cst;
+  /* cst is set but not used if LEGITIMATE_CONSTANT doesn't use it.  */
+  rtx cst ATTRIBUTE_UNUSED;
 
   if (len == 0)
     return 1;
index 434b760..6535619 100644 (file)
@@ -709,7 +709,7 @@ setup_ref_regs (rtx x)
 static void
 initiate_bb_reg_pressure_info (basic_block bb)
 {
-  unsigned int i;
+  unsigned int i ATTRIBUTE_UNUSED;
   rtx insn;
 
   if (current_nr_blocks > 1)