]>
Commit | Line | Data |
---|---|---|
bce47149 | 1 | 2005-03-14 Geoffrey Keating <geoffk@apple.com> |
2 | ||
4e9d1e6d | 3 | * lex.c (forms_identifier_p): Disable UCNs in C89 mode. |
4 | ||
5 | 2005-03-14 Geoffrey Keating <geoffk@apple.com> | |
6 | ||
bce47149 | 7 | * init.c (cpp_create_reader): Default warn_normalize to normalized_C. |
8 | * charset.c: Update for new format of ucnid.h. | |
9 | (ucn_valid_in_identifier): Update for new format of ucnid.h. | |
10 | Add NST parameter, and update it; update callers. | |
11 | (cpp_valid_ucn): Add NST parameter, update callers. Replace abort | |
12 | with cpp_error. | |
13 | (convert_ucn): Pass normalize_state to cpp_valid_ucn. | |
14 | * internal.h (struct normalize_state): New. | |
15 | (INITIAL_NORMALIZE_STATE): New. | |
16 | (NORMALIZE_STATE_RESULT): New. | |
17 | (NORMALIZE_STATE_UPDATE_IDNUM): New. | |
18 | (_cpp_valid_ucn): New. | |
19 | * lex.c (warn_about_normalization): New. | |
20 | (forms_identifier_p): Add normalize_state parameter, update callers. | |
21 | (lex_identifier): Add normalize_state parameter, update callers. Keep | |
22 | the state current. | |
23 | (lex_number): Likewise. | |
24 | (_cpp_lex_direct): Pass normalize_state to subroutines. Check | |
25 | it with warn_about_normalization. | |
26 | * makeucnid.c: New. | |
27 | * ucnid.h: Replace. | |
28 | * ucnid.pl: Remove. | |
29 | * ucnid.tab: Make appropriate for input to makeucnid.c. Remove | |
30 | comments about obsolete version of C++. | |
31 | * include/cpplib.h (enum cpp_normalize_level): New. | |
32 | (struct cpp_options): Add warn_normalize field. | |
33 | ||
bb1fa6bb | 34 | 2005-03-11 Geoffrey Keating <geoffk@apple.com> |
35 | ||
36 | * directives.c (glue_header_name): Update call to cpp_spell_token. | |
37 | * internal.h (_cpp_interpret_identifier): New. | |
38 | * charset.c (_cpp_interpret_identifier): New. | |
39 | (_cpp_valid_ucn): Allow UCN version of '$'. | |
40 | * lex.c (lex_identifier): Add extra parameter to indicate if initial | |
41 | character was '$' or '\'. Support identifiers with UCNs. | |
42 | (forms_identifier_p): Allow UCNs. | |
43 | (_cpp_lex_direct): Pass extra parameter to lex_identifier. | |
44 | (utf8_to_ucn): New. | |
45 | (cpp_spell_token): Add FORSTRING parameter. Use it. | |
46 | (cpp_token_as_text): Update call to cpp_spell_token. | |
47 | (cpp_output_token): Write UCNs back out. | |
48 | (stringify_arg): Update call to cpp_spell_token. | |
49 | (paste_tokens): Likewise. | |
50 | (cpp_macro_definition): Likewise. | |
51 | * macro.c (stringify_arg): Likewise. | |
52 | (paste_tokens): Likewise. | |
53 | (cpp_macro_definition): Likewise. | |
54 | * include/cpplib.h: Add parameter to cpp_spell_token. | |
55 | ||
960391da | 56 | 2005-03-04 Jakub Jelinek <jakub@redhat.com> |
57 | ||
58 | PR bootstrap/20282 | |
59 | PR bootstrap/20305 | |
60 | * macro.c (replace_args, cpp_get_token): Copy whole | |
61 | cpp_token_u instead of just cpp_string field from it. | |
62 | ||
b0d0794d | 63 | 2005-02-28 Devang Patel <dpatel@apple.com> |
64 | ||
65 | * directives.c (do_line): Save sysp early before line table is | |
66 | realloc'ed. | |
67 | ||
624d37a6 | 68 | 2005-02-20 Zack Weinberg <zack@codesourcery.com> |
69 | ||
70 | PR 18785 | |
71 | * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro. | |
72 | (cpp_host_to_exec_charset): New function. | |
73 | * include/cpplib.h: Declare cpp_host_to_exec_charset. | |
74 | ||
f86986bc | 75 | 2005-02-19 Devang Patel <dpatel@apple.com> |
76 | ||
77 | * charset.c (_cpp_convert_input): Check '\r' before inserting | |
78 | '\n' at the end. | |
624d37a6 | 79 | |
9936e07d | 80 | 2005-02-15 Eric Christopher <echristo@redhat.com> |
81 | ||
82 | PR preprocessor/19077 | |
83 | * macro.c (cpp_macro_definition): Move handling of whitespace | |
84 | to PREV_WHITE conditional. Remove overloading of len | |
85 | variable. | |
86 | ||
129a1540 | 87 | 2005-02-14 Kazu Hirata <kazu@cs.umass.edu> |
88 | ||
89 | * directives.c, files.c, init.c, internal.h, macro.c, pch.c, | |
90 | traditional.c: Update copyright. | |
91 | ||
bb30d1f4 | 92 | 2005-02-14 Paolo Bonzini <bonzini@gnu.org> |
93 | ||
94 | PR bootstrap/19818 | |
95 | * configure.ac: Check for declaration of basename and getopt. | |
96 | * config.in: Regenerate. | |
97 | * configure: Regenerate. | |
98 | * internal.h (ustrcspn): New. | |
99 | * macro.c (create_iso_definition): Fix allocation of memory. | |
100 | (padding_token): Add cast to remove const-ness. | |
101 | * pch.c (cpp_read_state): Use ustrcspn. | |
102 | ||
26ec4f15 | 103 | 2005-02-08 Mike Stump <mrs@apple.com> |
104 | ||
105 | * files.c (pchf_adder): Remove. | |
106 | (struct pchf_adder_info): Likewise. | |
107 | (_cpp_save_file_entries): Write out all files so that #import works. | |
108 | ||
0cb78cbd | 109 | 2005-01-23 Joseph S. Myers <joseph@codesourcery.com> |
110 | ||
111 | * configure: Regenerate. | |
112 | ||
d862067c | 113 | 2005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de> |
114 | ||
115 | * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader. | |
116 | ||
457e71e4 | 117 | * include/cpplib.h: Also update copyright years. |
624d37a6 | 118 | |
ba841ef8 | 119 | 2005-01-03 Geoffrey Keating <geoffk@apple.com> |
120 | ||
121 | * files.c (_cpp_find_file): Add files found by search_path_exhausted | |
122 | to the list of all files. | |
123 | ||
f03668bd | 124 | 2005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net> |
125 | ||
126 | * internal.h: Update references to Cpp lib filenames. | |
127 | * directives.c: Likewise. | |
128 | * init.c: Likewise. | |
129 | * macro.c: Likewise. | |
130 | * traditional.c: Likewise. | |
131 | ||
461ea98d | 132 | 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr> |
133 | ||
134 | PR preprocessor/15167 | |
135 | * files.c (destroy_cpp_file): New function. | |
136 | (should_stack_file): Make a new file if the | |
137 | compared file is still stacked. | |
138 | ||
bd9e37a6 | 139 | 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org> |
140 | ||
624d37a6 | 141 | PR preprocessor/17610 |
bd9e37a6 | 142 | * directives.c (do_include_common): Error out if an empty filename |
143 | is given for #include (or #include_next or #import). | |
144 | ||
fe4dcd90 | 145 | 2004-11-27 Roger Sayle <roger@eyesopen.com> |
146 | Zack Weinberg <zack@codesourcery.com> | |
147 | ||
148 | * internal.h: Replace all uses of uchar with unsigned char. | |
149 | * include/cpp-id-data.h: Likewise. Guard typedef of uchar | |
150 | with !IN_GCC, so uchar is only defined whilst building libcpp. | |
151 | ||
ac7cc2f4 | 152 | 2004-11-24 Kelley Cook <kcook@gcc.gnu.org> |
153 | ||
154 | * aclocal.m4: Regenerate. | |
155 | ||
6e11b263 | 156 | 2004-11-24 Roger Sayle <roger@eyesopen.com> |
157 | ||
158 | PR preprocessor/15824 | |
159 | * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h> | |
160 | directly, instead of the non-existant "system.h" and "ansidecl.h". | |
161 | * configure: Regenerate. | |
162 | ||
68bf2ad9 | 163 | 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com> |
624d37a6 | 164 | Joseph Myers <joseph@codesourcery.com> |
68bf2ad9 | 165 | |
166 | * internal.h (struct lexer_state): Add in_deferred_pragma. | |
167 | * directives.c (struct pragma_entry): Add allow_expansion. | |
168 | (insert_pragma_entry): Take allow_expansion flag. | |
169 | (register_pragma): Likewise. | |
170 | (cpp_register_pragma): Likewise. | |
171 | (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma. | |
172 | (do_pragma): Honor allow_expansion. | |
173 | (cpp_handle_deferred_pragma): Set in_deferred_pragma. | |
174 | * include/cpplib.h (cpp_register_pragma): Update prototype. | |
175 | ||
27559c4e | 176 | 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com> |
624d37a6 | 177 | Mark Mitchell <mark@codesourcery.com> |
27559c4e | 178 | |
179 | * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set | |
180 | need_64bit_hwint=yes. | |
181 | * configure: Regenerate. | |
182 | ||
34ae664d | 183 | 2004-11-09 Joseph S. Myers <joseph@codesourcery.com> |
184 | ||
185 | * Makefile.in ($(PACKAGE).pot): New rule. Depend on | |
186 | po/$(PACKAGE).pot. | |
187 | (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword | |
188 | arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2. | |
189 | Remove local srcdir path from generated file. | |
190 | ||
39b83bdb | 191 | 2004-11-04 Zack Weinberg <zack@codesourcery.com> |
624d37a6 | 192 | Gerald Pfeifer <gerald@pfeifer.com> |
39b83bdb | 193 | |
194 | * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H | |
195 | as well. | |
196 | ||
a095c1b5 | 197 | 2004-10-27 Zack Weinberg <zack@codesourcery.com> |
198 | ||
199 | PR 18075 | |
200 | * directives.c (do_pragma): Do not defer pragmas which are unknown. | |
201 | (cpp_handle_deferred_pragma): Add cast to silence warning. | |
202 | ||
700b0d81 | 203 | 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk> |
204 | ||
205 | * errors.c (_cpp_begin_message): Print "error: " for errors. | |
206 | ||
fbe83ac1 | 207 | 2004-10-10 Andreas Jaeger <aj@suse.de> |
208 | ||
209 | * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath. | |
210 | * Makefile.in (makedepend.o): Add dependency on mkdeps.h. | |
211 | ||
09f10c94 | 212 | 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu> |
213 | ||
214 | * pch.c (cpp_write_pch_state): Remove variable z as it is not | |
215 | used. | |
216 | (cpp_read_state): Remove unused variables, m, d and mac_count. | |
217 | ||
a8b2a8d5 | 218 | 2004-09-29 Per Bothner <per@bothner.com> |
219 | ||
220 | * directives.c (cpp_handle_deferred_pragma): Save, clear and restore | |
221 | cb.line_change. Otherwise do_pragma will call the line_change | |
222 | call-back with a meaningless line number. | |
223 | ||
21164c01 | 224 | 2004-09-24 Zack Weinberg <zack@codesourcery.com> |
225 | ||
226 | * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to | |
227 | programs cluster. Use ACX_PROG_CC_WARNING_OPTS, | |
228 | ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS. | |
229 | * aclocal.m4, configure: Regenerate. | |
230 | * init.c: Include localedir.h. | |
231 | * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables. | |
232 | (DEFS): Delete. | |
233 | (.c.o): Use $(ALL_CFLAGS). | |
234 | (localedir.h, localedir.hs): New rules. | |
235 | (clean): Use rm -rf to remove directories. | |
236 | (distclean): Also delete localedir.h and localedir.hs. | |
237 | (init.o): Update dependencies. | |
238 | ||
986086aa | 239 | 2004-09-22 Kelley Cook <kcook@gcc.gnu.org> |
240 | ||
241 | * Makefile.in (aclocal.m4): Update dependencies. | |
242 | * configure.ac (AC_CONFIG_MACRO_DIR): New. | |
243 | * aclocal.m4, configure: Regenerate. | |
244 | ||
e9cc3617 | 245 | 2004-09-17 Zack Weinberg <zack@codesourcery.com> |
246 | ||
0097f6a2 | 247 | * charset.c (_cpp_destroy_iconv, emit_numeric_escape) |
248 | (_cpp_convert_input, _cpp_default_encoding): Add comments. | |
249 | Some other comments in this file also tweaked. | |
250 | ||
e9cc3617 | 251 | * directives.c (do_pragma): Save current buffer position |
252 | before lexing the pragma keywords; don't call | |
253 | _cpp_backup_tokens in the defer_pragmas case. | |
254 | ||
9832c977 | 255 | 2004-09-15 Per Bothner <per@bothner.com> |
256 | ||
257 | * include/line-map.h (line_map_start): Add parameter names so | |
258 | preceding comment makes sense. | |
259 | (linemap_add): Remove from comment mention of non-existing parameter. | |
260 | ||
d6d3c909 | 261 | 2004-09-09 Matt Austern <austern@apple.com> |
262 | Zack Weinberg <zack@codesourcery.com> | |
263 | ||
264 | * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_ | |
265 | prefixes throughout. Add entry for PRAGMA. Remove | |
266 | unnecessary "= 0" from EQ. | |
267 | (enum cpp_ttype): Adjust OP and TK definitions to restore | |
268 | prefixes, via token-paste. | |
269 | (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP): | |
270 | Change from #defines to additional cpp_ttype enumerators. | |
271 | (struct cpp_options): Add defer_pragmas. | |
272 | (cpp_handle_deferred_pragma): Prototype new interface. | |
273 | ||
274 | * internal.h (struct cpp_reader): Add directive_result. | |
275 | * directives.c (struct pragma_entry): Add is_internal field; | |
276 | give boolean fields type bool. | |
277 | (start_directive): Initialize pfile->directive_result.type. | |
278 | (_cpp_do__Pragma): Likewise. | |
279 | (run_directive): Do not crash if pfile->buffer->prev is NULL. | |
280 | (insert_pragma_entry): Add 'internal' argument; set new->is_internal | |
281 | from it. | |
282 | (register_pragma): New static function, bulk of former | |
283 | cpp_register_pragma here; add 'internal' argument, pass along | |
284 | to insert_pragma_entry. | |
285 | (cpp_register_pragma): Now a wrapper around register_pragma which | |
286 | always passes false for 'internal' argument. | |
287 | (_cpp_init_internal_pragmas): Call register_pragma directly, passing | |
288 | true for 'internal'. | |
289 | (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't | |
290 | an internal pragma, save text till the end of the line as a CPP_PRAGMA | |
291 | token instead of executing the pragma. | |
292 | (cpp_handle_deferred_pragma): New interface. | |
293 | * lex.c (token_spellings): Adjust OP and TK definitions to | |
294 | match changes to cpplib.h. | |
295 | (_cpp_lex_token): Check for a directive-result token and | |
296 | return it if present. | |
297 | (cpp_token_val_index): Handle CPP_PRAGMA. | |
298 | * macro.c (cpp_builtin_macro_text): Correct comment. | |
299 | (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma. | |
300 | ||
735a9bc4 | 301 | 2004-09-06 Serge Belyshev <belyshev@lubercy.com> |
302 | ||
303 | PR preprocessor/14699 | |
304 | * symtab.c (ht_dump_statistics): Change type of sum_of_squares | |
305 | from size_t to double. | |
306 | ||
25696d3f | 307 | 2004-08-28 Andreas Schwab <schwab@suse.de> |
308 | Andreas Jaeger <aj@suse.de> | |
309 | ||
310 | * configure.ac: Set PACKAGE correctly. | |
311 | * configure: Regenerated. | |
312 | ||
99439f5b | 313 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
314 | ||
315 | * Makefile.in: Add back top_builddir. | |
316 | ||
a668be26 | 317 | 2004-08-25 Paolo Bonzini <bonzini@gnu.org> |
318 | ||
319 | * configure.ac: Replace Automake macro invocations | |
320 | with manual Autoconf checks and substitutions. | |
321 | * configure: Regenerate. | |
322 | * aclocal.m4: Regenerate. | |
323 | * config.in: Regenerate. | |
324 | * Makefile.am: Removed. | |
325 | * Makefile.in: Heavy simplification and reorganization. | |
326 | ||
30e9913f | 327 | 2004-08-09 Mark Mitchell <mark@codesourcery.com> |
328 | ||
329 | * configure.ac (arm*-*-eabi*): New target. | |
330 | (arm*-*-symbianelf*): Likewise. | |
331 | * configure: Regenerated. | |
332 | ||
3b298764 | 333 | 2004-07-24 Bernardo Innocenti <bernie@develer.com> |
334 | ||
335 | * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove. | |
336 | * directives.c: Use XNEW-family macros from libiberty. | |
337 | * lex.c: Likewise. | |
338 | * macro.c: Likewise. | |
339 | * cpplib.h (cpp_deps_style): Export enum with name. | |
340 | ||
d6d3c909 | 341 | 2004-07-23 Matthias Klose <doko@debian.org> |
3b298764 | 342 | |
d6d3c909 | 343 | * init.c (init_library): Use PACKAGE for the text domain. |
1ed7d058 | 344 | |
821fa045 | 345 | 2004-07-16 Andris Pavenis <pavenis@latnet.lv> |
346 | ||
347 | PR preprocessor/16366 | |
348 | * internal.h (struct cpp_reader): New field dir_hash. | |
349 | * files.c (make_cpp_dir): Use dir_hash, not file_hash. | |
350 | (_cpp_init_files, _cpp_cleanup_files): Update for new field. | |
351 | ||
d80efa72 | 352 | 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk> |
353 | ||
354 | PR preprocessor/16192 | |
355 | PR preprocessor/15913 | |
356 | PR preprocessor/15572 | |
357 | * expr.c (_cpp_parse_expr): Handle remaining cases where an | |
358 | expression is missing. | |
359 | * init.c (post_options): Traditional cpp doesn't do // comments. | |
360 | ||
ed000086 | 361 | 2004-06-30 Per Bothner <per@bothner.com> |
362 | ||
363 | * include/line-map.h (fileline): Remove old typedef. | |
364 | * internal.h (struct cpp_reader): Use source_location typedef instead. | |
365 | ||
dcb9d064 | 366 | 2004-06-26 Zack Weinberg <zack@codesourcery.com> |
367 | ||
368 | Partially revert patch of 2004-06-05. | |
369 | * files.c (search_cache): Remove pfile argument. Don't check | |
370 | for file that would be found by "" or <> search here... | |
371 | (_cpp_find_file): ...do it here, before calling find_file_in_dir. | |
372 | Do not apply directory-of-current-file correction to files | |
373 | found by this check. Rearrange code slightly. | |
374 | ||
d718b525 | 375 | 2004-06-21 Geoffrey Keating <geoffk@apple.com> |
376 | ||
377 | * files.c (should_stack_file): Correct swapped parameters to call | |
378 | to cb.read_pch. | |
379 | * pch.c (cpp_valid_state): Handle -fpreprocessed. | |
380 | ||
79b68529 | 381 | 2004-06-15 Paolo Bonzini <bonzini@gnu.org> |
382 | ||
383 | * Makefile.in: Regenerate with automake 1.8.5. | |
384 | * aclocal.m4: Likewise. | |
385 | * configure: Regenerate. | |
386 | ||
151899c5 | 387 | 2004-06-11 Zack Weinberg <zack@codesourcery.com> |
388 | ||
389 | * configure.ac: Don't invoke ACX_HEADER_STDBOOL. | |
390 | * configure, config.in: Regenerate. | |
391 | * system.h: Unconditionally define bool as unsigned char, | |
392 | BOOL_BITFIELD as unsigned int. | |
393 | * .cvsignore: New file. | |
394 | ||
c39ed964 | 395 | 2004-06-09 Geoffrey Keating <geoffk@apple.com> |
396 | ||
397 | * traditional.c (push_replacement_text): Set macro->traditional. | |
398 | (save_replacement_text): Likewise. | |
399 | * pch.c (cpp_write_pch_state): Don't write list of defined macros. | |
400 | (struct save_macro_item): Delete. | |
401 | (struct save_macro_data): Use a character array not the previous | |
402 | structured format. | |
403 | (save_macros): Save macro as text not as internal structures. | |
404 | (cpp_prepare_state): Update for changes to save_macro_data. | |
405 | (cpp_read_state): Don't read macros defined in PCH. Restore | |
c84ca916 | 406 | -D macros as text. |
c39ed964 | 407 | * macro.c (create_iso_definition): Honour alloc_subobject. |
408 | Clear traditional flag. | |
409 | (_cpp_create_definition): Honour alloc_subobject. | |
410 | * lex.c (cpp_token_val_index): New. | |
411 | * internal.h: Include cpp-id-data.h. | |
412 | (uchar): Move definition to cpp-id-data.h. | |
413 | (U): Likewise. | |
414 | (cpp_macro): Likewise. | |
415 | * directives.c (struct answer): Move to cpp-id-data.h. | |
416 | (do_assert): Honour alloc_subobject. | |
c84ca916 | 417 | |
418 | * include/symtab.h (struct ht): Add field 'alloc_subobject'. | |
419 | * include/cpplib.h (struct cpp_string): Add GTY marker. | |
420 | (enum cpp_token_fld_kind): New. | |
421 | (struct cpp_token): Add GTY markers. | |
422 | (cpp_token_val_index): Prototype. | |
423 | (CPP_HASHNODE_VALUE_IDX): New. | |
424 | (struct cpp_hashnode): Don't skip fields of 'value' when marking. | |
425 | * include/cpp-id-data.h: New file. | |
c39ed964 | 426 | |
dd6e5561 | 427 | 2004-06-09 Paolo Bonzini <bonzini@gnu.org> |
428 | ||
429 | * Makefile.am (all-local): New. | |
430 | * Makefile.in: Regenerate. | |
431 | ||
8af0c78d | 432 | 2004-06-06 Roger Sayle <roger@eyesopen.com> |
433 | ||
434 | * Makefile.am (LIBICONV): Declare. | |
435 | (makedepend_LDADD): Use LIBICONV. | |
436 | * Makefile.in: Regenerate. | |
437 | ||
30302733 | 438 | 2004-06-05 Andrew Pinski <pinskia@physics.uc.edu> |
439 | ||
440 | * Makefile.am (LIBINTL): Declare | |
441 | (makedepend_LDADD): Use LIBINTL. | |
442 | * Makefile.in: Regenerate. | |
443 | ||
3eb3f293 | 444 | 2004-06-05 Zack Weinberg <zack@codesourcery.com> |
445 | ||
446 | * Makefile.am: Add makedepend. | |
447 | * Makefile.in, aclocal.m4: Regenerate. | |
448 | * charset.c: Insert a space to avoid a warning. | |
449 | * directives.c: Include mkdeps.h. | |
450 | (_cpp_handle_directive): Reenable macro expander if appropriate. | |
451 | (undefine_macros): Inline body of _cpp_free_definition for speed. | |
452 | Do not call undef callback or _cpp_warn_if_unused_macro. | |
453 | (cpp_get_deps): New interface. | |
454 | * files.c (search_cache): Add pfile argument. Check for file | |
455 | that would be found by "" or <> search here... | |
456 | (_cpp_find_file): ...not here. Correct recorded start_dir of | |
457 | files found by directory-of-current-file search that would be | |
458 | found by "" or <> search. | |
459 | * init.c (cpp_add_dependency_target): Delete. | |
460 | * internal.h (struct lexer_state): Add discarding_output flag. | |
461 | * lex.c (lex_identifier): Compute hash function while scanning. | |
462 | * macro.c (cpp_scan_nooutput): Disable macro expansion outside | |
463 | directives. | |
464 | * makedepend.c: New file. | |
465 | * mkdeps.c (struct deps): Add vpath vector. | |
466 | (apply_vpath, deps_add_vpath): New function. | |
467 | (deps_free): Free vpath vector. | |
468 | (deps_add_dep, deps_add_target): Use apply_vpath. | |
469 | * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH. | |
470 | (ht_lookup_with_hash): New function. | |
471 | * cpplib.h, mkdeps.h: Update prototypes. | |
472 | * symtab.h: Update prototypes. | |
473 | (HT_HASHSTEP, HT_FINISH): New macros. | |
474 | ||
8ed01400 | 475 | 2004-05-29 Geoffrey Keating <geoffk@apple.com> |
476 | ||
477 | * symtab.c (ht_create): Set entries_owned. | |
478 | (ht_destroy): Honour entries_owned. | |
479 | (ht_expand): Likewise. | |
480 | (ht_load): New. | |
c84ca916 | 481 | * include/symtab.h (struct ht): New field 'entries_owned' |
482 | (ht_load): New prototype. | |
8ed01400 | 483 | |
347a3ab5 | 484 | 2004-05-26 Paolo Bonzini <bonzini@gnu.org> |
485 | ||
486 | PR bootstrap/15651 | |
487 | * configure.ac: Fix m4 quoting when picking | |
488 | the size of HOST_WIDE_INT. | |
489 | * configure: Regenerate. | |
490 | ||
fc231f28 | 491 | 2004-05-25 Paolo Bonzini <bonzini@gnu.org> |
492 | ||
493 | * Makefile.am: the correct directory for | |
494 | gettext include files is given by @INCINTL@. | |
495 | * Makefile.in: Regenerate. | |
496 | ||
babfbd63 | 497 | 2004-05-24 Paolo Bonzini <bonzini@gnu.org> |
498 | ||
499 | * system.h [!ENABLE_NLS]: dgettext takes two | |
500 | parameters. | |
501 | ||
d856c8a6 | 502 | 2004-05-23 Paolo Bonzini <bonzini@gnu.org> |
503 | ||
504 | Moved libcpp from the gcc subdirectory to the toplevel. | |
505 | * Makefile.am: New file. | |
506 | * Makefile.in: Regenerate. | |
507 | * configure.ac: New file. | |
508 | * configure: Regenerate. | |
509 | * config.in: Regenerate. | |
510 | * charset.c: Moved from gcc/cppcharset.c. Add note about | |
511 | brokenness of input charset detection. Adjust for change | |
512 | in name of cppucnid.h. | |
513 | * errors.c: Moved from gcc/cpperror.c. Do not include intl.h. | |
514 | * expr.c: Moved from gcc/cppexp.c. | |
515 | * files.c: Moved from gcc/cppfiles.c. Do not include intl.h. | |
516 | Remove #define of O_BINARY, it is in system.h. | |
517 | * identifiers.c: Moved from gcc/cpphash.c. | |
518 | * internal.h: Moved from gcc/cpphash.h. Change header | |
519 | guard name. All other files adjusted to match name change. | |
520 | * init.c: Moved from gcc/cppinit.c. | |
521 | (init_library) [ENABLE_NLS]: Call bindtextdomain. | |
522 | * lex.c: Moved from gcc/cpplex.c. | |
523 | * directives.c: Moved from gcc/cpplib.c. | |
524 | * macro.c: Moved from gcc/cppmacro.c. | |
525 | * pch.c: Moved from gcc/cpppch.c. Do not include intl.h. | |
526 | * traditional.c: Moved from gcc/cpptrad.c. | |
527 | * ucnid.h: Moved from gcc/cppucnid.h. Change header | |
528 | guard name. | |
529 | * ucnid.pl: Moved from gcc/cppucnid.pl. | |
530 | * ucnid.tab: Moved from gcc/cppucnid.tab. Change header | |
531 | guard name. | |
532 | * symtab.c: Moved from gcc/hashtable.c. | |
533 | * line-map.c: Moved from gcc. Do not include intl.h. | |
534 | * mkdeps.c: Moved from gcc. | |
535 | * system.h: New file. | |
c84ca916 | 536 | * include/cpplib.h: Moved from gcc. Change header guard name. |
537 | * include/line-map.h: Moved from gcc. Change header guard name. | |
538 | * include/mkdeps.h: Moved from gcc. Change header guard name. | |
539 | * include/symtab.h: Moved from gcc/hashtable.h. Change header | |
540 | guard name. |