This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r174166 - in /branches/pph/gcc: c-family/Change...
- From: crowl at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 25 May 2011 02:43:57 -0000
- Subject: r174166 - in /branches/pph/gcc: c-family/Change...
Author: crowl
Date: Wed May 25 02:43:56 2011
New Revision: 174166
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174166
Log:
Add a new flag -fpph-untree.
In pph_stream_read_tree and pph_stream_write_tree:
Refactor from nested if statements to a switch statement.
Remove handling of TREE_BINFO, as it is redundant.
For TEMPLATE_DECL, also stream DECL_MEMBER_TEMPLATE_P.
Report unhandled trees when -fpph-untree.
Remove pph_stream_read_tree_vec_none and pph_stream_write_tree_vec_none,
which are unused with the removal of the handling of TREE_BINFO above.
The code edits do NOT conform with the gcc style. This is deliberate
so that diff reports sensible differences. I will make a separate
patch to fix the style.
Index: gcc/c-family/ChangeLog.pph
2011-05-24 Lawrence Crowl <crowl@google.com>
* c.opt (fpph-untree): Add.
Index: gcc/cp/ChangeLog.pph
2011-05-24 Lawrence Crowl <crowl@google.com>
* pph-streamer-in.c (pph_stream_read_tree): Refactor
from nested if statements to a switch statement.
For TEMPLATE_DECL, also input DECL_MEMBER_TEMPLATE_P.
Report unhandled trees when -fpph-untree.
Add already completely handled trees as separate cases.
(pph_stream_read_tree_vec_none): Remove.
* pph-streamer-out.c (pph_stream_write_tree): Refactor
from nested if statements to a switch statement.
For TEMPLATE_DECL, also output DECL_MEMBER_TEMPLATE_P.
Report unhandled trees when -fpph-untree.
Add already completely handled trees as separate cases.
(pph_stream_write_tree_vec_none): Remove.
Modified:
branches/pph/gcc/c-family/ChangeLog.pph
branches/pph/gcc/c-family/c.opt
branches/pph/gcc/cp/ChangeLog.pph
branches/pph/gcc/cp/pph-streamer-in.c
branches/pph/gcc/cp/pph-streamer-out.c