From: Joern Rennecke Date: Thu, 4 Nov 2010 14:58:40 +0000 (+0000) Subject: re PR bootstrap/44756 ([meta-bug] --enable-werror-always issues) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab040cea8c2845e3f60865648f976dce527fd2d7;p=gcc.git re PR bootstrap/44756 ([meta-bug] --enable-werror-always issues) 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 705c9ff0a45..5ec536dcf34 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 PR tree-optimization/46213 diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index ff75ed189c0..58ee90c4b21 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 7fd88c1f43a..a8a656e6e4b 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)