This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Committed: ATTRIBUTE_UNUSED in can_store_by_pieces / initiate_bb_reg_pressure_info
- From: Joern Rennecke <amylaar at spamcop dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 05 Nov 2010 12:30:29 -0400
- Subject: Committed: ATTRIBUTE_UNUSED in can_store_by_pieces / initiate_bb_reg_pressure_info
The picochip --enable-werror-always build has found these missing
ATTRIBUTE_UNUSED markers.
committed as obvious.
2010-11-05 Joern Rennecke <amylaar@spamcop.net>
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.
Index: expr.c
===================================================================
--- expr.c (revision 166360)
+++ expr.c (working copy)
@@ -2261,7 +2261,8 @@ can_store_by_pieces (unsigned HOST_WIDE_
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: haifa-sched.c
===================================================================
--- haifa-sched.c (revision 166360)
+++ haifa-sched.c (working copy)
@@ -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)