http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912
--- Comment #6 from Rainer Emrich <rai...@emrich-ebersheim.de> 2012-07-19 20:33:01 UTC --- Am 19.07.2012 18:12, schrieb redi at gcc dot gnu.org: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912 > > --- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-19 > 16:12:18 UTC --- > Does changing the definition of POINTER_HASH to use intptr_t instead of long > work? > This works for ggc-common.c. Ian Lance Taylor recommended to use uintptr_t instead, but I haven't tested that. The next failure now is: /SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/./prev-gcc/g++ -B/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/./prev-gcc/ -B/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-4.8.0/x86_64-w64-mingw32/bin/ -nostdinc++ -B/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/prev-x86_64-w64-mingw32/libstdc++-v3/src/.libs -B/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/prev-x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -I/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/prev-x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32 -I/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/prev-x86_64-w64-mingw32/libstdc++-v3/include -I/SCRATCH/tmp.xipisatGtI/src/gcc-4.8.0/libstdc++-v3/libsupc++ -L/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/prev-x86_64-w64-mingw32/libstdc++-v3/src/.libs -L/SCRATCH/tmp.xipisatGtI/gcc-4.8.0/gcc-4.8.0/prev-x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -c -g -O2 -D__USE_MINGW_ACCESS -Wno-pedantic-ms-format -gtoggle -DIN_GCC -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -I. -I../../../src/gcc-4.8.0/gcc -I../../../src/gcc-4.8.0/gcc/. -I../../../src/gcc-4.8.0/gcc/../include -I./../intl -I../../../src/gcc-4.8.0/gcc/../libcpp/include -I/SCRATCH/tmp.xipisatGtI/install/include -I/SCRATCH/tmp.xipisatGtI/install/include -I/SCRATCH/tmp.xipisatGtI/install/include -I../../../src/gcc-4.8.0/gcc/../libdecnumber -I../../../src/gcc-4.8.0/gcc/../libdecnumber/bid -I../libdecnumber -DCLOOG_INT_GMP -I/SCRATCH/tmp.xipisatGtI/install/include -I/SCRATCH/tmp.xipisatGtI/install/include ../../../src/gcc-4.8.0/gcc/pointer-set.c -o pointer-set.o ../../../src/gcc-4.8.0/gcc/pointer-set.c: In function 'size_t hash1(const void*, long unsigned int, long unsigned int)': ../../../src/gcc-4.8.0/gcc/pointer-set.c:67:32: error: cast from 'const void*' to 'long unsigned int' loses precision [-fpermissive] return ((A * (unsigned long) p) >> shift) & (max - 1); ^ make[3]: *** [pointer-set.o] Error 1