This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [gimplefe] Ran into a internal compiler error
On Tue, Sep 20, 2011 at 10:48 PM, Diego Novillo <dnovillo@google.com> wrote:
> 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().
>
It worked. Thanks Balaji and Diego.
--
Cheers
Sandy