From patchwork Sun Jan 6 12:08:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 209746 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 901CA2C0087 for ; Sun, 6 Jan 2013 23:10:29 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1358079030; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:To:Subject:Date:Message-ID:User-Agent:MIME-Version: Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=+HVwFYFZ6wIup8W4x90WTXJbZBg=; b=C05/oeMA+9OQuSA h5HrImmVn3R37oY9rxC7IB8PYDhLLPAQA5Nst8/8JwvdDNgRp+vud+SR/yJH1HMh VD4oF7EyJ1KsmwnK0k/sCWr+2kDvsfexOYukz0EZPNuiiA8ZgVY2NuVfeES/mvqN IchozYx1MUR4Chaigfys0eeKZQy8= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:From:To:Subject:Date:Message-ID:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=CL9QkWohAYtfHsxvpVU15F8IxhVaq/3p9hinYfaRK2vVJ2iPPV5BDX5+PKxSjp IBWGWS44O4eXsrFrbUEAbUAq0jedogJ7XSdsGLLFScr1P4DVAEMzrG+QDtSbhDV0 B/FWcNJZgiaqoCLqTxfLpuvEeKEdLxZq0Cs8O+B5mzSHQ=; Received: (qmail 28242 invoked by alias); 6 Jan 2013 12:10:17 -0000 Received: (qmail 28208 invoked by uid 22791); 6 Jan 2013 12:10:14 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 06 Jan 2013 12:10:09 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 8DB4F29002B for ; Sun, 6 Jan 2013 13:10:17 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CrnjxcmW-UAk for ; Sun, 6 Jan 2013 13:10:17 +0100 (CET) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 5970F290031 for ; Sun, 6 Jan 2013 13:10:17 +0100 (CET) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [Ada] Remove dead code in elaborate_entity Date: Sun, 06 Jan 2013 13:08:51 +0100 Message-ID: <3339630.teYpdDJkBf@polaris> User-Agent: KMail/4.7.2 (Linux/3.1.10-1.16-desktop; KDE/4.7.2; x86_64; ; ) MIME-Version: 1.0 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 Tested on x86_64-suse-linux, applied on mainline and 4.7 branch. 2013-01-06 Eric Botcazou * gcc-interface/decl.c (elaborate_entity) : Delete. Index: gcc-interface/decl.c =================================================================== --- gcc-interface/decl.c (revision 194942) +++ gcc-interface/decl.c (working copy) @@ -5944,18 +5944,6 @@ elaborate_entity (Entity_Id gnat_entity) break; } - case E_Record_Type: - { - Node_Id full_definition = Declaration_Node (gnat_entity); - Node_Id record_definition = Type_Definition (full_definition); - - /* If this is a record extension, go a level further to find the - record definition. */ - if (Nkind (record_definition) == N_Derived_Type_Definition) - record_definition = Record_Extension_Part (record_definition); - } - break; - case E_Record_Subtype: case E_Private_Subtype: case E_Limited_Private_Subtype: