Commit a8259c76 by Richard Kenner

(output_line_command): If not emitting #line directives delay

returning until after adjust_position has been called.

From-SVN: r10101
parent 42783eab
......@@ -2110,8 +2110,7 @@ output_line_command (pfile, conditional, file_change)
long line, col;
cpp_buffer *ip = CPP_BUFFER (pfile);
if (CPP_OPTIONS (pfile)->no_line_commands
|| ip->fname == NULL || CPP_OPTIONS (pfile)->no_output) {
if (ip->fname == NULL || CPP_OPTIONS (pfile)->no_output) {
return;
}
......@@ -2120,6 +2119,9 @@ output_line_command (pfile, conditional, file_change)
col = CPP_BUFFER (pfile)->colno;
adjust_position (CPP_LINE_BASE (ip), ip->cur, &line, &col);
if (CPP_OPTIONS (pfile)->no_line_commands)
return;
if (conditional) {
if (line == pfile->lineno)
return;
......
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