rs6000.c (rs6000_delegitimize_address): Remove.

* config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
(TARGET_DELEGITIMIZE_ADDRESS): Likewise.

From-SVN: r152571
This commit is contained in:
Janis Johnson 2009-10-08 19:19:29 +00:00 committed by Alexandre Oliva
parent 625f802caf
commit 42ccb89075
2 changed files with 5 additions and 31 deletions

View File

@ -1,3 +1,8 @@
2009-10-08 Janis Johnson <janis187@us.ibm.com>
* config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
(TARGET_DELEGITIMIZE_ADDRESS): Likewise.
2009-10-08 Jan Hubicka <jh@suse.cz>
PR middle-end/41626

View File

@ -1003,7 +1003,6 @@ static void rs6000_init_dwarf_reg_sizes_extra (tree);
static rtx rs6000_legitimize_address (rtx, rtx, enum machine_mode);
static rtx rs6000_debug_legitimize_address (rtx, rtx, enum machine_mode);
static rtx rs6000_legitimize_tls_address (rtx, enum tls_model);
static rtx rs6000_delegitimize_address (rtx);
static void rs6000_output_dwarf_dtprel (FILE *, int, rtx) ATTRIBUTE_UNUSED;
static rtx rs6000_tls_get_addr (void);
static rtx rs6000_got_sym (void);
@ -1464,9 +1463,6 @@ static const struct attribute_spec rs6000_attribute_table[] =
#undef TARGET_USE_BLOCKS_FOR_CONSTANT_P
#define TARGET_USE_BLOCKS_FOR_CONSTANT_P rs6000_use_blocks_for_constant_p
#undef TARGET_DELEGITIMIZE_ADDRESS
#define TARGET_DELEGITIMIZE_ADDRESS rs6000_delegitimize_address
#undef TARGET_BUILTIN_RECIPROCAL
#define TARGET_BUILTIN_RECIPROCAL rs6000_builtin_reciprocal
@ -5155,33 +5151,6 @@ rs6000_debug_legitimize_address (rtx x, rtx oldx, enum machine_mode mode)
return ret;
}
/* If ORIG_X is a constant pool reference, return its known value,
otherwise ORIG_X. */
static rtx
rs6000_delegitimize_address (rtx x)
{
rtx orig_x = delegitimize_mem_from_attrs (x);
x = orig_x;
if (!MEM_P (x))
return orig_x;
x = XEXP (x, 0);
if (legitimate_constant_pool_address_p (x)
&& GET_CODE (XEXP (x, 1)) == CONST
&& GET_CODE (XEXP (XEXP (x, 1), 0)) == MINUS
&& GET_CODE (XEXP (XEXP (XEXP (x, 1), 0), 0)) == SYMBOL_REF
&& constant_pool_expr_p (XEXP (XEXP (XEXP (x, 1), 0), 0))
&& GET_CODE (XEXP (XEXP (XEXP (x, 1), 0), 1)) == SYMBOL_REF
&& toc_relative_expr_p (XEXP (XEXP (XEXP (x, 1), 0), 1)))
return get_pool_constant (XEXP (XEXP (XEXP (x, 1), 0), 0));
return orig_x;
}
/* This is called from dwarf2out.c via TARGET_ASM_OUTPUT_DWARF_DTPREL.
We need to emit DTP-relative relocations. */