aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 8c7c2ea..9f96297 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -965,7 +965,7 @@ output_line_command (pfile, file_change)
CPP_ADJUST_WRITTEN (pfile, strlen (CPP_PWRITTEN (pfile)));
quote_string (pfile, ip->nominal_fname);
- if (file_change != same_file)
+ if (file_change != same_file && file_change != rename_file)
{
CPP_PUTC_Q (pfile, ' ');
CPP_PUTC_Q (pfile, file_change == enter_file ? '1' : '2');
@@ -1358,6 +1358,8 @@ do_line (pfile, keyword)
U_CHAR *end_name = CPP_PWRITTEN (pfile) - 1;
int action_number = 0;
+ file_change = rename_file;
+
if (read_line_number (pfile, &action_number))
{
if (CPP_PEDANTIC (pfile))