* listing.c (listing_prev_line): New function.

* listing.c: Include subsegs.h.
	(listing_prev_line): New function.
	(calc_hex): Reset byte_in_frag to zero for each new frag.
	* config/tc-mips.c (append_insn): Call listing_prev_line after
	emitting nop instructions.
	* Makefile.in (listing.o): Depends upon subsegs.h.
This commit is contained in:
Ian Lance Taylor
1994-01-11 18:06:01 +00:00
parent cf286547ef
commit af255ca0bb
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,13 @@
Tue Jan 11 13:01:20 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* listing.c (listing_prev_line): New function.
* listing.c: Include subsegs.h.
(listing_prev_line): New function.
(calc_hex): Reset byte_in_frag to zero for each new frag.
* config/tc-mips.c (append_insn): Call listing_prev_line after
emitting nop instructions.
* Makefile.in (listing.o): Depends upon subsegs.h.
Mon Jan 10 09:52:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu) Mon Jan 10 09:52:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
* config/tc-hppa.c (pa_ip): Put check for missing label on .PROC * config/tc-hppa.c (pa_ip): Put check for missing label on .PROC
@ -8,7 +18,7 @@ Mon Jan 10 09:52:23 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
Fri Jan 7 17:38:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) Fri Jan 7 17:38:28 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* ecoff.c (ecoff_stab): Don't clobber the ECOFF symbol information * ecoff.c (ecoff_stab): Don't clobber the ECOFF symbol information
with the associate stabs information. with the associated stabs information.
(ecoff_build_symbols): Never set the type of stabs symbols to (ecoff_build_symbols): Never set the type of stabs symbols to
st_Global. Don't update the symbol index or ifd if the gas symbol st_Global. Don't update the symbol index or ifd if the gas symbol
is not the same as the ECOFF symbol (which is now the case for is not the same as the ECOFF symbol (which is now the case for

View File

@ -803,6 +803,8 @@ append_insn (place, ip, address_expr, reloc_type)
emit_nop (); emit_nop ();
if (nops > 1) if (nops > 1)
emit_nop (); emit_nop ();
if (listing)
listing_prev_line ();
if (insn_label != NULL) if (insn_label != NULL)
{ {
assert (S_GET_SEGMENT (insn_label) == now_seg); assert (S_GET_SEGMENT (insn_label) == now_seg);