From 9204da15efba1a64f25b087376910c62c5f67d64 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Mon, 3 Dec 2012 08:05:26 +0100 Subject: [PATCH] re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32) PR target/53912 * ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t. From-SVN: r194072 --- gcc/ChangeLog | 3 +++ gcc/ggc-common.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e3590ef..bf76f65 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,9 @@ 2012-12-03 Kai Tietz PR target/53912 + * ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t. + + PR target/53912 * tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT. PR target/53912 diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index a006909..b26f7ae 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -304,7 +304,7 @@ struct ptr_data enum gt_types_enum type; }; -#define POINTER_HASH(x) (hashval_t)((long)x >> 3) +#define POINTER_HASH(x) (hashval_t)((intptr_t)x >> 3) /* Register an object in the hash table. */ -- 2.7.4