From: Paolo Carlini Date: Sun, 19 Sep 2010 08:52:50 +0000 (+0000) Subject: hash_bytes.cc: Compile load_bytes and shift_mix only when __SIZEOF_SIZE_T__ == 8. X-Git-Tag: releases/gcc-4.6.0~4255 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61e60481d004f39c8bc5497e9ca1f5893658f3d1;p=thirdparty%2Fgcc.git hash_bytes.cc: Compile load_bytes and shift_mix only when __SIZEOF_SIZE_T__ == 8. 2010-09-19 Paolo Carlini * src/hash_bytes.cc: Compile load_bytes and shift_mix only when __SIZEOF_SIZE_T__ == 8. From-SVN: r164410 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f74e54f02ed2..d50afd3c0c82 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2010-09-19 Paolo Carlini + + * src/hash_bytes.cc: Compile load_bytes and shift_mix only when + __SIZEOF_SIZE_T__ == 8. + 2010-09-17 Luc Hermitte Paolo Carlini diff --git a/libstdc++-v3/src/hash_bytes.cc b/libstdc++-v3/src/hash_bytes.cc index 5dfa1eec1d66..d14ad41a9fd9 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