Patchwork Committed: ATTRIBUTE_UNUSED in can_store_by_pieces / initiate_bb_reg_pressure_info

login
register
mail settings
Submitter Joern Rennecke
Date Nov. 5, 2010, 4:30 p.m.
Message ID <20101105123029.1w0fdeykm8kkc8s8-nzlynne@webmail.spamcop.net>
Download mbox | patch
Permalink /patch/70267/
State New
Headers show

Comments

Joern Rennecke - Nov. 5, 2010, 4:30 p.m.
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.

Patch

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)