mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 01:55:08 +08:00
(output_line_directive): Do not output negative line numbers when
analyzing directives like `#line 0'. From-SVN: r13751
This commit is contained in:
parent
3cb32ea3fd
commit
982ce90579
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user