From patchwork Thu Jun 17 13:15:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Ada] New verbose message for gnatmake -m -v Date: Thu, 17 Jun 2010 03:15:16 -0000 From: Arnaud Charlet X-Patchwork-Id: 56044 Message-Id: <20100617131516.GA28746@adacore.com> To: gcc-patches@gcc.gnu.org Cc: Vincent Celier 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;