Hi Guys,

  I am applying the patch below as an obvious fix for come compile time
  warning messages building the rl78 toolchain.

Cheers
  Nick

gcc/ChangeLog
2015-04-23  Nick Clifton  <ni...@redhat.com>

        * config/rl78/rl78.c (rl78_preferred_reload_class): Add
        ATTRIBUTE_UNUSED to x parameter.
        * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.

Index: config/rl78/rl78-opts.h
===================================================================
--- config/rl78/rl78-opts.h     (revision 222368)
+++ config/rl78/rl78-opts.h     (working copy)
@@ -23,7 +23,6 @@
 enum rl78_mul_types
 {
   MUL_NONE,
-  MUL_RL78,
   MUL_G13,
   MUL_G14,
   MUL_UNINIT
Index: config/rl78/rl78.c
===================================================================
--- config/rl78/rl78.c  (revision 222368)
+++ config/rl78/rl78.c  (working copy)
@@ -4646,7 +4646,7 @@
 #define TARGET_PREFERRED_RELOAD_CLASS rl78_preferred_reload_class
 
 static reg_class_t
-rl78_preferred_reload_class (rtx x, reg_class_t rclass)
+rl78_preferred_reload_class (rtx x ATTRIBUTE_UNUSED, reg_class_t rclass)
 {
   if (rclass == NO_REGS)
     rclass = V_REGS;

Reply via email to