Re: [gimplefe][patch] The symbol table for declarations

2012-03-05 Thread Diego Novillo
On 01/03/12 13:06 , Sandeep Soni wrote: 2012-03-01 Sandeep Soni * parser.c : Include hashtab.h. (gimple_symtab): New. The symbol table. (gimple_symtab_entry_hash): New. (gimple_symtab_eq_hash): New. (gimple_symtab_entry_marked_p):New. (gimple_sym

Re: [gimplefe][patch] The symbol table for declarations

2012-03-01 Thread Sandeep Soni
On Wed, Feb 29, 2012 at 8:14 PM, Diego Novillo wrote: > On 24/02/12 01:03 , Sandeep Soni wrote: > >> +  name_token = gl_consume_expected_token (parser->lexer, CPP_NAME); >> +  name = gl_token_as_text (name_token); >> + >> +  e = ggc_alloc_cleared_gimple_symtab_entry_def (); >> +  e->id = get_ident

Re: [gimplefe][patch] The symbol table for declarations

2012-02-29 Thread Diego Novillo
On 24/02/12 01:03 , Sandeep Soni wrote: + name_token = gl_consume_expected_token (parser->lexer, CPP_NAME); + name = gl_token_as_text (name_token); + + e = ggc_alloc_cleared_gimple_symtab_entry_def (); + e->id = get_identifier(name); + slot = htab_find_slot (gimple_symtab, e, NO_INSERT); +

Re: [gimplefe][patch] The symbol table for declarations

2012-02-23 Thread Sandeep Soni
On Wed, Nov 30, 2011 at 9:48 AM, Sandeep Soni wrote: > Sorry. Wrong patch. New patch attached. > > I am getting the following error in the new patch though. > > ../../gimple-front-end/gcc/gimple/parser.c: In function ‘gp_parse_var_decl’: > ../../gimple-front-end/gcc/gimple/parser.c:927:3: error: i

Re: [gimplefe][patch] The symbol table for declarations

2011-11-29 Thread Sandeep Soni
Sorry. Wrong patch. New patch attached. I am getting the following error in the new patch though. ../../gimple-front-end/gcc/gimple/parser.c: In function ‘gp_parse_var_decl’: ../../gimple-front-end/gcc/gimple/parser.c:927:3: error: implicit declaration of function ‘ggc_alloc_cleared_gimple_symtab

[gimplefe][patch] The symbol table for declarations

2011-11-17 Thread Sandeep Soni
On Wed, Oct 12, 2011 at 7:01 PM, Diego Novillo wrote: > > On 11-10-10 17:47 , Sandeep Soni wrote: >> >> Hi, >> The following patch is a basic attempt to build a symbol table that >> stores the names of all the declarations made in the input file. >> >> Index: gcc/gimple/parser.c >> ===

Re: [gimplefe][patch] The symbol table for declarations

2011-10-12 Thread Diego Novillo
On 11-10-10 17:47 , Sandeep Soni wrote: Hi, The following patch is a basic attempt to build a symbol table that stores the names of all the declarations made in the input file. Index: gcc/gimple/parser.c === --- gcc/gimple/parser.c

Re: [gimplefe][patch] The symbol table for declarations

2011-10-12 Thread Diego Novillo
On Tue, Oct 11, 2011 at 09:42, Tom Tromey wrote: >> "Sandeep" == Sandeep Soni writes: > > Sandeep> The following patch is a basic attempt to build a symbol table that > Sandeep> stores the names of all the declarations made in the input file. > > I don't know anything about gimplefe, but unle

Re: [gimplefe][patch] The symbol table for declarations

2011-10-11 Thread Tom Tromey
> "Sandeep" == Sandeep Soni writes: Sandeep> The following patch is a basic attempt to build a symbol table that Sandeep> stores the names of all the declarations made in the input file. I don't know anything about gimplefe, but unless you have complicated needs, it is more usual to just put

[gimplefe][patch] The symbol table for declarations

2011-10-10 Thread Sandeep Soni
Hi, The following patch is a basic attempt to build a symbol table that stores the names of all the declarations made in the input file. Index: gcc/gimple/parser.c === --- gcc/gimple/parser.c (revision 174754) +++ gcc/gimple/parser.c