From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3320 invoked by alias); 14 Dec 2002 00:10:09 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 3293 invoked from network); 14 Dec 2002 00:10:03 -0000 Received: from unknown (HELO cts04.webone.com.au) (210.9.240.37) by sources.redhat.com with SMTP; 14 Dec 2002 00:10:03 -0000 Received: from kennel (dial-ctb0479.webone.com.au [210.9.244.79]) by cts04.webone.com.au (8.11.6/8.11.6) with ESMTP id gBE0A0t07714; Sat, 14 Dec 2002 11:10:01 +1100 Received: by kennel (Postfix, from userid 1000) id 67C8AE043; Sat, 14 Dec 2002 11:24:43 +1100 (EST) Date: Fri, 13 Dec 2002 16:10:00 -0000 From: Andreas Bauer To: Santiago Margareto Cc: gcc-help@gcc.gnu.org Subject: Re: parser modification followup Message-ID: <20021214002443.GC30962@kennel> References: <014b01c2a09e$7c287ba0$c40a8cc2@gfiinfo.com> <20021210220122.GF22692@kennel> <004301c2a10c$d434ba20$c40a8cc2@gfiinfo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004301c2a10c$d434ba20$c40a8cc2@gfiinfo.com> User-Agent: Mutt/1.3.28i X-SW-Source: 2002-12/txt/msg00152.txt.bz2 On Wed, Dec 11, 2002 at 08:59:59AM -0300, Santiago Margareto wrote: > I know, I have read it. The issue I have is: how can I get the tree > resulting from compiling? The RTL file is easy, you just add option -da, but > I cannot find the corresponding flag for the parse tree. Others may have better information for you, but as far as I know, trees can not be printed out nicely in a similar fashion to RTL. They are merely a data structure, but a data structure does not necessarily print itself, of course. Read the files tree.* to see which macros you can use to traverse the data structure (TREE_TYPE, etc.) Once you get a feeling for it, you will also find the internals documentation very handy which summarizes those accessors and the whole structure itself. Andi.