diff options
author | Janis Johnson <janis187@us.ibm.com> | 2009-10-08 19:19:29 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2009-10-08 19:19:29 +0000 |
commit | 42ccb890752a9456140ee00d12dbcf4fc62ac0a3 (patch) | |
tree | ccf68c0ef521cfa12d4b9f3bb814003ce6176c95 /gcc | |
parent | 625f802cafd00f2a6933d7f85ff6f284237096e9 (diff) | |
download | gcc-42ccb890752a9456140ee00d12dbcf4fc62ac0a3.zip gcc-42ccb890752a9456140ee00d12dbcf4fc62ac0a3.tar.gz gcc-42ccb890752a9456140ee00d12dbcf4fc62ac0a3.tar.bz2 |
rs6000.c (rs6000_delegitimize_address): Remove.
* config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
(TARGET_DELEGITIMIZE_ADDRESS): Likewise.
From-SVN: r152571
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 31 |
2 files changed, 5 insertions, 31 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 14eca8e..e91ab6d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 1215a9f..333babc 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -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. */ |