summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-04 14:58:40 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-04 14:58:40 +0000
commitcfc70ceceeca864aa59b2bbfb748f23ac695137f (patch)
tree7115c4f4b31194460ec6ff126d78685d1c9873b9
parentcff59264979ac113cb524bab195840adbeca930c (diff)
downloadgcc-cfc70ceceeca864aa59b2bbfb748f23ac695137f.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166313 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ifcvt.c4
-rw-r--r--gcc/reload1.c4
3 files changed, 10 insertions, 3 deletions
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 <irar@il.ibm.com>
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)