* ecoff.c (ecoff_build_lineno): Handle count correctly for last
authorIan Lance Taylor <ian@airs.com>
Sat, 9 Jul 1994 04:11:19 +0000 (04:11 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 9 Jul 1994 04:11:19 +0000 (04:11 +0000)
line number.

gas/ChangeLog
gas/ecoff.c

index b0e34177e0c42cbeb09ddf81546ff1e947aebc30..5bb1dd0b00726f3c8852b0df6cd3ac5d2acefdf5 100644 (file)
@@ -1,3 +1,8 @@
+Sat Jul  9 00:05:12 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * ecoff.c (ecoff_build_lineno): Handle count correctly for last
+       line number.
+
 Fri Jul  8 15:22:07 1994  Steve Chamberlain  (sac@jonny.cygnus.com)
 
        * (process_pseudo_op): Pass right are do do_aif.
index e52bf43fe15957a3c1d9d5a805778fc00488927d..edd22f0f913441293f8538d06a5d77f7396f5182 100644 (file)
@@ -3600,7 +3600,11 @@ ecoff_build_lineno (backend, buf, bufend, offset, linecntptr)
         (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;
+       {
+         /* 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
This page took 0.032558 seconds and 4 git commands to generate.