summaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-19 20:35:59 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2012-03-19 20:35:59 +0000
commit9918291828d3b55788c8442ca65ca46884503c03 (patch)
tree197d82787b3392897d2b981c6e80f5eb87ac5a7b /gcc/builtins.c
parent11e875c9eb43c86848ec9f22278b3ca49536ace8 (diff)
downloadgcc-9918291828d3b55788c8442ca65ca46884503c03.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@185541 138bc75d-0d04-0410-961f-82ee72b054a4
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 a086a8cb1a5..7afe61df505 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;
}
}