* c-ppoutput.c (scan_translation_unit): Call account_for_newlines
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jul 2013 16:49:24 +0000 (16:49 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jul 2013 16:49:24 +0000 (16:49 +0000)
commitda31536d9b7fee50eb58d2bca8e1612295a75349
treefb33b01daeb32c3b1c99c9c4f1501ea19669801f
parent839f2f703b717be5da58a00473aa87bd95cbbd77
* c-ppoutput.c (scan_translation_unit): Call account_for_newlines
for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.

* include/cpplib.h (cpp_token_val_index): Change parameter type to
const cpp_token *.
* lex.c (cpp_token_val_index): Likewise.

* c-c++-common/raw-string-18.c: New test.
* c-c++-common/raw-string-19.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200878 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/c-family/ChangeLog
gcc/c-family/c-ppoutput.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/raw-string-18.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/raw-string-19.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/include/cpplib.h
libcpp/lex.c