From a8259c76b8d7dce7cc67c0e768431cd58348945c Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sat, 1 Jul 1995 11:57:25 -0400 Subject: [PATCH] (output_line_command): If not emitting #line directives delay returning until after adjust_position has been called. From-SVN: r10101 --- gcc/cpplib.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/cpplib.c b/gcc/cpplib.c index f0b77a6..1891c20 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; -- 2.7.4