From 982ce905794acff67d945df711e476799b0652f9 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 19 Mar 1997 17:15:42 -0500 Subject: [PATCH] (output_line_directive): Do not output negative line numbers when analyzing directives like `#line 0'. From-SVN: r13751 --- gcc/cccp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/cccp.c b/gcc/cccp.c index 8be2e98679e..0033e6b233c 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -7844,9 +7844,9 @@ output_line_directive (ip, op, conditional, file_change) } } - /* Don't output a line number of 0 if we can help it. */ - if (ip->lineno == 0 && ip->bufp - ip->buf < ip->length - && *ip->bufp == '\n') { + /* Output a positive line number if possible. */ + while (ip->lineno <= 0 && ip->bufp - ip->buf < ip->length + && *ip->bufp == '\n') { ip->lineno++; ip->bufp++; }