https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92296
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Oct 31 17:38:44 2019 New Revision: 277685 URL: https://gcc.gnu.org/viewcvs?rev=277685&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/c-c++-common/cpp/pr92296-1.c trunk/gcc/testsuite/c-c++-common/cpp/pr92296-2.c Modified: trunk/gcc/testsuite/ChangeLog trunk/libcpp/ChangeLog trunk/libcpp/directives.c trunk/libcpp/init.c trunk/libcpp/internal.h