ChangeLog for libcpp
2009-11-11 Kai Tietz <kai.tietz@onevision.com> * directives.c (do_pragma_push_macro): New pragma handler. (do_pragma_pop_macro): Likewise. (_cpp_init_internal_pragmas): Add push_macro and pop_macro handler to internal pragmas. (lex_macro_node_from_str): Removed. (cpp_push_definition): Replace lex_macro_node_from_str by _cpp_lex_identifier. (cpp_pop_definition): Likewise. * internal.h (_cpp_lex_identifier): New prototype. (def_pragma_macro): New structure. (cpp_reader): New member pushed_macros. * lex.c (_cpp_lex_identifier): New function. (lex_identifier_intern): New function. * init.c (cpp_create_reader): Initialize pushed_macros member. (cpp_destroy): Free elements in pushed_macros member. * pch.c (_cpp_save_pushed_macros): New function. (_cpp_restore_pushed_macros): Likewise. (_cpp_restore_pushed_macros): Use _cpp_save_pushed_macros. (cpp_read_state): Use _cpp_restore_pushed_macros. ChangeLog for gcc 2009-11-11 Kai Tietz <kai.tietz@onevision.com> * config/i386/cygming.h (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed. * c-pragma.c (def_pragma_macro_value): Likewise. (def_pragma_macro): Likewise. (pushed_macro_table): Likewise. (HANDLE_PRAGMA_PUSH_POP_MACRO): Remove guarded code. * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): Removed. ChangeLog for gcc/testsuite 2009-11-11 Kai Tietz <kai.tietz@onevision.com> * g++.dg/torture/pushpop_macro.C: New testcase. * gcc.c-torture/execute/pushpop_macro.c: New testcase. * gcc.dg/cpp/pragma-pop_macro-1.c: Allow test for all targets. From-SVN: r154098
Showing
- gcc/ChangeLog 12 additions, 0 deletionsgcc/ChangeLog
- gcc/c-pragma.c 0 additions, 142 deletionsgcc/c-pragma.c
- gcc/config/i386/cygming.h 0 additions, 2 deletionsgcc/config/i386/cygming.h
- gcc/doc/tm.texi 0 additions, 12 deletionsgcc/doc/tm.texi
- gcc/testsuite/ChangeLog 7 additions, 1 deletiongcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/torture/pushpop_macro.C 19 additions, 0 deletionsgcc/testsuite/g++.dg/torture/pushpop_macro.C
- gcc/testsuite/gcc.c-torture/execute/pushpop_macro.c 15 additions, 0 deletionsgcc/testsuite/gcc.c-torture/execute/pushpop_macro.c
- gcc/testsuite/gcc.dg/cpp/pragma-pop_macro-1.c 1 addition, 1 deletiongcc/testsuite/gcc.dg/cpp/pragma-pop_macro-1.c
- gcc/testsuite/gcc.dg/pch/pushpop-1.c 11 additions, 0 deletionsgcc/testsuite/gcc.dg/pch/pushpop-1.c
- gcc/testsuite/gcc.dg/pch/pushpop-1.hs 5 additions, 0 deletionsgcc/testsuite/gcc.dg/pch/pushpop-1.hs
- libcpp/ChangeLog 23 additions, 0 deletionslibcpp/ChangeLog
- libcpp/directives.c 96 additions, 19 deletionslibcpp/directives.c
- libcpp/init.c 15 additions, 0 deletionslibcpp/init.c
- libcpp/internal.h 14 additions, 0 deletionslibcpp/internal.h
- libcpp/lex.c 57 additions, 0 deletionslibcpp/lex.c
- libcpp/pch.c 136 additions, 0 deletionslibcpp/pch.c
Loading
Please register or sign in to comment