2000-02-22 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
authorIan Lance Taylor <ian@airs.com>
Tue, 22 Feb 2000 07:50:13 +0000 (07:50 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 22 Feb 2000 07:50:13 +0000 (07:50 +0000)
* config/obj-coff.c (add_lineno): Accept non-positive lineno with
warning, and bump it to 1.

gas/ChangeLog
gas/config/obj-coff.c

index 3830f79890e5a378e839a04a44ad2a9de7a87e60..5236204a2f81af0e525c129daf06acf5e5e0a4e8 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-22  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+
+       * config/obj-coff.c (add_lineno): Accept non-positive lineno with
+       warning, and bump it to 1.
+
 2000-02-22  Ian Lance Taylor  <ian@zembu.com>
 
        From Brad Lucier <lucier@math.purdue.edu>:
 2000-02-22  Ian Lance Taylor  <ian@zembu.com>
 
        From Brad Lucier <lucier@math.purdue.edu>:
index f361b43b0eebdab55b24c2178be7dfa7d8bf76c5..d7508680336ae4a52ef92c910cdaea6398ef62a0 100644 (file)
@@ -1,5 +1,5 @@
 /* coff object file format
 /* coff object file format
-   Copyright (C) 1989, 90, 91, 92, 93, 94, 95, 96, 97, 98, 1999
+   Copyright (C) 1989, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000
    Free Software Foundation, Inc.
 
    This file is part of GAS.
    Free Software Foundation, Inc.
 
    This file is part of GAS.
@@ -441,8 +441,8 @@ add_lineno (frag, offset, num)
   if (num <= 0) 
     {
       /* Zero is used as an end marker in the file.  */
   if (num <= 0) 
     {
       /* Zero is used as an end marker in the file.  */
-      as_bad (_("Line numbers must be positive integers\n"));
-      return;
+      as_warn (_("Line numbers must be positive integers\n"));
+      num = 1;
     }
   new_line->next = line_nos;
   new_line->frag = frag;
     }
   new_line->next = line_nos;
   new_line->frag = frag;