Commit f31bf321 by Geoffrey Keating Committed by Geoffrey Keating

rs6000.c (setup_incoming_varargs): Remove code supporting old-style varargs.

	* config/rs6000/rs6000.c (setup_incoming_varargs): Remove
	code supporting old-style varargs.

From-SVN: r73278
parent 2cf520bf
2003-11-05 Geoffrey Keating <geoffk@apple.com>
* config/rs6000/rs6000.c (setup_incoming_varargs): Remove
code supporting old-style varargs.
* config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
an intermediate register for better optimisation.
......
......@@ -4303,19 +4303,10 @@ setup_incoming_varargs (CUMULATIVE_ARGS *cum, enum machine_mode mode,
int reg_size = TARGET_32BIT ? 4 : 8;
rtx save_area = NULL_RTX, mem;
int first_reg_offset, set;
tree fntype;
int stdarg_p;
fntype = TREE_TYPE (current_function_decl);
stdarg_p = (TYPE_ARG_TYPES (fntype) != 0
&& (TREE_VALUE (tree_last (TYPE_ARG_TYPES (fntype)))
!= void_type_node));
/* For varargs, we do not want to skip the dummy va_dcl argument.
For stdargs, we do want to skip the last named argument. */
/* Skip the last named argument. */
next_cum = *cum;
if (stdarg_p)
function_arg_advance (&next_cum, mode, type, 1);
function_arg_advance (&next_cum, mode, type, 1);
if (DEFAULT_ABI == ABI_V4)
{
......
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