From: John Carr Date: Sun, 8 Feb 1998 12:26:43 +0000 (+0000) Subject: bitmap.c (bitmap_debug_file): HOST_PTR_PRINTF converts a pointer, not a HOST_WIDE_INT. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e0dd623cd843a28beb1a83d0e0307166b0600d5;p=gcc.git bitmap.c (bitmap_debug_file): HOST_PTR_PRINTF converts a pointer, not a HOST_WIDE_INT. * bitmap.c (bitmap_debug_file): HOST_PTR_PRINTF converts a pointer, not a HOST_WIDE_INT. * calls.c (expand_call): Change test of expand_inline_function return value to stop compiler warning. * genattrtab.c (RTL_HASH): Cast pointer to long, not HOST_WIDE_INT. From-SVN: r17777 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 58e0b1b6505..68c777dcbb2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +Sun Feb 8 13:21:38 1998 John Carr + + * bitmap.c (bitmap_debug_file): HOST_PTR_PRINTF converts a pointer, + not a HOST_WIDE_INT. + + * calls.c (expand_call): Change test of expand_inline_function + return value to stop compiler warning. + + * genattrtab.c (RTL_HASH): Cast pointer to long, not HOST_WIDE_INT. + Sun Feb 8 12:04:24 1998 Jim Wilson (wilson@cygnus.com) Jeff Law (law@cygnus.com) diff --git a/gcc/bitmap.c b/gcc/bitmap.c index f3c9a91e027..3cb81757602 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -1,5 +1,5 @@ /* Functions to support general ended bitmaps. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1998 Free Software Foundation, Inc. This file is part of GNU CC. @@ -563,9 +563,9 @@ bitmap_debug_file (file, head) bitmap_element *ptr; fprintf (file, "\nfirst = "); - fprintf (file, HOST_PTR_PRINTF, (HOST_WIDE_INT) head->first); + fprintf (file, HOST_PTR_PRINTF, head->first); fprintf (file, " current = "); - fprintf (file, HOST_PTR_PRINTF, (HOST_WIDE_INT) head->current); + fprintf (file, HOST_PTR_PRINTF, head->current); fprintf (file, " indx = %u\n", head->indx); for (ptr = head->first; ptr; ptr = ptr->next) @@ -573,11 +573,11 @@ bitmap_debug_file (file, head) int i, j, col = 26; fprintf (file, "\t"); - fprintf (file, HOST_PTR_PRINTF, (HOST_WIDE_INT) ptr); + fprintf (file, HOST_PTR_PRINTF, ptr); fprintf (file, " next = "); - fprintf (file, HOST_PTR_PRINTF, (HOST_WIDE_INT) ptr->next); + fprintf (file, HOST_PTR_PRINTF, ptr->next); fprintf (file, " prev = "); - fprintf (file, HOST_PTR_PRINTF, (HOST_WIDE_INT) ptr->prev); + fprintf (file, HOST_PTR_PRINTF, ptr->prev); fprintf (file, " indx = %u\n\t\tbits = {", ptr->indx); for (i = 0; i < BITMAP_ELEMENT_WORDS; i++) diff --git a/gcc/calls.c b/gcc/calls.c index 3a4244a64f4..2278e888031 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -1,5 +1,5 @@ /* Convert function calls to rtl insns, for GNU C compiler. - Copyright (C) 1989, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc. + Copyright (C) 1989, 92-97, 1998 Free Software Foundation, Inc. This file is part of GNU CC. @@ -730,7 +730,7 @@ expand_call (exp, target, ignore) structure_value_addr); /* If inlining succeeded, return. */ - if ((HOST_WIDE_INT) temp != -1) + if (temp != (rtx) (HOST_WIDE_INT) -1) { #ifdef ACCUMULATE_OUTGOING_ARGS /* If the outgoing argument list must be preserved, push diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index 0560e931ac9..65976bcb0b2 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -1,5 +1,5 @@ /* Generate code from machine description to compute values of attributes. - Copyright (C) 1991, 93, 94, 95, 96, 1997 Free Software Foundation, Inc. + Copyright (C) 1991, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc. Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu) This file is part of GNU CC. @@ -506,7 +506,7 @@ struct attr_hash *attr_hash_table[RTL_HASH_SIZE]; /* Here is how primitive or already-shared RTL's hash codes are made. */ -#define RTL_HASH(RTL) ((HOST_WIDE_INT) (RTL) & 0777777) +#define RTL_HASH(RTL) ((long) (RTL) & 0777777) /* Add an entry to the hash table for RTL with hash code HASHCODE. */