diff options
author | Ian Lance Taylor <iant@google.com> | 2006-09-26 21:53:18 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2006-09-26 21:53:18 +0000 |
commit | b3168e9da370d45ebe57989d9ef2774b7e791c13 (patch) | |
tree | fd2fe4869a9cabed88409ef210c1fcd42da0ef2d /gold | |
parent | 274e99f9ae3f56ab0364b3d0947b91deeb3528e1 (diff) | |
download | gdb-b3168e9da370d45ebe57989d9ef2774b7e791c13.zip gdb-b3168e9da370d45ebe57989d9ef2774b7e791c13.tar.gz gdb-b3168e9da370d45ebe57989d9ef2774b7e791c13.tar.bz2 |
gcc 4.1.0 portability fixes.
Diffstat (limited to 'gold')
-rw-r--r-- | gold/layout.h | 3 | ||||
-rw-r--r-- | gold/stringpool.cc | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/gold/layout.h b/gold/layout.h index 527d2da..89ad8c4 100644 --- a/gold/layout.h +++ b/gold/layout.h @@ -154,8 +154,7 @@ class Layout // Return whether SEG1 comes before SEG2 in the output file. static bool - Layout::segment_precedes(const Output_segment* seg1, - const Output_segment* seg2); + segment_precedes(const Output_segment* seg1, const Output_segment* seg2); // Map from section flags to segment flags. static elfcpp::Elf_Word diff --git a/gold/stringpool.cc b/gold/stringpool.cc index 9a709e0..6437d01 100644 --- a/gold/stringpool.cc +++ b/gold/stringpool.cc @@ -31,7 +31,7 @@ Stringpool::Stringpool_hash::operator()(const char* s) const // Fowler/Noll/Vo (FNV) hash (type FNV-1a). if (sizeof(size_t) == 8) { - size_t result = 14695981039346656037ULL; + size_t result = static_cast<size_t>(14695981039346656037ULL); while (*s != '\0') { result &= (size_t) *s++; |