diff options
author | Kai Tietz <ktietz@redhat.com> | 2012-12-10 09:53:08 +0000 |
---|---|---|
committer | Kai Tietz <ktietz@redhat.com> | 2012-12-10 09:53:08 +0000 |
commit | 6f02158ca55e0b25b9af00f342c1ff43c3e12b1d (patch) | |
tree | 9e02e9ed6f0fbccb06482730fee0001a3b3929f6 | |
parent | bbcf1fbb4a5d7ff85a86e47b62035ae524876c81 (diff) |
PR target/53912
* print-tree.c (print_node): Cast from pointer via uintptr_t.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@194348 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/print-tree.c | 2 |
2 files changed, 6 insertions, 1 deletions
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 <ktietz@redhat.com> + + PR target/53912 + * print-tree.c (print_node): Cast from pointer via uintptr_t. + 2012-12-10 Jakub Jelinek <jakub@redhat.com> * 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) |