aboutsummaryrefslogtreecommitdiff
path: root/libiberty/hashtab.c
diff options
context:
space:
mode:
authorOzkan Sezer <sezeroz@gmail.com>2009-09-03 16:46:00 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2009-09-03 09:46:00 -0700
commit2e3dac6f94ec46ecfe05f34bba26f09d35b8681b (patch)
tree4f84a6682bd1aaed5aa99472dceeb58546c9315f /libiberty/hashtab.c
parent7d4507cb3051f5c256ffe567951744a53bd7f2d7 (diff)
downloadgcc-2e3dac6f94ec46ecfe05f34bba26f09d35b8681b.zip
gcc-2e3dac6f94ec46ecfe05f34bba26f09d35b8681b.tar.gz
gcc-2e3dac6f94ec46ecfe05f34bba26f09d35b8681b.tar.bz2
re PR target/39065 (libiberty hashtab.c:hash_pointer() needs intptr_t)
2009-09-03 Ozkan Sezer <sezeroz@gmail.com> PR target/39065 * configure.ac: Also check for intptr_t. * config.h.in: Regenerated. * configure: Regenerated. * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t instead of of long. From-SVN: r151386
Diffstat (limited to 'libiberty/hashtab.c')
-rw-r--r--libiberty/hashtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/hashtab.c b/libiberty/hashtab.c
index 3e64921..8c8bd31 100644
--- a/libiberty/hashtab.c
+++ b/libiberty/hashtab.c
@@ -196,7 +196,7 @@ higher_prime_index (unsigned long n)
static hashval_t
hash_pointer (const PTR p)
{
- return (hashval_t) ((long)p >> 3);
+ return (hashval_t) ((intptr_t)p >> 3);
}
/* Returns non-zero if P1 and P2 are equal. */