This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32
- From: Ian Lance Taylor <iant at google dot com>
- To: Rainer Emrich <rainer at emrich-ebersheim dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 19 Jul 2012 10:47:15 -0700
- Subject: Re: bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32
- References: <50082C34.8010309@emrich-ebersheim.de>
On Thu, Jul 19, 2012 at 8:48 AM, Rainer Emrich
<rainer@emrich-ebersheim.de> wrote:
>
> PR 53912 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53912 shows the failures
> in stage 2 for gcc-4.8.0. Most are of the form "error: cast from 'void*' to
> 'long int' loses precision" or similar.
>
> AFAIK a switch to c++ mode is planned for stage 1 as well. So we are in
> trouble for native x86_64-w64-mingw32 builds. Any suggestions?
I recommend fixing the code. In ggc-common.c change
#define POINTER_HASH(x) (hashval_t)((long)x >> 3)
to
#define POINTER_HASH(x) ((hashval-t)((uintptr_t) x >> 3))
Ian