mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* gold.cc (queue_initial_tasks): Pass incremental base filename
to Output_file::open_base_file; don't print error message. * incremental-dump.cc (main): Adjust call to Output_file::open_for_modification. * incremental-dump.cc (main): Likewise. * incremental.cc (Incremental_inputs::report_command_line): Ignore --incremental-base option when comparing command lines. Ignore parameter when given as separate argument. * options.h (class General_options): Add --incremental-base. * output.cc (Output_file::Output_file): (Output_file::open_base_file): Add base_name and writable parameters; read base file into new file; print error message here. (Output_file::map_no_anonymous): Add writable parameter; adjust all callers. * output.h (Output_file::open_for_modification): Rename to... (Output_file::open_base_file): ...this; add base_name and writable parameters; adjust all callers. (Output_file::map_no_anonymous): Add writable parameter; adjust all callers. * testsuite/Makefile.am (incremental_test_4): Test --incremental-base. * testsuite/Makefile.in: Regenerate.
This commit is contained in:
@@ -449,10 +449,10 @@ main(int argc, char** argv)
|
||||
|
||||
Output_file* file = new Output_file(filename);
|
||||
|
||||
bool t = file->open_for_modification();
|
||||
bool t = file->open_base_file(NULL, false);
|
||||
if (!t)
|
||||
{
|
||||
fprintf(stderr, "%s: open_for_modification(%s): %s\n", argv[0], filename,
|
||||
fprintf(stderr, "%s: open_base_file(%s): %s\n", argv[0], filename,
|
||||
strerror(errno));
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user