From 2d171cfe1fc12570a5b76a1c436f4c1de39ba742 Mon Sep 17 00:00:00 2001 From: Joern Rennecke Date: Mon, 22 Nov 2010 20:55:07 +0000 Subject: [PATCH] re PR target/46608 (picochip-protos.h includes target.h) 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. From-SVN: r167050 --- gcc/ChangeLog | 7 +++++++ gcc/config/picochip/picochip-protos.h | 7 ------- gcc/config/picochip/picochip.c | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e16b8e7180c..a12565619e1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2010-11-22 Joern Rennecke + + 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. + 2010-11-22 H.J. Lu PR bootstrap/46609 diff --git a/gcc/config/picochip/picochip-protos.h b/gcc/config/picochip/picochip-protos.h index 991c028afba..b806ea23f74 100644 --- a/gcc/config/picochip/picochip-protos.h +++ b/gcc/config/picochip/picochip-protos.h @@ -21,7 +21,6 @@ along with GCC; see the file COPYING3. If not, see . */ -#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_operand (rtx op, enum machine_mode mode); 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); diff --git a/gcc/config/picochip/picochip.c b/gcc/config/picochip/picochip.c index 8550285bd04..20a5b37dedd 100644 --- a/gcc/config/picochip/picochip.c +++ b/gcc/config/picochip/picochip.c @@ -114,7 +114,7 @@ int picochip_legitimize_reload_address (rtx *x, enum machine_mode mode, 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, -- 2.30.2