This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: INIT_CUMULATIVE_ARGS(): bug?
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: Anders Ådland <adland at stud dot ntnu dot no>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 25 Mar 2003 12:16:17 -0500 (EST)
- Subject: Re: INIT_CUMULATIVE_ARGS(): bug?
On 25 Mar 2003, Anders Ådland wrote:
> Thanks for all the help you have given me so fare. I need some more...
>
> I am using INIT_CUMULATIVE_ARGS(cum, fntype, libname, indirect) to
> initialize the cum variable. The first register to use for passing
> arguments depends on the size of the argument.
These two sentences makes me think you want to look at a
function argument in INIT_CUMULATIVE_ARGS. That's wrong; you
use FUNCTION_ARG (and FUNCTION_INCOMING_ARG) for looking at
argument types and position and deciding where the parameter is
passed and FUNCTION_ARG_ADVANCE to update the iterator you
initialized in INIT_CUMULATIVE_ARGS.
Please send patches to improve the documentation.
brgds, H-P