From 7f39a6a4acb1c800097d27dbd744982ddfaf901a Mon Sep 17 00:00:00 2001 From: paolo Date: Sun, 19 Sep 2010 08:52:50 +0000 Subject: 2010-09-19 Paolo Carlini * src/hash_bytes.cc: Compile load_bytes and shift_mix only when __SIZEOF_SIZE_T__ == 8. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164410 138bc75d-0d04-0410-961f-82ee72b054a4 --- libstdc++-v3/src/hash_bytes.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libstdc++-v3/src') diff --git a/libstdc++-v3/src/hash_bytes.cc b/libstdc++-v3/src/hash_bytes.cc index 5dfa1eec1d6..d14ad41a9fd 100644 --- a/libstdc++-v3/src/hash_bytes.cc +++ b/libstdc++-v3/src/hash_bytes.cc @@ -45,6 +45,7 @@ namespace return result; } +#if __SIZEOF_SIZE_T__ == 8 // Loads n bytes, where 1 <= n < 8. inline std::size_t load_bytes(const char* p, int n) @@ -60,6 +61,7 @@ namespace inline std::size_t shift_mix(std::size_t v) { return v ^ (v >> 47);} +#endif } namespace std -- cgit v1.2.1