On 11-09-19 23:32 , Sandeep Soni wrote:
It gives me a internal compiler error saying: gimple1: internal compiler error: tree check: expected identifier_node, have var_decl in gimple_symtab_entry_hash
As Balaji said, the problem is that you need to pass DECL_NAME(base->decl) to IDENTIFIER_HASH_VALUE().
When you build a decl node, its DECL_NAME is the IDENTIFIER_NODE that you created with get_identifier().
Diego.