diff options
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/pointer-set.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 18c930c..bcb7705 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-12-03 Kai Tietz <ktietz@redhat.com> + + PR target/53912 + * pointer-set.c (hash1): Cast from pointer via uintptr_t. + 2012-12-02 Marek Polacek <polacek@redhat.com> PR middle-end/54838 diff --git a/gcc/pointer-set.c b/gcc/pointer-set.c index b57c404..ebad5db 100644 --- a/gcc/pointer-set.c +++ b/gcc/pointer-set.c @@ -64,7 +64,7 @@ hash1 (const void *p, unsigned long max, unsigned long logmax) #endif const unsigned long shift = HOST_BITS_PER_LONG - logmax; - return ((A * (unsigned long) p) >> shift) & (max - 1); + return ((A * (uintptr_t) p) >> shift) & (max - 1); } /* Allocate an empty pointer set. */ |
