From: Ian Lance Taylor Date: Tue, 22 Feb 2000 07:50:13 +0000 (+0000) Subject: 2000-02-22 Alexandre Oliva X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b985eaa8396e3febe527b165dc54c9d3bd045ff7;p=binutils-gdb.git 2000-02-22 Alexandre Oliva * config/obj-coff.c (add_lineno): Accept non-positive lineno with warning, and bump it to 1. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 3830f79890e..5236204a2f8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2000-02-22 Alexandre Oliva + + * config/obj-coff.c (add_lineno): Accept non-positive lineno with + warning, and bump it to 1. + 2000-02-22 Ian Lance Taylor From Brad Lucier : diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index f361b43b0ee..d7508680336 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;