diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ifcvt.c | 4 | ||||
-rw-r--r-- | gcc/reload1.c | 4 |
3 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 705c9ff..5ec536d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -21,6 +21,11 @@ * 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 diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index ff75ed1..58ee90c 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -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 diff --git a/gcc/reload1.c b/gcc/reload1.c index 7fd88c1..a8a656e 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -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) |