]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
libcpp: use better locations for _Pragma tokens (preprocessor/69126)
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 27 Jan 2016 18:57:51 +0000 (18:57 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 27 Jan 2016 18:57:51 +0000 (18:57 +0000)
commit0afff540e652c77b409ce094f64cc2b033495785
treef6cecd18c9211abd83605d0385a9448c4f50e786
parentb45285fc2ee430b675f57e8c92310aaf77ba031e
libcpp: use better locations for _Pragma tokens (preprocessor/69126)

gcc/testsuite/ChangeLog:
PR preprocessor/69126
* c-c++-common/pr69126.c: New test case.

libcpp/ChangeLog:
PR preprocessor/69126
* directives.c (destringize_and_run): Add expansion_loc param; use
it when handling unexpanded pragmas to fixup the locations of the
synthesized tokens.
(_cpp_do__Pragma): Add expansion_loc param and use it when calling
destringize_and_run.
* internal.h (_cpp_do__Pragma): Add expansion_loc param.
* macro.c (builtin_macro): Pass expansion location of _Pragma to
_cpp_do__Pragma.

From-SVN: r232893
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr69126.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/directives.c
libcpp/internal.h
libcpp/macro.c