-
- Downloads
re PR preprocessor/92296 (internal compiler error: Segmentation fault #pragma...
re PR preprocessor/92296 (internal compiler error: Segmentation fault #pragma push_macro("__LINE__")) 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. From-SVN: r277685
Showing
- gcc/testsuite/ChangeLog 6 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/c-c++-common/cpp/pr92296-1.c 35 additions, 0 deletionsgcc/testsuite/c-c++-common/cpp/pr92296-1.c
- gcc/testsuite/c-c++-common/cpp/pr92296-2.c 80 additions, 0 deletionsgcc/testsuite/c-c++-common/cpp/pr92296-2.c
- libcpp/ChangeLog 11 additions, 0 deletionslibcpp/ChangeLog
- libcpp/directives.c 7 additions, 0 deletionslibcpp/directives.c
- libcpp/init.c 19 additions, 0 deletionslibcpp/init.c
- libcpp/internal.h 4 additions, 0 deletionslibcpp/internal.h
Loading
Please register or sign in to comment