[patch] arm: Hookize SETUP_INCOMING_VARARGS.

Richard Earnshaw rearnsha@arm.com
Mon Jan 26 16:45:00 GMT 2004


> Hi,
> 
> Attached is a patch to hookize SETUP_INCOMING_VARARGS, which I forgot
> to take care of last time.
> 
> Built cc1 of arm-elf.  OK to apply?
> 
> Kazu Hirata
> 
> 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
> 
> 	* config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
> 	(arm_setup_incoming_varargs): Likewise.
> 	* config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
> 

OK, except:


> +arm_setup_incoming_varargs (CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED,
> +			    enum machine_mode mode ATTRIBUTE_UNUSED,
> +			    tree type ATTRIBUTE_UNUSED,
> +			    int *pretend_size ATTRIBUTE_UNUSED,
> +			    int second_time ATTRIBUTE_UNUSED)
> +{
> +  cfun->machine->uses_anonymous_args = 1;
> +  if (cum->nregs < NUM_ARG_REGS)
> +    *pretend_size = (NUM_ARG_REGS - cum->nregs) * UNITS_PER_WORD;
>  }

CUM and PRETEND_SIZE clearly are used, so don't mark them as not being so.

R.



More information about the Gcc-patches mailing list