summaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-07-01 15:57:25 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-07-01 15:57:25 +0000
commitd855e3283969bec2fd75004ca9b99a1d50b24300 (patch)
tree023f7d04c49da36402e50012dd10c4f9e5db02c6 /gcc/cpplib.c
parent1156048eed95b6f153fee1672b759a0465571c4e (diff)
downloadgcc-d855e3283969bec2fd75004ca9b99a1d50b24300.tar.gz
(output_line_command): If not emitting #line directives delay
returning until after adjust_position has been called. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10101 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index f0b77a6dbb7..1891c203e1e 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -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;