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.
This commit is contained in:
Ian Lance Taylor 2000-02-22 07:50:13 +00:00
parent 4db3857a87
commit b985eaa839
2 changed files with 8 additions and 3 deletions

View 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>:

View File

@ -1,5 +1,5 @@
/* 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.
@ -441,8 +441,8 @@ add_lineno (frag, offset, num)
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;