public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: [Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32
       [not found] ` <bug-53912-11564-a63IEDpTOG@http.gcc.gnu.org/bugzilla/>
@ 2012-07-19 20:32   ` Rainer Emrich
  2012-07-19 20:52     ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Rainer Emrich @ 2012-07-19 20:32 UTC (permalink / raw)
  To: redi at gcc dot gnu.org; +Cc: iant, gcc

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32
  2012-07-19 20:32   ` [Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32 Rainer Emrich
@ 2012-07-19 20:52     ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2012-07-19 20:52 UTC (permalink / raw)
  To: Rainer Emrich; +Cc: redi at gcc dot gnu.org, gcc

On Thu, Jul 19, 2012 at 1:32 PM, Rainer Emrich
<rainer@emrich-ebersheim.de> wrote:

> ../../../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);

Same fix.  s/unsigned long/uintptr_t/ .

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-07-19 20:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-53912-11564@http.gcc.gnu.org/bugzilla/>
     [not found] ` <bug-53912-11564-a63IEDpTOG@http.gcc.gnu.org/bugzilla/>
2012-07-19 20:32   ` [Bug bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32 Rainer Emrich
2012-07-19 20:52     ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).