[gold patch] Incremental 23/25: Print old and new command lines when different
Cary Coutant
ccoutant@google.com
Wed Jun 1 21:57:00 GMT 2011
This is a trivial little patch, but I've found it very useful. With
--debug=incremental, it will print the old and new command lines if
they differ.
-cary
2011-05-01 Cary Coutant <ccoutant@google.com>
* incremental.cc (Sized_incremental_binary::do_check_inputs): Add
debug output when command lines differ.
diff --git a/gold/incremental.cc b/gold/incremental.cc
index db28c76..5e219bf 100644
--- a/gold/incremental.cc
+++ b/gold/incremental.cc
@@ -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;
}
More information about the Binutils
mailing list