From patchwork Fri Oct 9 08:11:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 528123 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id D8D811409B7 for ; Fri, 9 Oct 2015 19:16:08 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=XDqIY20d; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=Om3Q47sbZX1P6Lll WmxSqEKhTwWghSczldz/fmDfa7vIEGhTnKifFsG9PxRCVxit5cab3uwtcdkYJAwy A2oeytVus+kIwXOThPSEY9qKpLG93z2Gt5c35GFk8xn2SSRS9D3QCl+oTd8a6vcw Ct/FN3JYB/Ca6v7pxnjtysCdOTM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=6uKEoOJ5ltl45hPdt7Pnea +tzRU=; b=XDqIY20dDGpWzoYRMy2pOYtu96dFjDQEI8U96Ab/iaIj4ruSusEkfD CS/XhpLY/23DXfZlHT9tWT15jTM+m7kVFaNNMCpqqKnh3uqn8YsTfrKcOGxUIADN 683oBI6xhl50a7WDbDi9oBHzycbqBTk/TRw5CRxeX7Z/uA2XEbxjw= Received: (qmail 57644 invoked by alias); 9 Oct 2015 08:16:01 -0000 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 Received: (qmail 57633 invoked by uid 89); 9 Oct 2015 08:16:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=AWL, BAYES_50, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 09 Oct 2015 08:16:00 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 6ECB02796963 for ; Fri, 9 Oct 2015 10:15:57 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SQCdjLVbwpTB for ; Fri, 9 Oct 2015 10:15:57 +0200 (CEST) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 4ED852796821 for ; Fri, 9 Oct 2015 10:15:57 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [Ada] Make sure generated files are created first Date: Fri, 09 Oct 2015 10:11:12 +0200 Message-ID: <1533803.gToupQLO0B@polaris> User-Agent: KMail/4.14.9 (Linux/3.16.7-24-desktop; KDE/4.14.9; x86_64; ; ) MIME-Version: 1.0 As reported by Alan L., we need to make sure that the generated files are created before gigi is compiled. Tested on x86_64-suse-linux, applied on all branches. 2015-10-09 Eric Botcazou * gcc-interface/Make-lang.in: Make sure that GNAT1_OBJS and not just GNAT1_ADA_OBJS are compiled only after generated files are created. Index: gcc-interface/Make-lang.in =================================================================== --- gcc-interface/Make-lang.in (revision 228597) +++ gcc-interface/Make-lang.in (working copy) @@ -1026,7 +1026,7 @@ ada_generated_files = ada/sinfo.h ada/ei # When building from scratch we don't have dependency files, the only thing # we need to ensure is that the generated files are created first. -$(GNAT1_ADA_OBJS) $(GNATBIND_OBJS): | $(ada_generated_files) +$(GNAT1_OBJS) $(GNATBIND_OBJS): | $(ada_generated_files) # Manually include the auto-generated dependencies for the Ada host objects. ADA_DEPFILES = $(foreach obj,$(GNAT1_ADA_OBJS) $(GNATBIND_OBJS),\