diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-27 18:57:51 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-27 18:57:51 +0000 |
commit | eec964263bcfb34e76b533f7685b320024f6d972 (patch) | |
tree | f6cecd18c9211abd83605d0385a9448c4f50e786 /libcpp/ChangeLog | |
parent | 7795ac510ed6693ab398710d4e4d5633718c8f76 (diff) | |
download | gcc-eec964263bcfb34e76b533f7685b320024f6d972.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232893 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp/ChangeLog')
-rw-r--r-- | libcpp/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index da733b705b0..eff304f0920 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,15 @@ +2016-01-27 David Malcolm <dmalcolm@redhat.com> + + 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. + 2016-01-14 David Malcolm <dmalcolm@redhat.com> PR preprocessor/69177 |