* gcc code debug
@ 2009-09-17 13:47 anandulle
2009-09-17 13:53 ` Dave Korn
0 siblings, 1 reply; 2+ messages in thread
From: anandulle @ 2009-09-17 13:47 UTC (permalink / raw)
To: gcc
hello
I was traversing through the source code of GCC using GDB
and I understood some of the function the GCC toplev_main() calls but when i
came to one particular initialization init_optimization_passes() i was not
able to understand the statements
if (pass->static_pass_number)
pass->todo_flags_start |= TODO_mark_first_instance;
*list = pass;
pass->static_pass_number = -1;
I want to know what is the static_pass_number, what is the value inside it
thanking you
yours sincerely
Anand Raj S Ulle
Shivmurthy
--
View this message in context: http://www.nabble.com/gcc-code-debug-tp25491558p25491558.html
Sent from the gcc - Dev mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: gcc code debug
2009-09-17 13:47 gcc code debug anandulle
@ 2009-09-17 13:53 ` Dave Korn
0 siblings, 0 replies; 2+ messages in thread
From: Dave Korn @ 2009-09-17 13:53 UTC (permalink / raw)
To: anandulle; +Cc: gcc
anandulle wrote:
> hello
>
> I was traversing through the source code of GCC using GDB
> and I understood some of the function the GCC toplev_main() calls but when i
> came to one particular initialization init_optimization_passes() i was not
> able to understand the statements
>
> if (pass->static_pass_number)
> pass->todo_flags_start |= TODO_mark_first_instance;
> *list = pass;
> pass->static_pass_number = -1;
>
> I want to know what is the static_pass_number, what is the value inside it
I suggest you take a look at the place where it is defined, which is easily
found by "grep static_pass_number gcc/*.h": it's in tree-pass.h, in struct
opt_pass.
In the GCC sources, most structs and their member variables have explanatory
comments in the header file where they are defined. The one on
static_pass_number seems fairly self-explanatory to me.
cheers,
DaveK
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-09-17 13:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-17 13:47 gcc code debug anandulle
2009-09-17 13:53 ` Dave Korn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).