r178988 - in /branches/pph: gcc/cp/ChangeLog.pp...
crowl@gcc.gnu.org
crowl@gcc.gnu.org
Mon Sep 19 21:37:00 GMT 2011
Author: crowl
Date: Mon Sep 19 21:37:20 2011
New Revision: 178988
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=178988
Log:
Restructure pph_read_tree_header and pph_read_tree to do what their
names say they do. In particular, generic tree handling from
pph_read_tree_header to pph_read_tree.
Add debugging routines pph_tree_code_text (to avoid out of bounds
indexing on a bad tree code) and pph_dump_min_decl (to dump the
minimal decl information).
Rename the preprocessor lookaside table field pth_debug_level to
debug_level (as PTH is gone). Adjust thess debug levels to mean
0 == none, 1 == statistics, 2 == verbose. Adjust the initialization
in pph_init to reflect that.
Tested on x64.
Index: gcc/cp/ChangeLog.pph
2011-09-17 Lawrence Crowl <crowl@google.com>
* pph.h (pph_tree_code_text): New.
(pph_dump_min_decl): New.
* pph.c (pph_tree_code_text): New. Update users of tree_code_name
to call this function instead, here and in other files.
(pph_dump_min_decl): New.
(pph_init): Adjust debug value to preprocessor's value.
* pph-streamer-in.c (pph_read_tree_header): Move work unrelated to
tree headers out of this function.
* (pph_read_tree): Move that work here.
* pt.c (pph_in_spec_entry_htab): Use pph_logfile instead of stderr.
(pph_out_spec_entry_tables): Likewise.
(pph_in_spec_entry_tables): Likewise.
Index: libcpp/ChangeLog.pph
2011-09-17 Lawrence Crowl <crowl@google.com>
* internal.h (struct cpp_lookaside): Rename pth_debug_level to
debug_level.
* symtab.c (cpp_lt_create): Likewise.
(cpp_lt_capture): Likewise.
(lt_statistics): Likewise, and change values to 0 == none,
1 == statistics, 2 == verbose.
(lt_query_macro): Likewise.
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.c
branches/pph/gcc/cp/pph.h
branches/pph/gcc/cp/pt.c
branches/pph/libcpp/ChangeLog.pph
branches/pph/libcpp/internal.h
branches/pph/libcpp/symtab.c
More information about the Gcc-cvs
mailing list