OSDN Git Service

* cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
authoraustern <austern@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Mar 2003 20:02:40 +0000 (20:02 +0000)
committeraustern <austern@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Mar 2003 20:02:40 +0000 (20:02 +0000)
commitd35c4ac4c39d32664879f34619221678666ef426
treef5fde18897a92ccbc7a569c6676d223f956f3a67
parent9eeeca7e6c70ad8d49127289af1e8b8afb052ee6
* cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
(count_defs): Keep track of number of defs as well as total size.
(write_defs): Put every definition in cpp_savedstate's defs array.
(comp_hashnode): Define.  Comparison function for qsort.
(cpp_write_pch_deps): Sort definitions before writing them.
(struct ht_node_list): Define. Like cpp_savedstate but simpler.
(collect_ht_nodes): Define.
(cpp_valid_state): When verifying that undefined identifiers in
the pch file are still undefined, read a sorted list of undefined
identifiers, collect all defined identifiers into a sorted list,
and walk through both lists to make sure there's no match.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65101 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cpppch.c