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