Commit 95787705 by Ian Lance Taylor

re PR go/48501 (64bit-out.go, select5-out.go, tmp.go compilation times out)

	PR go/48501
runtime: Fix identity hash function for big-endian systems.

From-SVN: r184218
parent 7f0dbd0a
......@@ -32,7 +32,10 @@ __go_type_hash_identity (const void *key, uintptr_t key_size)
} u;
u.v = 0;
__builtin_memcpy (&u.a, key, key_size);
return (uintptr_t) u.v;
if (sizeof (uintptr_t) >= 8)
return (uintptr_t) u.v;
else
return (uintptr_t) ((u.v >> 32) ^ (u.v & 0xffffffff));
}
ret = 5381;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment