From dd1bd863187095f63709320f6a30d97fe0ee40ab Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 4 Jan 2000 23:55:02 -0700 Subject: [PATCH] cse.c (cse_insn): Missing cast added. * cse.c (cse_insn): Missing cast added. * loop.c (loop_reg_used_before_p): Ditto. * gcse.c (Pre_gcse, hoist_code): Ditto. * varasm.c (decode_rtx_const): Ditto. * except.c (push_ehqueue): Ditto. * cccp.c (index0): Ditto. * toplev.c (main): Useless `&' removed before function name. From-SVN: r31229 --- gcc/cccp.c | 4 ++-- gcc/cse.c | 4 ++-- gcc/except.c | 4 ++-- gcc/gcse.c | 6 +++--- gcc/loop.c | 2 +- gcc/toplev.c | 2 +- gcc/varasm.c | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/gcc/cccp.c b/gcc/cccp.c index 01f93d60254..e1320613a8f 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -1,5 +1,5 @@ /* C Compatible Compiler Preprocessor (CCCP) - Copyright (C) 1986, 87, 89, 92-98, 1999 Free Software Foundation, Inc. + Copyright (C) 1986, 87, 89, 92-99, 2000 Free Software Foundation, Inc. Written by Paul Rubin, June 1986 Adapted to ANSI C, Richard Stallman, Jan 1987 @@ -2274,7 +2274,7 @@ index0 (s, c, n) for (;;) { const char *q = index (p, c); if (q) - return q; + return (const U_CHAR *) q; else { size_t l = strlen (p); if (l == n) diff --git a/gcc/cse.c b/gcc/cse.c index 52232b341b1..ff007ff80b1 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -1,5 +1,5 @@ /* Common subexpression elimination for GNU compiler. - Copyright (C) 1987, 88, 89, 92-7, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1987, 88, 89, 92-99, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -4437,7 +4437,7 @@ cse_insn (insn, libcall_insn) int src_eqv_in_memory = 0; unsigned src_eqv_hash = 0; - struct set *sets = NULL_PTR; + struct set *sets = (struct set *) NULL_PTR; this_insn = insn; diff --git a/gcc/except.c b/gcc/except.c index f90fdc93d8b..b93f9bf3f5a 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -1,5 +1,5 @@ /* Implements exception handling. - Copyright (C) 1989, 1992-1999 Free Software Foundation, Inc. + Copyright (C) 1989, 1992-1999, 2000 Free Software Foundation, Inc. Contributed by Mike Stump . This file is part of GNU CC. @@ -1793,7 +1793,7 @@ void push_ehqueue () { struct eh_queue *q; - q = xcalloc (1, sizeof (struct eh_queue)); + q = (struct eh_queue *) xcalloc (1, sizeof (struct eh_queue)); q->next = ehqueue; ehqueue = q; } diff --git a/gcc/gcse.c b/gcc/gcse.c index dc45ac1fcd0..254cd067a22 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -1,6 +1,6 @@ /* Global common subexpression elimination/Partial redundancy elimination and global constant/copy propagation for GNU compiler. - Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc. This file is part of GNU CC. @@ -4824,7 +4824,7 @@ pre_gcse () /* Compute a mapping from expression number (`bitmap_index') to hash table entry. */ - index_map = xcalloc (n_exprs, sizeof (struct expr *)); + index_map = (struct expr **) xcalloc (n_exprs, sizeof (struct expr *)); for (i = 0; i < expr_hash_table_size; i++) { struct expr *expr; @@ -5468,7 +5468,7 @@ hoist_code () /* Compute a mapping from expression number (`bitmap_index') to hash table entry. */ - index_map = xcalloc (n_exprs, sizeof (struct expr *)); + index_map = (struct expr **) xcalloc (n_exprs, sizeof (struct expr *)); for (i = 0; i < expr_hash_table_size; i++) { struct expr *expr; diff --git a/gcc/loop.c b/gcc/loop.c index f25b00abbc8..8d4917ea18e 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -4198,7 +4198,7 @@ strength_reduce (scan_start, end, loop_top, insn_count, fprintf (loop_dump_stream, "is giv of biv %d\n", bl2->regno); /* Let this giv be discovered by the generic code. */ REG_IV_TYPE (bl->regno) = UNKNOWN_INDUCT; - reg_biv_class[bl->regno] = NULL_PTR; + reg_biv_class[bl->regno] = (struct iv_class *) NULL_PTR; /* We can get better optimization if we can move the giv setting before the first giv use. */ if (dominator diff --git a/gcc/toplev.c b/gcc/toplev.c index 5f9195a724e..c70482a2e5f 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -4533,7 +4533,7 @@ main (argc, argv) /* Initialize the garbage-collector. */ init_ggc (); ggc_add_root (&input_file_stack, 1, sizeof input_file_stack, - &mark_file_stack); + mark_file_stack); ggc_add_rtx_root (&stack_limit_rtx, 1); /* Perform language-specific options intialization. */ diff --git a/gcc/varasm.c b/gcc/varasm.c index db94c0d8e0e..6087c7bad19 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -3408,7 +3408,7 @@ decode_rtx_const (mode, x, value) case SYMBOL_REF: /* Use the string's address, not the SYMBOL_REF's address, for the sake of addresses of library routines. */ - value->un.addr.base = XSTR (value->un.addr.base, 0); + value->un.addr.base = (rtx) XSTR (value->un.addr.base, 0); break; case LABEL_REF: -- 2.30.2