1 2008-01-07 Fred Fish <fnf@specifix.com>
4 * traditional.c (replace_args_and_push): Add local variable
5 cxtquote, calculate the replacement text size assuming a
6 worst case of every input character quoted with backslash,
7 and properly handle output quoting of quote characters in
8 actual arguments used in function-like macros.
10 2008-01-03 Tom Tromey <tromey@redhat.com>
12 PR preprocessor/34602.
13 * directives.c (do_line): Don't try to spell EOF token.
14 (do_linemarker): Add comment.
16 2007-12-11 DJ Delorie <dj@redhat.com>
18 * charset.c (convert_using_iconv): Close out any shift states,
19 returning to the initial state.
21 2007-12-06 Tom Tromey <tromey@redhat.com>
24 * internal.h (struct cpp_reader) <file_hash_entries>: Changed
26 <file_hash_entries_allocated, file_hash_entries_used>: Removed.
27 * files.c (FILE_HASH_POOL_SIZE): New macro.
28 (struct file_hash_entry_pool): New.
29 (destroy_all_cpp_files): New function.
30 (allocate_file_hash_entries): Allocate a file_hash_entry_pool.
31 (new_file_hash_entry): Update.
32 (free_file_hash_entries): New function.
33 (_cpp_cleanup_files): Call free_file_hash_entries and
34 destroy_all_cpp_files.
35 (cpp_clear_file_cache): New function.
36 * include/cpplib.h (cpp_clear_file_cache): Declare.
38 2007-12-03 Tom Tromey <tromey@redhat.com>
40 PR preprocessor/34288:
41 * configure.ac, config.in: Rebuilt.
42 * configure.ac: Check for ssize_t.
44 2007-11-30 Tom Tromey <tromey@redhat.com>
46 PR preprocessor/32868:
47 * macro.c (_cpp_create_definition): Special case
50 2007-11-16 Michael Matz <matz@suse.de>
52 * files.c (search_path_head): Fix check for absolute paths.
54 2007-11-11 Tom Tromey <tromey@redhat.com>
57 * include/cpplib.h (cpp_included_before): Declare.
58 * files.c (struct file_hash_entry) <location>: New field.
59 (_cpp_find_file): Initialize new field.
60 (make_cpp_dir): Likewise.
61 (cpp_included_before): New function.
63 2007-11-01 Tom Tromey <tromey@redhat.com>
65 PR preprocessor/30805:
66 * macro.c (paste_tokens): Handle padding token.
67 (paste_tokens): Don't abort unless padding has PASTE_LEFT flag.
69 2007-10-31 Tom Tromey <tromey@redhat.com>
71 PR preprocessor/30786:
72 * macro.c (builtin_macro): Return result of _cpp_do__Pragma.
73 * directives.c (_cpp_do__Pragma): Return error status.
74 * internal.h (_cpp_do__Pragma): Update.
75 * directives.c (get__Pragma_string): Back up if EOF seen.
77 2007-09-06 Tom Tromey <tromey@redhat.com>
79 * internal.h (struct cpp_reader) <invocation_location>: New
81 (struct cpp_reader) <set_invocation_location>: Likewise.
82 * init.c (cpp_set_line_map): New function.
83 * line-map.c (linemap_add): Use linemap's allocator.
84 * include/line-map.h (GTY): Define.
85 (line_map_realloc): New typedef.
86 (struct line_map): Mark with GTY.
87 (struct line_maps): Likewise.
88 (struct line_maps) <maps>: Likewise.
89 (struct line_maps) <reallocator>: New field.
90 * include/symtab.h (GTY): Conditionally define.
91 * include/cpplib.h (cpp_set_line_map): Declare.
92 (cpp_get_token_with_location): Declare.
93 * macro.c (cpp_get_token): Set invocation_location on the reader.
94 (cpp_get_token_with_location): New function.
96 2007-08-30 Chao-ying Fu <fu@mips.com>
98 * expr.c (interpret_float_suffix): Support hr, r, lr, llr, uhr, ur,
99 ulr, ullr, hk, k, lk, llk, uhk, uk, ulk, ullk.
100 (cpp_classify_number): Support decimal fixed-point constants without
102 Warn about fixed-point constants when -pedantic.
103 * include/cpplib.h (CPP_N_SMALL, CPP_N_MEDIUM, CPP_N_LARGE): Change
104 comments to support fixed-point values.
105 (CPP_N_FRACT, CPP_N_ACCUM): Define.
107 2007-08-18 Tom Tromey <tromey@redhat.com>
109 PR preprocessor/32974:
110 * directives.c (parse_include): Don't check for EOL when
111 processing #pragma dependency.
113 2007-07-30 Ollie Wild <aaw@google.com>
115 * directives-only.c: New file.
116 * internal.h (struct _cpp_dir_only_callbacks): New.
117 (_cpp_preprocess_dir_only): New function.
118 * directives.c (_cpp_handle_directive): Check directives_only before
119 disabling execution of indented directives.
120 * files.c (_cpp_stack_file): Add directives_only check.
121 * include/cpplib.h (struct cpp_options): Add directives_only.
122 (cpp_init_special_builtins): New function.
123 * init.c (cpp_init_special_builtins): New function.
124 (cpp_init_builtins): Move builtin_array initialization to
125 cpp_init_special_builtins.
126 (post_options): Check directives_only before setting
127 pfile->state.prevent_expansion = 1.
128 * macro.c (_cpp_builtin_macro_text): Print an error if __COUNTER__
129 is expanded inside a directive while -fdirectives-only is enabled.
130 * Makefile.in (libcpp_a_OBJS): Add directives-only.o.
131 (libcpp_a_SOURCES): Add directives-only.c.
133 2007-07-04 Uros Bizjak <ubizjak@gmail.com>
135 * traditional.c (_cpp_scan_out_logical_line): Initialize
136 fmacro.args, fmacro.node, fmacro.offset, fmacro.line and
137 fmacro.args to prevent 'may be used uninitialized' warning.
139 2007-07-03 Uros Bizjak <ubizjak@gmail.com>
141 * include/cpplib.h (CPP_N_WIDTH_MD, CPP_N_MD_W, CPP_N_MD_Q):
143 * expr.c (interpret_float_suffix): Process 'w', 'W', 'q' and 'Q'
144 suffixes. Return CPP_N_MD_W for 'w' or 'W' suffixes and CPP_N_MD_Q
145 for 'q' or 'Q' suffixes.
147 2007-06-17 Danny Smith <dannysmith@users.sourceforge.net
149 * files.c (open_file): Correct typo.
151 2007-06-16 Vladimir Prus <vladimir@codesourcery.com>
153 * files.c (open_file): Prevent the call
154 for stat from overwriting errno.
156 2007-06-09 Vladimir Prus <vladimir@codesourcery.com>
158 * files.c (open_file): Account for the
159 fact that on windows, opening a directory gives
162 2007-06-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
164 PR preprocessor/23479
165 * expr.c (cpp_classify_number): Implement 0b-prefixed binary
167 (append_digit): Likewise.
168 * include/cpplib.h: Add CPP_N_BINARY, to be used for 0b-prefixed
169 binary integer constants.
171 2007-05-31 Dave Korn <dave.korn@artimi.com>
173 PR preprocessor/14331
174 * lex.c (_cpp_get_fresh_line): Don't warn if no newline at EOF.
176 2007-05-24 Ollie Wild <aaw@google.com>
178 * macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER.
179 * pch.c (cpp_write_pch_deps): Save __COUNTER__ state.
180 (cpp_write_pch_state): Save __COUNTER__ state.
181 (cpp_valid_state): Check valid __COUNTER__ state.
182 (cpp_read_state): Read new __COUNTER__ state.
183 * include/cpplib.h (enum builtin_type): Add BT_COUNTER enumerator.
184 * init.c (builtin_array): Add __COUNTER__/BT_COUNTER.
185 * internal.h (struct cpp_reader): Add counter member.
187 2007-05-23 Simon Martin <simartin@users.sourceforge.net>
189 PR preprocessor/20077
190 * macro.c (create_iso_definition): Fixed the method to determine
191 whether the token-pasting operator appears at the beginning or the end
194 2007-05-21 Ian Lance Taylor <iant@google.com>
196 * internal.h (struct cpp_reader): Add new fields:
197 nonexistent_file_hash and nonexistent_file_ob.
198 * files.c: Include "obstack.h".
199 (find_file_in_dir): Before trying to open the file, look up the
200 path name in the hash table of nonexistent files. After failing
201 to open the file, add the path name to the hash table.
202 (_cpp_find_file): Cache the results of looking up the file name
203 starting with the quote and bracket chain heads, if we can.
204 (nonexistent_file_hash_eq): New static function.
205 (_cpp_init_files): Initialize pfile->nonexistent_file_hash and
206 pfile->nonexistent_file_ob.
207 (_cpp_cleanup_files): Free pfile->nonexistent_file_hash and
208 pfile->nonexistent_file_ob.
210 2007-05-14 Janis Johnson <janis187@us.ibm.com>
212 * expr.c (cpp_classify_number): Warn about dfp constant for -pedantic.
215 * expr.c (interpret_float_suffix): Check for invalid suffix.
217 2007-05-02 Eric Christopher <echristo@apple.com>
219 * expr.c (num_div_op): Don't overflow if the result is
222 2007-05-02 Tom Tromey <tromey@redhat.com>
224 PR preprocessor/28709:
225 * macro.c (paste_tokens): Remove PASTE_LEFT from the old lhs.
227 2007-03-30 Michael Meissner <michael.meissner@amd.com>
229 * directives.c (lex_macro_node_from_str): Fix alloca call to be
232 2007-03-30 Richard Henderson <rth@redhat.com>
234 * directives.c (lex_macro_node_from_str): New.
235 (cpp_push_definition, cpp_pop_definition): New.
236 * include/cpplib.h (cpp_push_definition, cpp_pop_definition): Declare.
238 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
240 * Makefile.in: Add dummy install-pdf target.
242 2007-01-30 Tom Tromey <tromey@redhat.com>
244 PR preprocessor/30468:
245 * mkdeps.c (apply_vpath): Strip successive '/'s if we stripped
248 2007-01-30 Tom Tromey <tromey@redhat.com>
250 PR preprocessor/29966:
251 * macro.c (lex_expansion_token): Save and restore cpp_reader's
253 (_cpp_create_definition): Don't restore cur_token here.
254 * lex.c (_cpp_lex_token): Added assertion.
256 2007-01-27 Tom Tromey <tromey@redhat.com>
258 * configure: Rebuilt.
260 2007-01-12 Tom Tromey <tromey@redhat.com>
262 PR preprocessor/28227:
263 * directives.c (lex_macro_node): Added 'is_def_or_undef'
270 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
272 * configure: Regenerate.
274 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
276 * configure: Regenerate.
278 2007-01-04 Tom Tromey <tromey@redhat.com>
280 PR preprocessor/28165:
281 * internal.h (cpp_in_primary_file): New function.
282 * directives.c (do_include_next): Use cpp_in_primary_file.
283 (do_pragma_once): Likewise.
284 (do_pragma_system_header): Likewise.
286 2006-12-29 Ian Lance Taylor <iant@google.com>
288 * lex.c (_cpp_clean_line): Add uses of __builtin_expect. Don't
289 look backward at the end of the line unless we saw a backslash.
291 2006-12-29 Jakub Jelinek <jakub@redhat.com>
293 PR preprocessor/29612
294 * directives.c (do_linemarker): Set pfile->buffer->sysp always, not
295 only when new_sysp is non-zero.
297 2006-12-28 Tom Tromey <tromey@redhat.com>
299 PR preprocessor/30001:
300 * charset.c (_cpp_convert_input): Check that to.len is greater
303 2006-11-20 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
305 * configure.ac (need_64bit_hwint): Need 64bit hwint for SPU.
306 * configure: Rebuilt.
308 2006-11-01 Douglas Gregor <doug.gregor@gmail.com>
310 * include/cpplib.h (enum c_lang): Add CLK_GNUCXX0X and CLK_CXX0X
311 for experimental C++0x mode.
312 * init.c (lang_defaults): Add defaults for C++0x modes. C++0x has
313 adopted the preprocessor changes introduced in C99.
315 2006-10-29 Joseph Myers <joseph@codesourcery.com>
317 * configure.ac (need_64bit_hwint): Set for i[34567]86-*-linux*
318 depending on --enable-targets=all.
319 * configure: Regenerate.
321 2006-10-12 Jakub Jelinek <jakub@redhat.com>
323 PR preprocessor/28709
324 * macro.c (paste_tokens): Do error reporting here, use BUF with the
325 spelled LHS token as opposed to spelling it again.
326 (paste_all_tokens): Don't report errors here, just break on failure.
328 2006-10-10 Brooks Moses <bmoses@stanford.edu>
330 * Makefile.in: Added empty "pdf" target.
332 2006-09-22 Geoffrey Keating <geoffk@apple.com>
334 * configure.ac: Make need_64_bit_hwint case for x86-darwin
335 match exactly the glob in gcc/config.gcc.
336 * configure: Regenerate.
338 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
341 PR preprocessor/14634
342 * lex.c (lex_string): Pedwarn for unterminated literals.
344 2006-09-08 Eric Christopher <echristo@apple.com>
346 * configure.ac: Add 64-bit HWI support for i?86-darwin.
348 2006-08-14 Steve Ellcey <sje@cup.hp.com>
352 * include/cpplib.h: Remove <?, >?, <?=, and >?= tokens.
353 (CPP_LAST_EQ): Change.
354 (CPP_LAST_PUNCTUATOR): Change.
355 * expr.c (cpp_operator): Remove MIN and MAX.
356 (reduce): Remove CPP_MIN and CPP_MAX.
357 (num_binary_op): Ditto.
358 * lex.c (_cpp_lex_direct): Ditto.
359 (cpp_avoid_paste): Remove ? as legal symbol after > or <.
361 2006-06-09 Jakub Jelinek <jakub@redhat.com>
363 PR preprocessor/27746
364 * directives.c (do_pragma): Handle pragma with valid namespace
365 and invalid name coming from macro expansion.
366 * directives.c (destringize_and_run): Initialize next field in
371 * directives.c (destringize_and_run): Set NO_EXPAND on the
374 * macro.c (_cpp_backup_tokens): Fix comment typo.
376 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
378 * Makefile.in (CATALOGS): Add po/ prefix.
379 * configure: Regenerated.
381 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
383 * Makefile.in: Add install-html target. Add install-html to .PHONY
385 2006-02-17 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
387 * macro.c (_cpp_builtin_macro_text): Handle BT_TIMESTAMP.
388 * files.c (_cpp_get_file_stat): New function.
389 * include/cpplib.h (builtin_type): Add BT_TIMESTAMP.
390 * init.c (builtin_array): Add support for __TIMESTAMP__/BT_TIMESTAMP.
391 * internal.h (_cpp_get_file_stat): Prototype.
392 (struct cpp_buffer): Add timestamp.
394 2006-01-23 Jakub Jelinek <jakub@redhat.com>
396 PR preprocessor/25717
397 * init.c (cpp_init_builtins): If __STDC__ will not change value
398 between system headers and other sources, define it as a normal
399 macro rather than a builtin.
400 * macro.c (_cpp_builtin_macro_text) <case BT_STDC>: Only check
401 cpp_in_system_header condition.
403 2006-01-05 Paolo Bonzini <bonzini@gnu.org>
405 * Makefile.in: Use -MMD instead of -MD.
407 2006-01-04 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
408 Richard Henderson <rth@redhat.com>
410 Merge from gomp branch:
411 * directives.c (struct pragma_entry): Add is_deferred. Add ident
412 entry to value union.
413 (end_directive): Don't eat the line if in_deferred_pragma.
414 (run_directive): Remove pragma hacks.
415 (insert_pragma_entry): Remove.
416 (new_pragma_entry): New.
417 (register_pragma_1): Split out of register_pragma. Only handle
418 the lookup tree and return the new entry.
419 (cpp_register_pragma): Fill in the pragma entry here.
420 (cpp_register_deferred_pragma): New.
421 (register_pragma_internal): New.
422 (_cpp_init_internal_pragmas): Use register_pragma_internal.
423 (do_pragma): Allow pragma expansion after namespace. For deferred
424 pragmas, don't slurp the line into a string.
425 (destringize_and_run): Save tokens for deferred pragmas.
426 (cpp_handle_deferred_pragma): Remove.
427 * macro.c (builtin_macro): Remove pragma token hack.
428 (_cpp_push_token_context): Rename from push_token_context and export.
429 * internal.h (struct lexer_state): Add pragma_allow_expansion.
430 (_cpp_push_token_context): Declare.
431 * lex.c (_cpp_lex_token): Allow _cpp_handle_directive to return
432 a token. Update the line number correctly if so.
433 (_cpp_lex_direct): Emit CPP_PRAGMA_EOL tokens.
434 (cpp_token_val_index): Return CPP_TOKEN_FLD_PRAGMA for pragmas.
435 * include/cpplib.h (PRAGMA_EOL): New.
436 (CPP_TOKEN_FLD_PRAGMA): New.
437 (struct cpp_token): Add val.pragma.
438 (struct cpp_options): Remove defer_pragmas.
439 (cpp_handle_deferred_pragma): Remove.
440 (cpp_register_deferred_pragma): Declare.
442 2006-01-01 Jakub Jelinek <jakub@redhat.com>
445 * directives.c (do_pragma): If pragma line ends with multi-line
446 block comment, end the saved deferred pragma string before that
447 comment. Handle embedded '\0' chars on the pragma line.
449 2005-12-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
452 * include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure.
454 2005-12-07 Jon Grimm <jgrimm2@us.ibm.com>
455 Ben Elliston <bje@au.ibm.com>
457 * include/cpplib.h (CPP_N_DFLOAT): New.
458 * expr.c (interpret_float_suffix): Identify df, dd, and dl
459 suffixes as decimal floating point constants.
460 (cpp_classify_number): Disallow hexadecimal DFP constants.
462 2005-11-14 Gerald Pfeifer <gerald@pfeifer.com>
463 Ian Lance Taylor <ian@airs.com>
465 * include/cpplib.h (struct cpp_callbacks): Annotate error with
466 ATTRIBUTE_FPTR_PRINTF(3,0) instead of ATTRIBUTE_PRINTF(3,0).
468 2005-11-09 Per Bothner <per@bothner.com>
469 Uros Bizjak <uros@kss-loka.si>
472 * init.c (read_original_filename): Temporarily set
473 state.in_directive before calling _cpp_lex_direct for
476 2005-11-03 James E Wilson <wilson@specifix.com>
478 PR preprocessor/24202
479 * files.c (_cpp_pop_file_buffer): Set buffer_valid to false.
481 2005-11-04 Joseph S. Myers <joseph@codesourcery.com>
483 * include/cpplib.h (struct cpp_callbacks): Make error take
485 * errors.c (cpp_error): Update call to callback.
487 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
489 PR preprocessor/22042
490 * macro.c (_cpp_builtin_macro_text): Lower the needed max
492 (cpp_quote_string): Don't octalify non printable
495 2005-11-03 Joseph S. Myers <joseph@codesourcery.com>
498 * include/cpplib.h (struct cpp_options): Add client_diagnostic.
499 (struct cpp_callbacks): Add error.
500 * errors.c (cpp_error): If client_diagnostic, use error callback.
501 * charset.c (convert_escape): Don't use %03o in diagnostic.
503 2005-10-21 James E Wilson <wilson@specifix.com>
505 PR preprocessor/15220
506 * files.c (_cpp_find_file): New parameter angle_brackets. Fix all
507 callers. Pass to open_file_failed.
508 (open_file_failed): New parameter angle_brackets. Fix all callers.
509 Use in print_dep assignment.
510 * init.c (cpp_read_main_file): Pass additional arg to _cpp_find_file.
511 * internal.h (_cpp_find_file): Add new parm to declaration.
513 2005-10-08 Kazu Hirata <kazu@codesourcery.com>
515 * configure.ac: Require 64-bit int for arm*-*-*eabi*.
516 * configure: Regenerate.
518 2005-10-04 Ian Lance Taylor <ian@airs.com>
520 PR preprocessor/13726
521 * directives.c (check_eol_return_comments): New static function.
522 (parse_include): Add buf parameter. Change all callers.
523 (do_include_common): If not discard comments, turn on
524 save_comments. Pass collected comments to include callback.
525 * include/cpplib.h (struct cpp_callbacks): Add new parameter to
526 include callback: cpp_token list.
528 2005-09-20 Joseph S. Myers <joseph@codesourcery.com>
530 * include/cpplib.h (struct cpp_options): Add extended_identifiers.
531 * init.c (struct lang_flags, lang_defaults): Add
532 extended_identifiers.
533 (cpp_set_lang): Use it.
534 * lex.c (forms_identifier_p): Check extended_identifiers.
536 2005-08-30 Jakub Jelinek <jakub@redhat.com>
538 PR preprocessor/20348
539 PR preprocessor/20356
540 * files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and
543 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
545 * configure.ac (ACX_PROG_CC_WARNING_OPTS): add
546 -Wmissing-format-attribute.
548 * configure: Regenerate.
550 2005-06-29 Kelley Cook <kcook@gcc.gnu.org>
552 * all files: Update FSF address in copyright headers.
553 * makeucnid.c (write_copyright): Update outputted FSF address.
555 2005-06-13 Zack Weinberg <zack@codesourcery.com>
557 * configure.ac: Invoke ZW_CREATE_DEPDIR and
558 ZW_PROG_COMPILER_DEPENDENCIES.
559 * aclocal.m4, configure: Regenerate.
560 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE):
562 (distclean): Clean up $(DEPDIR) and its contents.
563 (.c.o): Use $(COMPILE).
564 Include $(DEPDIR)/*.Po for most object->header dependencies.
566 2005-05-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
568 * configure.ac: Check declarations for asprintf and vasprintf.
569 * config.in: Regenerate.
570 * configure: Likewise.
572 * charset.c (conversion_loop): Use XRESIZEVEC.
573 (convert_no_conversion): Likewise.
574 (convert_using_iconv): Likewise.
575 (init_iconv_desc): Cast return value of alloca.
576 (cpp_host_to_exec_charset): Use XNEWVEC.
577 (emit_numeric_escape): Use XRESIZEVEC.
578 (cpp_interpret_string): Use XNEWVEC.
579 (cpp_interpret_string): Use XRESIZEVEC.
580 (_cpp_interpret_identifier): Cast return value of alloca.
581 (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC.
582 * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC.
583 (parse_include): Use XNEWVEC.
584 (insert_pragma_entry): Rename local variable "new" to
586 (save_registered_pragmas): Cast return value of xmemdup.
587 (destringize_and_run): Same for alloca.
588 (parse_assertion): Likewise.
589 (do_assert): Cast allocated storage to proper type.
590 (cpp_define): Likewise.
591 (_cpp_define_builtin): Likewise.
592 (cpp_undef): Likewise.
593 (handle_assertion): Likewise.
594 (cpp_push_buffer): Rename local variable "new" to "new_buffer".
595 * expr.c (CPP_UPLUS): Cast value to type cpp_ttype.
596 (CPP_UMINUS): Likewise.
597 (struct cpp_operator): Rename from struct operator.
598 (_cpp_expand_op_stack): Use XRESIZEVEC.
599 * files.c (pch_open_file): Use XNEWVEC.
600 (pch_open_file): Use XRESIZEVEC.
601 (read_file_guts): Use XNEWVEC and XRESIZEVEC.
602 (dir_name_of_file): Use XNEWVEC.
603 (make_cpp_file): Use XCNEW.
604 (make_cpp_dir): Likewise.
605 (allocate_file_hash_entries): USE XNEWVEC.
606 (cpp_included): Cast return value of htab_find_with_hash.
607 (append_file_to_dir): Use XNEWVEC.
608 (read_filename_string): Likewise. Use XRESIZEVEC too.
609 (read_name_map): Cast return value of alloca. Use XRESIZEVEC.
610 (remap_filename): Use XNEWVEC.
611 (struct pchf_entry): Move definition out of struct pchf_data.
612 (_cpp_save_file_entries): Use XCNEWVAR.
613 (_cpp_read_file_entries): Use XNEWVAR.
614 * identifiers.c (alloc_node): Use XOBNEW.
615 * init.c (cpp_create_reader): Use XCNEW.
616 (cpp_init_builtins): Cast of b->value to enum builtin_type.
617 (read_original_directory): Cast return value of alloca.
618 * lex.c (add_line_note): Use XRESIZEVEC.
619 (warn_about_normalization): Use XNEWVEC.
620 (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype).
621 (new_buff): Use XNEWVEC.
622 * line-map.c (linemap_add): Use XRESIZEVEC.
623 * macro.c (builtin_macro): Cast return value of alloca.
624 (paste_tokens): Likewise.
625 (expand_arg): Use XNEWVEC and XRESIZEVEC.
626 (_cpp_save_parameter): Use XRESIZEVEC.
627 (create_iso_definition): Cast allocated storage to proper type.
628 (_cpp_create_definition): Likewise.
629 (cpp_macro_definition): Use XRESIZEVEC.
630 * makedepend.c (add_clm): Use XNEW.
632 * mkdeps.c (munge): Use XNEWVEC.
633 (deps_init): Use XCNEW.
634 (deps_add_target): Use XRESIZEVEC.
635 (deps_add_default_target): Cast return value of alloca.
636 (deps_add_dep): Use XRESIZEVEC.
637 (deps_add_vpath): Likewise. Use XNEWVEC too.
638 (deps_restore): Likewise.
639 * pch.c (save_idents): Use XNEW and XNEWVEC.
640 (cpp_save_state): Use XNEW.
641 (count_defs): Cast return value of htab_find.
642 (write_defs): Likewise.
643 (cpp_write_pch_deps): Use XNEWVEC.
644 (collect_ht_nodes): Use XRESIZEVEC.
645 (cpp_valid_state): Use XNEWVEC.
646 (save_macros): Use XRESIZEVEC. Cast return value of xmemdup.
647 * symtab.c (ht_create): Use XCNEW.
648 (ht_lookup_with_hash): Cast return value of obstack_copy0.
649 (ht_expand): Use XCNEWVEC.
650 * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus.
651 (bool): Do not define if __cplusplus.
653 2005-05-12 Zack Weinberg <zack@codesourcery.com>
655 * directives.c (#sccs table entry): Mark IN_I, consistent with #ident.
656 (do_sccs): Delete function definition, #define to do_ident.
657 (do_ident): Don't hardwire directive name.
659 2005-05-12 Ryota Kunisawa <kunisawa@access.co.jp>
662 * configure: Regenerate.
664 2005-04-27 Andris Pavenis <pavenis@latnet.lv>
666 * files.c: Include io.h for DJGPP to get prototype of setmode.
668 2005-04-19 Per Bothner <per@bothner.com>
670 PR preprocessor/20907
671 * line-map.c (linemap_line_start): Fix bug when we need to increse
672 column_bits but can re-use the current line_map.
674 2005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
676 * system.h (fopen, fdopen, freopen): Define these to the unlocked
679 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
681 * configure.ac (libcpp_UNLOCKED_FUNCS): New.
682 (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS.
683 * system.h (putchar, getc, getchar, clearerr, feof, fileno,
684 fflush, fgetc, fgets, ferror, fread): Redefine to the associated
686 (fwrite_unlocked): Fix prototype.
688 * configure, config.in: Regenerate.
690 2005-04-05 Jakub Jelinek <jakub@redhat.com>
692 PR preprocessor/19475
693 * macro.c (create_iso_definition): For < ISO C99, don't
694 pedwarn if there is no whitespace between macro name and its
695 replacement, but the replacement starts with a basic character
698 2005-03-28 Andreas Jaeger <aj@suse.de>
700 * lex.c (warn_about_normalization): Cast field width to int to
703 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
705 * configure.ac: Consistently use solaris2.1[0-9]* instead of
707 * configure: Regenerate.
709 2005-03-15 Geoffrey Keating <geoffk@apple.com>
711 * charset.c (_cpp_valid_ucn): In identifiers, reject a partial
712 UCN rather than printing an error.
714 2005-03-14 Geoffrey Keating <geoffk@apple.com>
716 * lex.c (forms_identifier_p): Disable UCNs in C89 mode.
718 2005-03-14 Geoffrey Keating <geoffk@apple.com>
720 * init.c (cpp_create_reader): Default warn_normalize to normalized_C.
721 * charset.c: Update for new format of ucnid.h.
722 (ucn_valid_in_identifier): Update for new format of ucnid.h.
723 Add NST parameter, and update it; update callers.
724 (cpp_valid_ucn): Add NST parameter, update callers. Replace abort
726 (convert_ucn): Pass normalize_state to cpp_valid_ucn.
727 * internal.h (struct normalize_state): New.
728 (INITIAL_NORMALIZE_STATE): New.
729 (NORMALIZE_STATE_RESULT): New.
730 (NORMALIZE_STATE_UPDATE_IDNUM): New.
731 (_cpp_valid_ucn): New.
732 * lex.c (warn_about_normalization): New.
733 (forms_identifier_p): Add normalize_state parameter, update callers.
734 (lex_identifier): Add normalize_state parameter, update callers. Keep
736 (lex_number): Likewise.
737 (_cpp_lex_direct): Pass normalize_state to subroutines. Check
738 it with warn_about_normalization.
742 * ucnid.tab: Make appropriate for input to makeucnid.c. Remove
743 comments about obsolete version of C++.
744 * include/cpplib.h (enum cpp_normalize_level): New.
745 (struct cpp_options): Add warn_normalize field.
747 2005-03-11 Geoffrey Keating <geoffk@apple.com>
749 * directives.c (glue_header_name): Update call to cpp_spell_token.
750 * internal.h (_cpp_interpret_identifier): New.
751 * charset.c (_cpp_interpret_identifier): New.
752 (_cpp_valid_ucn): Allow UCN version of '$'.
753 * lex.c (lex_identifier): Add extra parameter to indicate if initial
754 character was '$' or '\'. Support identifiers with UCNs.
755 (forms_identifier_p): Allow UCNs.
756 (_cpp_lex_direct): Pass extra parameter to lex_identifier.
758 (cpp_spell_token): Add FORSTRING parameter. Use it.
759 (cpp_token_as_text): Update call to cpp_spell_token.
760 (cpp_output_token): Write UCNs back out.
761 (stringify_arg): Update call to cpp_spell_token.
762 (paste_tokens): Likewise.
763 (cpp_macro_definition): Likewise.
764 * macro.c (stringify_arg): Likewise.
765 (paste_tokens): Likewise.
766 (cpp_macro_definition): Likewise.
767 * include/cpplib.h: Add parameter to cpp_spell_token.
769 2005-03-04 Jakub Jelinek <jakub@redhat.com>
773 * macro.c (replace_args, cpp_get_token): Copy whole
774 cpp_token_u instead of just cpp_string field from it.
776 2005-02-28 Devang Patel <dpatel@apple.com>
778 * directives.c (do_line): Save sysp early before line table is
781 2005-02-20 Zack Weinberg <zack@codesourcery.com>
784 * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
785 (cpp_host_to_exec_charset): New function.
786 * include/cpplib.h: Declare cpp_host_to_exec_charset.
788 2005-02-19 Devang Patel <dpatel@apple.com>
790 * charset.c (_cpp_convert_input): Check '\r' before inserting
793 2005-02-15 Eric Christopher <echristo@redhat.com>
795 PR preprocessor/19077
796 * macro.c (cpp_macro_definition): Move handling of whitespace
797 to PREV_WHITE conditional. Remove overloading of len
800 2005-02-14 Kazu Hirata <kazu@cs.umass.edu>
802 * directives.c, files.c, init.c, internal.h, macro.c, pch.c,
803 traditional.c: Update copyright.
805 2005-02-14 Paolo Bonzini <bonzini@gnu.org>
808 * configure.ac: Check for declaration of basename and getopt.
809 * config.in: Regenerate.
810 * configure: Regenerate.
811 * internal.h (ustrcspn): New.
812 * macro.c (create_iso_definition): Fix allocation of memory.
813 (padding_token): Add cast to remove const-ness.
814 * pch.c (cpp_read_state): Use ustrcspn.
816 2005-02-08 Mike Stump <mrs@apple.com>
818 * files.c (pchf_adder): Remove.
819 (struct pchf_adder_info): Likewise.
820 (_cpp_save_file_entries): Write out all files so that #import works.
822 2005-01-23 Joseph S. Myers <joseph@codesourcery.com>
824 * configure: Regenerate.
826 2005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
828 * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
830 * include/cpplib.h: Also update copyright years.
832 2005-01-03 Geoffrey Keating <geoffk@apple.com>
834 * files.c (_cpp_find_file): Add files found by search_path_exhausted
835 to the list of all files.
837 2005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
839 * internal.h: Update references to Cpp lib filenames.
840 * directives.c: Likewise.
843 * traditional.c: Likewise.
845 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
847 PR preprocessor/15167
848 * files.c (destroy_cpp_file): New function.
849 (should_stack_file): Make a new file if the
850 compared file is still stacked.
852 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
854 PR preprocessor/17610
855 * directives.c (do_include_common): Error out if an empty filename
856 is given for #include (or #include_next or #import).
858 2004-11-27 Roger Sayle <roger@eyesopen.com>
859 Zack Weinberg <zack@codesourcery.com>
861 * internal.h: Replace all uses of uchar with unsigned char.
862 * include/cpp-id-data.h: Likewise. Guard typedef of uchar
863 with !IN_GCC, so uchar is only defined whilst building libcpp.
865 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
867 * aclocal.m4: Regenerate.
869 2004-11-24 Roger Sayle <roger@eyesopen.com>
871 PR preprocessor/15824
872 * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
873 directly, instead of the non-existant "system.h" and "ansidecl.h".
874 * configure: Regenerate.
876 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
877 Joseph Myers <joseph@codesourcery.com>
879 * internal.h (struct lexer_state): Add in_deferred_pragma.
880 * directives.c (struct pragma_entry): Add allow_expansion.
881 (insert_pragma_entry): Take allow_expansion flag.
882 (register_pragma): Likewise.
883 (cpp_register_pragma): Likewise.
884 (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
885 (do_pragma): Honor allow_expansion.
886 (cpp_handle_deferred_pragma): Set in_deferred_pragma.
887 * include/cpplib.h (cpp_register_pragma): Update prototype.
889 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
890 Mark Mitchell <mark@codesourcery.com>
892 * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
893 need_64bit_hwint=yes.
894 * configure: Regenerate.
896 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
898 * Makefile.in ($(PACKAGE).pot): New rule. Depend on
900 (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
901 arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
902 Remove local srcdir path from generated file.
904 2004-11-04 Zack Weinberg <zack@codesourcery.com>
905 Gerald Pfeifer <gerald@pfeifer.com>
907 * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
910 2004-10-27 Zack Weinberg <zack@codesourcery.com>
913 * directives.c (do_pragma): Do not defer pragmas which are unknown.
914 (cpp_handle_deferred_pragma): Add cast to silence warning.
916 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
918 * errors.c (_cpp_begin_message): Print "error: " for errors.
920 2004-10-10 Andreas Jaeger <aj@suse.de>
922 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
923 * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
925 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
927 * pch.c (cpp_write_pch_state): Remove variable z as it is not
929 (cpp_read_state): Remove unused variables, m, d and mac_count.
931 2004-09-29 Per Bothner <per@bothner.com>
933 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
934 cb.line_change. Otherwise do_pragma will call the line_change
935 call-back with a meaningless line number.
937 2004-09-24 Zack Weinberg <zack@codesourcery.com>
939 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
940 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
941 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
942 * aclocal.m4, configure: Regenerate.
943 * init.c: Include localedir.h.
944 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
946 (.c.o): Use $(ALL_CFLAGS).
947 (localedir.h, localedir.hs): New rules.
948 (clean): Use rm -rf to remove directories.
949 (distclean): Also delete localedir.h and localedir.hs.
950 (init.o): Update dependencies.
952 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
954 * Makefile.in (aclocal.m4): Update dependencies.
955 * configure.ac (AC_CONFIG_MACRO_DIR): New.
956 * aclocal.m4, configure: Regenerate.
958 2004-09-17 Zack Weinberg <zack@codesourcery.com>
960 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
961 (_cpp_convert_input, _cpp_default_encoding): Add comments.
962 Some other comments in this file also tweaked.
964 * directives.c (do_pragma): Save current buffer position
965 before lexing the pragma keywords; don't call
966 _cpp_backup_tokens in the defer_pragmas case.
968 2004-09-15 Per Bothner <per@bothner.com>
970 * include/line-map.h (line_map_start): Add parameter names so
971 preceding comment makes sense.
972 (linemap_add): Remove from comment mention of non-existing parameter.
974 2004-09-09 Matt Austern <austern@apple.com>
975 Zack Weinberg <zack@codesourcery.com>
977 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
978 prefixes throughout. Add entry for PRAGMA. Remove
979 unnecessary "= 0" from EQ.
980 (enum cpp_ttype): Adjust OP and TK definitions to restore
981 prefixes, via token-paste.
982 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
983 Change from #defines to additional cpp_ttype enumerators.
984 (struct cpp_options): Add defer_pragmas.
985 (cpp_handle_deferred_pragma): Prototype new interface.
987 * internal.h (struct cpp_reader): Add directive_result.
988 * directives.c (struct pragma_entry): Add is_internal field;
989 give boolean fields type bool.
990 (start_directive): Initialize pfile->directive_result.type.
991 (_cpp_do__Pragma): Likewise.
992 (run_directive): Do not crash if pfile->buffer->prev is NULL.
993 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
995 (register_pragma): New static function, bulk of former
996 cpp_register_pragma here; add 'internal' argument, pass along
997 to insert_pragma_entry.
998 (cpp_register_pragma): Now a wrapper around register_pragma which
999 always passes false for 'internal' argument.
1000 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
1001 true for 'internal'.
1002 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
1003 an internal pragma, save text till the end of the line as a CPP_PRAGMA
1004 token instead of executing the pragma.
1005 (cpp_handle_deferred_pragma): New interface.
1006 * lex.c (token_spellings): Adjust OP and TK definitions to
1007 match changes to cpplib.h.
1008 (_cpp_lex_token): Check for a directive-result token and
1009 return it if present.
1010 (cpp_token_val_index): Handle CPP_PRAGMA.
1011 * macro.c (cpp_builtin_macro_text): Correct comment.
1012 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
1014 2004-09-06 Serge Belyshev <belyshev@lubercy.com>
1016 PR preprocessor/14699
1017 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
1018 from size_t to double.
1020 2004-08-28 Andreas Schwab <schwab@suse.de>
1021 Andreas Jaeger <aj@suse.de>
1023 * configure.ac: Set PACKAGE correctly.
1024 * configure: Regenerated.
1026 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
1028 * Makefile.in: Add back top_builddir.
1030 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
1032 * configure.ac: Replace Automake macro invocations
1033 with manual Autoconf checks and substitutions.
1034 * configure: Regenerate.
1035 * aclocal.m4: Regenerate.
1036 * config.in: Regenerate.
1037 * Makefile.am: Removed.
1038 * Makefile.in: Heavy simplification and reorganization.
1040 2004-08-09 Mark Mitchell <mark@codesourcery.com>
1042 * configure.ac (arm*-*-eabi*): New target.
1043 (arm*-*-symbianelf*): Likewise.
1044 * configure: Regenerated.
1046 2004-07-24 Bernardo Innocenti <bernie@develer.com>
1048 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
1049 * directives.c: Use XNEW-family macros from libiberty.
1051 * macro.c: Likewise.
1052 * cpplib.h (cpp_deps_style): Export enum with name.
1054 2004-07-23 Matthias Klose <doko@debian.org>
1056 * init.c (init_library): Use PACKAGE for the text domain.
1058 2004-07-16 Andris Pavenis <pavenis@latnet.lv>
1060 PR preprocessor/16366
1061 * internal.h (struct cpp_reader): New field dir_hash.
1062 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
1063 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
1065 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
1067 PR preprocessor/16192
1068 PR preprocessor/15913
1069 PR preprocessor/15572
1070 * expr.c (_cpp_parse_expr): Handle remaining cases where an
1071 expression is missing.
1072 * init.c (post_options): Traditional cpp doesn't do // comments.
1074 2004-06-30 Per Bothner <per@bothner.com>
1076 * include/line-map.h (fileline): Remove old typedef.
1077 * internal.h (struct cpp_reader): Use source_location typedef instead.
1079 2004-06-26 Zack Weinberg <zack@codesourcery.com>
1081 Partially revert patch of 2004-06-05.
1082 * files.c (search_cache): Remove pfile argument. Don't check
1083 for file that would be found by "" or <> search here...
1084 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
1085 Do not apply directory-of-current-file correction to files
1086 found by this check. Rearrange code slightly.
1088 2004-06-21 Geoffrey Keating <geoffk@apple.com>
1090 * files.c (should_stack_file): Correct swapped parameters to call
1092 * pch.c (cpp_valid_state): Handle -fpreprocessed.
1094 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
1096 * Makefile.in: Regenerate with automake 1.8.5.
1097 * aclocal.m4: Likewise.
1098 * configure: Regenerate.
1100 2004-06-11 Zack Weinberg <zack@codesourcery.com>
1102 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
1103 * configure, config.in: Regenerate.
1104 * system.h: Unconditionally define bool as unsigned char,
1105 BOOL_BITFIELD as unsigned int.
1106 * .cvsignore: New file.
1108 2004-06-09 Geoffrey Keating <geoffk@apple.com>
1110 * traditional.c (push_replacement_text): Set macro->traditional.
1111 (save_replacement_text): Likewise.
1112 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
1113 (struct save_macro_item): Delete.
1114 (struct save_macro_data): Use a character array not the previous
1116 (save_macros): Save macro as text not as internal structures.
1117 (cpp_prepare_state): Update for changes to save_macro_data.
1118 (cpp_read_state): Don't read macros defined in PCH. Restore
1120 * macro.c (create_iso_definition): Honour alloc_subobject.
1121 Clear traditional flag.
1122 (_cpp_create_definition): Honour alloc_subobject.
1123 * lex.c (cpp_token_val_index): New.
1124 * internal.h: Include cpp-id-data.h.
1125 (uchar): Move definition to cpp-id-data.h.
1127 (cpp_macro): Likewise.
1128 * directives.c (struct answer): Move to cpp-id-data.h.
1129 (do_assert): Honour alloc_subobject.
1131 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
1132 * include/cpplib.h (struct cpp_string): Add GTY marker.
1133 (enum cpp_token_fld_kind): New.
1134 (struct cpp_token): Add GTY markers.
1135 (cpp_token_val_index): Prototype.
1136 (CPP_HASHNODE_VALUE_IDX): New.
1137 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
1138 * include/cpp-id-data.h: New file.
1140 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
1142 * Makefile.am (all-local): New.
1143 * Makefile.in: Regenerate.
1145 2004-06-06 Roger Sayle <roger@eyesopen.com>
1147 * Makefile.am (LIBICONV): Declare.
1148 (makedepend_LDADD): Use LIBICONV.
1149 * Makefile.in: Regenerate.
1151 2004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
1153 * Makefile.am (LIBINTL): Declare
1154 (makedepend_LDADD): Use LIBINTL.
1155 * Makefile.in: Regenerate.
1157 2004-06-05 Zack Weinberg <zack@codesourcery.com>
1159 * Makefile.am: Add makedepend.
1160 * Makefile.in, aclocal.m4: Regenerate.
1161 * charset.c: Insert a space to avoid a warning.
1162 * directives.c: Include mkdeps.h.
1163 (_cpp_handle_directive): Reenable macro expander if appropriate.
1164 (undefine_macros): Inline body of _cpp_free_definition for speed.
1165 Do not call undef callback or _cpp_warn_if_unused_macro.
1166 (cpp_get_deps): New interface.
1167 * files.c (search_cache): Add pfile argument. Check for file
1168 that would be found by "" or <> search here...
1169 (_cpp_find_file): ...not here. Correct recorded start_dir of
1170 files found by directory-of-current-file search that would be
1171 found by "" or <> search.
1172 * init.c (cpp_add_dependency_target): Delete.
1173 * internal.h (struct lexer_state): Add discarding_output flag.
1174 * lex.c (lex_identifier): Compute hash function while scanning.
1175 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
1177 * makedepend.c: New file.
1178 * mkdeps.c (struct deps): Add vpath vector.
1179 (apply_vpath, deps_add_vpath): New function.
1180 (deps_free): Free vpath vector.
1181 (deps_add_dep, deps_add_target): Use apply_vpath.
1182 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
1183 (ht_lookup_with_hash): New function.
1184 * cpplib.h, mkdeps.h: Update prototypes.
1185 * symtab.h: Update prototypes.
1186 (HT_HASHSTEP, HT_FINISH): New macros.
1188 2004-05-29 Geoffrey Keating <geoffk@apple.com>
1190 * symtab.c (ht_create): Set entries_owned.
1191 (ht_destroy): Honour entries_owned.
1192 (ht_expand): Likewise.
1194 * include/symtab.h (struct ht): New field 'entries_owned'
1195 (ht_load): New prototype.
1197 2004-05-26 Paolo Bonzini <bonzini@gnu.org>
1200 * configure.ac: Fix m4 quoting when picking
1201 the size of HOST_WIDE_INT.
1202 * configure: Regenerate.
1204 2004-05-25 Paolo Bonzini <bonzini@gnu.org>
1206 * Makefile.am: the correct directory for
1207 gettext include files is given by @INCINTL@.
1208 * Makefile.in: Regenerate.
1210 2004-05-24 Paolo Bonzini <bonzini@gnu.org>
1212 * system.h [!ENABLE_NLS]: dgettext takes two
1215 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
1217 Moved libcpp from the gcc subdirectory to the toplevel.
1218 * Makefile.am: New file.
1219 * Makefile.in: Regenerate.
1220 * configure.ac: New file.
1221 * configure: Regenerate.
1222 * config.in: Regenerate.
1223 * charset.c: Moved from gcc/cppcharset.c. Add note about
1224 brokenness of input charset detection. Adjust for change
1225 in name of cppucnid.h.
1226 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
1227 * expr.c: Moved from gcc/cppexp.c.
1228 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
1229 Remove #define of O_BINARY, it is in system.h.
1230 * identifiers.c: Moved from gcc/cpphash.c.
1231 * internal.h: Moved from gcc/cpphash.h. Change header
1232 guard name. All other files adjusted to match name change.
1233 * init.c: Moved from gcc/cppinit.c.
1234 (init_library) [ENABLE_NLS]: Call bindtextdomain.
1235 * lex.c: Moved from gcc/cpplex.c.
1236 * directives.c: Moved from gcc/cpplib.c.
1237 * macro.c: Moved from gcc/cppmacro.c.
1238 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
1239 * traditional.c: Moved from gcc/cpptrad.c.
1240 * ucnid.h: Moved from gcc/cppucnid.h. Change header
1242 * ucnid.pl: Moved from gcc/cppucnid.pl.
1243 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
1245 * symtab.c: Moved from gcc/hashtable.c.
1246 * line-map.c: Moved from gcc. Do not include intl.h.
1247 * mkdeps.c: Moved from gcc.
1248 * system.h: New file.
1249 * include/cpplib.h: Moved from gcc. Change header guard name.
1250 * include/line-map.h: Moved from gcc. Change header guard name.
1251 * include/mkdeps.h: Moved from gcc. Change header guard name.
1252 * include/symtab.h: Moved from gcc/hashtable.h. Change header