mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 18:05:09 +08:00
calls.c (try_to_integrate): Tidy stack_usage_map access.
* calls.c (try_to_integrate): Tidy stack_usage_map access. (emit_library_call_value_1): Likewise. Formatting. (store_one_arg): Likewise. From-SVN: r62622
This commit is contained in:
parent
626098f9b9
commit
546ff7777c
@ -1,3 +1,9 @@
|
|||||||
|
2003-02-10 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* calls.c (try_to_integrate): Tidy stack_usage_map access.
|
||||||
|
(emit_library_call_value_1): Likewise. Formatting.
|
||||||
|
(store_one_arg): Likewise.
|
||||||
|
|
||||||
2003-02-09 Nick Clifton <nickc@redhat.com>
|
2003-02-09 Nick Clifton <nickc@redhat.com>
|
||||||
Aldy Hernandez <aldyh@redhat.com>
|
Aldy Hernandez <aldyh@redhat.com>
|
||||||
|
|
||||||
|
42
gcc/calls.c
42
gcc/calls.c
@ -1834,9 +1834,11 @@ try_to_integrate (fndecl, actparms, target, ignore, type, structure_value_addr)
|
|||||||
the stack before executing the inlined function if it
|
the stack before executing the inlined function if it
|
||||||
makes any calls. */
|
makes any calls. */
|
||||||
|
|
||||||
for (i = reg_parm_stack_space - 1; i >= 0; i--)
|
i = reg_parm_stack_space;
|
||||||
if (i < highest_outgoing_arg_in_use && stack_usage_map[i] != 0)
|
if (i > highest_outgoing_arg_in_use)
|
||||||
break;
|
i = highest_outgoing_arg_in_use;
|
||||||
|
while (--i >= 0 && stack_usage_map[i] == 0)
|
||||||
|
;
|
||||||
|
|
||||||
if (stack_arg_under_construction || i >= 0)
|
if (stack_arg_under_construction || i >= 0)
|
||||||
{
|
{
|
||||||
@ -3727,10 +3729,10 @@ emit_library_call_value_1 (retval, orgfun, value, fn_type, outmode, nargs, p)
|
|||||||
{
|
{
|
||||||
tree type = (*lang_hooks.types.type_for_mode) (mode, 0);
|
tree type = (*lang_hooks.types.type_for_mode) (mode, 0);
|
||||||
|
|
||||||
slot = gen_rtx_MEM (mode,
|
slot
|
||||||
|
= gen_rtx_MEM (mode,
|
||||||
expand_expr (build1 (ADDR_EXPR,
|
expand_expr (build1 (ADDR_EXPR,
|
||||||
build_pointer_type
|
build_pointer_type (type),
|
||||||
(type),
|
|
||||||
make_tree (type, val)),
|
make_tree (type, val)),
|
||||||
NULL_RTX, VOIDmode, 0));
|
NULL_RTX, VOIDmode, 0));
|
||||||
}
|
}
|
||||||
@ -3923,14 +3925,15 @@ emit_library_call_value_1 (retval, orgfun, value, fn_type, outmode, nargs, p)
|
|||||||
upper_bound = lower_bound + argvec[argnum].size.constant;
|
upper_bound = lower_bound + argvec[argnum].size.constant;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (i = lower_bound; i < upper_bound; i++)
|
i = lower_bound;
|
||||||
if (stack_usage_map[i]
|
/* Don't worry about things in the fixed argument area;
|
||||||
/* Don't store things in the fixed argument area at this
|
it has already been saved. */
|
||||||
point; it has already been saved. */
|
if (i < reg_parm_stack_space)
|
||||||
&& i > reg_parm_stack_space)
|
i = reg_parm_stack_space;
|
||||||
break;
|
while (i < upper_bound && stack_usage_map[i] == 0)
|
||||||
|
i++;
|
||||||
|
|
||||||
if (i != upper_bound)
|
if (i < upper_bound)
|
||||||
{
|
{
|
||||||
/* We need to make a save area. See what mode we can make
|
/* We need to make a save area. See what mode we can make
|
||||||
it. */
|
it. */
|
||||||
@ -4301,14 +4304,15 @@ store_one_arg (arg, argblock, flags, variable_size, reg_parm_stack_space)
|
|||||||
upper_bound = lower_bound + arg->size.constant;
|
upper_bound = lower_bound + arg->size.constant;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (i = lower_bound; i < upper_bound; i++)
|
i = lower_bound;
|
||||||
if (stack_usage_map[i]
|
/* Don't worry about things in the fixed argument area;
|
||||||
/* Don't store things in the fixed argument area at this point;
|
|
||||||
it has already been saved. */
|
it has already been saved. */
|
||||||
&& i > reg_parm_stack_space)
|
if (i < reg_parm_stack_space)
|
||||||
break;
|
i = reg_parm_stack_space;
|
||||||
|
while (i < upper_bound && stack_usage_map[i] == 0)
|
||||||
|
i++;
|
||||||
|
|
||||||
if (i != upper_bound)
|
if (i < upper_bound)
|
||||||
{
|
{
|
||||||
/* We need to make a save area. See what mode we can make it. */
|
/* We need to make a save area. See what mode we can make it. */
|
||||||
enum machine_mode save_mode
|
enum machine_mode save_mode
|
||||||
|
Loading…
Reference in New Issue
Block a user