This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]