OSDN Git Service

* bitmap.c (bitmap_debug_file): HOST_PTR_PRINTF converts a pointer,
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 8 Feb 1998 12:26:43 +0000 (12:26 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 8 Feb 1998 12:26:43 +0000 (12:26 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17777 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 58e0b1b..68c777d 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 f3c9a91..3cb8175 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 3a4244a..2278e88 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 0560e93..65976bc 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.  */