This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r154098 - in /trunk: gcc/ChangeLog gcc/c-pragma...


Author: ktietz
Date: Wed Nov 11 18:37:19 2009
New Revision: 154098

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154098
Log:
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.


Added:
    trunk/gcc/testsuite/g++.dg/torture/pushpop_macro.C   (with props)
    trunk/gcc/testsuite/gcc.c-torture/execute/pushpop_macro.c   (with props)
    trunk/gcc/testsuite/gcc.dg/pch/pushpop-1.c   (with props)
    trunk/gcc/testsuite/gcc.dg/pch/pushpop-1.hs
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-pragma.c
    trunk/gcc/config/i386/cygming.h
    trunk/gcc/doc/tm.texi
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/cpp/pragma-pop_macro-1.c
    trunk/libcpp/ChangeLog
    trunk/libcpp/directives.c
    trunk/libcpp/init.c
    trunk/libcpp/internal.h
    trunk/libcpp/lex.c
    trunk/libcpp/pch.c

Propchange: trunk/gcc/testsuite/g++.dg/torture/pushpop_macro.C
            ('svn:eol-style' added)

Propchange: trunk/gcc/testsuite/g++.dg/torture/pushpop_macro.C
            ('svn:mime-type' added)

Propchange: trunk/gcc/testsuite/gcc.c-torture/execute/pushpop_macro.c
            ('svn:eol-style' added)

Propchange: trunk/gcc/testsuite/gcc.c-torture/execute/pushpop_macro.c
            ('svn:mime-type' added)

Propchange: trunk/gcc/testsuite/gcc.dg/pch/pushpop-1.c
            ('svn:eol-style' added)

Propchange: trunk/gcc/testsuite/gcc.dg/pch/pushpop-1.c
            ('svn:mime-type' added)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]