re PR c/69558 (glib2 warning pragmas stopped working)
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 18 Jul 2018 19:36:01 +0000 (19:36 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Wed, 18 Jul 2018 19:36:01 +0000 (19:36 +0000)
commit6f41f92bebfb0b5eb3a3859b1c3bb7710d1cb48b
tree2b8cce2b14c4b6bdf5c483562bfbf676ff3cab6e
parent6457b1f096d216ca742f8e1f2a93462ecb24b38d
re PR c/69558 (glib2 warning pragmas stopped working)

libcpp:
2018-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR 69558
        * macro.c (enter_macro_context): Change the location info for builtin
        macros and _Pragma from location of the closing parenthesis to location
        of the macro expansion point.

testsuite:
2018-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR 69558
        * c-c++-common/cpp/diagnostic-pragma-2.c: New test.
        * c-c++-common/pr69558.c: Remove xfail.
        * gcc.dg/cpp/builtin-macro-1.c: Adjust test expectations.
        * gcc.dg/pr61817-1.c: Likewise.
        * gcc.dg/pr61817-2.c: Likewise.
        * g++.dg/plugin/pragma_plugin.c: Warn at expansion_point_location.

From-SVN: r262861
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/cpp/diagnostic-pragma-2.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/pr69558.c
gcc/testsuite/g++.dg/plugin/pragma_plugin.c
gcc/testsuite/gcc.dg/cpp/builtin-macro-1.c
gcc/testsuite/gcc.dg/pr61817-1.c
gcc/testsuite/gcc.dg/pr61817-2.c
libcpp/ChangeLog
libcpp/macro.c