aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2012-03-19 21:35:59 +0100
committerUros Bizjak <uros@gcc.gnu.org>2012-03-19 21:35:59 +0100
commit18ae1560d19ed5e9e87e3dc4712ee917755374b2 (patch)
tree197d82787b3392897d2b981c6e80f5eb87ac5a7b /gcc/builtins.c
parent3e4907f4fb4d84d9b8426483f213c9b1ad797abd (diff)
downloadgcc-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/builtins.c')
-rw-r--r--gcc/builtins.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c
index a086a8c..7afe61d 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -2613,8 +2613,8 @@ expand_builtin_cexpi (tree exp, rtx target)
op1 = assign_temp (TREE_TYPE (arg), 0, 1, 1);
op2 = assign_temp (TREE_TYPE (arg), 0, 1, 1);
- op1a = copy_to_mode_reg (Pmode, XEXP (op1, 0));
- op2a = copy_to_mode_reg (Pmode, XEXP (op2, 0));
+ op1a = copy_addr_to_reg (XEXP (op1, 0));
+ op2a = copy_addr_to_reg (XEXP (op2, 0));
top1 = make_tree (build_pointer_type (TREE_TYPE (arg)), op1a);
top2 = make_tree (build_pointer_type (TREE_TYPE (arg)), op2a);
@@ -4580,7 +4580,7 @@ expand_builtin_frame_address (tree fndecl, tree exp)
if (!REG_P (tem)
&& ! CONSTANT_P (tem))
- tem = copy_to_mode_reg (Pmode, tem);
+ tem = copy_addr_to_reg (tem);
return tem;
}
}