1 2005-06-13 Zack Weinberg <zack@codesourcery.com>
3 * configure.ac: Invoke ZW_CREATE_DEPDIR and
4 ZW_PROG_COMPILER_DEPENDENCIES.
5 * aclocal.m4, configure: Regenerate.
6 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE):
8 (distclean): Clean up $(DEPDIR) and its contents.
9 (.c.o): Use $(COMPILE).
10 Include $(DEPDIR)/*.Po for most object->header dependencies.
12 2005-05-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
14 * configure.ac: Check declarations for asprintf and vasprintf.
15 * config.in: Regenerate.
16 * configure: Likewise.
18 * charset.c (conversion_loop): Use XRESIZEVEC.
19 (convert_no_conversion): Likewise.
20 (convert_using_iconv): Likewise.
21 (init_iconv_desc): Cast return value of alloca.
22 (cpp_host_to_exec_charset): Use XNEWVEC.
23 (emit_numeric_escape): Use XRESIZEVEC.
24 (cpp_interpret_string): Use XNEWVEC.
25 (cpp_interpret_string): Use XRESIZEVEC.
26 (_cpp_interpret_identifier): Cast return value of alloca.
27 (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC.
28 * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC.
29 (parse_include): Use XNEWVEC.
30 (insert_pragma_entry): Rename local variable "new" to
32 (save_registered_pragmas): Cast return value of xmemdup.
33 (destringize_and_run): Same for alloca.
34 (parse_assertion): Likewise.
35 (do_assert): Cast allocated storage to proper type.
36 (cpp_define): Likewise.
37 (_cpp_define_builtin): Likewise.
38 (cpp_undef): Likewise.
39 (handle_assertion): Likewise.
40 (cpp_push_buffer): Rename local variable "new" to "new_buffer".
41 * expr.c (CPP_UPLUS): Cast value to type cpp_ttype.
42 (CPP_UMINUS): Likewise.
43 (struct cpp_operator): Rename from struct operator.
44 (_cpp_expand_op_stack): Use XRESIZEVEC.
45 * files.c (pch_open_file): Use XNEWVEC.
46 (pch_open_file): Use XRESIZEVEC.
47 (read_file_guts): Use XNEWVEC and XRESIZEVEC.
48 (dir_name_of_file): Use XNEWVEC.
49 (make_cpp_file): Use XCNEW.
50 (make_cpp_dir): Likewise.
51 (allocate_file_hash_entries): USE XNEWVEC.
52 (cpp_included): Cast return value of htab_find_with_hash.
53 (append_file_to_dir): Use XNEWVEC.
54 (read_filename_string): Likewise. Use XRESIZEVEC too.
55 (read_name_map): Cast return value of alloca. Use XRESIZEVEC.
56 (remap_filename): Use XNEWVEC.
57 (struct pchf_entry): Move definition out of struct pchf_data.
58 (_cpp_save_file_entries): Use XCNEWVAR.
59 (_cpp_read_file_entries): Use XNEWVAR.
60 * identifiers.c (alloc_node): Use XOBNEW.
61 * init.c (cpp_create_reader): Use XCNEW.
62 (cpp_init_builtins): Cast of b->value to enum builtin_type.
63 (read_original_directory): Cast return value of alloca.
64 * lex.c (add_line_note): Use XRESIZEVEC.
65 (warn_about_normalization): Use XNEWVEC.
66 (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype).
67 (new_buff): Use XNEWVEC.
68 * line-map.c (linemap_add): Use XRESIZEVEC.
69 * macro.c (builtin_macro): Cast return value of alloca.
70 (paste_tokens): Likewise.
71 (expand_arg): Use XNEWVEC and XRESIZEVEC.
72 (_cpp_save_parameter): Use XRESIZEVEC.
73 (create_iso_definition): Cast allocated storage to proper type.
74 (_cpp_create_definition): Likewise.
75 (cpp_macro_definition): Use XRESIZEVEC.
76 * makedepend.c (add_clm): Use XNEW.
78 * mkdeps.c (munge): Use XNEWVEC.
79 (deps_init): Use XCNEW.
80 (deps_add_target): Use XRESIZEVEC.
81 (deps_add_default_target): Cast return value of alloca.
82 (deps_add_dep): Use XRESIZEVEC.
83 (deps_add_vpath): Likewise. Use XNEWVEC too.
84 (deps_restore): Likewise.
85 * pch.c (save_idents): Use XNEW and XNEWVEC.
86 (cpp_save_state): Use XNEW.
87 (count_defs): Cast return value of htab_find.
88 (write_defs): Likewise.
89 (cpp_write_pch_deps): Use XNEWVEC.
90 (collect_ht_nodes): Use XRESIZEVEC.
91 (cpp_valid_state): Use XNEWVEC.
92 (save_macros): Use XRESIZEVEC. Cast return value of xmemdup.
93 * symtab.c (ht_create): Use XCNEW.
94 (ht_lookup_with_hash): Cast return value of obstack_copy0.
95 (ht_expand): Use XCNEWVEC.
96 * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus.
97 (bool): Do not define if __cplusplus.
99 2005-05-12 Zack Weinberg <zack@codesourcery.com>
101 * directives.c (#sccs table entry): Mark IN_I, consistent with #ident.
102 (do_sccs): Delete function definition, #define to do_ident.
103 (do_ident): Don't hardwire directive name.
105 2005-05-12 Ryota Kunisawa <kunisawa@access.co.jp>
108 * configure: Regenerate.
110 2005-04-27 Andris Pavenis <pavenis@latnet.lv>
112 * files.c: Include io.h for DJGPP to get prototype of setmode.
114 2005-04-19 Per Bothner <per@bothner.com>
116 PR preprocessor/20907
117 * line-map.c (linemap_line_start): Fix bug when we need to increse
118 column_bits but can re-use the current line_map.
120 2005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
122 * system.h (fopen, fdopen, freopen): Define these to the unlocked
125 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
127 * configure.ac (libcpp_UNLOCKED_FUNCS): New.
128 (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS.
129 * system.h (putchar, getc, getchar, clearerr, feof, fileno,
130 fflush, fgetc, fgets, ferror, fread): Redefine to the associated
132 (fwrite_unlocked): Fix prototype.
134 * configure, config.in: Regenerate.
136 2005-04-05 Jakub Jelinek <jakub@redhat.com>
138 PR preprocessor/19475
139 * macro.c (create_iso_definition): For < ISO C99, don't
140 pedwarn if there is no whitespace between macro name and its
141 replacement, but the replacement starts with a basic character
144 2005-03-28 Andreas Jaeger <aj@suse.de>
146 * lex.c (warn_about_normalization): Cast field width to int to
149 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
151 * configure.ac: Consistently use solaris2.1[0-9]* instead of
153 * configure: Regenerate.
155 2005-03-15 Geoffrey Keating <geoffk@apple.com>
157 * charset.c (_cpp_valid_ucn): In identifiers, reject a partial
158 UCN rather than printing an error.
160 2005-03-14 Geoffrey Keating <geoffk@apple.com>
162 * lex.c (forms_identifier_p): Disable UCNs in C89 mode.
164 2005-03-14 Geoffrey Keating <geoffk@apple.com>
166 * init.c (cpp_create_reader): Default warn_normalize to normalized_C.
167 * charset.c: Update for new format of ucnid.h.
168 (ucn_valid_in_identifier): Update for new format of ucnid.h.
169 Add NST parameter, and update it; update callers.
170 (cpp_valid_ucn): Add NST parameter, update callers. Replace abort
172 (convert_ucn): Pass normalize_state to cpp_valid_ucn.
173 * internal.h (struct normalize_state): New.
174 (INITIAL_NORMALIZE_STATE): New.
175 (NORMALIZE_STATE_RESULT): New.
176 (NORMALIZE_STATE_UPDATE_IDNUM): New.
177 (_cpp_valid_ucn): New.
178 * lex.c (warn_about_normalization): New.
179 (forms_identifier_p): Add normalize_state parameter, update callers.
180 (lex_identifier): Add normalize_state parameter, update callers. Keep
182 (lex_number): Likewise.
183 (_cpp_lex_direct): Pass normalize_state to subroutines. Check
184 it with warn_about_normalization.
188 * ucnid.tab: Make appropriate for input to makeucnid.c. Remove
189 comments about obsolete version of C++.
190 * include/cpplib.h (enum cpp_normalize_level): New.
191 (struct cpp_options): Add warn_normalize field.
193 2005-03-11 Geoffrey Keating <geoffk@apple.com>
195 * directives.c (glue_header_name): Update call to cpp_spell_token.
196 * internal.h (_cpp_interpret_identifier): New.
197 * charset.c (_cpp_interpret_identifier): New.
198 (_cpp_valid_ucn): Allow UCN version of '$'.
199 * lex.c (lex_identifier): Add extra parameter to indicate if initial
200 character was '$' or '\'. Support identifiers with UCNs.
201 (forms_identifier_p): Allow UCNs.
202 (_cpp_lex_direct): Pass extra parameter to lex_identifier.
204 (cpp_spell_token): Add FORSTRING parameter. Use it.
205 (cpp_token_as_text): Update call to cpp_spell_token.
206 (cpp_output_token): Write UCNs back out.
207 (stringify_arg): Update call to cpp_spell_token.
208 (paste_tokens): Likewise.
209 (cpp_macro_definition): Likewise.
210 * macro.c (stringify_arg): Likewise.
211 (paste_tokens): Likewise.
212 (cpp_macro_definition): Likewise.
213 * include/cpplib.h: Add parameter to cpp_spell_token.
215 2005-03-04 Jakub Jelinek <jakub@redhat.com>
219 * macro.c (replace_args, cpp_get_token): Copy whole
220 cpp_token_u instead of just cpp_string field from it.
222 2005-02-28 Devang Patel <dpatel@apple.com>
224 * directives.c (do_line): Save sysp early before line table is
227 2005-02-20 Zack Weinberg <zack@codesourcery.com>
230 * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
231 (cpp_host_to_exec_charset): New function.
232 * include/cpplib.h: Declare cpp_host_to_exec_charset.
234 2005-02-19 Devang Patel <dpatel@apple.com>
236 * charset.c (_cpp_convert_input): Check '\r' before inserting
239 2005-02-15 Eric Christopher <echristo@redhat.com>
241 PR preprocessor/19077
242 * macro.c (cpp_macro_definition): Move handling of whitespace
243 to PREV_WHITE conditional. Remove overloading of len
246 2005-02-14 Kazu Hirata <kazu@cs.umass.edu>
248 * directives.c, files.c, init.c, internal.h, macro.c, pch.c,
249 traditional.c: Update copyright.
251 2005-02-14 Paolo Bonzini <bonzini@gnu.org>
254 * configure.ac: Check for declaration of basename and getopt.
255 * config.in: Regenerate.
256 * configure: Regenerate.
257 * internal.h (ustrcspn): New.
258 * macro.c (create_iso_definition): Fix allocation of memory.
259 (padding_token): Add cast to remove const-ness.
260 * pch.c (cpp_read_state): Use ustrcspn.
262 2005-02-08 Mike Stump <mrs@apple.com>
264 * files.c (pchf_adder): Remove.
265 (struct pchf_adder_info): Likewise.
266 (_cpp_save_file_entries): Write out all files so that #import works.
268 2005-01-23 Joseph S. Myers <joseph@codesourcery.com>
270 * configure: Regenerate.
272 2005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
274 * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
276 * include/cpplib.h: Also update copyright years.
278 2005-01-03 Geoffrey Keating <geoffk@apple.com>
280 * files.c (_cpp_find_file): Add files found by search_path_exhausted
281 to the list of all files.
283 2005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
285 * internal.h: Update references to Cpp lib filenames.
286 * directives.c: Likewise.
289 * traditional.c: Likewise.
291 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
293 PR preprocessor/15167
294 * files.c (destroy_cpp_file): New function.
295 (should_stack_file): Make a new file if the
296 compared file is still stacked.
298 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
300 PR preprocessor/17610
301 * directives.c (do_include_common): Error out if an empty filename
302 is given for #include (or #include_next or #import).
304 2004-11-27 Roger Sayle <roger@eyesopen.com>
305 Zack Weinberg <zack@codesourcery.com>
307 * internal.h: Replace all uses of uchar with unsigned char.
308 * include/cpp-id-data.h: Likewise. Guard typedef of uchar
309 with !IN_GCC, so uchar is only defined whilst building libcpp.
311 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
313 * aclocal.m4: Regenerate.
315 2004-11-24 Roger Sayle <roger@eyesopen.com>
317 PR preprocessor/15824
318 * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
319 directly, instead of the non-existant "system.h" and "ansidecl.h".
320 * configure: Regenerate.
322 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
323 Joseph Myers <joseph@codesourcery.com>
325 * internal.h (struct lexer_state): Add in_deferred_pragma.
326 * directives.c (struct pragma_entry): Add allow_expansion.
327 (insert_pragma_entry): Take allow_expansion flag.
328 (register_pragma): Likewise.
329 (cpp_register_pragma): Likewise.
330 (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
331 (do_pragma): Honor allow_expansion.
332 (cpp_handle_deferred_pragma): Set in_deferred_pragma.
333 * include/cpplib.h (cpp_register_pragma): Update prototype.
335 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
336 Mark Mitchell <mark@codesourcery.com>
338 * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
339 need_64bit_hwint=yes.
340 * configure: Regenerate.
342 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
344 * Makefile.in ($(PACKAGE).pot): New rule. Depend on
346 (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
347 arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
348 Remove local srcdir path from generated file.
350 2004-11-04 Zack Weinberg <zack@codesourcery.com>
351 Gerald Pfeifer <gerald@pfeifer.com>
353 * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
356 2004-10-27 Zack Weinberg <zack@codesourcery.com>
359 * directives.c (do_pragma): Do not defer pragmas which are unknown.
360 (cpp_handle_deferred_pragma): Add cast to silence warning.
362 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
364 * errors.c (_cpp_begin_message): Print "error: " for errors.
366 2004-10-10 Andreas Jaeger <aj@suse.de>
368 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
369 * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
371 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
373 * pch.c (cpp_write_pch_state): Remove variable z as it is not
375 (cpp_read_state): Remove unused variables, m, d and mac_count.
377 2004-09-29 Per Bothner <per@bothner.com>
379 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
380 cb.line_change. Otherwise do_pragma will call the line_change
381 call-back with a meaningless line number.
383 2004-09-24 Zack Weinberg <zack@codesourcery.com>
385 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
386 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
387 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
388 * aclocal.m4, configure: Regenerate.
389 * init.c: Include localedir.h.
390 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
392 (.c.o): Use $(ALL_CFLAGS).
393 (localedir.h, localedir.hs): New rules.
394 (clean): Use rm -rf to remove directories.
395 (distclean): Also delete localedir.h and localedir.hs.
396 (init.o): Update dependencies.
398 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
400 * Makefile.in (aclocal.m4): Update dependencies.
401 * configure.ac (AC_CONFIG_MACRO_DIR): New.
402 * aclocal.m4, configure: Regenerate.
404 2004-09-17 Zack Weinberg <zack@codesourcery.com>
406 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
407 (_cpp_convert_input, _cpp_default_encoding): Add comments.
408 Some other comments in this file also tweaked.
410 * directives.c (do_pragma): Save current buffer position
411 before lexing the pragma keywords; don't call
412 _cpp_backup_tokens in the defer_pragmas case.
414 2004-09-15 Per Bothner <per@bothner.com>
416 * include/line-map.h (line_map_start): Add parameter names so
417 preceding comment makes sense.
418 (linemap_add): Remove from comment mention of non-existing parameter.
420 2004-09-09 Matt Austern <austern@apple.com>
421 Zack Weinberg <zack@codesourcery.com>
423 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
424 prefixes throughout. Add entry for PRAGMA. Remove
425 unnecessary "= 0" from EQ.
426 (enum cpp_ttype): Adjust OP and TK definitions to restore
427 prefixes, via token-paste.
428 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
429 Change from #defines to additional cpp_ttype enumerators.
430 (struct cpp_options): Add defer_pragmas.
431 (cpp_handle_deferred_pragma): Prototype new interface.
433 * internal.h (struct cpp_reader): Add directive_result.
434 * directives.c (struct pragma_entry): Add is_internal field;
435 give boolean fields type bool.
436 (start_directive): Initialize pfile->directive_result.type.
437 (_cpp_do__Pragma): Likewise.
438 (run_directive): Do not crash if pfile->buffer->prev is NULL.
439 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
441 (register_pragma): New static function, bulk of former
442 cpp_register_pragma here; add 'internal' argument, pass along
443 to insert_pragma_entry.
444 (cpp_register_pragma): Now a wrapper around register_pragma which
445 always passes false for 'internal' argument.
446 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
448 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
449 an internal pragma, save text till the end of the line as a CPP_PRAGMA
450 token instead of executing the pragma.
451 (cpp_handle_deferred_pragma): New interface.
452 * lex.c (token_spellings): Adjust OP and TK definitions to
453 match changes to cpplib.h.
454 (_cpp_lex_token): Check for a directive-result token and
455 return it if present.
456 (cpp_token_val_index): Handle CPP_PRAGMA.
457 * macro.c (cpp_builtin_macro_text): Correct comment.
458 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
460 2004-09-06 Serge Belyshev <belyshev@lubercy.com>
462 PR preprocessor/14699
463 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
464 from size_t to double.
466 2004-08-28 Andreas Schwab <schwab@suse.de>
467 Andreas Jaeger <aj@suse.de>
469 * configure.ac: Set PACKAGE correctly.
470 * configure: Regenerated.
472 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
474 * Makefile.in: Add back top_builddir.
476 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
478 * configure.ac: Replace Automake macro invocations
479 with manual Autoconf checks and substitutions.
480 * configure: Regenerate.
481 * aclocal.m4: Regenerate.
482 * config.in: Regenerate.
483 * Makefile.am: Removed.
484 * Makefile.in: Heavy simplification and reorganization.
486 2004-08-09 Mark Mitchell <mark@codesourcery.com>
488 * configure.ac (arm*-*-eabi*): New target.
489 (arm*-*-symbianelf*): Likewise.
490 * configure: Regenerated.
492 2004-07-24 Bernardo Innocenti <bernie@develer.com>
494 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
495 * directives.c: Use XNEW-family macros from libiberty.
498 * cpplib.h (cpp_deps_style): Export enum with name.
500 2004-07-23 Matthias Klose <doko@debian.org>
502 * init.c (init_library): Use PACKAGE for the text domain.
504 2004-07-16 Andris Pavenis <pavenis@latnet.lv>
506 PR preprocessor/16366
507 * internal.h (struct cpp_reader): New field dir_hash.
508 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
509 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
511 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
513 PR preprocessor/16192
514 PR preprocessor/15913
515 PR preprocessor/15572
516 * expr.c (_cpp_parse_expr): Handle remaining cases where an
517 expression is missing.
518 * init.c (post_options): Traditional cpp doesn't do // comments.
520 2004-06-30 Per Bothner <per@bothner.com>
522 * include/line-map.h (fileline): Remove old typedef.
523 * internal.h (struct cpp_reader): Use source_location typedef instead.
525 2004-06-26 Zack Weinberg <zack@codesourcery.com>
527 Partially revert patch of 2004-06-05.
528 * files.c (search_cache): Remove pfile argument. Don't check
529 for file that would be found by "" or <> search here...
530 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
531 Do not apply directory-of-current-file correction to files
532 found by this check. Rearrange code slightly.
534 2004-06-21 Geoffrey Keating <geoffk@apple.com>
536 * files.c (should_stack_file): Correct swapped parameters to call
538 * pch.c (cpp_valid_state): Handle -fpreprocessed.
540 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
542 * Makefile.in: Regenerate with automake 1.8.5.
543 * aclocal.m4: Likewise.
544 * configure: Regenerate.
546 2004-06-11 Zack Weinberg <zack@codesourcery.com>
548 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
549 * configure, config.in: Regenerate.
550 * system.h: Unconditionally define bool as unsigned char,
551 BOOL_BITFIELD as unsigned int.
552 * .cvsignore: New file.
554 2004-06-09 Geoffrey Keating <geoffk@apple.com>
556 * traditional.c (push_replacement_text): Set macro->traditional.
557 (save_replacement_text): Likewise.
558 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
559 (struct save_macro_item): Delete.
560 (struct save_macro_data): Use a character array not the previous
562 (save_macros): Save macro as text not as internal structures.
563 (cpp_prepare_state): Update for changes to save_macro_data.
564 (cpp_read_state): Don't read macros defined in PCH. Restore
566 * macro.c (create_iso_definition): Honour alloc_subobject.
567 Clear traditional flag.
568 (_cpp_create_definition): Honour alloc_subobject.
569 * lex.c (cpp_token_val_index): New.
570 * internal.h: Include cpp-id-data.h.
571 (uchar): Move definition to cpp-id-data.h.
573 (cpp_macro): Likewise.
574 * directives.c (struct answer): Move to cpp-id-data.h.
575 (do_assert): Honour alloc_subobject.
577 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
578 * include/cpplib.h (struct cpp_string): Add GTY marker.
579 (enum cpp_token_fld_kind): New.
580 (struct cpp_token): Add GTY markers.
581 (cpp_token_val_index): Prototype.
582 (CPP_HASHNODE_VALUE_IDX): New.
583 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
584 * include/cpp-id-data.h: New file.
586 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
588 * Makefile.am (all-local): New.
589 * Makefile.in: Regenerate.
591 2004-06-06 Roger Sayle <roger@eyesopen.com>
593 * Makefile.am (LIBICONV): Declare.
594 (makedepend_LDADD): Use LIBICONV.
595 * Makefile.in: Regenerate.
597 2004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
599 * Makefile.am (LIBINTL): Declare
600 (makedepend_LDADD): Use LIBINTL.
601 * Makefile.in: Regenerate.
603 2004-06-05 Zack Weinberg <zack@codesourcery.com>
605 * Makefile.am: Add makedepend.
606 * Makefile.in, aclocal.m4: Regenerate.
607 * charset.c: Insert a space to avoid a warning.
608 * directives.c: Include mkdeps.h.
609 (_cpp_handle_directive): Reenable macro expander if appropriate.
610 (undefine_macros): Inline body of _cpp_free_definition for speed.
611 Do not call undef callback or _cpp_warn_if_unused_macro.
612 (cpp_get_deps): New interface.
613 * files.c (search_cache): Add pfile argument. Check for file
614 that would be found by "" or <> search here...
615 (_cpp_find_file): ...not here. Correct recorded start_dir of
616 files found by directory-of-current-file search that would be
617 found by "" or <> search.
618 * init.c (cpp_add_dependency_target): Delete.
619 * internal.h (struct lexer_state): Add discarding_output flag.
620 * lex.c (lex_identifier): Compute hash function while scanning.
621 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
623 * makedepend.c: New file.
624 * mkdeps.c (struct deps): Add vpath vector.
625 (apply_vpath, deps_add_vpath): New function.
626 (deps_free): Free vpath vector.
627 (deps_add_dep, deps_add_target): Use apply_vpath.
628 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
629 (ht_lookup_with_hash): New function.
630 * cpplib.h, mkdeps.h: Update prototypes.
631 * symtab.h: Update prototypes.
632 (HT_HASHSTEP, HT_FINISH): New macros.
634 2004-05-29 Geoffrey Keating <geoffk@apple.com>
636 * symtab.c (ht_create): Set entries_owned.
637 (ht_destroy): Honour entries_owned.
638 (ht_expand): Likewise.
640 * include/symtab.h (struct ht): New field 'entries_owned'
641 (ht_load): New prototype.
643 2004-05-26 Paolo Bonzini <bonzini@gnu.org>
646 * configure.ac: Fix m4 quoting when picking
647 the size of HOST_WIDE_INT.
648 * configure: Regenerate.
650 2004-05-25 Paolo Bonzini <bonzini@gnu.org>
652 * Makefile.am: the correct directory for
653 gettext include files is given by @INCINTL@.
654 * Makefile.in: Regenerate.
656 2004-05-24 Paolo Bonzini <bonzini@gnu.org>
658 * system.h [!ENABLE_NLS]: dgettext takes two
661 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
663 Moved libcpp from the gcc subdirectory to the toplevel.
664 * Makefile.am: New file.
665 * Makefile.in: Regenerate.
666 * configure.ac: New file.
667 * configure: Regenerate.
668 * config.in: Regenerate.
669 * charset.c: Moved from gcc/cppcharset.c. Add note about
670 brokenness of input charset detection. Adjust for change
671 in name of cppucnid.h.
672 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
673 * expr.c: Moved from gcc/cppexp.c.
674 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
675 Remove #define of O_BINARY, it is in system.h.
676 * identifiers.c: Moved from gcc/cpphash.c.
677 * internal.h: Moved from gcc/cpphash.h. Change header
678 guard name. All other files adjusted to match name change.
679 * init.c: Moved from gcc/cppinit.c.
680 (init_library) [ENABLE_NLS]: Call bindtextdomain.
681 * lex.c: Moved from gcc/cpplex.c.
682 * directives.c: Moved from gcc/cpplib.c.
683 * macro.c: Moved from gcc/cppmacro.c.
684 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
685 * traditional.c: Moved from gcc/cpptrad.c.
686 * ucnid.h: Moved from gcc/cppucnid.h. Change header
688 * ucnid.pl: Moved from gcc/cppucnid.pl.
689 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
691 * symtab.c: Moved from gcc/hashtable.c.
692 * line-map.c: Moved from gcc. Do not include intl.h.
693 * mkdeps.c: Moved from gcc.
694 * system.h: New file.
695 * include/cpplib.h: Moved from gcc. Change header guard name.
696 * include/line-map.h: Moved from gcc. Change header guard name.
697 * include/mkdeps.h: Moved from gcc. Change header guard name.
698 * include/symtab.h: Moved from gcc/hashtable.h. Change header