* incremental.cc (Sized_incremental_binary::do_check_inputs): Add
authorCary Coutant <ccoutant@google.com>
Wed, 6 Jul 2011 21:22:55 +0000 (21:22 +0000)
committerCary Coutant <ccoutant@google.com>
Wed, 6 Jul 2011 21:22:55 +0000 (21:22 +0000)
debug output when command lines differ.

gold/ChangeLog
gold/incremental.cc

index f975788fe9176eb32d8ca0775c9a8670653a99ad..8181beba24db1152bda876c0810c2e807b91f355 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-06  Cary Coutant  <ccoutant@google.com>
+
+       * incremental.cc (Sized_incremental_binary::do_check_inputs): Add
+       debug output when command lines differ.
+
 2011-07-06  Cary Coutant  <ccoutant@google.com>
 
        * incremental.cc (Incremental_inputs::report_command_line): Ignore
index f0be7f04daac23fdd199dd460927b11bd4b1f474..3dffbd326ed17afc3edad5a801825634ece8edab 100644 (file)
@@ -393,6 +393,12 @@ Sized_incremental_binary<size, big_endian>::do_check_inputs(
 
   if (incremental_inputs->command_line() != inputs.command_line())
     {
+      gold_debug(DEBUG_INCREMENTAL,
+                "old command line: %s",
+                inputs.command_line());
+      gold_debug(DEBUG_INCREMENTAL,
+                "new command line: %s",
+                incremental_inputs->command_line().c_str());
       explain_no_incremental(_("command line changed"));
       return false;
     }