This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Committed: Fix PR target/46613


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.

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);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]