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]

[PATCH] gold: save file mtime in .gnu_incremental_inputs


  This small patch adds mtime to the incremental inputs section. The
mtime is queried at the beginning and stored in memory as this will
probably fit better with the code that will have to be written later -
we will query the mtimes of all inputs in the existing
.gnu_incremental_inputs (to compare them) and it will be convenient to
save them to avoid querying them a second time.
  I'm not know too much portability - is st_mtim generic enough so
that I can use it, or does it require a configure check? I've also
fixed some members references without this-> that I let slip in the
previous patch.

2009-05-31  Mikolaj Zalewski  <mikolajz@google.com>

	* fileread.cc (File_read::get_mtime): New method.
	* fileread.h (File_read::get_mtime): New method.
	* incremental.cc (Incremental_inputs_entry_data::timestamp_usec):
Renamed from timestamp_nsec.
	(Incremental_inputs_entry_write::timestamp_sec): Fix argument to Elf_Xword.
	(Incremental_inputs_entry_write::timestamp_usec): Renamed from timestamp_nsec.
	(Incremental_inputs::report_archive): Save mtime; style fix.
	(Incremental_inputs::report_obejct): Save mtime; style fix.
	(Incremental_inputs::report_script): Save mtime; style fix.
	(Incremental_inputs::finalize_inputs): Style fix.
	(Incremental_inputs::finalize): Style fix.
	(Incremental_inputs::create_input_section_data): Store inputs mtime.
	(Incremental_inputs::Input_info::archive): Move to nameless union.
	(Incremental_inputs::Input_info::obejct): Move to nameless union.
	(Incremental_inputs::Input_info::script): Move to nameless union.
	(Incremental_inputs::mtime): New field.
	* script.cc (read_input_script): Save file mtime.
	* script.h (Script_info::Script_info): Add mtime argument.
	(Script_info::inputs): Style fix.
	(Script_info::mtime): New method.
	(Script_info::mtime_): New field.

Attachment: 0002-gold-save-file-mtime-in-.gnu_incremental_inputs.txt
Description: Text document


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