This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RFA (picochip): Fix target/46608
- From: Joern Rennecke <amylaar at spamcop dot net>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 22 Nov 2010 14:34:51 -0500
- Subject: RFA (picochip): Fix target/46608
Cross-tested --enable-werror-always 'make all-gcc' on i686-pc-linux-gnu.
2010-11-22 Joern Rennecke <amylaar@spamcop.net>
PR target/46608
* config/picochip/picochip.c (picochip_secondary_reload): Make static.
* config/picochip/picochip-protos.h: Don't include "target.h" .
(picochip_secondary_reload): Don't declare.
Index: gcc/config/picochip/picochip.c
===================================================================
--- gcc/config/picochip/picochip.c (revision 167032)
+++ gcc/config/picochip/picochip.c (working copy)
@@ -114,7 +114,7 @@ int picochip_legitimize_reload_address (
rtx picochip_struct_value_rtx(tree fntype ATTRIBUTE_UNUSED, int incoming ATTRIBUTE_UNUSED);
rtx picochip_function_value (const_tree valtype, const_tree func ATTRIBUTE_UNUSED,
bool outgoing ATTRIBUTE_UNUSED);
-reg_class_t
+static reg_class_t
picochip_secondary_reload (bool in_p,
rtx x ATTRIBUTE_UNUSED,
reg_class_t cla ATTRIBUTE_UNUSED,
@@ -4509,7 +4509,7 @@ picochip_get_high_const (rtx value)
choice of two registers to choose from, so that we a guaranteed to
get at least one register which is different to the output
register. This trick is taken from the alpha implementation. */
-reg_class_t
+static reg_class_t
picochip_secondary_reload (bool in_p,
rtx x ATTRIBUTE_UNUSED,
reg_class_t cla ATTRIBUTE_UNUSED,
Index: gcc/config/picochip/picochip-protos.h
===================================================================
--- gcc/config/picochip/picochip-protos.h (revision 167032)
+++ gcc/config/picochip/picochip-protos.h (working copy)
@@ -21,7 +21,6 @@
along with GCC; see the file COPYING3. If not, see
<http://www.gnu.org/licenses/>. */
-#include "target.h"
extern void picochip_function_prologue (FILE *, HOST_WIDE_INT);
extern void picochip_function_epilogue (FILE *, HOST_WIDE_INT);
@@ -66,12 +65,6 @@ extern int picochip_absolute_memory_oper
extern rtx picochip_function_value (const_tree valtype, const_tree func, bool outgoing);
extern int picochip_symbol_offset (rtx operand);
-extern reg_class_t picochip_secondary_reload(bool in_p,
- rtx x,
- reg_class_t cla,
- enum machine_mode mode,
- secondary_reload_info *sri);
-
extern void picochip_get_hi_aligned_mem (rtx ref, rtx * paligned_mem, rtx * pbitnum);
extern rtx picochip_get_low_const (rtx value);