This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gold patch] Incremental 23/25: Print old and new command lines when different
- From: Cary Coutant <ccoutant at google dot com>
- To: Ian Lance Taylor <iant at google dot com>, Binutils <binutils at sourceware dot org>
- Date: Wed, 1 Jun 2011 14:56:47 -0700
- Subject: [gold patch] Incremental 23/25: Print old and new command lines when different
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;
}