diff options
author | Jakub Jelinek <jakub@redhat.com> | 2000-06-23 12:03:42 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2000-06-23 12:03:42 +0200 |
commit | 7ab923ccffee2b00e18580a21e54cee3f3a0c24c (patch) | |
tree | 6b098c9cc6213a7d7fc73ae01e41aebcd5252b5a /gcc/calls.c | |
parent | 054451eaca6db3e5347180411e0c84cc84191a49 (diff) | |
download | gcc-7ab923ccffee2b00e18580a21e54cee3f3a0c24c.zip gcc-7ab923ccffee2b00e18580a21e54cee3f3a0c24c.tar.gz gcc-7ab923ccffee2b00e18580a21e54cee3f3a0c24c.tar.bz2 |
calls.c (compute_argument_addresses): Force stack slots into alias set 0.
* calls.c (compute_argument_addresses): Force stack slots into
alias set 0.
* expr.c (emit_push_insn): Force pushes into alias set 0.
From-SVN: r34662
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 5892cba..3561f59 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; } } } |