From patchwork Mon Oct 29 10:53:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Charlet X-Patchwork-Id: 194962 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 11FDA2C0089 for ; Mon, 29 Oct 2012 21:53: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=1352112810; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Date:From:To:Cc:Subject:Message-ID: MIME-Version:Content-Type:Content-Disposition:User-Agent: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=rVokpmBnZmsk8dO1+Blv gqKpWBw=; b=XmH5uplECWRFDqKc2HvwDLtHRLS1WIiM8LxivNdwokcKav4tUQtt JiY0gsHG0HxI26J419Xvle6XcFDMMqWkQvfFJZ7uNws38IVZ3TWHCl/yezVl/ZJq 7r2r0nFACQokgTgEwWx15CaRONW6U7H5rC1CMWmT0y4SL0idPWu53Do= 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:Received:Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=NEo/PZR1oQdIxCvc4YiqD+LiC50ppGnDOjQKTjv8U7kVDz0SU8VN+SYlx7Nss/ TInvHwDy8MhGCXzMfv9rooWaI8e/DD07Zr+K27WeARqYteVPKdYkyIKcgMFfiqoj 51Ish2es8TD2N0lBLYlRUFuO3vz75A18EsEMVngpvJqRM=; Received: (qmail 21853 invoked by alias); 29 Oct 2012 10:53:21 -0000 Received: (qmail 21719 invoked by uid 22791); 29 Oct 2012 10:53:21 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, RCVD_IN_HOSTKARMA_NO 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; Mon, 29 Oct 2012 10:53:16 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id CDED11C7AD8; Mon, 29 Oct 2012 06:53:15 -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 mO39jNB6u33T; Mon, 29 Oct 2012 06:53:15 -0400 (EDT) Received: from kwai.gnat.com (kwai.gnat.com [205.232.38.4]) by rock.gnat.com (Postfix) with ESMTP id AB9CD1C7ACC; Mon, 29 Oct 2012 06:53:15 -0400 (EDT) Received: by kwai.gnat.com (Postfix, from userid 4192) id A757E3FF09; Mon, 29 Oct 2012 06:53:15 -0400 (EDT) Date: Mon, 29 Oct 2012 06:53:15 -0400 From: Arnaud Charlet To: gcc-patches@gcc.gnu.org Cc: Tristan Gingold Subject: [Ada] Clean up of gnatbind output (for non-standard run times) Message-ID: <20121029105315.GA12389@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 A declaration for Is_Elaborated was emitted but never referenced. No functional change. Tested on x86_64-pc-linux-gnu, committed on trunk 2012-10-29 Tristan Gingold * bindgen.adb (Gen_Output_File_Ada): Do not emit declaration for Is_Elaborated if not referenced. Index: bindgen.adb =================================================================== --- bindgen.adb (revision 192922) +++ bindgen.adb (working copy) @@ -2394,8 +2394,13 @@ -- The B.1 (39) implementation advice says that the adainit/adafinal -- routines should be idempotent. Generate a flag to ensure that. + -- This is not needed if we are suppressing the standard library + -- since it would never be referenced. - WBI (" Is_Elaborated : Boolean := False;"); + if not Suppress_Standard_Library_On_Target then + WBI (" Is_Elaborated : Boolean := False;"); + end if; + WBI (""); end if;