summaryrefslogtreecommitdiff
path: root/gcc/function.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-11-13 07:00:55 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-11-13 07:00:55 +0000
commitdb5fbfb420e7e6abb8b57507f2e46207e608a2b6 (patch)
tree002151d6bb53170e6f990aa4d94c0ff0d8c103ce /gcc/function.c
parentc7b6c6cd4791c3003397feea31482c3d19419fe2 (diff)
downloadgcc-db5fbfb420e7e6abb8b57507f2e46207e608a2b6.tar.gz
function.c (assign_parms): When calling put_var_into_stack...
* function.c (assign_parms): When calling put_var_into_stack, make sure that there are no hidden pending sequences. From-SVN: r37417
Diffstat (limited to 'gcc/function.c')
-rw-r--r--gcc/function.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/gcc/function.c b/gcc/function.c
index ece43d3dc9d..bf71b5ac9a8 100644
--- a/gcc/function.c
+++ b/gcc/function.c
@@ -4863,7 +4863,19 @@ assign_parms (fndecl)
/* If something wants our address, try to use ADDRESSOF. */
if (TREE_ADDRESSABLE (parm))
- put_var_into_stack (parm);
+ {
+ /* If we end up putting something into the stack,
+ fixup_var_refs_insns will need to make a pass over
+ all the instructions. It looks throughs the pending
+ sequences -- but it can't see the ones in the
+ CONVERSION_INSNS, if they're not on the sequence
+ stack. So, we go back to that sequence, just so that
+ the fixups will happen. */
+ push_to_sequence (conversion_insns);
+ put_var_into_stack (parm);
+ conversion_insns = get_insns ();
+ end_sequence ();
+ }
}
else
{