* input-scrub.c (physical_input_file, logical_input_file,
physical_input_line, logical_input_line): Made static. (as_where): Return current file name and line number, don't print them out. * messages.c (as_show_where): New static function. Other functions use it instead of as_where. (as_bad_internal): New static function. (as_bad): Use as_bad_internal. (as_bad_where): New function, like as_bad but taking a file name and line number. * as.h (as_bad_where): Declare. (as_where): Change prototype for new arguments. * write.h (fixS): Added fields fx_file and fx_line. * write.c (fix_new_internal): Save file and line number in fix. (fixup_segment): Use as_bad_where, not as_bad. * input-file.c (f_in, file_name): Made static. * cond.c (struct file_line): Just use file and line fields. (s_else): Use as_where and as_bad_where, not get_file_line and set_file_line. (get_file_line, set_file_line): Removed. * listing.c (listing_newline): Use as_where. * config/obj-coffbfd.c (obj_coff_init_stab_section): Use as_where. * config/obj-ecoff.c (add_file): Use as_where. * config/obj-elf.c (obj_elf_init_stab_section): Use as_where. * config/tc-m68k.c (md_apply_fix_2): Use as_bad_where. * config/tc-mips.c (tc_gen_reloc): Use as_bad_where, not assert.
This commit is contained in:
parent
9ca0105226
commit
8efed14f10
2 changed files with 31 additions and 7 deletions
|
@ -1,3 +1,32 @@
|
||||||
|
Fri Oct 22 14:45:49 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||||
|
|
||||||
|
* input-scrub.c (physical_input_file, logical_input_file,
|
||||||
|
physical_input_line, logical_input_line): Made static.
|
||||||
|
(as_where): Return current file name and line number, don't print
|
||||||
|
them out.
|
||||||
|
* messages.c (as_show_where): New static function. Other
|
||||||
|
functions use it instead of as_where.
|
||||||
|
(as_bad_internal): New static function.
|
||||||
|
(as_bad): Use as_bad_internal.
|
||||||
|
(as_bad_where): New function, like as_bad but taking a file name
|
||||||
|
and line number.
|
||||||
|
* as.h (as_bad_where): Declare.
|
||||||
|
(as_where): Change prototype for new arguments.
|
||||||
|
* write.h (fixS): Added fields fx_file and fx_line.
|
||||||
|
* write.c (fix_new_internal): Save file and line number in fix.
|
||||||
|
(fixup_segment): Use as_bad_where, not as_bad.
|
||||||
|
* input-file.c (f_in, file_name): Made static.
|
||||||
|
* cond.c (struct file_line): Just use file and line fields.
|
||||||
|
(s_else): Use as_where and as_bad_where, not get_file_line and
|
||||||
|
set_file_line.
|
||||||
|
(get_file_line, set_file_line): Removed.
|
||||||
|
* listing.c (listing_newline): Use as_where.
|
||||||
|
* config/obj-coffbfd.c (obj_coff_init_stab_section): Use as_where.
|
||||||
|
* config/obj-ecoff.c (add_file): Use as_where.
|
||||||
|
* config/obj-elf.c (obj_elf_init_stab_section): Use as_where.
|
||||||
|
* config/tc-m68k.c (md_apply_fix_2): Use as_bad_where.
|
||||||
|
* config/tc-mips.c (tc_gen_reloc): Use as_bad_where, not assert.
|
||||||
|
|
||||||
Thu Oct 21 12:52:01 1993 Ken Raeburn (raeburn@cygnus.com)
|
Thu Oct 21 12:52:01 1993 Ken Raeburn (raeburn@cygnus.com)
|
||||||
|
|
||||||
* config/tc-m68k.h: Don't define REGISTER_PREFIX or
|
* config/tc-m68k.h: Don't define REGISTER_PREFIX or
|
||||||
|
|
|
@ -2662,18 +2662,13 @@ void
|
||||||
obj_coff_init_stab_section (seg)
|
obj_coff_init_stab_section (seg)
|
||||||
segT seg;
|
segT seg;
|
||||||
{
|
{
|
||||||
extern char *logical_input_file, *physical_input_file;
|
char *file;
|
||||||
char *p;
|
char *p;
|
||||||
const char *file;
|
|
||||||
unsigned int stroff;
|
unsigned int stroff;
|
||||||
|
|
||||||
/* Make space for this first symbol. */
|
/* Make space for this first symbol. */
|
||||||
p = frag_more (12);
|
p = frag_more (12);
|
||||||
file = logical_input_file;
|
as_where (&file, (unsigned int *) NULL);
|
||||||
if (file == NULL)
|
|
||||||
file = physical_input_file;
|
|
||||||
if (file == NULL)
|
|
||||||
file = "UNKNOWN";
|
|
||||||
stroff = get_stab_string_offset (file, segment_info[seg].scnhdr.s_name);
|
stroff = get_stab_string_offset (file, segment_info[seg].scnhdr.s_name);
|
||||||
know (stroff == 1);
|
know (stroff == 1);
|
||||||
md_number_to_chars (p, stroff, 4);
|
md_number_to_chars (p, stroff, 4);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue