]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cse.c (cse_insn): Missing cast added.
authorJeff Law <law@gcc.gnu.org>
Wed, 5 Jan 2000 06:55:02 +0000 (23:55 -0700)
committerJeff Law <law@gcc.gnu.org>
Wed, 5 Jan 2000 06:55:02 +0000 (23:55 -0700)
* 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
gcc/cse.c
gcc/except.c
gcc/gcse.c
gcc/loop.c
gcc/toplev.c
gcc/varasm.c

index 01f93d602549ae7ac2a2d1f11499cf90131191df..e1320613a8fe9e6abcd0261d7800926d085304e9 100644 (file)
@@ -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)
index 52232b341b1ca07e5dddc3840c568dfd17cf9a4c..ff007ff80b186dad07129405e1be3ea89d677ff4 100644 (file)
--- 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;
 
index f90fdc93d8b368e2ed735fd990565b61fd5e3dba..b93f9bf3f5a8b2c8b99fb7cf36b1c012defc8755 100644 (file)
@@ -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;
 }
index dc45ac1fcd0a93dd0df0572a327adc938557a5f7..254cd067a224c0139f94a966aca02d7837c7b802 100644 (file)
@@ -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;
index f25b00abbc89bac73345f7c1a2dcd1a6da0bd0c3..8d4917ea18e8e4ca3fb3b85252828319148b24d0 100644 (file)
@@ -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
index 5f9195a724e7857fb23835f1775d89dbf1cfc93d..c70482a2e5f563599d840c1e3b6da599f48890e8 100644 (file)
@@ -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.  */
index db94c0d8e0edbf18847a889c3c02e834f2922b99..6087c7bad19d9b542a6a8c09745b52eae9efde04 100644 (file)
@@ -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: