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]

PATCH COMMITTED: Mark function parameter ATTRIBUTE_UNUSED


In the function alternative_allows_const_pool_ref in reload.c, the mem
parameter is only used if the tm.h file defines EXTRA_CONSTRAINT_STR.
Accordingly, I marked the parameter as ATTRIBUTE_UNUSED.

Bootstrapped on x86_64-unknown-linux-gnu.  Committed.

Ian


2009-06-23  Ian Lance Taylor  <iant@google.com>

	* reload.c (alternative_allows_const_pool_ref): Mark mem parameter
	with ATTRIBUTE_UNUSED.


Index: reload.c
===================================================================
--- reload.c	(revision 148818)
+++ reload.c	(working copy)
@@ -4560,7 +4560,8 @@ find_reloads (rtx insn, int replace, int
    is null.  */
 
 static bool
-alternative_allows_const_pool_ref (rtx mem, const char *constraint, int altnum)
+alternative_allows_const_pool_ref (rtx mem ATTRIBUTE_UNUSED,
+				   const char *constraint, int altnum)
 {
   int c;
 

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