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> 2005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
PR other/22337 PR other/22337
......
...@@ -4080,7 +4080,7 @@ store_one_arg (struct arg_data *arg, rtx argblock, int flags, ...@@ -4080,7 +4080,7 @@ store_one_arg (struct arg_data *arg, rtx argblock, int flags,
if ((flags & ECF_SIBCALL) && MEM_P (arg->value)) if ((flags & ECF_SIBCALL) && MEM_P (arg->value))
{ {
int i = -1; int i = -1;
unsigned int k; unsigned HOST_WIDE_INT k;
rtx x = arg->value; rtx x = arg->value;
if (XEXP (x, 0) == current_function_internal_arg_pointer) if (XEXP (x, 0) == current_function_internal_arg_pointer)
...@@ -4098,13 +4098,18 @@ store_one_arg (struct arg_data *arg, rtx argblock, int flags, ...@@ -4098,13 +4098,18 @@ store_one_arg (struct arg_data *arg, rtx argblock, int flags,
#ifdef ARGS_GROW_DOWNWARD #ifdef ARGS_GROW_DOWNWARD
i = -i - arg->locate.size.constant; i = -i - arg->locate.size.constant;
#endif #endif
for (k = 0; k < arg->locate.size.constant; k++) if (arg->locate.size.constant > 0)
if (i + k < stored_args_map->n_bits {
&& TEST_BIT (stored_args_map, i + k)) unsigned HOST_WIDE_INT sc = arg->locate.size.constant;
{
sibcall_failure = 1; for (k = 0; k < sc; k++)
break; if (i + k < stored_args_map->n_bits
} && TEST_BIT (stored_args_map, i + k))
{
sibcall_failure = 1;
break;
}
}
} }
} }
......
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