diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2012-03-19 21:35:59 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2012-03-19 21:35:59 +0100 |
commit | 18ae1560d19ed5e9e87e3dc4712ee917755374b2 (patch) | |
tree | 197d82787b3392897d2b981c6e80f5eb87ac5a7b /gcc/expr.c | |
parent | 3e4907f4fb4d84d9b8426483f213c9b1ad797abd (diff) | |
download | gcc-18ae1560d19ed5e9e87e3dc4712ee917755374b2.zip gcc-18ae1560d19ed5e9e87e3dc4712ee917755374b2.tar.gz gcc-18ae1560d19ed5e9e87e3dc4712ee917755374b2.tar.bz2 |
builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of copy_to_mode_reg (Pmode, ...).
* builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
copy_to_mode_reg (Pmode, ...).
(expand_builtin_frame_address): Ditto.
* expr.c (emit_block_move_via_libcall): Ditto.
(set_storage_via_libcall): Ditto.
* config/i386/i386.c (ix86_expand_movmem): Ditto.
(ix86_expand_setmem): Ditto.
(ix86_trampoline_init): DItto.
* config/i386/i386.md (cmpstrnsi): Ditto.
(allocate_stack): Ditto.
From-SVN: r185541
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1343,8 +1343,8 @@ emit_block_move_via_libcall (rtx dst, rtx src, rtx size, bool tailcall) pseudos. We can then place those new pseudos into a VAR_DECL and use them later. */ - dst_addr = copy_to_mode_reg (Pmode, XEXP (dst, 0)); - src_addr = copy_to_mode_reg (Pmode, XEXP (src, 0)); + dst_addr = copy_addr_to_reg (XEXP (dst, 0)); + src_addr = copy_addr_to_reg (XEXP (src, 0)); dst_addr = convert_memory_address (ptr_mode, dst_addr); src_addr = convert_memory_address (ptr_mode, src_addr); @@ -2719,7 +2719,7 @@ set_storage_via_libcall (rtx object, rtx size, rtx val, bool tailcall) /* Emit code to copy OBJECT and SIZE into new pseudos. We can then place those into new pseudos into a VAR_DECL and use them later. */ - object = copy_to_mode_reg (Pmode, XEXP (object, 0)); + object = copy_addr_to_reg (XEXP (object, 0)); size_mode = TYPE_MODE (sizetype); size = convert_to_mode (size_mode, size, 1); |