This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gold patch] Incremental 25/25: Add --incremental-startup-unchanged option


GCC adds a few startup files at the beginning of the link command, and
-Wl,--incremental-unchanged options can't be placed in front of them.
In distributed build systems where those startup files may not even be
staged if they haven't changed, or where the timestamps might not be
reliable, it's useful to be able to claim that those "startup" files
are all unchanged. This patch adds a --incremental-startup-unchanged
option, which provides the disposition for all files that precede it
(or the first --incremental-changed/-unchanged/-unknown option).

Tested on x86_64 with strace, to ensure that there are no stat() calls
to the startup files.

-cary


2011-06-01 Cary Coutant  <ccoutant@google.com>

	* gold/incremental.cc (Sized_incremental_binary::do_file_has_changed):
	Check disposition for startup file.
	(Incremental_inputs::report_command_line): Ignore
	--incremental-startup-unchanged option.
	* gold/options.cc
	(General_options::parse_incremental_startup_unchanged): New function.
	(General_options::General_options): Initialize new data member.
	* gold/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.

Attachment: incr-patch-25.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]