From patchwork Thu Jun 17 13:15:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Charlet X-Patchwork-Id: 56044 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 E87A61007D2 for ; Thu, 17 Jun 2010 23:15:11 +1000 (EST) Received: (qmail 16791 invoked by alias); 17 Jun 2010 13:15:08 -0000 Received: (qmail 16773 invoked by uid 22791); 17 Jun 2010 13:15:06 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 17 Jun 2010 13:15:00 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 64744CB0276; Thu, 17 Jun 2010 15:15:06 +0200 (CEST) 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 jStw3v2TvNrp; Thu, 17 Jun 2010 15:15:06 +0200 (CEST) Received: from saumur.act-europe.fr (saumur.act-europe.fr [10.10.0.183]) by mel.act-europe.fr (Postfix) with ESMTP id 5171CCB020E; Thu, 17 Jun 2010 15:15:06 +0200 (CEST) Received: by saumur.act-europe.fr (Postfix, from userid 525) id 58067D9AB0; Thu, 17 Jun 2010 15:15:16 +0200 (CEST) Date: Thu, 17 Jun 2010 15:15:16 +0200 From: Arnaud Charlet To: gcc-patches@gcc.gnu.org Cc: Vincent Celier Subject: [Ada] New verbose message for gnatmake -m -v Message-ID: <20100617131516.GA28746@adacore.com> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.9i X-IsSubscribed: yes 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 When gnatmake is invoked with -m and -v, if there is a timestamp mismatch, but the checksums are the same, a short message indicating this is issued. Tested on x86_64-pc-linux-gnu, committed on trunk 2010-06-17 Vincent Celier * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is different timestamps but the checksum is the same, issue a short message saying so. Index: ali-util.adb =================================================================== --- ali-util.adb (revision 160834) +++ ali-util.adb (working copy) @@ -481,6 +481,14 @@ package body ALI.Util is (Get_File_Checksum (Sdep.Table (D).Sfile), Source.Table (Src).Checksum) then + if Verbose_Mode then + Write_Str (" "); + Write_Str (Get_Name_String (Sdep.Table (D).Sfile)); + Write_Str (": up to date, different timestamps " & + "but same checksum"); + Write_Eol; + end if; + Sdep.Table (D).Stamp := Source.Table (Src).Stamp; end if;