rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
authorAnatoly Sokolov <aesok@post.ru>
Tue, 21 Sep 2010 19:03:25 +0000 (23:03 +0400)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Tue, 21 Sep 2010 19:03:25 +0000 (23:03 +0400)
* 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

gcc/ChangeLog
gcc/config/rs6000/rs6000-protos.h
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.h

index eb4e36ab922f6196dd07efedf785f01c52233c2a..a8ab21e2eb917b7e7467d5fc0f967eee44d3db25 100644 (file)
@@ -1,3 +1,12 @@
+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>
 
        PR objc/25965
index c18899448ee45e55cb762b96f795fd938c227a0a..a5e055ed3cf391f00dd8d096551f314f65850ba9 100644 (file)
@@ -87,7 +87,6 @@ extern int extract_ME (rtx);
 extern void rs6000_output_function_entry (FILE *, const char *);
 extern void print_operand (FILE *, rtx, int);
 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,
                                               enum rtx_code);
 extern void rs6000_emit_sISEL (enum machine_mode, rtx[]);
index 4b874399ac7624b3a9deac30527f1f4db9d19cd8..4dc7b80a3c0c0d2d1ba30233a3bfe146e11b000a 100644 (file)
@@ -996,6 +996,7 @@ static tree rs6000_builtin_vectorized_libmass (tree, tree, tree);
 static tree rs6000_builtin_vectorized_function (tree, tree, tree);
 static int rs6000_savres_strategy (rs6000_stack_t *, bool, int, 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_epilogue (FILE *, 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[] =
 #undef TARGET_ASM_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
 #define TARGET_LEGITIMIZE_ADDRESS rs6000_legitimize_address
 
@@ -16026,9 +16030,9 @@ print_operand_address (FILE *file, rtx x)
     gcc_unreachable ();
 }
 \f
-/* 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)
 {
   if (GET_CODE (x) == UNSPEC)
index b12ed819ab8ba70e67e2a875fe71921f8c0cd93c..24edf6cb98c3f165a488ee9ae486088a9d997dd4 100644 (file)
@@ -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 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 */
 /* #define  MACHINE_no_sched_interblock */
 /* #define  MACHINE_no_sched_speculative */