]> gcc.gnu.org Git - gcc.git/commitdiff
xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
authorAnatoly Sokolov <aesok@post.ru>
Fri, 7 Jan 2011 13:45:04 +0000 (16:45 +0300)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Fri, 7 Jan 2011 13:45:04 +0000 (16:45 +0300)
* config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
* config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
Remove.
* config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
(TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.

From-SVN: r168568

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

index 77aca5c317a91e4c2d4f53071fb3bf4f412a1b78..2c8ec555ba2feba7d5ce0f9a77000e9cd90b7c3f 100644 (file)
@@ -1,3 +1,11 @@
+2011-01-07  Anatoly Sokolov  <aesok@post.ru>
+
+       * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
+       * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
+       Remove.
+       * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
+       (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
+
 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR debug/46704
index 898c8085ceab9aa79d3419b71c200f072271c618..356e0f12074013768e2bcdc8ba766c9d9eb6de95 100644 (file)
@@ -62,7 +62,6 @@ extern void init_cumulative_args (CUMULATIVE_ARGS *, int);
 
 extern void print_operand (FILE *, rtx, int);
 extern void print_operand_address (FILE *, rtx);
-extern bool xtensa_output_addr_const_extra (FILE *, rtx);
 extern void xtensa_output_literal (FILE *, rtx, enum machine_mode, int);
 extern rtx xtensa_return_addr (int, rtx);
 extern enum reg_class xtensa_preferred_reload_class (rtx, enum reg_class, int);
index c3c69fdcc94b888c618102ec26d972112c303aa0..0a6f34bbb8581ae35aaa3890a729aac8568b788d 100644 (file)
@@ -157,6 +157,7 @@ static bool xtensa_frame_pointer_required (void);
 static rtx xtensa_static_chain (const_tree, bool);
 static void xtensa_asm_trampoline_template (FILE *);
 static void xtensa_trampoline_init (rtx, tree, rtx);
+static bool xtensa_output_addr_const_extra (FILE *, rtx);
 
 static const int reg_nonleaf_alloc_order[FIRST_PSEUDO_REGISTER] =
   REG_ALLOC_ORDER;
@@ -274,6 +275,9 @@ static const struct default_options xtensa_option_optimization_table[] =
 #undef TARGET_OPTION_OPTIMIZATION_TABLE
 #define TARGET_OPTION_OPTIMIZATION_TABLE xtensa_option_optimization_table
 
+#undef TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
+#define TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA xtensa_output_addr_const_extra
+
 struct gcc_target targetm = TARGET_INITIALIZER;
 
 \f
@@ -2437,8 +2441,9 @@ print_operand_address (FILE *file, rtx addr)
     }
 }
 
+/* Implement TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA.  */
 
-bool
+static bool
 xtensa_output_addr_const_extra (FILE *fp, rtx x)
 {
   if (GET_CODE (x) == UNSPEC && XVECLEN (x, 0) == 1)
index bd04893d1b6337ee39220e5f958bfe846c47cbbf..ab1738333f214eafbcefc1abfb2cb02e7a81179b 100644 (file)
@@ -816,14 +816,6 @@ typedef struct xtensa_args
 #define PRINT_OPERAND(FILE, X, CODE) print_operand (FILE, X, CODE)
 #define PRINT_OPERAND_ADDRESS(FILE, ADDR) print_operand_address (FILE, ADDR)
 
-/* Recognize machine-specific patterns that may appear within
-   constants.  Used for PIC-specific UNSPECs.  */
-#define OUTPUT_ADDR_CONST_EXTRA(STREAM, X, FAIL)                       \
-  do {                                                                 \
-    if (xtensa_output_addr_const_extra (STREAM, X) == FALSE)           \
-      goto FAIL;                                                       \
-  } while (0)
-
 /* Globalizing directive for a label.  */
 #define GLOBAL_ASM_OP "\t.global\t"
 
This page took 0.069836 seconds and 5 git commands to generate.