summaryrefslogtreecommitdiff
path: root/gcc/calls.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/calls.c')
-rw-r--r--gcc/calls.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/calls.c b/gcc/calls.c
index 5892cba4ce1..3561f5987f4 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -1595,6 +1595,13 @@ compute_argument_addresses (args, argblock, num_actuals)
args[i].stack_slot = gen_rtx_MEM (args[i].mode, addr);
set_mem_attributes (args[i].stack_slot,
TREE_TYPE (args[i].tree_value), 1);
+
+ /* Function incoming arguments may overlap with sibling call
+ outgoing arguments and we cannot allow reordering of reads
+ from function arguments with stores to outgoing arguments
+ of sibling calls. */
+ MEM_ALIAS_SET (args[i].stack) = 0;
+ MEM_ALIAS_SET (args[i].stack_slot) = 0;
}
}
}