First stab at getting namespaces working with PPH. This change will
commit239751f9c8992d19423a9a6ee16f1599e8f2391f
authorcrowl <crowl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Apr 2011 01:54:03 +0000 (19 01:54 +0000)
committercrowl <crowl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Apr 2011 01:54:03 +0000 (19 01:54 +0000)
treeb44445a85f0392ce475f44a79e67ec4fee2cae32
parent08fed95b26da2dfa9646c350def01a71be5bef20
First stab at getting namespaces working with PPH.  This change will
put top-level namespaces into the global namespace.  It does not,
however, appear to their members in any place useful.

Some tuning of tracing output.

Index: gcc/cp/ChangeLog.pph

2011-04-18  Lawrence Crowl <crowl@google.com>

* pph.c (pth_save_identifiers): Fix FIXME comment.
        (pph_add_names_to_namespace): Add contained namespaces to scope as
well as regular symbols.
* pph-streamer.c (enum pph_trace_type): Add a trace for refs.
        (pph_stream_trace): Add the ref printing.  Reduce bulk of trace
messages.  Filter off uninteresting traces, primarily traces of null
pointers.
(pph_stream_trace_tree): Convert ref_p to trace value.
* pph-streamer.h: Adjust flag_pph_tracer comparisons for better traces.
(pph_stream_trace_tree): Add ref_p parameter.  Propogate such
parameters at all call sites.
        (pph_output_tree_lst): New.  Like pph_output_tree, but for list and
chain contexts.
(pph_stream_write_tree): The callback is auxillary.
(pph_output_chain_filtered): Call pph_output_tree_lst.

Index: libcpp/ChangeLog.pph

2011-04-18  Lawrence Crowl  <crowl@google.com>

* init.c: Fix spelling in comment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/pph@172690 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog.pph
gcc/cp/pph-streamer-out.c
gcc/cp/pph-streamer.c
gcc/cp/pph-streamer.h
gcc/cp/pph.c
libcpp/ChangeLog.pph
libcpp/init.c