]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
re PR preprocessor/61817 (Inconsistent location of tokens in the expansion list of...
authorRichard Henderson <rth@redhat.com>
Wed, 6 Apr 2016 18:35:16 +0000 (11:35 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 6 Apr 2016 18:35:16 +0000 (11:35 -0700)
commit64824205cc9312e4e7798cda86a8e4c1f23e5d2b
tree7c2cad1cf8de66534953f4d3d802c6e548f0b45a
parentbc2fc1f3b84472865724b7e91b540ca0fadedd1b
re PR preprocessor/61817 (Inconsistent location of tokens in the expansion list of a built-in macro)

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.

From-SVN: r234794
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