Bug in gas line no. info, --target=iris
Ian Lance Taylor
ian@cygnus.com
Fri Jul 8 21:06:00 GMT 1994
From: davidj@ICSI.Berkeley.EDU (David Johnson)
Date: Fri, 8 Jul 1994 17:50:37 -0700
Gas appears to get the line number debugging information wrong for the
last ".loc" pseudo-op in a source file.
Thanks for the bug report. I believe this this patch will fix the
problem.
Ian
Index: ecoff.c
===================================================================
RCS file: /rel/cvsfiles/devo/gas/ecoff.c,v
retrieving revision 1.16
diff -p -r1.16 ecoff.c
*** ecoff.c 1994/07/08 19:37:57 1.16
--- ecoff.c 1994/07/09 04:04:51
*************** ecoff_build_lineno (backend, buf, bufend
*** 3600,3606 ****
(in words). Do this first, so that we can skip ahead to the
next useful line number entry. */
if (l->next == (lineno_list_t *) NULL)
! count = 0;
else
{
count = ((l->next->frag->fr_address + l->next->paddr
--- 3600,3610 ----
(in words). Do this first, so that we can skip ahead to the
next useful line number entry. */
if (l->next == (lineno_list_t *) NULL)
! {
! /* We want a count of zero, but it will be decremented
! before it is used. */
! count = 1;
! }
else
{
count = ((l->next->frag->fr_address + l->next->paddr
More information about the Gas2
mailing list