This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: INIT_CUMULATIVE_ARGS()
- 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: Wed, 26 Mar 2003 07:49:22 -0500 (EST)
- Subject: Re: INIT_CUMULATIVE_ARGS()
On 26 Mar 2003, Anders Ådland wrote:
> Is this what happends?
> - INIT_CUMULATIVE_ARGS is called to initialize iterator.
> - FUNCTION_ARG is called one or more times and returns where the first
> argument is passed.
> - FUNCTION_ARG_ADVANCE is called to update iterator.
> - FUNCTION_ARG is called one or more times and returns where the second
> argument is passed.
> - FUNCTION_ARG_ADVANCE is called to update iterator.
I recommend that you single-step through that code in gdb.
Break on occurrences of INIT_CUMULATIVE_ARGS and single-step
from there. It will give you the answer and useful insight that
will help you when you trace down bugs in your port and in
"core" gcc. (It *will* happen. AFAIK all ports have uncovered
one or more bugs in "core" gcc.)
If you find that something in the documentation is lacking,
please help improve it. I just looked -- the answer is there
too, but maybe that kind of overview of the macros would help.
brgds, H-P
PS. Oops.