From 1eecdb280eac3d85d7d606225c14c4f99428a62c Mon Sep 17 00:00:00 2001 From: jsm28 Date: Sat, 18 Apr 2009 17:36:28 +0000 Subject: libcpp: PR preprocessor/39646 * include/line-map.h (enum lc_reason): Add LC_RENAME_VERBATIM. * line-map.c (linemap_add): Handle LC_RENAME_VERBATIM. * directives.c (do_line, do_linemarker): Use LC_RENAME_VERBATIM in place of LC_RENAME. gcc/testsuite: * gcc.dg/cpp/line8.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146319 138bc75d-0d04-0410-961f-82ee72b054a4 --- libcpp/directives.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcpp/directives.c') diff --git a/libcpp/directives.c b/libcpp/directives.c index 9cb8506bb13..9e26732337b 100644 --- a/libcpp/directives.c +++ b/libcpp/directives.c @@ -924,7 +924,7 @@ do_line (cpp_reader *pfile) } skip_rest_of_line (pfile); - _cpp_do_file_change (pfile, LC_RENAME, new_file, new_lineno, + _cpp_do_file_change (pfile, LC_RENAME_VERBATIM, new_file, new_lineno, map_sysp); } @@ -940,7 +940,7 @@ do_linemarker (cpp_reader *pfile) const char *new_file = map->to_file; linenum_type new_lineno; unsigned int new_sysp = map->sysp; - enum lc_reason reason = LC_RENAME; + enum lc_reason reason = LC_RENAME_VERBATIM; int flag; bool wrapped; -- cgit v1.2.1