This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]