]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
re PR preprocessor/39646 (__FILE__ breaks for empty file name)
authorJoseph Myers <joseph@codesourcery.com>
Sat, 18 Apr 2009 17:36:28 +0000 (18:36 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 18 Apr 2009 17:36:28 +0000 (18:36 +0100)
commitc7f9c0b9835fc77208bddffec0ba71d33fb425fa
tree59684b555702b1b2456e3b64f86fd190e1b48332
parentb8add5942c0ce71990233b594d5f0bdec31d73c8
re PR preprocessor/39646 (__FILE__ breaks for empty file name)

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.

From-SVN: r146319
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/line8.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/directives.c
libcpp/include/line-map.h
libcpp/line-map.c