Commit 982ce905 by Richard Kenner

(output_line_directive): Do not output negative line numbers when

analyzing directives like `#line 0'.

From-SVN: r13751
parent 3cb32ea3
...@@ -7844,9 +7844,9 @@ output_line_directive (ip, op, conditional, file_change) ...@@ -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. */ /* Output a positive line number if possible. */
if (ip->lineno == 0 && ip->bufp - ip->buf < ip->length while (ip->lineno <= 0 && ip->bufp - ip->buf < ip->length
&& *ip->bufp == '\n') { && *ip->bufp == '\n') {
ip->lineno++; ip->lineno++;
ip->bufp++; ip->bufp++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment