aboutsummaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorWeiwen Liu <liu@hepunix.physics.yale.edu>1997-09-08 16:06:18 +0000
committerJeff Law <law@gcc.gnu.org>1997-09-08 10:06:18 -0600
commit52b7724b84b30caf28859178911271d03a1f8037 (patch)
tree7bc4f86ffe3e06a2455f123bf5e70b9e7e60cd5d /gcc/haifa-sched.c
parent1a5de45f376c6d0afb0c1957a162bfe0feb9df55 (diff)
downloadgcc-52b7724b84b30caf28859178911271d03a1f8037.zip
gcc-52b7724b84b30caf28859178911271d03a1f8037.tar.gz
gcc-52b7724b84b30caf28859178911271d03a1f8037.tar.bz2
alias.c (init_alias_analysis): Clean up incompatible pointer type warning in bzero.
* alias.c (init_alias_analysis): Clean up incompatible pointer type warning in bzero. * regmove.c (regmove_optimize): Ditto. * haifa-sched.c (find_rgns): Ditto. * haifa-sched.c (print_value): Clean up ptr->int cast warnings. From-SVN: r15169
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index b4a674e..f5a5f4e 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -1628,7 +1628,7 @@ find_rgns ()
/* function's inner arrays allocation and initialization */
max_hdr = (int *) alloca (n_basic_blocks * sizeof (int));
dfs_nr = (int *) alloca (n_basic_blocks * sizeof (int));
- bzero ((int *) dfs_nr, n_basic_blocks * sizeof (int));
+ bzero ((char *) dfs_nr, n_basic_blocks * sizeof (int));
stack = (int *) alloca (nr_edges * sizeof (int));
queue = (int *) alloca (n_basic_blocks * sizeof (int));
@@ -6089,11 +6089,11 @@ print_value (buf, x, verbose)
strcpy (t, "fr");
else
strcpy (t, "r");
- sprintf (buf, "%s%d", t, (int) XEXP (x, 0));
+ sprintf (buf, "%s%d", t, !! XEXP (x, 0));
break;
case SUBREG:
print_value (t, XEXP (x, 0), verbose);
- sprintf (buf, "%s#%d", t, (int) XEXP (x, 1));
+ sprintf (buf, "%s#%d", t, !! XEXP (x, 1));
break;
case SCRATCH:
sprintf (buf, "scratch");