OSDN Git Service

Warning fixes:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Mar 1999 19:21:31 +0000 (19:21 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 20 Mar 1999 19:21:31 +0000 (19:21 +0000)
        * c-lex.c (yylex): Remove unused variable `bytes'.
        * flow.c (print_rtl_with_bb): Cast the return value of alloca.
        * function.c (assign_parms): Wrap variable `varargs_setup' in
        macro SETUP_INCOMING_VARARGS.
        (thread_prologue_and_epilogue_insns): Mark parameter `f' with
        ATTRIBUTE_UNUSED.
        * local-alloc.c (no_equiv): Likewise for parameter `store'.
        * sched.c (schedule_insns): Remove unused variables `insn' and `next'.
        * tlink.c (symbol_hash_newfunc, symbol_hash_lookup,
        file_hash_newfunc, file_hash_lookup, demangled_hash_newfunc,
        demangled_hash_lookup, symbol_push, symbol_pop, file_push,
        file_pop, tlink_init, tlink_execute, frob_extension,
        obstack_fgets, tfgets, pfgets, freadsym, read_repo_file,
        maybe_tweak, recompile_files, read_repo_files,
        demangle_new_symbols, scan_linker_output): Add static prototype.
        (symbol_hash_newfunc, file_hash_newfunc, demangled_hash_newfunc):
        Make the third argument a `hash_table_key'.
        * toplev.c (debug_start_source_file): Mark parameter `filename'
        with ATTRIBUTE_UNUSED.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25871 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/c-lex.c
gcc/flow.c
gcc/function.c
gcc/local-alloc.c
gcc/sched.c
gcc/tlink.c
gcc/toplev.c

index 80bdea7..42e6155 100644 (file)
@@ -1,3 +1,32 @@
+Sat Mar 20 21:46:06 1999  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * c-lex.c (yylex): Remove unused variable `bytes'.
+
+       * flow.c (print_rtl_with_bb): Cast the return value of alloca.
+
+       * function.c (assign_parms): Wrap variable `varargs_setup' in
+       macro SETUP_INCOMING_VARARGS.
+       (thread_prologue_and_epilogue_insns): Mark parameter `f' with
+       ATTRIBUTE_UNUSED.
+
+       * local-alloc.c (no_equiv): Likewise for parameter `store'.
+
+       * sched.c (schedule_insns): Remove unused variables `insn' and `next'.
+
+       * tlink.c (symbol_hash_newfunc, symbol_hash_lookup,
+       file_hash_newfunc, file_hash_lookup, demangled_hash_newfunc,
+       demangled_hash_lookup, symbol_push, symbol_pop, file_push,
+       file_pop, tlink_init, tlink_execute, frob_extension,
+       obstack_fgets, tfgets, pfgets, freadsym, read_repo_file,
+       maybe_tweak, recompile_files, read_repo_files,
+       demangle_new_symbols, scan_linker_output): Add static prototype.
+
+       (symbol_hash_newfunc, file_hash_newfunc, demangled_hash_newfunc):
+       Make the third argument a `hash_table_key'.
+
+       * toplev.c (debug_start_source_file): Mark parameter `filename'
+       with ATTRIBUTE_UNUSED.
+
 Sun Mar 21 02:28:21 1999  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
 
        * tm.texi (Varargs): Don't split argument of @item across lines.
index ce7c6e9..27c65f3 100644 (file)
@@ -1694,7 +1694,7 @@ yylex ()
            int spec_long = 0;
            int spec_long_long = 0;
            int spec_imag = 0;
-           int bytes, warn, i;
+           int warn, i;
 
            traditional_type = ansi_type = type = NULL_TREE;
            while (1)
index 2675296..1515d41 100644 (file)
@@ -4268,8 +4268,10 @@ print_rtl_with_bb (outf, rtx_first)
       int i;
       enum bb_state { NOT_IN_BB, IN_ONE_BB, IN_MULTIPLE_BB };
       int max_uid = get_max_uid ();
-      basic_block *start = alloca (max_uid * sizeof (basic_block));
-      basic_block *end = alloca (max_uid * sizeof (basic_block));
+      basic_block *start = (basic_block *)
+       alloca (max_uid * sizeof (basic_block));
+      basic_block *end = (basic_block *)
+       alloca (max_uid * sizeof (basic_block));
       enum bb_state *in_bb_p = (enum bb_state *)
        alloca (max_uid * sizeof (enum bb_state));
 
index ac59c21..1319fb9 100644 (file)
@@ -4028,7 +4028,9 @@ assign_parms (fndecl, second_time)
   /* This is a dummy PARM_DECL that we used for the function result if 
      the function returns a structure.  */
   tree function_result_decl = 0;
+#ifdef SETUP_INCOMING_VARARGS
   int varargs_setup = 0;
+#endif
   rtx conversion_insns = 0;
 
   /* Nonzero if the last arg is named `__builtin_va_alist',
@@ -6451,7 +6453,7 @@ contains (insn, vec)
 
 void
 thread_prologue_and_epilogue_insns (f)
-     rtx f;
+     rtx f ATTRIBUTE_UNUSED;
 {
   int insertted = 0;
 
index d3dde6b..598d405 100644 (file)
@@ -983,7 +983,7 @@ update_equiv_regs ()
    but needs to be there because this function is called from note_stores.  */
 static void
 no_equiv (reg, store)
-     rtx reg, store;
+     rtx reg, store ATTRIBUTE_UNUSED;
 {
   int regno;
   rtx list;
index 1bcc779..3701ac6 100644 (file)
@@ -4327,8 +4327,6 @@ schedule_insns (dump_file)
 
   for (b = 0; b < n_basic_blocks; b++)
     {
-      rtx insn, next;
-
       note_list = 0;
 
       split_block_insns (b, reload_completed == 0 || ! flag_schedule_insns);
index 4e6cf2f..29e2deb 100644 (file)
@@ -76,6 +76,38 @@ typedef struct demangled_hash_entry
 
 static struct hash_table symbol_table;
 
+static struct hash_entry * symbol_hash_newfunc PARAMS ((struct hash_entry *,
+                                                       struct hash_table *,
+                                                       hash_table_key));
+static struct symbol_hash_entry * symbol_hash_lookup PARAMS ((const char *,
+                                                             boolean));
+static struct hash_entry * file_hash_newfunc PARAMS ((struct hash_entry *,
+                                                     struct hash_table *,
+                                                     hash_table_key));
+static struct file_hash_entry * file_hash_lookup PARAMS ((const char *));
+static struct hash_entry * demangled_hash_newfunc PARAMS ((struct hash_entry *,
+                                                          struct hash_table *,
+                                                          hash_table_key));
+static struct demangled_hash_entry *
+  demangled_hash_lookup PARAMS ((const char *, boolean));
+static void symbol_push PARAMS ((symbol *));
+static symbol * symbol_pop PARAMS ((void));
+static void file_push PARAMS ((file *));
+static file * file_pop PARAMS ((void));
+static void tlink_init PARAMS ((void));
+static int tlink_execute PARAMS ((char *, char **, char *));
+static char * frob_extension PARAMS ((char *, const char *));
+static char * obstack_fgets PARAMS ((FILE *, struct obstack *));
+static char * tfgets PARAMS ((FILE *));
+static char * pfgets PARAMS ((FILE *));
+static void freadsym PARAMS ((FILE *, file *, int));
+static void read_repo_file PARAMS ((file *));
+static void maybe_tweak PARAMS ((char *, file *));
+static int recompile_files PARAMS ((void));
+static int read_repo_files PARAMS ((char **));
+static void demangle_new_symbols PARAMS ((void));
+static int scan_linker_output PARAMS ((const char *));
+
 /* Create a new entry for the symbol hash table.
    Passed to hash_table_init.  */
 
@@ -83,7 +115,7 @@ static struct hash_entry *
 symbol_hash_newfunc (entry, table, string)
      struct hash_entry *entry;
      struct hash_table *table;
-     const char *string;
+     hash_table_key string;
 {
   struct symbol_hash_entry *ret = (struct symbol_hash_entry *) entry;
   if (ret == NULL)
@@ -94,8 +126,7 @@ symbol_hash_newfunc (entry, table, string)
        return NULL;
     }
   ret = ((struct symbol_hash_entry *)
-        hash_newfunc ((struct hash_entry *) ret, table, 
-                      (hash_table_key) string));
+        hash_newfunc ((struct hash_entry *) ret, table, string));
   ret->file = NULL;
   ret->chosen = 0;
   ret->tweaking = 0;
@@ -124,7 +155,7 @@ static struct hash_entry *
 file_hash_newfunc (entry, table, string)
      struct hash_entry *entry;
      struct hash_table *table;
-     const char *string;
+     hash_table_key string;
 {
    struct file_hash_entry *ret = (struct file_hash_entry *) entry;
   if (ret == NULL)
@@ -135,8 +166,7 @@ file_hash_newfunc (entry, table, string)
        return NULL;
     }
   ret = ((struct file_hash_entry *)
-        hash_newfunc ((struct hash_entry *) ret, table, 
-                      (hash_table_key) string));
+        hash_newfunc ((struct hash_entry *) ret, table, string));
   ret->args = NULL;
   ret->dir = NULL;
   ret->main = NULL;
@@ -164,7 +194,7 @@ static struct hash_entry *
 demangled_hash_newfunc (entry, table, string)
      struct hash_entry *entry;
      struct hash_table *table;
-     const char *string;
+     hash_table_key string;
 {
   struct demangled_hash_entry *ret = (struct demangled_hash_entry *) entry;
   if (ret == NULL)
@@ -175,8 +205,7 @@ demangled_hash_newfunc (entry, table, string)
        return NULL;
     }
   ret = ((struct demangled_hash_entry *)
-        hash_newfunc ((struct hash_entry *) ret, table, 
-                      (hash_table_key) string));
+        hash_newfunc ((struct hash_entry *) ret, table, string));
   ret->mangled = NULL;
   return (struct hash_entry *) ret;
 }
@@ -309,7 +338,8 @@ tlink_execute (prog, argv, redir)
 
 static char *
 frob_extension (s, ext)
-     char *s, *ext;
+     char *s;
+     const char *ext;
 {
   char *p = rindex (s, '/');
   if (! p)
@@ -578,7 +608,7 @@ demangle_new_symbols ()
 
 static int
 scan_linker_output (fname)
-     char *fname;
+     const char *fname;
 {
   FILE *stream = fopen (fname, "r");
   char *line;
index 2177a62..abe818d 100644 (file)
@@ -5521,7 +5521,7 @@ print_switch_values (file, pos, max, indent, sep, term)
 
 void
 debug_start_source_file (filename)
-     register char *filename;
+     register char *filename ATTRIBUTE_UNUSED;
 {
 #ifdef DBX_DEBUGGING_INFO
   if (write_symbols == DBX_DEBUG)