Patchwork RFA: Fix rx-elf --enable-werror-always build

login
register
mail settings
Submitter Joern Rennecke
Date Nov. 10, 2010, 10:33 a.m.
Message ID <20101110053330.z5c2mtm83ocg8goo-nzlynne@webmail.spamcop.net>
Download mbox | patch
Permalink /patch/70620/
State New
Headers show

Comments

Joern Rennecke - Nov. 10, 2010, 10:33 a.m.
built on i686-pc-linux-gnu with gcc (GCC) 4.6.0 20101103 (experimental) .
2010-11-10  Joern Rennecke  <amylaar@spamcop.net>

	PR target/46407
	* config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
	* config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
	with ATTRIBUTE_UNUSED.
	(valid_psw_flag): Constify parameter which.
	(rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
Nick Clifton - Nov. 10, 2010, 11:16 a.m.
Hi Joern,

> 2010-11-10  Joern Rennecke  <amylaar@spamcop.net>
>
> 	PR target/46407
> 	* config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
> 	* config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
> 	with ATTRIBUTE_UNUSED.
> 	(valid_psw_flag): Constify parameter which.
> 	(rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
>

Approved - please apply.

Cheers
   Nick

Patch

Index: config/rx/rx.h
===================================================================
--- config/rx/rx.h	(revision 166491)
+++ config/rx/rx.h	(working copy)
@@ -341,7 +341,7 @@  typedef unsigned int CUMULATIVE_ARGS;
   {								\
     "r0",  "r1",  "r2",   "r3",   "r4",   "r5",   "r6",   "r7",	\
       "r8",  "r9",  "r10",  "r11",  "r12",  "r13",  "r14",  "r15", "cc"	\
-  };
+  }
 
 #define ADDITIONAL_REGISTER_NAMES	\
 {					\
Index: config/rx/rx.c
===================================================================
--- config/rx/rx.c	(revision 166491)
+++ config/rx/rx.c	(working copy)
@@ -846,7 +846,7 @@  rx_function_value (const_tree ret_type,
 static enum machine_mode
 rx_promote_function_mode (const_tree type ATTRIBUTE_UNUSED,
 			  enum machine_mode mode,
-			  int * punsignedp,
+			  int * punsignedp ATTRIBUTE_UNUSED,
 			  const_tree funtype ATTRIBUTE_UNUSED,
 			  int for_return)
 {
@@ -2000,7 +2000,7 @@  rx_expand_builtin_round (rtx arg, rtx ta
 }
 
 static int
-valid_psw_flag (rtx op, char *which)
+valid_psw_flag (rtx op, const char *which)
 {
   static int mvtc_inform_done = 0;
 
@@ -2744,7 +2744,7 @@  rx_compare_redundant (rtx cmp)
 }
 
 static int
-rx_memory_move_cost (enum machine_mode mode, enum reg_class regclass, bool in)
+rx_memory_move_cost (enum machine_mode mode, reg_class_t regclass, bool in)
 {
   return 2 + memory_move_secondary_cost (mode, regclass, in);
 }