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()


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.


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