Commit 6b66447a by Nick Clifton Committed by Nick Clifton

(fr30_setup_incoming_varargs): Change arguments to match

TARGET_SETUP_INCOMING_VARARGS prototype.

From-SVN: r84197
parent 874a4e75
2004-07-07 Nick Clifton <nickc@redhat.com>
* config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
2004-07-07 Nathan Sidwell <nathan@codesourcery.com> 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
* vec.h: Fix the example use. * vec.h: Fix the example use.
......
...@@ -413,27 +413,26 @@ fr30_expand_epilogue (void) ...@@ -413,27 +413,26 @@ fr30_expand_epilogue (void)
ARG_REGS_USED_SO_FAR has *not* been updated for the last named argument ARG_REGS_USED_SO_FAR has *not* been updated for the last named argument
which has type TYPE and mode MODE, and we rely on this fact. */ which has type TYPE and mode MODE, and we rely on this fact. */
void void
fr30_setup_incoming_varargs (CUMULATIVE_ARGS arg_regs_used_so_far, fr30_setup_incoming_varargs (CUMULATIVE_ARGS *arg_regs_used_so_far,
int int_mode, enum machine_mode mode,
tree type ATTRIBUTE_UNUSED, tree type ATTRIBUTE_UNUSED,
int *pretend_size) int *pretend_size,
int second_time ATTRIBUTE_UNUSED)
{ {
enum machine_mode mode = (enum machine_mode)int_mode;
int size; int size;
/* All BLKmode values are passed by reference. */ /* All BLKmode values are passed by reference. */
if (mode == BLKmode) if (mode == BLKmode)
abort (); abort ();
/* ??? This run-time test as well as the code inside the if /* ??? This run-time test as well as the code inside the if
statement is probably unnecessary. */ statement is probably unnecessary. */
if (targetm.calls.strict_argument_naming (&arg_regs_used_so_far)) if (targetm.calls.strict_argument_naming (arg_regs_used_so_far))
/* If TARGET_STRICT_ARGUMENT_NAMING returns true, then the last named /* If TARGET_STRICT_ARGUMENT_NAMING returns true, then the last named
arg must not be treated as an anonymous arg. */ arg must not be treated as an anonymous arg. */
arg_regs_used_so_far += fr30_num_arg_regs (int_mode, type); arg_regs_used_so_far += fr30_num_arg_regs (mode, type);
size = FR30_NUM_ARG_REGS - arg_regs_used_so_far; size = FR30_NUM_ARG_REGS - (* arg_regs_used_so_far);
if (size <= 0) if (size <= 0)
return; return;
......
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