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
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
include | Loading commit data... | |
common-1.c | Loading commit data... | |
common-1.hs | Loading commit data... | |
counter-1.c | Loading commit data... | |
counter-1.hs | Loading commit data... | |
counter-2.c | Loading commit data... | |
counter-2.hs | Loading commit data... | |
counter-3.c | Loading commit data... | |
counter-3.hs | Loading commit data... | |
cpp-1.c | Loading commit data... | |
cpp-1.hs | Loading commit data... | |
cpp-2.c | Loading commit data... | |
cpp-2.hs | Loading commit data... | |
cpp-3.c | Loading commit data... | |
cpp-3.hs | Loading commit data... | |
cpp-3a.h | Loading commit data... | |
cpp-3b.h | Loading commit data... | |
decl-1.c | Loading commit data... | |
decl-1.hs | Loading commit data... | |
decl-2.c | Loading commit data... | |
decl-2.hs | Loading commit data... | |
decl-3.c | Loading commit data... | |
decl-3.hs | Loading commit data... | |
decl-4.c | Loading commit data... | |
decl-4.hs | Loading commit data... | |
decl-5.c | Loading commit data... | |
decl-5.hs | Loading commit data... | |
empty.c | Loading commit data... | |
empty.hs | Loading commit data... | |
except-1.c | Loading commit data... | |
except-1.hs | Loading commit data... | |
global-1.c | Loading commit data... | |
global-1.hs | Loading commit data... | |
import-1.c | Loading commit data... | |
import-1.hs | Loading commit data... | |
import-1a.h | Loading commit data... | |
import-1b.h | Loading commit data... | |
import-1c.h | Loading commit data... | |
import-2.c | Loading commit data... | |
import-2.hs | Loading commit data... | |
inline-1.c | Loading commit data... | |
inline-1.hs | Loading commit data... | |
inline-2.c | Loading commit data... | |
inline-2.hs | Loading commit data... | |
inline-3.c | Loading commit data... | |
inline-3.hs | Loading commit data... | |
inline-4.c | Loading commit data... | |
inline-4.hs | Loading commit data... | |
macro-1.c | Loading commit data... | |
macro-1.hs | Loading commit data... | |
macro-2.c | Loading commit data... | |
macro-2.hs | Loading commit data... | |
macro-3.c | Loading commit data... | |
macro-3.hs | Loading commit data... | |
macro-4.c | Loading commit data... | |
macro-4.hs | Loading commit data... | |
pch.exp | Loading commit data... | |
pushpop-1.c | Loading commit data... | |
pushpop-1.hs | Loading commit data... | |
save-temps-1.c | Loading commit data... | |
save-temps-1.hs | Loading commit data... | |
static-1.c | Loading commit data... | |
static-1.hs | Loading commit data... | |
static-2.c | Loading commit data... | |
static-2.hs | Loading commit data... | |
static-3.c | Loading commit data... | |
static-3.hs | Loading commit data... | |
struct-1.c | Loading commit data... | |
struct-1.hs | Loading commit data... | |
system-1.c | Loading commit data... | |
system-1.hs | Loading commit data... | |
valid-1.c | Loading commit data... | |
valid-1.hs | Loading commit data... | |
valid-1b.c | Loading commit data... | |
valid-1b.hs | Loading commit data... | |
valid-2.c | Loading commit data... | |
valid-2.hs | Loading commit data... | |
valid-4.c | Loading commit data... | |
valid-4.hs | Loading commit data... | |
valid-5.c | Loading commit data... | |
valid-5.hs | Loading commit data... | |
valid-6.c | Loading commit data... | |
valid-6.hs | Loading commit data... | |
warn-1.c | Loading commit data... | |
warn-1.hs | Loading commit data... |