Patchwork Committed: Fix PR target/46613

login
register
mail settings
Submitter Joern Rennecke
Date Nov. 22, 2010, 9:55 p.m.
Message ID <20101122165552.ar8nc1mjkkw8k4cw-nzlynne@webmail.spamcop.net>
Download mbox | patch
Permalink /patch/72600/
State New
Headers show

Comments

Joern Rennecke - Nov. 22, 2010, 9:55 p.m.
Tested cross-build i686-pc-linux-gnu X m32c-elf.

Committed as obvious.
2010-11-22  Joern Rennecke  <amylaar@spamcop.net>

	PR target/46613
	* config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
	* config/m32c/m32c.c (m32c_conditional_register_usage): No longer
	static.

Patch

Index: config/m32c/m32c.c
===================================================================
--- config/m32c/m32c.c	(revision 167053)
+++ config/m32c/m32c.c	(working copy)
@@ -88,7 +88,6 @@  static rtx m32c_subreg (enum machine_mod
 static int need_to_save (int);
 static rtx m32c_function_value (const_tree, const_tree, bool);
 static rtx m32c_libcall_value (enum machine_mode, const_rtx);
-static void m32c_conditional_register_usage (void);
 
 /* Returns true if an address is specified, else false.  */
 static bool m32c_get_pragma_address (const char *varname, unsigned *addr);
@@ -530,7 +529,7 @@  m32c_init_expanders (void)
 
 #undef TARGET_CONDITIONAL_REGISTER_USAGE
 #define TARGET_CONDITIONAL_REGISTER_USAGE m32c_conditional_register_usage
-static void
+void
 m32c_conditional_register_usage (void)
 {
   int i;
Index: config/m32c/m32c-protos.h
===================================================================
--- config/m32c/m32c-protos.h	(revision 167053)
+++ config/m32c/m32c-protos.h	(working copy)
@@ -22,6 +22,7 @@ 
 #define MM enum machine_mode
 #define UINT unsigned int
 
+void m32c_conditional_register_usage (void);
 int  m32c_const_ok_for_constraint_p (HOST_WIDE_INT, char, const char *);
 UINT m32c_dwarf_frame_regnum (int);
 int  m32c_eh_return_data_regno (int);