Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(154)

Side by Side Diff: gcc/cp/pph.h

Issue 5577059: [pph] Handle hidden state in cp/decl2.c (Closed) Base URL: svn+ssh://gcc.gnu.org/svn/gcc/branches/pph/
Patch Set: Created 13 years, 2 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gcc/cp/decl2.c ('k') | gcc/cp/pph-core.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Factored pre-parsed header (PPH) support for C++ 1 /* Factored pre-parsed header (PPH) support for C++
2 2
3 Copyright (C) 2012 Free Software Foundation, Inc. 3 Copyright (C) 2012 Free Software Foundation, Inc.
4 Contributed by Lawrence Crowl <crowl@google.com> and 4 Contributed by Lawrence Crowl <crowl@google.com> and
5 Diego Novillo <dnovillo@google.com>. 5 Diego Novillo <dnovillo@google.com>.
6 6
7 This file is part of GCC. 7 This file is part of GCC.
8 8
9 GCC is free software; you can redistribute it and/or modify it 9 GCC is free software; you can redistribute it and/or modify it
10 under the terms of the GNU General Public License as published by 10 under the terms of the GNU General Public License as published by
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 138
139 /* Extern functions. */ 139 /* Extern functions. */
140 140
141 /* In pph-core.c */ 141 /* In pph-core.c */
142 extern void pph_init (void); 142 extern void pph_init (void);
143 extern void pph_loaded (void); 143 extern void pph_loaded (void);
144 extern void pph_finish (void); 144 extern void pph_finish (void);
145 extern void pph_dump_location (FILE *file, location_t loc); 145 extern void pph_dump_location (FILE *file, location_t loc);
146 extern void pph_dump_tree_name (FILE *file, tree t, int flags); 146 extern void pph_dump_tree_name (FILE *file, tree t, int flags);
147 extern void pph_dump_vec_tree (FILE *file, VEC(tree,gc) *v);
147 extern void pph_init_include_tree (void); 148 extern void pph_init_include_tree (void);
148 extern void pph_dump_includes (FILE *, pph_stream *, unsigned); 149 extern void pph_dump_includes (FILE *, pph_stream *, unsigned);
149 150
150 /* In pph-out.c. */ 151 /* In pph-out.c. */
151 extern void pph_out_uint (pph_stream *stream, unsigned int value); 152 extern void pph_out_uint (pph_stream *stream, unsigned int value);
152 extern void pph_out_location (pph_stream *stream, location_t loc); 153 extern void pph_out_location (pph_stream *stream, location_t loc);
153 extern void pph_out_tree (pph_stream *stream, tree t); 154 extern void pph_out_tree (pph_stream *stream, tree t);
155 extern void pph_out_tree_vec (pph_stream *stream, VEC(tree,gc) *v);
154 extern void pph_out_record_marker (pph_stream *stream, 156 extern void pph_out_record_marker (pph_stream *stream,
155 enum pph_record_marker marker, enum pph_tag tag); 157 enum pph_record_marker marker, enum pph_tag tag);
156 void pph_add_decl_to_symtab (tree, enum pph_symtab_action, bool, bool); 158 void pph_add_decl_to_symtab (tree, enum pph_symtab_action, bool, bool);
157 159
158 /* In pph-in.c. */ 160 /* In pph-in.c. */
159 extern unsigned int pph_in_uint (pph_stream *stream); 161 extern unsigned int pph_in_uint (pph_stream *stream);
160 extern location_t pph_in_location (pph_stream *stream); 162 extern location_t pph_in_location (pph_stream *stream);
161 extern tree pph_in_tree (pph_stream *stream); 163 extern tree pph_in_tree (pph_stream *stream);
164 extern VEC(tree,gc) *pph_in_tree_vec (pph_stream *stream);
165 extern void pph_union_into_tree_vec (VEC(tree,gc) **into, VEC(tree,gc) *from);
162 extern enum pph_record_marker pph_in_record_marker (pph_stream *stream, 166 extern enum pph_record_marker pph_in_record_marker (pph_stream *stream,
163 enum pph_tag *tag_p); 167 enum pph_tag *tag_p);
164 extern bool pph_files_read (void); 168 extern bool pph_files_read (void);
165 169
170 /* In decl2.c. */
171 extern void pph_out_decl2_hidden_state (pph_stream *stream);
172 extern void pph_in_decl2_hidden_state (pph_stream *stream);
173 extern void pph_dump_decl2_hidden_state (FILE *file);
174
166 /* In name-lookup.c. */ 175 /* In name-lookup.c. */
167 struct binding_table_s; 176 struct binding_table_s;
168 extern void pph_out_binding_table (pph_stream *, struct binding_table_s *); 177 extern void pph_out_binding_table (pph_stream *, struct binding_table_s *);
169 extern struct binding_table_s *pph_in_binding_table (pph_stream *); 178 extern struct binding_table_s *pph_in_binding_table (pph_stream *);
170 extern void pph_set_global_identifier_bindings (void); 179 extern void pph_set_global_identifier_bindings (void);
171 180
172 /* In pt.c. */ 181 /* In pt.c. */
173 extern void pph_out_pending_templates_list (pph_stream *); 182 extern void pph_out_pending_templates_list (pph_stream *);
174 extern void pph_out_spec_entry_tables (pph_stream *); 183 extern void pph_out_spec_entry_tables (pph_stream *);
175 extern void pph_in_pending_templates_list (pph_stream *); 184 extern void pph_in_pending_templates_list (pph_stream *);
(...skipping 14 matching lines...) Expand all
190 199
191 /* Return true if PPH has been enabled. */ 200 /* Return true if PPH has been enabled. */
192 static inline bool 201 static inline bool
193 pph_enabled_p (void) 202 pph_enabled_p (void)
194 { 203 {
195 return pph_writer_enabled_p () || pph_reader_enabled_p (); 204 return pph_writer_enabled_p () || pph_reader_enabled_p ();
196 } 205 }
197 206
198 207
199 #endif /* GCC_CP_PPH_H */ 208 #endif /* GCC_CP_PPH_H */
OLDNEW
« no previous file with comments | « gcc/cp/decl2.c ('k') | gcc/cp/pph-core.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b