diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1997-03-19 17:15:42 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1997-03-19 17:15:42 -0500 |
commit | 982ce905794acff67d945df711e476799b0652f9 (patch) | |
tree | babf264ae5ca4f2b4632689e6af6daeca56bee22 /gcc/cccp.c | |
parent | 3cb32ea3fd1172a9573c407655a93b8b81980ba2 (diff) | |
download | gcc-982ce905794acff67d945df711e476799b0652f9.zip gcc-982ce905794acff67d945df711e476799b0652f9.tar.gz gcc-982ce905794acff67d945df711e476799b0652f9.tar.bz2 |
(output_line_directive): Do not output negative line numbers when
analyzing directives like `#line 0'.
From-SVN: r13751
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r-- | gcc/cccp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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++; } |