]> gcc.gnu.org Git - gcc.git/commitdiff
re PR target/46407 (rx-elf --enable-werror-all build failure)
authorJoern Rennecke <amylaar@spamcop.net>
Wed, 10 Nov 2010 11:29:00 +0000 (11:29 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Wed, 10 Nov 2010 11:29:00 +0000 (11:29 +0000)
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.

From-SVN: r166529

gcc/ChangeLog
gcc/config/rx/rx.c
gcc/config/rx/rx.h

index ff1ef623e9d84a5ac7cd588fef5a55c71353fe57..f2a0e3836557abde51e9ec888a3703baf19a5921 100644 (file)
        PR rtl-optimization/44764
        * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
 
+       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.
+
 2010-11-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
 
        PR/46268
index 5348a661631885723b207ff3ddd25a926151b03d..09c44733401762e0b5cd1809c9718fe53028b698 100644 (file)
@@ -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 target)
 }
 
 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);
 }
index 5f89ebec21c3983495a88a51cb4744b57e9993e2..bec7249d087482b2174b07a4b3c4037e8e68a864 100644 (file)
@@ -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      \
 {                                      \
This page took 0.119875 seconds and 5 git commands to generate.