]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR preprocessor/92296
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Oct 2019 17:38:44 +0000 (17:38 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Oct 2019 17:38:44 +0000 (17:38 +0000)
commit4a775d48e576664c8c6419a11324859b3c156c56
treeab29c66793009b48773fdd1844beac65d7c2a2a1
parentc2c40bdeb6d8212bfe6435154e1f31882ce36478
PR preprocessor/92296
* internal.h (struct def_pragma_macro): Add is_builtin bitfield.
(_cpp_restore_special_builtin): Declare.
* init.c (_cpp_restore_special_builtin): New function.
* directives.c (do_pragma_push_macro): For NT_BUILTIN_MACRO
set is_builtin and don't try to grab definition.
(cpp_pop_definition): Use _cpp_restore_special_builtin to restore
builtin macros.

* c-c++-common/cpp/pr92296-1.c: New test.
* c-c++-common/cpp/pr92296-2.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277685 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/cpp/pr92296-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/cpp/pr92296-2.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/directives.c
libcpp/init.c
libcpp/internal.h