* xcoffread.c (compare_lte): Change prototype and function to

be correct type for passing to qsort.
	(add_stab_to_list): Ifdef out unused function and prototype.
	(compare_lte): Add prototype
	(arrange_linetable): Ditto.
	(record_include_begin): Ditto.
	(record_include_end): Ditto.
	(process_linenos): Ditto.
	(xcoff_next_symbol_text): Ditto.
	(scan_xcoff_symtab): Ditto.
	(xcoff_initial_scan): Ditto.
This commit is contained in:
Fred Fish 1996-07-30 06:50:23 +00:00
parent 80e0e92aaa
commit 6e0949ae3e
2 changed files with 49 additions and 2 deletions

View File

@ -1,5 +1,17 @@
Mon Jul 29 21:13:20 1996 Fred Fish <fnf@cygnus.com>
* xcoffread.c (compare_lte): Change prototype and function to
be correct type for passing to qsort.
(add_stab_to_list): Ifdef out unused function and prototype.
(compare_lte): Add prototype
(arrange_linetable): Ditto.
(record_include_begin): Ditto.
(record_include_end): Ditto.
(process_linenos): Ditto.
(xcoff_next_symbol_text): Ditto.
(scan_xcoff_symtab): Ditto.
(xcoff_initial_scan): Ditto.
* mips-tdep.c (mips_read_processor_type): Add parens around
bitwise-and operands in comparison; previous expression always
evaluated to 0 because of equality comparison of two constants.

View File

@ -199,6 +199,18 @@ static struct complaint ef_complaint =
static struct complaint eb_complaint =
{"Mismatched .eb symbol ignored starting at symnum %d", 0, 0};
static void
xcoff_initial_scan PARAMS ((struct objfile *, struct section_offsets *, int));
static void
scan_xcoff_symtab PARAMS ((struct section_offsets *, struct objfile *));
static char *
xcoff_next_symbol_text PARAMS ((struct objfile *));
static void
record_include_begin PARAMS ((struct coff_symbol *));
static void
enter_line_range PARAMS ((struct subfile *, unsigned, unsigned,
CORE_ADDR, CORE_ADDR, unsigned *));
@ -239,8 +251,22 @@ process_xcoff_symbol PARAMS ((struct coff_symbol *, struct objfile *));
static void
read_xcoff_symtab PARAMS ((struct partial_symtab *));
#if 0
static void
add_stab_to_list PARAMS ((char *, struct pending_stabs **));
#endif
static int
compare_lte PARAMS ((const void *, const void *));
static struct linetable *
arrange_linetable PARAMS ((struct linetable *));
static void
record_include_end PARAMS ((struct coff_symbol *));
static void
process_linenos PARAMS ((CORE_ADDR, CORE_ADDR));
/* Translate from a COFF section number (target_index) to a SECT_OFF_*
@ -288,6 +314,8 @@ secnum_to_section (secnum, objfile)
/* add a given stab string into given stab vector. */
#if 0
static void
add_stab_to_list (stabname, stabvector)
char *stabname;
@ -308,6 +336,9 @@ struct pending_stabs **stabvector;
}
(*stabvector)->stab [(*stabvector)->count++] = stabname;
}
#endif
/* Linenos are processed on a file-by-file basis.
@ -364,9 +395,12 @@ struct pending_stabs **stabvector;
/* compare line table entry addresses. */
static int
compare_lte (lte1, lte2)
struct linetable_entry *lte1, *lte2;
compare_lte (lte1p, lte2p)
const void *lte1p;
const void *lte2p;
{
struct linetable_entry *lte1 = (struct linetable_entry *) lte1p;
struct linetable_entry *lte2 = (struct linetable_entry *) lte2p;
return lte1->pc - lte2->pc;
}
@ -852,6 +886,7 @@ static char *raw_symbol;
/* This is the function which stabsread.c calls to get symbol
continuations. */
static char *
xcoff_next_symbol_text (objfile)
struct objfile *objfile;