From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22053 invoked by alias); 21 Sep 2011 03:14:05 -0000 Received: (qmail 22040 invoked by uid 22791); 21 Sep 2011 03:14:04 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-fx0-f47.google.com (HELO mail-fx0-f47.google.com) (209.85.161.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Sep 2011 03:13:50 +0000 Received: by fxi1 with SMTP id 1so1309380fxi.20 for ; Tue, 20 Sep 2011 20:13:49 -0700 (PDT) Received: by 10.223.4.133 with SMTP id 5mr240940far.81.1316574829351; Tue, 20 Sep 2011 20:13:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.152.37.170 with HTTP; Tue, 20 Sep 2011 20:13:29 -0700 (PDT) In-Reply-To: <4E78CAD4.7070207@google.com> References: <4E78CAD4.7070207@google.com> From: Sandeep Soni Date: Wed, 21 Sep 2011 03:14:00 -0000 Message-ID: Subject: Re: [gimplefe] Ran into a internal compiler error To: GCC LIST Cc: Diego Novillo , balaji.v.iyer@intel.com Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg00202.txt.bz2 On Tue, Sep 20, 2011 at 10:48 PM, Diego Novillo 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