aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJohn Carr <jfc@mit.edu>1998-02-08 12:26:43 +0000
committerJeff Law <law@gcc.gnu.org>1998-02-08 05:26:43 -0700
commit2e0dd623cd843a28beb1a83d0e0307166b0600d5 (patch)
treeb3a9e8a08c931be589091cd8e18d0a6bae74b887 /gcc
parent7bf825d296e1551e8df8e214a810974315db7b02 (diff)
downloadgcc-2e0dd623cd843a28beb1a83d0e0307166b0600d5.zip
gcc-2e0dd623cd843a28beb1a83d0e0307166b0600d5.tar.gz
gcc-2e0dd623cd843a28beb1a83d0e0307166b0600d5.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog10
-rw-r--r--gcc/bitmap.c12
-rw-r--r--gcc/calls.c4
-rw-r--r--gcc/genattrtab.c4
4 files changed, 20 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 58e0b1b..68c777d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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)
diff --git a/gcc/bitmap.c b/gcc/bitmap.c
index f3c9a91..3cb8175 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 3a4244a..2278e88 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 0560e93..65976bc 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. */