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]

r181123 - in /branches/pph/gcc: cp/ChangeLog.pp...


Author: crowl
Date: Mon Nov  7 21:58:47 2011
New Revision: 181123

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181123
Log:
Add merging of namespaces.

Add testcase for namespace merging. test fails because lookup fails
for reasons apparently associated with identifiers.

Add tracing of both front and back of trees so as to better identify
the tree structure.

Add tracing of record markers.

Various formatting fixes.

Tested on x64.


Index: gcc/testsuite/ChangeLog.pph

2011-11-07   Lawrence Crowl  <crowl@google.com>

	* lib/dg-pph.exp (dg-pph-pos): Recognize bogus errors.
	* g++.dg/pph/x0namespace2.h: New.
	* g++.dg/pph/x4namespace.cc: New.

Index: gcc/cp/ChangeLog.pph

2011-11-07   Lawrence Crowl  <crowl@google.com>

	* pph.c (pph_tree_code_text): Fix formatting.
	* pph-streamer.h (enum pph_trace_end): New.
	(pph_trace_tree): Add 'which end' parameter.
	(pph_trace_marker): New.
	* gcc/cp/pph-streamer.c (marker_strings[]): New.
	(tag_strings[]): New.
	(pph_trace_marker): New.
	(pph_trace_tree): Add tree prefix tracing.
	* pph-streamer-out.c: Add section separators.
	(pph_out_stream): Move to stream initialization section.
	(pph_out_record_marker): Add record tracing.
	(chain2vec_filter): Disable assert on 'none' filter.
	(pph_out_chain_filtered): Likewise.
	(pph_out_binding_merge_bodies): Add more merge fodder.
	(pph_out_merge_key_tree): Add tree prefix tracing.
	(pph_out_tree): Likewise.
	* pph-streamer-in.c: Add section separators.
	(ALLOC_AND_REGISTER): Move to record handling section.
	(pph_loc_offset): Move to source information section.
	(pph_in_record_marker): Add record tracing.
	(pph_in_binding_level): Factor into pph_in_binding_level and
	pph_in_binding_level_start.
	(pph_in_binding_merge_bodies): Factor actual merging into separate
	pph_in_binding_merge_bodies_1.
	(pph_in_ld_ns): Merge into a binding if one already exists.
	(pph_in_tree_body): Add debugging code.
	(pph_in_merge_key_tree): Add tree prefix tracing.
	Do not allocate a namespace binding if one exists already.
	(pph_in_tree): Add prefix tracing.
	(pph_in_global_binding): Call pph_in_binding_merge_bodies_1 to avoid
	allocation.



Added:
    branches/pph/gcc/testsuite/g++.dg/pph/x0namespace2.h
    branches/pph/gcc/testsuite/g++.dg/pph/x4namespace.cc
Modified:
    branches/pph/gcc/cp/ChangeLog.pph
    branches/pph/gcc/cp/pph-streamer-in.c
    branches/pph/gcc/cp/pph-streamer-out.c
    branches/pph/gcc/cp/pph-streamer.c
    branches/pph/gcc/cp/pph-streamer.h
    branches/pph/gcc/cp/pph.c
    branches/pph/gcc/testsuite/ChangeLog.pph
    branches/pph/gcc/testsuite/lib/dg-pph.exp


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