public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32
@ 2012-07-19 15:48 Rainer Emrich
  2012-07-19 17:47 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Rainer Emrich @ 2012-07-19 15:48 UTC (permalink / raw)
  To: gcc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Affected versions are 4.7.x and 4.8.0.

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?

Rainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAILDQACgkQoUhjsh59BL4vRwCdH5OXtUzHFGK363QhhSO5cicj
IFUAoMHXWtfkL1K9MfqNZ6hNKK87Peu5
=ZtFY
-----END PGP SIGNATURE-----

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

* Re: bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32
  2012-07-19 15:48 bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32 Rainer Emrich
@ 2012-07-19 17:47 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2012-07-19 17:47 UTC (permalink / raw)
  To: Rainer Emrich; +Cc: gcc

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

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

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-19 15:48 bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32 Rainer Emrich
2012-07-19 17:47 ` 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).