aboutsummaryrefslogtreecommitdiff
path: root/gold/options.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2011-07-06 22:15:12 +0000
committerCary Coutant <ccoutant@google.com>2011-07-06 22:15:12 +0000
commit221597a548c93ec0cd0de1f90f206ae04be7f83d (patch)
treedec23f370ddddf9004c8f66ed19ff803cabdc73f /gold/options.cc
parentfacde0e593ae909c801e03cada83c05bec89aad5 (diff)
downloadgdb-221597a548c93ec0cd0de1f90f206ae04be7f83d.zip
gdb-221597a548c93ec0cd0de1f90f206ae04be7f83d.tar.gz
gdb-221597a548c93ec0cd0de1f90f206ae04be7f83d.tar.bz2
* incremental.cc (Sized_incremental_binary::do_file_has_changed):
Check disposition for startup file. (Incremental_inputs::report_command_line): Ignore --incremental-startup-unchanged option. * options.cc (General_options::parse_incremental_startup_unchanged): New function. (General_options::General_options): Initialize new data member. * options.h (Incremental_disposition): Add INCREMENTAL_STARTUP. (General_options): Add --incremental-startup-unchanged option. (General_options::incremental_startup_disposition): New function. (General_options::incremental_startup_disposition_): New data member.
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/gold/options.cc b/gold/options.cc
index 05d6f88..16699aa 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -398,6 +398,14 @@ General_options::parse_incremental_unknown(const char*, const char*,
}
void
+General_options::parse_incremental_startup_unchanged(const char*, const char*,
+ Command_line*)
+{
+ this->implicit_incremental_ = true;
+ this->incremental_startup_disposition_ = INCREMENTAL_UNCHANGED;
+}
+
+void
General_options::parse_library(const char*, const char* arg,
Command_line* cmdline)
{
@@ -910,7 +918,8 @@ General_options::General_options()
plugins_(NULL),
dynamic_list_(),
incremental_mode_(INCREMENTAL_OFF),
- incremental_disposition_(INCREMENTAL_CHECK),
+ incremental_disposition_(INCREMENTAL_STARTUP),
+ incremental_startup_disposition_(INCREMENTAL_CHECK),
implicit_incremental_(false),
excluded_libs_(),
symbols_to_retain_(),