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
This commit is contained in:
parent
405c87c4d3
commit
b4ec63970a
@ -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
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user