[Ada] New verbose message for gnatmake -m -v
diff mbox

Message ID 20100617131516.GA28746@adacore.com
State New
Headers show

Commit Message

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

diff mbox

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)
+               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;