From patchwork Thu Aug 4 13:31:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Charlet X-Patchwork-Id: 108461 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 4A65FB6F68 for ; Thu, 4 Aug 2011 23:32:06 +1000 (EST) Received: (qmail 14741 invoked by alias); 4 Aug 2011 13:32:03 -0000 Received: (qmail 14644 invoked by uid 22791); 4 Aug 2011 13:32:02 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Aug 2011 13:31:49 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 5DCBA2BAB7B; Thu, 4 Aug 2011 09:31:48 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Q0dQWVOShthP; Thu, 4 Aug 2011 09:31:48 -0400 (EDT) Received: from kwai.gnat.com (kwai.gnat.com [205.232.38.4]) by rock.gnat.com (Postfix) with ESMTP id 4CF472BAB2C; Thu, 4 Aug 2011 09:31:48 -0400 (EDT) Received: by kwai.gnat.com (Postfix, from userid 4192) id 4CAFA3FEE8; Thu, 4 Aug 2011 09:31:48 -0400 (EDT) Date: Thu, 4 Aug 2011 09:31:48 -0400 From: Arnaud Charlet To: gcc-patches@gcc.gnu.org Cc: Johannes Kanig Subject: [Ada] Set Entity for a created Identifier Node Message-ID: <20110804133148.GA8068@adacore.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org The function Identifer_For, called from the code that generates the type declarations for string types in the standard package, now also sets the entity of the generated identifier. Tested on x86_64-pc-linux-gnu, committed on trunk 2011-08-04 Johannes Kanig * cstand.adb: Add Information to Identifier in Standard (Identifer_For): Set Entity to the corresponding entity Index: cstand.adb =================================================================== --- cstand.adb (revision 177353) +++ cstand.adb (working copy) @@ -1651,6 +1651,7 @@ begin Ident_Node := New_Node (N_Identifier, Stloc); Set_Chars (Ident_Node, Chars (Standard_Entity (S))); + Set_Entity (Ident_Node, Standard_Entity (S)); return Ident_Node; end Identifier_For;