bitmap.c (bitmap_debug_file): HOST_PTR_PRINTF converts a pointer, not a HOST_WIDE_INT.
authorJohn Carr <jfc@mit.edu>
Sun, 8 Feb 1998 12:26:43 +0000 (12:26 +0000)
committerJeff Law <law@gcc.gnu.org>
Sun, 8 Feb 1998 12:26:43 +0000 (05:26 -0700)
* 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

gcc/ChangeLog
gcc/bitmap.c
gcc/calls.c
gcc/genattrtab.c

index 58e0b1b6505fe3106b098833eb3525864db7334f..68c777dcbb208aa91e2b172a85e93952de0be41a 100644 (file)
@@ -1,3 +1,13 @@
+Sun Feb  8 13:21:38 1998  John Carr  <jfc@mit.edu>
+
+       * 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)
 
index f3c9a91e0270228d1aaff5d4c0a1f08f9b8d423c..3cb81757602f57fc5a7df848ede41dd2c24a63c8 100644 (file)
@@ -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++)
index 3a4244a64f40a4ff1d367cfbbb3ad82feb4f9bf5..2278e888031814c8a56f225d2d1da2cf8c2648fa 100644 (file)
@@ -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
index 0560e931ac9556cc7f0de1db961d00a652ef28c7..65976bcb0b28dec9d2fa8cab8cc811741389ce15 100644 (file)
@@ -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.  */