diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-03-19 22:15:42 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-03-19 22:15:42 +0000 |
commit | ac9a9edf86e6e5261e40bd134be65667db55ee04 (patch) | |
tree | babf264ae5ca4f2b4632689e6af6daeca56bee22 /gcc/cccp.c | |
parent | 5cabebbbcfa13e16e7b208814eb4f127793e5664 (diff) | |
download | gcc-ac9a9edf86e6e5261e40bd134be65667db55ee04.tar.gz |
(output_line_directive): Do not output negative line numbers when
analyzing directives like `#line 0'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13751 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r-- | gcc/cccp.c | 6 |
1 files 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++; } |