projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cb32ea
)
(output_line_directive): Do not output negative line numbers when
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 19 Mar 1997 22:15:42 +0000
(17:15 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 19 Mar 1997 22:15:42 +0000
(17:15 -0500)
analyzing directives like `#line 0'.
From-SVN: r13751
gcc/cccp.c
patch
|
blob
|
history
diff --git
a/gcc/cccp.c
b/gcc/cccp.c
index 8be2e98679ea45dfb61c4ba6d022e5125e78db41..0033e6b233c8bee8f52216a7d41f756b06df3fde 100644
(file)
--- 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++;
}