aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoern Rennecke <amylaar@spamcop.net>2010-11-22 21:50:49 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>2010-11-22 21:50:49 +0000
commitd6d17ae760f1060e04b211b04d4c952662fe121b (patch)
tree6f1332be1ef4e54b35f31f6d6ae3e70781e4a7c8
parent9a31f6a360b162a2defc6ddaeddc49388a5dffbd (diff)
downloadgcc-d6d17ae760f1060e04b211b04d4c952662fe121b.zip
gcc-d6d17ae760f1060e04b211b04d4c952662fe121b.tar.gz
gcc-d6d17ae760f1060e04b211b04d4c952662fe121b.tar.bz2
re PR target/46613 (m32c fails to build - m32c_conditional_register_usage missing for m32c-pragma.c)
PR target/46613 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare. * config/m32c/m32c.c (m32c_conditional_register_usage): No longer static. From-SVN: r167056
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/m32c/m32c-protos.h1
-rw-r--r--gcc/config/m32c/m32c.c3
3 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 753b970..6ba01c7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -17,6 +17,11 @@
* config/picochip/picochip-protos.h: Don't include "target.h" .
(picochip_secondary_reload): Don't declare.
+ PR target/46613
+ * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
+ * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
+ static.
+
2010-11-22 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/46609
diff --git a/gcc/config/m32c/m32c-protos.h b/gcc/config/m32c/m32c-protos.h
index 2e7422b..f7c32e7 100644
--- a/gcc/config/m32c/m32c-protos.h
+++ b/gcc/config/m32c/m32c-protos.h
@@ -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);
diff --git a/gcc/config/m32c/m32c.c b/gcc/config/m32c/m32c.c
index 42b4517..659de83 100644
--- a/gcc/config/m32c/m32c.c
+++ b/gcc/config/m32c/m32c.c
@@ -88,7 +88,6 @@ static rtx m32c_subreg (enum machine_mode, rtx, enum machine_mode, int);
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 @@ static struct
#undef TARGET_CONDITIONAL_REGISTER_USAGE
#define TARGET_CONDITIONAL_REGISTER_USAGE m32c_conditional_register_usage
-static void
+void
m32c_conditional_register_usage (void)
{
int i;