summaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2016-12-06 22:47:00 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2016-12-06 22:47:00 +0000
commit88f806913231d097a6e0fbbfc1045c18dcd032be (patch)
treea0f3522e79b59be083f1a83810c5b0e45025813a /gcc/calls.c
parentd4e6573ef525076b01036563be0056ea8f84a314 (diff)
downloadgcc-88f806913231d097a6e0fbbfc1045c18dcd032be.tar.gz
PR middle-end/78700
* calls.c (expand_call): Move back call to prepare_call_address. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243322 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/calls.c')
-rw-r--r--gcc/calls.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/calls.c b/gcc/calls.c
index 21385ce0e12..7941869b2b8 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -3427,13 +3427,6 @@ expand_call (tree exp, rtx target, int ignore)
if (STRICT_ALIGNMENT)
store_unaligned_arguments_into_pseudos (args, num_actuals);
- /* Prepare the address of the call. This must be done before any
- register parameters is loaded for find_first_parameter_load to
- work properly in the presence of descriptors. */
- funexp = prepare_call_address (fndecl ? fndecl : fntype, funexp,
- static_chain_value, &call_fusage,
- reg_parm_seen, flags);
-
/* Now store any partially-in-registers parm.
This is the last place a block-move can happen. */
if (reg_parm_seen)
@@ -3544,6 +3537,9 @@ expand_call (tree exp, rtx target, int ignore)
}
after_args = get_last_insn ();
+ funexp = prepare_call_address (fndecl ? fndecl : fntype, funexp,
+ static_chain_value, &call_fusage,
+ reg_parm_seen, flags);
load_register_parameters (args, num_actuals, &call_fusage, flags,
pass == 0, &sibcall_failure);