diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-23 10:03:42 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-06-23 10:03:42 +0000 |
commit | a9f2963b8b4bdedeb77ea791c4b81205cc8b4832 (patch) | |
tree | 6b098c9cc6213a7d7fc73ae01e41aebcd5252b5a /gcc/calls.c | |
parent | aad3d095b29fdddb35e7e7641b70d98b63f9ddc4 (diff) | |
download | gcc-a9f2963b8b4bdedeb77ea791c4b81205cc8b4832.tar.gz |
* calls.c (compute_argument_addresses): Force stack slots into
alias set 0.
* expr.c (emit_push_insn): Force pushes into alias set 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34662 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/calls.c')
-rw-r--r-- | gcc/calls.c | 7 |
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; } } } |