Commit 1490f93a by Manfred Hollstein Committed by Manfred Hollstein

* calls.c (store_one_arg): Fix unsigned comparison warning.

From-SVN: r102363
parent 76e20664
2005-07-25 Manfred Hollstein <mh@suse.com>
* calls.c (store_one_arg): Fix unsigned comparison warning.
2005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
PR other/22337
......
......@@ -4080,7 +4080,7 @@ store_one_arg (struct arg_data *arg, rtx argblock, int flags,
if ((flags & ECF_SIBCALL) && MEM_P (arg->value))
{
int i = -1;
unsigned int k;
unsigned HOST_WIDE_INT k;
rtx x = arg->value;
if (XEXP (x, 0) == current_function_internal_arg_pointer)
......@@ -4098,7 +4098,11 @@ store_one_arg (struct arg_data *arg, rtx argblock, int flags,
#ifdef ARGS_GROW_DOWNWARD
i = -i - arg->locate.size.constant;
#endif
for (k = 0; k < arg->locate.size.constant; k++)
if (arg->locate.size.constant > 0)
{
unsigned HOST_WIDE_INT sc = arg->locate.size.constant;
for (k = 0; k < sc; k++)
if (i + k < stored_args_map->n_bits
&& TEST_BIT (stored_args_map, i + k))
{
......@@ -4107,6 +4111,7 @@ store_one_arg (struct arg_data *arg, rtx argblock, int flags,
}
}
}
}
/* Don't allow anything left on stack from computation
of argument to alloca. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment