diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-03-20 19:21:31 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-03-20 19:21:31 +0000 |
commit | 54ea1de9f39a10a4f329c8f3c4a54ad8cd31d8fa (patch) | |
tree | ccbeb8c4f275846b9aaf9e86072c1f0572291df3 | |
parent | 59d40964295f794d4ea7fc0d9a459c4ffccda9f9 (diff) | |
download | gcc-54ea1de9f39a10a4f329c8f3c4a54ad8cd31d8fa.zip gcc-54ea1de9f39a10a4f329c8f3c4a54ad8cd31d8fa.tar.gz gcc-54ea1de9f39a10a4f329c8f3c4a54ad8cd31d8fa.tar.bz2 |
Warning fixes:
* 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.
From-SVN: r25871
-rw-r--r-- | gcc/ChangeLog | 29 | ||||
-rw-r--r-- | gcc/c-lex.c | 2 | ||||
-rw-r--r-- | gcc/flow.c | 6 | ||||
-rw-r--r-- | gcc/function.c | 4 | ||||
-rw-r--r-- | gcc/local-alloc.c | 2 | ||||
-rw-r--r-- | gcc/sched.c | 2 | ||||
-rw-r--r-- | gcc/tlink.c | 52 | ||||
-rw-r--r-- | gcc/toplev.c | 2 |
8 files changed, 80 insertions, 19 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 80bdea7..42e6155 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/c-lex.c b/gcc/c-lex.c index ce7c6e9..27c65f3 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -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) @@ -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)); diff --git a/gcc/function.c b/gcc/function.c index ac59c21..1319fb9 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -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; diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index d3dde6b..598d405 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -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; diff --git a/gcc/sched.c b/gcc/sched.c index 1bcc779..3701ac6 100644 --- a/gcc/sched.c +++ b/gcc/sched.c @@ -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); diff --git a/gcc/tlink.c b/gcc/tlink.c index 4e6cf2f..29e2deb 100644 --- a/gcc/tlink.c +++ b/gcc/tlink.c @@ -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; diff --git a/gcc/toplev.c b/gcc/toplev.c index 2177a62..abe818d 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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) |