This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold patch] Incremental 25/25: Add --incremental-startup-unchanged option
- 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 16:01:11 -0700
- Subject: Re: [gold patch] Incremental 25/25: Add --incremental-startup-unchanged option
- References: <BANLkTik8Gk8LsDRD+HHoGUyfAiOro9XJcgxhtoLeHeoN20Ot_w@mail.gmail.com>
> 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.
Oops, forgot to remove the "gold/" from the ChangeLog entries...
-cary
2011-06-01 Cary Coutant <ccoutant@google.com>
* 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.