]>
Commit | Line | Data |
---|---|---|
9832c977 | 1 | 2004-09-15 Per Bothner <per@bothner.com> |
2 | ||
3 | * include/line-map.h (line_map_start): Add parameter names so | |
4 | preceding comment makes sense. | |
5 | (linemap_add): Remove from comment mention of non-existing parameter. | |
6 | ||
d6d3c909 | 7 | 2004-09-09 Matt Austern <austern@apple.com> |
8 | Zack Weinberg <zack@codesourcery.com> | |
9 | ||
10 | * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_ | |
11 | prefixes throughout. Add entry for PRAGMA. Remove | |
12 | unnecessary "= 0" from EQ. | |
13 | (enum cpp_ttype): Adjust OP and TK definitions to restore | |
14 | prefixes, via token-paste. | |
15 | (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP): | |
16 | Change from #defines to additional cpp_ttype enumerators. | |
17 | (struct cpp_options): Add defer_pragmas. | |
18 | (cpp_handle_deferred_pragma): Prototype new interface. | |
19 | ||
20 | * internal.h (struct cpp_reader): Add directive_result. | |
21 | * directives.c (struct pragma_entry): Add is_internal field; | |
22 | give boolean fields type bool. | |
23 | (start_directive): Initialize pfile->directive_result.type. | |
24 | (_cpp_do__Pragma): Likewise. | |
25 | (run_directive): Do not crash if pfile->buffer->prev is NULL. | |
26 | (insert_pragma_entry): Add 'internal' argument; set new->is_internal | |
27 | from it. | |
28 | (register_pragma): New static function, bulk of former | |
29 | cpp_register_pragma here; add 'internal' argument, pass along | |
30 | to insert_pragma_entry. | |
31 | (cpp_register_pragma): Now a wrapper around register_pragma which | |
32 | always passes false for 'internal' argument. | |
33 | (_cpp_init_internal_pragmas): Call register_pragma directly, passing | |
34 | true for 'internal'. | |
35 | (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't | |
36 | an internal pragma, save text till the end of the line as a CPP_PRAGMA | |
37 | token instead of executing the pragma. | |
38 | (cpp_handle_deferred_pragma): New interface. | |
39 | * lex.c (token_spellings): Adjust OP and TK definitions to | |
40 | match changes to cpplib.h. | |
41 | (_cpp_lex_token): Check for a directive-result token and | |
42 | return it if present. | |
43 | (cpp_token_val_index): Handle CPP_PRAGMA. | |
44 | * macro.c (cpp_builtin_macro_text): Correct comment. | |
45 | (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma. | |
46 | ||
735a9bc4 | 47 | 2004-09-06 Serge Belyshev <belyshev@lubercy.com> |
48 | ||
49 | PR preprocessor/14699 | |
50 | * symtab.c (ht_dump_statistics): Change type of sum_of_squares | |
51 | from size_t to double. | |
52 | ||
25696d3f | 53 | 2004-08-28 Andreas Schwab <schwab@suse.de> |
54 | Andreas Jaeger <aj@suse.de> | |
55 | ||
56 | * configure.ac: Set PACKAGE correctly. | |
57 | * configure: Regenerated. | |
58 | ||
99439f5b | 59 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
60 | ||
61 | * Makefile.in: Add back top_builddir. | |
62 | ||
a668be26 | 63 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
64 | ||
65 | * configure.ac: Replace Automake macro invocations | |
66 | with manual Autoconf checks and substitutions. | |
67 | * configure: Regenerate. | |
68 | * aclocal.m4: Regenerate. | |
69 | * config.in: Regenerate. | |
70 | * Makefile.am: Removed. | |
71 | * Makefile.in: Heavy simplification and reorganization. | |
72 | ||
30e9913f | 73 | 2004-08-09 Mark Mitchell <mark@codesourcery.com> |
74 | ||
75 | * configure.ac (arm*-*-eabi*): New target. | |
76 | (arm*-*-symbianelf*): Likewise. | |
77 | * configure: Regenerated. | |
78 | ||
3b298764 | 79 | 2004-07-24 Bernardo Innocenti <bernie@develer.com> |
80 | ||
81 | * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove. | |
82 | * directives.c: Use XNEW-family macros from libiberty. | |
83 | * lex.c: Likewise. | |
84 | * macro.c: Likewise. | |
85 | * cpplib.h (cpp_deps_style): Export enum with name. | |
86 | ||
d6d3c909 | 87 | 2004-07-23 Matthias Klose <doko@debian.org> |
3b298764 | 88 | |
d6d3c909 | 89 | * init.c (init_library): Use PACKAGE for the text domain. |
1ed7d058 | 90 | |
821fa045 | 91 | 2004-07-16 Andris Pavenis <pavenis@latnet.lv> |
92 | ||
93 | PR preprocessor/16366 | |
94 | * internal.h (struct cpp_reader): New field dir_hash. | |
95 | * files.c (make_cpp_dir): Use dir_hash, not file_hash. | |
96 | (_cpp_init_files, _cpp_cleanup_files): Update for new field. | |
97 | ||
d80efa72 | 98 | 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk> |
99 | ||
100 | PR preprocessor/16192 | |
101 | PR preprocessor/15913 | |
102 | PR preprocessor/15572 | |
103 | * expr.c (_cpp_parse_expr): Handle remaining cases where an | |
104 | expression is missing. | |
105 | * init.c (post_options): Traditional cpp doesn't do // comments. | |
106 | ||
ed000086 | 107 | 2004-06-30 Per Bothner <per@bothner.com> |
108 | ||
109 | * include/line-map.h (fileline): Remove old typedef. | |
110 | * internal.h (struct cpp_reader): Use source_location typedef instead. | |
111 | ||
dcb9d064 | 112 | 2004-06-26 Zack Weinberg <zack@codesourcery.com> |
113 | ||
114 | Partially revert patch of 2004-06-05. | |
115 | * files.c (search_cache): Remove pfile argument. Don't check | |
116 | for file that would be found by "" or <> search here... | |
117 | (_cpp_find_file): ...do it here, before calling find_file_in_dir. | |
118 | Do not apply directory-of-current-file correction to files | |
119 | found by this check. Rearrange code slightly. | |
120 | ||
d718b525 | 121 | 2004-06-21 Geoffrey Keating <geoffk@apple.com> |
122 | ||
123 | * files.c (should_stack_file): Correct swapped parameters to call | |
124 | to cb.read_pch. | |
125 | * pch.c (cpp_valid_state): Handle -fpreprocessed. | |
126 | ||
79b68529 | 127 | 2004-06-15 Paolo Bonzini <bonzini@gnu.org> |
128 | ||
129 | * Makefile.in: Regenerate with automake 1.8.5. | |
130 | * aclocal.m4: Likewise. | |
131 | * configure: Regenerate. | |
132 | ||
151899c5 | 133 | 2004-06-11 Zack Weinberg <zack@codesourcery.com> |
134 | ||
135 | * configure.ac: Don't invoke ACX_HEADER_STDBOOL. | |
136 | * configure, config.in: Regenerate. | |
137 | * system.h: Unconditionally define bool as unsigned char, | |
138 | BOOL_BITFIELD as unsigned int. | |
139 | * .cvsignore: New file. | |
140 | ||
c39ed964 | 141 | 2004-06-09 Geoffrey Keating <geoffk@apple.com> |
142 | ||
143 | * traditional.c (push_replacement_text): Set macro->traditional. | |
144 | (save_replacement_text): Likewise. | |
145 | * pch.c (cpp_write_pch_state): Don't write list of defined macros. | |
146 | (struct save_macro_item): Delete. | |
147 | (struct save_macro_data): Use a character array not the previous | |
148 | structured format. | |
149 | (save_macros): Save macro as text not as internal structures. | |
150 | (cpp_prepare_state): Update for changes to save_macro_data. | |
151 | (cpp_read_state): Don't read macros defined in PCH. Restore | |
c84ca916 | 152 | -D macros as text. |
c39ed964 | 153 | * macro.c (create_iso_definition): Honour alloc_subobject. |
154 | Clear traditional flag. | |
155 | (_cpp_create_definition): Honour alloc_subobject. | |
156 | * lex.c (cpp_token_val_index): New. | |
157 | * internal.h: Include cpp-id-data.h. | |
158 | (uchar): Move definition to cpp-id-data.h. | |
159 | (U): Likewise. | |
160 | (cpp_macro): Likewise. | |
161 | * directives.c (struct answer): Move to cpp-id-data.h. | |
162 | (do_assert): Honour alloc_subobject. | |
c84ca916 | 163 | |
164 | * include/symtab.h (struct ht): Add field 'alloc_subobject'. | |
165 | * include/cpplib.h (struct cpp_string): Add GTY marker. | |
166 | (enum cpp_token_fld_kind): New. | |
167 | (struct cpp_token): Add GTY markers. | |
168 | (cpp_token_val_index): Prototype. | |
169 | (CPP_HASHNODE_VALUE_IDX): New. | |
170 | (struct cpp_hashnode): Don't skip fields of 'value' when marking. | |
171 | * include/cpp-id-data.h: New file. | |
c39ed964 | 172 | |
dd6e5561 | 173 | 2004-06-09 Paolo Bonzini <bonzini@gnu.org> |
174 | ||
175 | * Makefile.am (all-local): New. | |
176 | * Makefile.in: Regenerate. | |
177 | ||
8af0c78d | 178 | 2004-06-06 Roger Sayle <roger@eyesopen.com> |
179 | ||
180 | * Makefile.am (LIBICONV): Declare. | |
181 | (makedepend_LDADD): Use LIBICONV. | |
182 | * Makefile.in: Regenerate. | |
183 | ||
30302733 | 184 | 2004-06-05 Andrew Pinski <pinskia@physics.uc.edu> |
185 | ||
186 | * Makefile.am (LIBINTL): Declare | |
187 | (makedepend_LDADD): Use LIBINTL. | |
188 | * Makefile.in: Regenerate. | |
189 | ||
3eb3f293 | 190 | 2004-06-05 Zack Weinberg <zack@codesourcery.com> |
191 | ||
192 | * Makefile.am: Add makedepend. | |
193 | * Makefile.in, aclocal.m4: Regenerate. | |
194 | * charset.c: Insert a space to avoid a warning. | |
195 | * directives.c: Include mkdeps.h. | |
196 | (_cpp_handle_directive): Reenable macro expander if appropriate. | |
197 | (undefine_macros): Inline body of _cpp_free_definition for speed. | |
198 | Do not call undef callback or _cpp_warn_if_unused_macro. | |
199 | (cpp_get_deps): New interface. | |
200 | * files.c (search_cache): Add pfile argument. Check for file | |
201 | that would be found by "" or <> search here... | |
202 | (_cpp_find_file): ...not here. Correct recorded start_dir of | |
203 | files found by directory-of-current-file search that would be | |
204 | found by "" or <> search. | |
205 | * init.c (cpp_add_dependency_target): Delete. | |
206 | * internal.h (struct lexer_state): Add discarding_output flag. | |
207 | * lex.c (lex_identifier): Compute hash function while scanning. | |
208 | * macro.c (cpp_scan_nooutput): Disable macro expansion outside | |
209 | directives. | |
210 | * makedepend.c: New file. | |
211 | * mkdeps.c (struct deps): Add vpath vector. | |
212 | (apply_vpath, deps_add_vpath): New function. | |
213 | (deps_free): Free vpath vector. | |
214 | (deps_add_dep, deps_add_target): Use apply_vpath. | |
215 | * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH. | |
216 | (ht_lookup_with_hash): New function. | |
217 | * cpplib.h, mkdeps.h: Update prototypes. | |
218 | * symtab.h: Update prototypes. | |
219 | (HT_HASHSTEP, HT_FINISH): New macros. | |
220 | ||
8ed01400 | 221 | 2004-05-29 Geoffrey Keating <geoffk@apple.com> |
222 | ||
223 | * symtab.c (ht_create): Set entries_owned. | |
224 | (ht_destroy): Honour entries_owned. | |
225 | (ht_expand): Likewise. | |
226 | (ht_load): New. | |
c84ca916 | 227 | * include/symtab.h (struct ht): New field 'entries_owned' |
228 | (ht_load): New prototype. | |
8ed01400 | 229 | |
347a3ab5 | 230 | 2004-05-26 Paolo Bonzini <bonzini@gnu.org> |
231 | ||
232 | PR bootstrap/15651 | |
233 | * configure.ac: Fix m4 quoting when picking | |
234 | the size of HOST_WIDE_INT. | |
235 | * configure: Regenerate. | |
236 | ||
fc231f28 | 237 | 2004-05-25 Paolo Bonzini <bonzini@gnu.org> |
238 | ||
239 | * Makefile.am: the correct directory for | |
240 | gettext include files is given by @INCINTL@. | |
241 | * Makefile.in: Regenerate. | |
242 | ||
babfbd63 | 243 | 2004-05-24 Paolo Bonzini <bonzini@gnu.org> |
244 | ||
245 | * system.h [!ENABLE_NLS]: dgettext takes two | |
246 | parameters. | |
247 | ||
d856c8a6 | 248 | 2004-05-23 Paolo Bonzini <bonzini@gnu.org> |
249 | ||
250 | Moved libcpp from the gcc subdirectory to the toplevel. | |
251 | * Makefile.am: New file. | |
252 | * Makefile.in: Regenerate. | |
253 | * configure.ac: New file. | |
254 | * configure: Regenerate. | |
255 | * config.in: Regenerate. | |
256 | * charset.c: Moved from gcc/cppcharset.c. Add note about | |
257 | brokenness of input charset detection. Adjust for change | |
258 | in name of cppucnid.h. | |
259 | * errors.c: Moved from gcc/cpperror.c. Do not include intl.h. | |
260 | * expr.c: Moved from gcc/cppexp.c. | |
261 | * files.c: Moved from gcc/cppfiles.c. Do not include intl.h. | |
262 | Remove #define of O_BINARY, it is in system.h. | |
263 | * identifiers.c: Moved from gcc/cpphash.c. | |
264 | * internal.h: Moved from gcc/cpphash.h. Change header | |
265 | guard name. All other files adjusted to match name change. | |
266 | * init.c: Moved from gcc/cppinit.c. | |
267 | (init_library) [ENABLE_NLS]: Call bindtextdomain. | |
268 | * lex.c: Moved from gcc/cpplex.c. | |
269 | * directives.c: Moved from gcc/cpplib.c. | |
270 | * macro.c: Moved from gcc/cppmacro.c. | |
271 | * pch.c: Moved from gcc/cpppch.c. Do not include intl.h. | |
272 | * traditional.c: Moved from gcc/cpptrad.c. | |
273 | * ucnid.h: Moved from gcc/cppucnid.h. Change header | |
274 | guard name. | |
275 | * ucnid.pl: Moved from gcc/cppucnid.pl. | |
276 | * ucnid.tab: Moved from gcc/cppucnid.tab. Change header | |
277 | guard name. | |
278 | * symtab.c: Moved from gcc/hashtable.c. | |
279 | * line-map.c: Moved from gcc. Do not include intl.h. | |
280 | * mkdeps.c: Moved from gcc. | |
281 | * system.h: New file. | |
c84ca916 | 282 | * include/cpplib.h: Moved from gcc. Change header guard name. |
283 | * include/line-map.h: Moved from gcc. Change header guard name. | |
284 | * include/mkdeps.h: Moved from gcc. Change header guard name. | |
285 | * include/symtab.h: Moved from gcc/hashtable.h. Change header | |
286 | guard name. |