1999-09-11 Donn Terry <donn@interix.com>
* config/obj-coff.c (add_lineno): Check that the line number is positive.
This commit is contained in:
parent
0561a208f8
commit
e8a3ab752d
2 changed files with 9 additions and 0 deletions
|
@ -5,6 +5,9 @@
|
||||||
|
|
||||||
1999-09-11 Donn Terry <donn@interix.com>
|
1999-09-11 Donn Terry <donn@interix.com>
|
||||||
|
|
||||||
|
* config/obj-coff.c (add_lineno): Check that the line number is
|
||||||
|
positive.
|
||||||
|
|
||||||
* config/atof-ieee.c (atof_ieee): Change what_kind to int.
|
* config/atof-ieee.c (atof_ieee): Change what_kind to int.
|
||||||
* config/atof-vax.c (flonum_gen2vax): Change format_letter to
|
* config/atof-vax.c (flonum_gen2vax): Change format_letter to
|
||||||
int.
|
int.
|
||||||
|
|
|
@ -434,6 +434,12 @@ add_lineno (frag, offset, num)
|
||||||
{
|
{
|
||||||
abort ();
|
abort ();
|
||||||
}
|
}
|
||||||
|
if (num <= 0)
|
||||||
|
{
|
||||||
|
/* Zero is used as an end marker in the file. */
|
||||||
|
as_bad (_("Line numbers must be positive integers\n"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
new_line->next = line_nos;
|
new_line->next = line_nos;
|
||||||
new_line->frag = frag;
|
new_line->frag = frag;
|
||||||
new_line->l.line_number = num;
|
new_line->l.line_number = num;
|
||||||
|
|
Loading…
Reference in a new issue