diff options
author | Ian Lance Taylor <ian@airs.com> | 2000-02-22 07:50:13 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2000-02-22 07:50:13 +0000 |
commit | b985eaa8396e3febe527b165dc54c9d3bd045ff7 (patch) | |
tree | 03337e94e9b415f6998d0725a42818d132f0eb73 | |
parent | 4db3857a87386bc62e68f10699907440b36eecd1 (diff) | |
download | gdb-b985eaa8396e3febe527b165dc54c9d3bd045ff7.zip gdb-b985eaa8396e3febe527b165dc54c9d3bd045ff7.tar.gz gdb-b985eaa8396e3febe527b165dc54c9d3bd045ff7.tar.bz2 |
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.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/obj-coff.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 3830f79..5236204 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -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>: diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index f361b43..d750868 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -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; |