From: Richard Stallman Date: Wed, 2 Sep 1992 06:59:00 +0000 (+0000) Subject: (print_node): Avoid 1 << (HOST_BITS_PER_INT - 1), X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=11f6a29c9fc8f48bb917188c421f25e3a7f71199;p=gcc.git (print_node): Avoid 1 << (HOST_BITS_PER_INT - 1), which overflows. Use unsigned % to compute HASH. From-SVN: r2027 --- diff --git a/gcc/print-tree.c b/gcc/print-tree.c index 8b47cdb9d7b..6524b495c2b 100644 --- a/gcc/print-tree.c +++ b/gcc/print-tree.c @@ -205,7 +205,7 @@ print_node (file, prefix, node, indent) return; } - hash = ((HOST_WIDE_INT) node & ~(1 << (HOST_BITS_PER_INT - 1))) % HASH_SIZE; + hash = ((unsigned HOST_WIDE_INT) node) % HASH_SIZE; /* If node is in the table, just mention its address. */ for (b = table[hash]; b; b = b->next)