summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-16 20:42:28 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-02-16 20:42:28 +0000
commitb3caaea33d96918374ea97a7f923f40e1fb2d681 (patch)
treedfacb7b9b2143b5bc6cc6b075dce7f4a9ba4711b
parent345be433b4c273e8ab4a5837266118cc74244b7a (diff)
downloadgcc-b3caaea33d96918374ea97a7f923f40e1fb2d681.tar.gz
* calls.c (store_one_arg): Mark any slots used for the argument
as in-use immediately after we're done saving any slots which will be overwritten by this argument. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25256 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/calls.c15
2 files changed, 14 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a1b00de7c3c..687702afd55 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Tue Feb 16 21:29:38 1999 Jeffrey A Law (law@cygnus.com)
+
+ * calls.c (store_one_arg): Mark any slots used for the argument
+ as in-use immediately after we're done saving any slots which
+ will be overwritten by this argument.
+
Tue Feb 16 21:02:07 1999 Anton Hartl <toni@devsoft.com>
* rs6000.md (call_value): Fix typo.
diff --git a/gcc/calls.c b/gcc/calls.c
index b5bb745c7e7..b8f825c53b6 100644
--- a/gcc/calls.c
+++ b/gcc/calls.c
@@ -3558,6 +3558,14 @@ store_one_arg (arg, argblock, may_be_alloca, variable_size,
}
}
}
+
+ /* Now that we have saved any slots that will be overwritten by this
+ store, mark all slots this store will use. We must do this before
+ we actually expand the argument since the expansion itself may
+ trigger library calls which might need to use the same stack slot. */
+ if (argblock && ! variable_size && arg->stack)
+ for (i = lower_bound; i < upper_bound; i++)
+ stack_usage_map[i] = 1;
#endif
/* If this isn't going to be placed on both the stack and in registers,
@@ -3733,11 +3741,4 @@ store_one_arg (arg, argblock, may_be_alloca, variable_size,
preserve_temp_slots (NULL_RTX);
free_temp_slots ();
pop_temp_slots ();
-
-#ifdef ACCUMULATE_OUTGOING_ARGS
- /* Now mark the segment we just used. */
- if (argblock && ! variable_size && arg->stack)
- for (i = lower_bound; i < upper_bound; i++)
- stack_usage_map[i] = 1;
-#endif
}