From: Kai Tietz Date: Mon, 10 Dec 2012 09:53:08 +0000 (+0100) Subject: re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e48e2758d23ab09ff48c4473459bde6deea7570;p=gcc.git re PR bootstrap/53912 (bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32) PR target/53912 * print-tree.c (print_node): Cast from pointer via uintptr_t. From-SVN: r194348 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 41f4116c05b..68d3972ba79 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-12-10 Kai Tietz + + PR target/53912 + * print-tree.c (print_node): Cast from pointer via uintptr_t. + 2012-12-10 Jakub Jelinek * asan.c (instrument_derefs): Handle bitfield COMPONENT_REFs diff --git a/gcc/print-tree.c b/gcc/print-tree.c index b12d1f38637..67bb8746f9f 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -255,7 +255,7 @@ print_node (FILE *file, const char *prefix, tree node, int indent) /* Allow this function to be called if the table is not there. */ if (table) { - hash = ((unsigned long) node) % HASH_SIZE; + hash = ((uintptr_t) node) % HASH_SIZE; /* If node is in the table, just mention its address. */ for (b = table[hash]; b; b = b->next)