aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2011-05-24 23:31:07 +0000
committerCary Coutant <ccoutant@google.com>2011-05-24 23:31:07 +0000
commitaa92d6edc48569b34bddc50f537fde8330151a80 (patch)
treeeea97dd3a2f081619f253dd6fe91f531d84da09e /gold/options.h
parent2eedd7063f48940af7716e95c65083a3411b8608 (diff)
downloadfsf-binutils-gdb-aa92d6edc48569b34bddc50f537fde8330151a80.zip
fsf-binutils-gdb-aa92d6edc48569b34bddc50f537fde8330151a80.tar.gz
fsf-binutils-gdb-aa92d6edc48569b34bddc50f537fde8330151a80.tar.bz2
* gold.cc (queue_initial_tasks): Pass incremental base filename
to Output_file::open_base_file; don't print error message. * incremental-dump.cc (main): Adjust call to Output_file::open_for_modification. * incremental-dump.cc (main): Likewise. * incremental.cc (Incremental_inputs::report_command_line): Ignore --incremental-base option when comparing command lines. Ignore parameter when given as separate argument. * options.h (class General_options): Add --incremental-base. * output.cc (Output_file::Output_file): (Output_file::open_base_file): Add base_name and writable parameters; read base file into new file; print error message here. (Output_file::map_no_anonymous): Add writable parameter; adjust all callers. * output.h (Output_file::open_for_modification): Rename to... (Output_file::open_base_file): ...this; add base_name and writable parameters; adjust all callers. (Output_file::map_no_anonymous): Add writable parameter; adjust all callers. * testsuite/Makefile.am (incremental_test_4): Test --incremental-base. * testsuite/Makefile.in: Regenerate.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index f98bb27..b3b51dc 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -787,6 +787,11 @@ class General_options
DEFINE_special(incremental_update, options::TWO_DASHES, '\0',
N_("Do an incremental link; exit if not possible"), NULL);
+ DEFINE_string(incremental_base, options::TWO_DASHES, '\0', NULL,
+ N_("Set base file for incremental linking"
+ " (default is output file)"),
+ N_("FILE"));
+
DEFINE_special(incremental_changed, options::TWO_DASHES, '\0',
N_("Assume files changed"), NULL);