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

Reply via email to