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
This commit is contained in:
Joern Rennecke 2010-11-22 20:55:07 +00:00 committed by Joern Rennecke
parent 87e0555a03
commit 2d171cfe1f
3 changed files with 9 additions and 9 deletions

View File

@ -1,3 +1,10 @@
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.
2010-11-22 H.J. Lu <hongjiu.lu@intel.com>
PR bootstrap/46609

View File

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

View File

@ -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,