diff options
author | Kai Tietz <ktietz@redhat.com> | 2012-12-03 07:56:16 +0100 |
---|---|---|
committer | Kai Tietz <ktietz@gcc.gnu.org> | 2012-12-03 07:56:16 +0100 |
commit | b4ec63970a41dc16664ba178250177091cbf875b (patch) | |
tree | 86f0acf5594e350d118d04149f47f6173b61516f /gcc/pointer-set.c | |
parent | 405c87c4d340b83a6aba4a036dd258855342750b (diff) | |
download | gcc-b4ec63970a41dc16664ba178250177091cbf875b.zip gcc-b4ec63970a41dc16664ba178250177091cbf875b.tar.gz gcc-b4ec63970a41dc16664ba178250177091cbf875b.tar.bz2 |
re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32)
PR target/53912
* pointer-set.c (hash1): Cast from pointer via uintptr_t.
From-SVN: r194067
Diffstat (limited to 'gcc/pointer-set.c')
-rw-r--r-- | gcc/pointer-set.c | 2 |
1 files changed, 1 insertions, 1 deletions
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. */ |