From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31329 invoked by alias); 17 Sep 2009 13:53:04 -0000 Received: (qmail 31314 invoked by uid 22791); 17 Sep 2009 13:53:03 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-fx0-f214.google.com (HELO mail-fx0-f214.google.com) (209.85.220.214) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 17 Sep 2009 13:52:58 +0000 Received: by fxm10 with SMTP id 10so40187fxm.8 for ; Thu, 17 Sep 2009 06:52:56 -0700 (PDT) Received: by 10.87.66.2 with SMTP id t2mr594839fgk.62.1253195576454; Thu, 17 Sep 2009 06:52:56 -0700 (PDT) Received: from ?192.168.2.99? (cpc2-cmbg8-0-0-cust61.cmbg.cable.ntl.com [82.6.108.62]) by mx.google.com with ESMTPS id l12sm174454fgb.12.2009.09.17.06.52.54 (version=SSLv3 cipher=RC4-MD5); Thu, 17 Sep 2009 06:52:55 -0700 (PDT) Message-ID: <4AB2428B.3060802@gmail.com> Date: Thu, 17 Sep 2009 13:53:00 -0000 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: anandulle CC: gcc@gcc.gnu.org Subject: Re: gcc code debug References: <25491558.post@talk.nabble.com> In-Reply-To: <25491558.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg00308.txt.bz2 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