Commit 5e68c77a by Anatoly Sokolov Committed by Anatoly Sokolov

rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.

	* config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
	* config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
	Remove.
	* config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make
	static.
	(TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.

From-SVN: r164493
parent 7df82166
2010-09-21 Anatoly Sokolov <aesok@post.ru>
* config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
* config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
Remove.
* config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make
static.
(TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/25965 PR objc/25965
......
...@@ -87,7 +87,6 @@ extern int extract_ME (rtx); ...@@ -87,7 +87,6 @@ extern int extract_ME (rtx);
extern void rs6000_output_function_entry (FILE *, const char *); extern void rs6000_output_function_entry (FILE *, const char *);
extern void print_operand (FILE *, rtx, int); extern void print_operand (FILE *, rtx, int);
extern void print_operand_address (FILE *, rtx); extern void print_operand_address (FILE *, rtx);
extern bool rs6000_output_addr_const_extra (FILE *, rtx);
extern enum rtx_code rs6000_reverse_condition (enum machine_mode, extern enum rtx_code rs6000_reverse_condition (enum machine_mode,
enum rtx_code); enum rtx_code);
extern void rs6000_emit_sISEL (enum machine_mode, rtx[]); extern void rs6000_emit_sISEL (enum machine_mode, rtx[]);
......
...@@ -996,6 +996,7 @@ static tree rs6000_builtin_vectorized_libmass (tree, tree, tree); ...@@ -996,6 +996,7 @@ static tree rs6000_builtin_vectorized_libmass (tree, tree, tree);
static tree rs6000_builtin_vectorized_function (tree, tree, tree); static tree rs6000_builtin_vectorized_function (tree, tree, tree);
static int rs6000_savres_strategy (rs6000_stack_t *, bool, int, int); static int rs6000_savres_strategy (rs6000_stack_t *, bool, int, int);
static void rs6000_restore_saved_cr (rtx, int); static void rs6000_restore_saved_cr (rtx, int);
static bool rs6000_output_addr_const_extra (FILE *, rtx);
static void rs6000_output_function_prologue (FILE *, HOST_WIDE_INT); static void rs6000_output_function_prologue (FILE *, HOST_WIDE_INT);
static void rs6000_output_function_epilogue (FILE *, HOST_WIDE_INT); static void rs6000_output_function_epilogue (FILE *, HOST_WIDE_INT);
static void rs6000_output_mi_thunk (FILE *, tree, HOST_WIDE_INT, HOST_WIDE_INT, static void rs6000_output_mi_thunk (FILE *, tree, HOST_WIDE_INT, HOST_WIDE_INT,
...@@ -1432,6 +1433,9 @@ static const struct attribute_spec rs6000_attribute_table[] = ...@@ -1432,6 +1433,9 @@ static const struct attribute_spec rs6000_attribute_table[] =
#undef TARGET_ASM_FUNCTION_EPILOGUE #undef TARGET_ASM_FUNCTION_EPILOGUE
#define TARGET_ASM_FUNCTION_EPILOGUE rs6000_output_function_epilogue #define TARGET_ASM_FUNCTION_EPILOGUE rs6000_output_function_epilogue
#undef TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
#define TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA rs6000_output_addr_const_extra
#undef TARGET_LEGITIMIZE_ADDRESS #undef TARGET_LEGITIMIZE_ADDRESS
#define TARGET_LEGITIMIZE_ADDRESS rs6000_legitimize_address #define TARGET_LEGITIMIZE_ADDRESS rs6000_legitimize_address
...@@ -16026,9 +16030,9 @@ print_operand_address (FILE *file, rtx x) ...@@ -16026,9 +16030,9 @@ print_operand_address (FILE *file, rtx x)
gcc_unreachable (); gcc_unreachable ();
} }
/* Implement OUTPUT_ADDR_CONST_EXTRA for address X. */ /* Implement TARGET_OUTPUT_ADDR_CONST_EXTRA. */
bool static bool
rs6000_output_addr_const_extra (FILE *file, rtx x) rs6000_output_addr_const_extra (FILE *file, rtx x)
{ {
if (GET_CODE (x) == UNSPEC) if (GET_CODE (x) == UNSPEC)
......
...@@ -2411,12 +2411,6 @@ extern char rs6000_reg_names[][8]; /* register names (0 vs. %r0). */ ...@@ -2411,12 +2411,6 @@ extern char rs6000_reg_names[][8]; /* register names (0 vs. %r0). */
#define PRINT_OPERAND_ADDRESS(FILE, ADDR) print_operand_address (FILE, ADDR) #define PRINT_OPERAND_ADDRESS(FILE, ADDR) print_operand_address (FILE, ADDR)
#define OUTPUT_ADDR_CONST_EXTRA(STREAM, X, FAIL) \
do \
if (!rs6000_output_addr_const_extra (STREAM, X)) \
goto FAIL; \
while (0)
/* uncomment for disabling the corresponding default options */ /* uncomment for disabling the corresponding default options */
/* #define MACHINE_no_sched_interblock */ /* #define MACHINE_no_sched_interblock */
/* #define MACHINE_no_sched_speculative */ /* #define MACHINE_no_sched_speculative */
......
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