Re: AST-tree in GCC

2007-09-24 Thread Thomas A.M. Bernard
Perhaps you could also try -fdump-tree-gimple or -fdump-tree-gimple-raw In both cases you dump out the GIMPLE form, AST based. Best, T. > Hi I want to extract the complete AST-tree from GCC (using 4.1.2). > I´ve tried to use -fdump-translation-unit but it seems like its dosent > include inform

Re: AST-tree in GCC

2007-09-24 Thread Diego Novillo
On 9/24/07, Johan Bohlin <[EMAIL PROTECTED]> wrote: > My question is... Anyone knows a way > to get all information ? Maybe changing a flag in the source code or > something. Debugging dumps are always incomplete. Mostly by design, but in general because we just dump what seems useful for debugg

AST-tree in GCC

2007-09-24 Thread Johan Bohlin
Hi I want to extract the complete AST-tree from GCC (using 4.1.2). I´ve tried to use -fdump-translation-unit but it seems like its dosent include information in ex. for and if statements. If i use -fdump-tree-orignal-raw i get each function but not the external variables if they are not used in the