gold/
* stringpool.cc (Stringpool_template::new_key_offset): Fix uninitialized warning.
This commit is contained in:
parent
df26367c79
commit
6ad3dabab5
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-05-01 Cary Coutant <ccoutant@google.com>
|
||||
|
||||
* stringpool.cc (Stringpool_template::new_key_offset): Fix
|
||||
uninitialized warning.
|
||||
|
||||
2013-04-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
|
||||
|
||||
* output.cc (Output_section::add_merge_input_section): Allow
|
||||
|
|
|
@ -222,9 +222,10 @@ Stringpool_template<Stringpool_char>::new_key_offset(size_t length)
|
|||
offset = 0;
|
||||
else
|
||||
{
|
||||
offset = this->offset_;
|
||||
// Align non-zero length strings.
|
||||
if (length != 0)
|
||||
offset = align_address(this->offset_, this->addralign_);
|
||||
offset = align_address(offset, this->addralign_);
|
||||
this->offset_ = offset + (length + 1) * sizeof(Stringpool_char);
|
||||
}
|
||||
this->key_to_offset_.push_back(offset);
|
||||
|
|
Loading…
Reference in a new issue