aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cccp.c4
-rw-r--r--gcc/cse.c4
-rw-r--r--gcc/except.c4
-rw-r--r--gcc/gcse.c6
-rw-r--r--gcc/loop.c2
-rw-r--r--gcc/toplev.c2
-rw-r--r--gcc/varasm.c2
7 files changed, 12 insertions, 12 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index 01f93d6..e132061 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 52232b3..ff007ff 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 f90fdc9..b93f9bf 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 <mrs@cygnus.com>.
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 dc45ac1..254cd06 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 f25b00a..8d4917e 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 5f9195a..c70482a 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 db94c0d..6087c7b 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: