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