* 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.
This commit is contained in:
Cary Coutant
2011-07-06 22:15:12 +00:00
parent facde0e593
commit 221597a548
4 changed files with 51 additions and 3 deletions

View File

@@ -397,6 +397,14 @@ General_options::parse_incremental_unknown(const char*, const char*,
this->incremental_disposition_ = INCREMENTAL_CHECK;
}
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_(),