Patchwork [Ada] New verbose message for gnatmake -m -v

login
register
mail settings
Submitter Arnaud Charlet
Date June 17, 2010, 1:15 p.m.
Message ID <20100617131516.GA28746@adacore.com>
Download mbox | patch
Permalink /patch/56044/
State New
Headers show

Comments

Arnaud Charlet - June 17, 2010, 1:15 p.m.
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  <celier@adacore.com>

	* 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.

Patch

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;