Commit efe554e4 by Nathan Froyd Committed by Nathan Froyd

m68hc11-protos.h (print_operand): Delete.

	* config/m68hc11/m68hc11-protos.h (print_operand): Delete.
	(print_operand_address): Delete.
	* config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
	(PRINT_OPERAND_ADDRESS): Delete.
	* config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
	static.
	(m68hc11_print_operand): Make static.
	(TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.

From-SVN: r160940
parent c73035c7
2010-06-17 Nathan Froyd <froydnj@codesourcery.com> 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
* config/m68hc11/m68hc11-protos.h (print_operand): Delete.
(print_operand_address): Delete.
* config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
(PRINT_OPERAND_ADDRESS): Delete.
* config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
static.
(m68hc11_print_operand): Make static.
(TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
* config/m32r/m32r-protos.h (m32r_print_operand): Delete. * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
(m32r_print_operand_address): Delete. (m32r_print_operand_address): Delete.
* config/m32r/m32r.h (m32r_punct_chars): Delete. * config/m32r/m32r.h (m32r_punct_chars): Delete.
......
/* Prototypes for exported functions defined in m68hc11.c /* Prototypes for exported functions defined in m68hc11.c
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2009 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2009, 2010
Free Software Foundation, Inc. Free Software Foundation, Inc.
Contributed by Stephane Carrez (stcarrez@nerim.fr) Contributed by Stephane Carrez (stcarrez@nerim.fr)
...@@ -57,9 +57,6 @@ extern void m68hc11_output_swap (rtx, rtx*); ...@@ -57,9 +57,6 @@ extern void m68hc11_output_swap (rtx, rtx*);
extern int next_insn_test_reg (rtx, rtx); extern int next_insn_test_reg (rtx, rtx);
extern void print_operand (FILE*, rtx, int);
extern void print_operand_address (FILE*, rtx);
extern int m68hc11_reload_operands (rtx*); extern int m68hc11_reload_operands (rtx*);
extern int dead_register_here (rtx, rtx); extern int dead_register_here (rtx, rtx);
......
/* Subroutines for code generation on Motorola 68HC11 and 68HC12. /* Subroutines for code generation on Motorola 68HC11 and 68HC12.
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
2009 Free Software Foundation, Inc. 2009, 2010 Free Software Foundation, Inc.
Contributed by Stephane Carrez (stcarrez@nerim.fr) Contributed by Stephane Carrez (stcarrez@nerim.fr)
This file is part of GCC. This file is part of GCC.
...@@ -78,6 +78,8 @@ static tree m68hc11_handle_page0_attribute (tree *, tree, tree, int, bool *); ...@@ -78,6 +78,8 @@ static tree m68hc11_handle_page0_attribute (tree *, tree, tree, int, bool *);
void create_regs_rtx (void); void create_regs_rtx (void);
static void asm_print_register (FILE *, int); static void asm_print_register (FILE *, int);
static void m68hc11_print_operand (FILE *, rtx, int);
static void m68hc11_print_operand_address (FILE *, rtx);
static void m68hc11_output_function_epilogue (FILE *, HOST_WIDE_INT); static void m68hc11_output_function_epilogue (FILE *, HOST_WIDE_INT);
static void m68hc11_asm_out_constructor (rtx, int); static void m68hc11_asm_out_constructor (rtx, int);
static void m68hc11_asm_out_destructor (rtx, int); static void m68hc11_asm_out_destructor (rtx, int);
...@@ -238,6 +240,11 @@ static const struct attribute_spec m68hc11_attribute_table[] = ...@@ -238,6 +240,11 @@ static const struct attribute_spec m68hc11_attribute_table[] =
#undef TARGET_ASM_ALIGNED_HI_OP #undef TARGET_ASM_ALIGNED_HI_OP
#define TARGET_ASM_ALIGNED_HI_OP "\t.word\t" #define TARGET_ASM_ALIGNED_HI_OP "\t.word\t"
#undef TARGET_PRINT_OPERAND
#define TARGET_PRINT_OPERAND m68hc11_print_operand
#undef TARGET_PRINT_OPERAND_ADDRESS
#define TARGET_PRINT_OPERAND_ADDRESS m68hc11_print_operand_address
#undef TARGET_ASM_FUNCTION_EPILOGUE #undef TARGET_ASM_FUNCTION_EPILOGUE
#define TARGET_ASM_FUNCTION_EPILOGUE m68hc11_output_function_epilogue #define TARGET_ASM_FUNCTION_EPILOGUE m68hc11_output_function_epilogue
...@@ -2123,8 +2130,8 @@ asm_print_register (FILE *file, int regno) ...@@ -2123,8 +2130,8 @@ asm_print_register (FILE *file, int regno)
'T' generate the low-part temporary scratch register. The operand is 'T' generate the low-part temporary scratch register. The operand is
ignored. */ ignored. */
void static void
print_operand (FILE *file, rtx op, int letter) m68hc11_print_operand (FILE *file, rtx op, int letter)
{ {
if (letter == 't') if (letter == 't')
{ {
...@@ -2316,8 +2323,8 @@ must_parenthesize (rtx op) ...@@ -2316,8 +2323,8 @@ must_parenthesize (rtx op)
assembler syntax for an instruction operand that is a memory assembler syntax for an instruction operand that is a memory
reference whose address is ADDR. ADDR is an RTL expression. */ reference whose address is ADDR. ADDR is an RTL expression. */
void static void
print_operand_address (FILE *file, rtx addr) m68hc11_print_operand_address (FILE *file, rtx addr)
{ {
rtx base; rtx base;
rtx offset; rtx offset;
......
/* Definitions of target machine for GNU compiler. /* Definitions of target machine for GNU compiler.
Motorola 68HC11 and 68HC12. Motorola 68HC11 and 68HC12.
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010
Free Software Foundation, Inc. Free Software Foundation, Inc.
Contributed by Stephane Carrez (stcarrez@nerim.fr) Contributed by Stephane Carrez (stcarrez@nerim.fr)
...@@ -1351,17 +1351,6 @@ do { \ ...@@ -1351,17 +1351,6 @@ do { \
"*_.frame", "*_.tmp", "*_.z", "*_.xy", "*fake clobber", \ "*_.frame", "*_.tmp", "*_.z", "*_.xy", "*fake clobber", \
SOFT_REG_NAMES, "*sframe", "*ap"} SOFT_REG_NAMES, "*sframe", "*ap"}
/* Print an instruction operand X on file FILE. CODE is the code from the
%-spec for printing this operand. If `%z3' was used to print operand
3, then CODE is 'z'. */
#define PRINT_OPERAND(FILE, X, CODE) \
print_operand (FILE, X, CODE)
/* Print a memory operand whose address is X, on file FILE. */
#define PRINT_OPERAND_ADDRESS(FILE, ADDR) \
print_operand_address (FILE, ADDR)
/* This is how to output an insn to push/pop a register on the stack. /* This is how to output an insn to push/pop a register on the stack.
It need not be very fast code. It need not be very fast code.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment