public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Commit: RL78: Fix compile time warnings
@ 2015-04-23 13:41 Nick Clifton
  0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2015-04-23 13:41 UTC (permalink / raw)
  To: gcc-patches

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  <nickc@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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-23 13:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-23 13:41 Commit: RL78: Fix compile time warnings Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).