projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Power10 tidies
[binutils-gdb.git]
/
gold
/
fileread.cc
diff --git
a/gold/fileread.cc
b/gold/fileread.cc
index 8c46a1fbb6cbf628590d2656c8464b5078182109..bebe0aba8d08132b4cba10d4ccc696d5f0475f13 100644
(file)
--- a/
gold/fileread.cc
+++ b/
gold/fileread.cc
@@
-1,6
+1,6
@@
// fileread.cc -- read files for gold
// fileread.cc -- read files for gold
-// Copyright (C) 2006-20
14
Free Software Foundation, Inc.
+// Copyright (C) 2006-20
20
Free Software Foundation, Inc.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
// Written by Ian Lance Taylor <iant@google.com>.
// This file is part of gold.
@@
-293,6
+293,7
@@
void
File_read::lock(const Task* task)
{
gold_assert(this->released_);
File_read::lock(const Task* task)
{
gold_assert(this->released_);
+ gold_debug(DEBUG_FILES, "Locking file \"%s\"", this->name_.c_str());
this->token_.add_writer(task);
this->released_ = false;
}
this->token_.add_writer(task);
this->released_ = false;
}
@@
-302,6
+303,7
@@
File_read::lock(const Task* task)
void
File_read::unlock(const Task* task)
{
void
File_read::unlock(const Task* task)
{
+ gold_debug(DEBUG_FILES, "Unlocking file \"%s\"", this->name_.c_str());
this->release();
this->token_.remove_writer(task);
}
this->release();
this->token_.remove_writer(task);
}