re PR bootstrap/44756 ([meta-bug] --enable-werror-always issues)
authorJoern Rennecke <amylaar@spamcop.net>
Thu, 4 Nov 2010 14:58:40 +0000 (14:58 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Thu, 4 Nov 2010 14:58:40 +0000 (14:58 +0000)
        PR bootstrap/44756
        * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
        unsignedp.
        * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.

From-SVN: r166313

gcc/ChangeLog
gcc/ifcvt.c
gcc/reload1.c

index 705c9ff0a452f8a70b0496d44fcf5b669e52fb66..5ec536dcf34f77c627f5ed0c35c45eb860e3948d 100644 (file)
        * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
        as an index, check it is not INVALID_REGNUM.
 
+       PR bootstrap/44756
+       * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
+       unsignedp.
+       * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
+
 2010-11-04  Ira Rosen  <irar@il.ibm.com>
 
        PR tree-optimization/46213
index ff75ed189c074b42a243eadeac5579e9a24b5be6..58ee90c4b21abd763fd4020638ddbdad6c901ea1 100644 (file)
@@ -1333,8 +1333,8 @@ static rtx
 noce_emit_cmove (struct noce_if_info *if_info, rtx x, enum rtx_code code,
                 rtx cmp_a, rtx cmp_b, rtx vfalse, rtx vtrue)
 {
-  rtx target;
-  int unsignedp;
+  rtx target ATTRIBUTE_UNUSED;
+  int unsignedp ATTRIBUTE_UNUSED;
 
   /* If earliest == jump, try to build the cmove insn directly.
      This is helpful when combine has created some complex condition
index 7fd88c1f43a63194ccb84fc81b0a0e5137c7bbcb..a8a656e6e4bbfc7364818254836996656c629b3a 100644 (file)
@@ -6025,7 +6025,9 @@ failed_reload (rtx insn, int r)
 static int
 set_reload_reg (int i, int r)
 {
-  int regno;
+  /* regno is 'set but not used' if HARD_REGNO_MODE_OK doesn't use its first
+     parameter.  */
+  int regno ATTRIBUTE_UNUSED;
   rtx reg = spill_reg_rtx[i];
 
   if (reg == 0 || GET_MODE (reg) != rld[r].mode)