]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/macro.c
PR preprocessor/61817
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Apr 2016 18:35:16 +0000 (18:35 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Apr 2016 18:35:16 +0000 (18:35 +0000)
commit382ece2dcd8157ca7af0714403e0fe562d21e582
tree7c2cad1cf8de66534953f4d3d802c6e548f0b45a
parent72234ee9d89c211ae15f7c87dd43095c3cd98480
PR preprocessor/61817
PR preprocessor/69391

  * internal.h (_cpp_builtin_macro_text): Update decl.
  * macro.c (_cpp_builtin_macro_text): Accept location for __LINE__.
  (builtin_macro): Accept a second location for __LINE__.
  (enter_macro_context): Compute both virtual and real expansion
  locations for the macro.

  * gcc.dg/pr61817-1.c: New test.
  * gcc.dg/pr61817-2.c: New test.
  * gcc.dg/pr69391-1.c: New test.
  * gcc.dg/pr69391-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234794 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr61817-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr61817-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr69391-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr69391-2.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/internal.h
libcpp/macro.c