1 2007-04-23 Tom Tromey <tromey@redhat.com>
4 * mkdeps.c (apply_vpath): Strip successive '/'s if we stripped
7 2007-02-13 Release Manager
11 2006-12-29 Jakub Jelinek <jakub@redhat.com>
14 * directives.c (do_linemarker): Set pfile->buffer->sysp always, not
15 only when new_sysp is non-zero.
17 2006-05-24 Release Manager
21 2006-02-28 Release Manager
25 2006-01-23 Jakub Jelinek <jakub@redhat.com>
28 * init.c (cpp_init_builtins): If __STDC__ will not change value
29 between system headers and other sources, define it as a normal
30 macro rather than a builtin.
31 * macro.c (_cpp_builtin_macro_text) <case BT_STDC>: Only check
32 cpp_in_system_header condition.
34 2006-01-01 Jakub Jelinek <jakub@redhat.com>
37 * directives.c (do_pragma): If pragma line ends with multi-line
38 block comment, end the saved deferred pragma string before that
39 comment. Handle embedded '\0' chars on the pragma line.
41 2005-11-14 Gerald Pfeifer <gerald@pfeifer.com>
42 Ian Lance Taylor <ian@airs.com>
44 * include/cpplib.h (struct cpp_callbacks): Annotate error with
45 ATTRIBUTE_FPTR_PRINTF(3,0) instead of ATTRIBUTE_PRINTF(3,0).
47 2005-11-09 Per Bothner <per@bothner.com>
48 Uros Bizjak <uros@kss-loka.si>
51 * init.c (read_original_filename): Temporarily set
52 state.in_directive before calling _cpp_lex_direct for
55 2005-11-03 James E Wilson <wilson@specifix.com>
58 * files.c (_cpp_pop_file_buffer): Set buffer_valid to false.
60 2005-11-04 Joseph S. Myers <joseph@codesourcery.com>
62 * include/cpplib.h (struct cpp_callbacks): Make error take
64 * errors.c (cpp_error): Update call to callback.
66 2005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
69 * macro.c (_cpp_builtin_macro_text): Lower the needed max
71 (cpp_quote_string): Don't octalify non printable
74 2005-11-03 Joseph S. Myers <joseph@codesourcery.com>
77 * include/cpplib.h (struct cpp_options): Add client_diagnostic.
78 (struct cpp_callbacks): Add error.
79 * errors.c (cpp_error): If client_diagnostic, use error callback.
80 * charset.c (convert_escape): Don't use %03o in diagnostic.
82 2005-10-21 James E Wilson <wilson@specifix.com>
85 * files.c (_cpp_find_file): New parameter angle_brackets. Fix all
86 callers. Pass to open_file_failed.
87 (open_file_failed): New parameter angle_brackets. Fix all callers.
88 Use in print_dep assignment.
89 * init.c (cpp_read_main_file): Pass additional arg to _cpp_find_file.
90 * internal.h (_cpp_find_file): Add new parm to declaration.
92 2005-10-08 Kazu Hirata <kazu@codesourcery.com>
94 * configure.ac: Require 64-bit int for arm*-*-*eabi*.
95 * configure: Regenerate.
97 2005-10-04 Ian Lance Taylor <ian@airs.com>
100 * directives.c (check_eol_return_comments): New static function.
101 (parse_include): Add buf parameter. Change all callers.
102 (do_include_common): If not discard comments, turn on
103 save_comments. Pass collected comments to include callback.
104 * include/cpplib.h (struct cpp_callbacks): Add new parameter to
105 include callback: cpp_token list.
107 2005-09-20 Joseph S. Myers <joseph@codesourcery.com>
109 * include/cpplib.h (struct cpp_options): Add extended_identifiers.
110 * init.c (struct lang_flags, lang_defaults): Add
111 extended_identifiers.
112 (cpp_set_lang): Use it.
113 * lex.c (forms_identifier_p): Check extended_identifiers.
115 2005-08-30 Jakub Jelinek <jakub@redhat.com>
117 PR preprocessor/20348
118 PR preprocessor/20356
119 * files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and
122 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
124 * configure.ac (ACX_PROG_CC_WARNING_OPTS): add
125 -Wmissing-format-attribute.
127 * configure: Regenerate.
129 2005-06-29 Kelley Cook <kcook@gcc.gnu.org>
131 * all files: Update FSF address in copyright headers.
132 * makeucnid.c (write_copyright): Update outputted FSF address.
134 2005-06-13 Zack Weinberg <zack@codesourcery.com>
136 * configure.ac: Invoke ZW_CREATE_DEPDIR and
137 ZW_PROG_COMPILER_DEPENDENCIES.
138 * aclocal.m4, configure: Regenerate.
139 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE):
141 (distclean): Clean up $(DEPDIR) and its contents.
142 (.c.o): Use $(COMPILE).
143 Include $(DEPDIR)/*.Po for most object->header dependencies.
145 2005-05-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
147 * configure.ac: Check declarations for asprintf and vasprintf.
148 * config.in: Regenerate.
149 * configure: Likewise.
151 * charset.c (conversion_loop): Use XRESIZEVEC.
152 (convert_no_conversion): Likewise.
153 (convert_using_iconv): Likewise.
154 (init_iconv_desc): Cast return value of alloca.
155 (cpp_host_to_exec_charset): Use XNEWVEC.
156 (emit_numeric_escape): Use XRESIZEVEC.
157 (cpp_interpret_string): Use XNEWVEC.
158 (cpp_interpret_string): Use XRESIZEVEC.
159 (_cpp_interpret_identifier): Cast return value of alloca.
160 (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC.
161 * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC.
162 (parse_include): Use XNEWVEC.
163 (insert_pragma_entry): Rename local variable "new" to
165 (save_registered_pragmas): Cast return value of xmemdup.
166 (destringize_and_run): Same for alloca.
167 (parse_assertion): Likewise.
168 (do_assert): Cast allocated storage to proper type.
169 (cpp_define): Likewise.
170 (_cpp_define_builtin): Likewise.
171 (cpp_undef): Likewise.
172 (handle_assertion): Likewise.
173 (cpp_push_buffer): Rename local variable "new" to "new_buffer".
174 * expr.c (CPP_UPLUS): Cast value to type cpp_ttype.
175 (CPP_UMINUS): Likewise.
176 (struct cpp_operator): Rename from struct operator.
177 (_cpp_expand_op_stack): Use XRESIZEVEC.
178 * files.c (pch_open_file): Use XNEWVEC.
179 (pch_open_file): Use XRESIZEVEC.
180 (read_file_guts): Use XNEWVEC and XRESIZEVEC.
181 (dir_name_of_file): Use XNEWVEC.
182 (make_cpp_file): Use XCNEW.
183 (make_cpp_dir): Likewise.
184 (allocate_file_hash_entries): USE XNEWVEC.
185 (cpp_included): Cast return value of htab_find_with_hash.
186 (append_file_to_dir): Use XNEWVEC.
187 (read_filename_string): Likewise. Use XRESIZEVEC too.
188 (read_name_map): Cast return value of alloca. Use XRESIZEVEC.
189 (remap_filename): Use XNEWVEC.
190 (struct pchf_entry): Move definition out of struct pchf_data.
191 (_cpp_save_file_entries): Use XCNEWVAR.
192 (_cpp_read_file_entries): Use XNEWVAR.
193 * identifiers.c (alloc_node): Use XOBNEW.
194 * init.c (cpp_create_reader): Use XCNEW.
195 (cpp_init_builtins): Cast of b->value to enum builtin_type.
196 (read_original_directory): Cast return value of alloca.
197 * lex.c (add_line_note): Use XRESIZEVEC.
198 (warn_about_normalization): Use XNEWVEC.
199 (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype).
200 (new_buff): Use XNEWVEC.
201 * line-map.c (linemap_add): Use XRESIZEVEC.
202 * macro.c (builtin_macro): Cast return value of alloca.
203 (paste_tokens): Likewise.
204 (expand_arg): Use XNEWVEC and XRESIZEVEC.
205 (_cpp_save_parameter): Use XRESIZEVEC.
206 (create_iso_definition): Cast allocated storage to proper type.
207 (_cpp_create_definition): Likewise.
208 (cpp_macro_definition): Use XRESIZEVEC.
209 * makedepend.c (add_clm): Use XNEW.
211 * mkdeps.c (munge): Use XNEWVEC.
212 (deps_init): Use XCNEW.
213 (deps_add_target): Use XRESIZEVEC.
214 (deps_add_default_target): Cast return value of alloca.
215 (deps_add_dep): Use XRESIZEVEC.
216 (deps_add_vpath): Likewise. Use XNEWVEC too.
217 (deps_restore): Likewise.
218 * pch.c (save_idents): Use XNEW and XNEWVEC.
219 (cpp_save_state): Use XNEW.
220 (count_defs): Cast return value of htab_find.
221 (write_defs): Likewise.
222 (cpp_write_pch_deps): Use XNEWVEC.
223 (collect_ht_nodes): Use XRESIZEVEC.
224 (cpp_valid_state): Use XNEWVEC.
225 (save_macros): Use XRESIZEVEC. Cast return value of xmemdup.
226 * symtab.c (ht_create): Use XCNEW.
227 (ht_lookup_with_hash): Cast return value of obstack_copy0.
228 (ht_expand): Use XCNEWVEC.
229 * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus.
230 (bool): Do not define if __cplusplus.
232 2005-05-12 Zack Weinberg <zack@codesourcery.com>
234 * directives.c (#sccs table entry): Mark IN_I, consistent with #ident.
235 (do_sccs): Delete function definition, #define to do_ident.
236 (do_ident): Don't hardwire directive name.
238 2005-05-12 Ryota Kunisawa <kunisawa@access.co.jp>
241 * configure: Regenerate.
243 2005-04-27 Andris Pavenis <pavenis@latnet.lv>
245 * files.c: Include io.h for DJGPP to get prototype of setmode.
247 2005-04-19 Per Bothner <per@bothner.com>
249 PR preprocessor/20907
250 * line-map.c (linemap_line_start): Fix bug when we need to increse
251 column_bits but can re-use the current line_map.
253 2005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
255 * system.h (fopen, fdopen, freopen): Define these to the unlocked
258 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
260 * configure.ac (libcpp_UNLOCKED_FUNCS): New.
261 (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS.
262 * system.h (putchar, getc, getchar, clearerr, feof, fileno,
263 fflush, fgetc, fgets, ferror, fread): Redefine to the associated
265 (fwrite_unlocked): Fix prototype.
267 * configure, config.in: Regenerate.
269 2005-04-05 Jakub Jelinek <jakub@redhat.com>
271 PR preprocessor/19475
272 * macro.c (create_iso_definition): For < ISO C99, don't
273 pedwarn if there is no whitespace between macro name and its
274 replacement, but the replacement starts with a basic character
277 2005-03-28 Andreas Jaeger <aj@suse.de>
279 * lex.c (warn_about_normalization): Cast field width to int to
282 2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
284 * configure.ac: Consistently use solaris2.1[0-9]* instead of
286 * configure: Regenerate.
288 2005-03-15 Geoffrey Keating <geoffk@apple.com>
290 * charset.c (_cpp_valid_ucn): In identifiers, reject a partial
291 UCN rather than printing an error.
293 2005-03-14 Geoffrey Keating <geoffk@apple.com>
295 * lex.c (forms_identifier_p): Disable UCNs in C89 mode.
297 2005-03-14 Geoffrey Keating <geoffk@apple.com>
299 * init.c (cpp_create_reader): Default warn_normalize to normalized_C.
300 * charset.c: Update for new format of ucnid.h.
301 (ucn_valid_in_identifier): Update for new format of ucnid.h.
302 Add NST parameter, and update it; update callers.
303 (cpp_valid_ucn): Add NST parameter, update callers. Replace abort
305 (convert_ucn): Pass normalize_state to cpp_valid_ucn.
306 * internal.h (struct normalize_state): New.
307 (INITIAL_NORMALIZE_STATE): New.
308 (NORMALIZE_STATE_RESULT): New.
309 (NORMALIZE_STATE_UPDATE_IDNUM): New.
310 (_cpp_valid_ucn): New.
311 * lex.c (warn_about_normalization): New.
312 (forms_identifier_p): Add normalize_state parameter, update callers.
313 (lex_identifier): Add normalize_state parameter, update callers. Keep
315 (lex_number): Likewise.
316 (_cpp_lex_direct): Pass normalize_state to subroutines. Check
317 it with warn_about_normalization.
321 * ucnid.tab: Make appropriate for input to makeucnid.c. Remove
322 comments about obsolete version of C++.
323 * include/cpplib.h (enum cpp_normalize_level): New.
324 (struct cpp_options): Add warn_normalize field.
326 2005-03-11 Geoffrey Keating <geoffk@apple.com>
328 * directives.c (glue_header_name): Update call to cpp_spell_token.
329 * internal.h (_cpp_interpret_identifier): New.
330 * charset.c (_cpp_interpret_identifier): New.
331 (_cpp_valid_ucn): Allow UCN version of '$'.
332 * lex.c (lex_identifier): Add extra parameter to indicate if initial
333 character was '$' or '\'. Support identifiers with UCNs.
334 (forms_identifier_p): Allow UCNs.
335 (_cpp_lex_direct): Pass extra parameter to lex_identifier.
337 (cpp_spell_token): Add FORSTRING parameter. Use it.
338 (cpp_token_as_text): Update call to cpp_spell_token.
339 (cpp_output_token): Write UCNs back out.
340 (stringify_arg): Update call to cpp_spell_token.
341 (paste_tokens): Likewise.
342 (cpp_macro_definition): Likewise.
343 * macro.c (stringify_arg): Likewise.
344 (paste_tokens): Likewise.
345 (cpp_macro_definition): Likewise.
346 * include/cpplib.h: Add parameter to cpp_spell_token.
348 2005-03-04 Jakub Jelinek <jakub@redhat.com>
352 * macro.c (replace_args, cpp_get_token): Copy whole
353 cpp_token_u instead of just cpp_string field from it.
355 2005-02-28 Devang Patel <dpatel@apple.com>
357 * directives.c (do_line): Save sysp early before line table is
360 2005-02-20 Zack Weinberg <zack@codesourcery.com>
363 * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
364 (cpp_host_to_exec_charset): New function.
365 * include/cpplib.h: Declare cpp_host_to_exec_charset.
367 2005-02-19 Devang Patel <dpatel@apple.com>
369 * charset.c (_cpp_convert_input): Check '\r' before inserting
372 2005-02-15 Eric Christopher <echristo@redhat.com>
374 PR preprocessor/19077
375 * macro.c (cpp_macro_definition): Move handling of whitespace
376 to PREV_WHITE conditional. Remove overloading of len
379 2005-02-14 Kazu Hirata <kazu@cs.umass.edu>
381 * directives.c, files.c, init.c, internal.h, macro.c, pch.c,
382 traditional.c: Update copyright.
384 2005-02-14 Paolo Bonzini <bonzini@gnu.org>
387 * configure.ac: Check for declaration of basename and getopt.
388 * config.in: Regenerate.
389 * configure: Regenerate.
390 * internal.h (ustrcspn): New.
391 * macro.c (create_iso_definition): Fix allocation of memory.
392 (padding_token): Add cast to remove const-ness.
393 * pch.c (cpp_read_state): Use ustrcspn.
395 2005-02-08 Mike Stump <mrs@apple.com>
397 * files.c (pchf_adder): Remove.
398 (struct pchf_adder_info): Likewise.
399 (_cpp_save_file_entries): Write out all files so that #import works.
401 2005-01-23 Joseph S. Myers <joseph@codesourcery.com>
403 * configure: Regenerate.
405 2005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
407 * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
409 * include/cpplib.h: Also update copyright years.
411 2005-01-03 Geoffrey Keating <geoffk@apple.com>
413 * files.c (_cpp_find_file): Add files found by search_path_exhausted
414 to the list of all files.
416 2005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
418 * internal.h: Update references to Cpp lib filenames.
419 * directives.c: Likewise.
422 * traditional.c: Likewise.
424 2004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
426 PR preprocessor/15167
427 * files.c (destroy_cpp_file): New function.
428 (should_stack_file): Make a new file if the
429 compared file is still stacked.
431 2004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
433 PR preprocessor/17610
434 * directives.c (do_include_common): Error out if an empty filename
435 is given for #include (or #include_next or #import).
437 2004-11-27 Roger Sayle <roger@eyesopen.com>
438 Zack Weinberg <zack@codesourcery.com>
440 * internal.h: Replace all uses of uchar with unsigned char.
441 * include/cpp-id-data.h: Likewise. Guard typedef of uchar
442 with !IN_GCC, so uchar is only defined whilst building libcpp.
444 2004-11-24 Kelley Cook <kcook@gcc.gnu.org>
446 * aclocal.m4: Regenerate.
448 2004-11-24 Roger Sayle <roger@eyesopen.com>
450 PR preprocessor/15824
451 * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
452 directly, instead of the non-existant "system.h" and "ansidecl.h".
453 * configure: Regenerate.
455 2004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
456 Joseph Myers <joseph@codesourcery.com>
458 * internal.h (struct lexer_state): Add in_deferred_pragma.
459 * directives.c (struct pragma_entry): Add allow_expansion.
460 (insert_pragma_entry): Take allow_expansion flag.
461 (register_pragma): Likewise.
462 (cpp_register_pragma): Likewise.
463 (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
464 (do_pragma): Honor allow_expansion.
465 (cpp_handle_deferred_pragma): Set in_deferred_pragma.
466 * include/cpplib.h (cpp_register_pragma): Update prototype.
468 2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
469 Mark Mitchell <mark@codesourcery.com>
471 * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
472 need_64bit_hwint=yes.
473 * configure: Regenerate.
475 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
477 * Makefile.in ($(PACKAGE).pot): New rule. Depend on
479 (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
480 arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
481 Remove local srcdir path from generated file.
483 2004-11-04 Zack Weinberg <zack@codesourcery.com>
484 Gerald Pfeifer <gerald@pfeifer.com>
486 * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
489 2004-10-27 Zack Weinberg <zack@codesourcery.com>
492 * directives.c (do_pragma): Do not defer pragmas which are unknown.
493 (cpp_handle_deferred_pragma): Add cast to silence warning.
495 2004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
497 * errors.c (_cpp_begin_message): Print "error: " for errors.
499 2004-10-10 Andreas Jaeger <aj@suse.de>
501 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
502 * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
504 2004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
506 * pch.c (cpp_write_pch_state): Remove variable z as it is not
508 (cpp_read_state): Remove unused variables, m, d and mac_count.
510 2004-09-29 Per Bothner <per@bothner.com>
512 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
513 cb.line_change. Otherwise do_pragma will call the line_change
514 call-back with a meaningless line number.
516 2004-09-24 Zack Weinberg <zack@codesourcery.com>
518 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
519 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
520 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
521 * aclocal.m4, configure: Regenerate.
522 * init.c: Include localedir.h.
523 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
525 (.c.o): Use $(ALL_CFLAGS).
526 (localedir.h, localedir.hs): New rules.
527 (clean): Use rm -rf to remove directories.
528 (distclean): Also delete localedir.h and localedir.hs.
529 (init.o): Update dependencies.
531 2004-09-22 Kelley Cook <kcook@gcc.gnu.org>
533 * Makefile.in (aclocal.m4): Update dependencies.
534 * configure.ac (AC_CONFIG_MACRO_DIR): New.
535 * aclocal.m4, configure: Regenerate.
537 2004-09-17 Zack Weinberg <zack@codesourcery.com>
539 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
540 (_cpp_convert_input, _cpp_default_encoding): Add comments.
541 Some other comments in this file also tweaked.
543 * directives.c (do_pragma): Save current buffer position
544 before lexing the pragma keywords; don't call
545 _cpp_backup_tokens in the defer_pragmas case.
547 2004-09-15 Per Bothner <per@bothner.com>
549 * include/line-map.h (line_map_start): Add parameter names so
550 preceding comment makes sense.
551 (linemap_add): Remove from comment mention of non-existing parameter.
553 2004-09-09 Matt Austern <austern@apple.com>
554 Zack Weinberg <zack@codesourcery.com>
556 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
557 prefixes throughout. Add entry for PRAGMA. Remove
558 unnecessary "= 0" from EQ.
559 (enum cpp_ttype): Adjust OP and TK definitions to restore
560 prefixes, via token-paste.
561 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
562 Change from #defines to additional cpp_ttype enumerators.
563 (struct cpp_options): Add defer_pragmas.
564 (cpp_handle_deferred_pragma): Prototype new interface.
566 * internal.h (struct cpp_reader): Add directive_result.
567 * directives.c (struct pragma_entry): Add is_internal field;
568 give boolean fields type bool.
569 (start_directive): Initialize pfile->directive_result.type.
570 (_cpp_do__Pragma): Likewise.
571 (run_directive): Do not crash if pfile->buffer->prev is NULL.
572 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
574 (register_pragma): New static function, bulk of former
575 cpp_register_pragma here; add 'internal' argument, pass along
576 to insert_pragma_entry.
577 (cpp_register_pragma): Now a wrapper around register_pragma which
578 always passes false for 'internal' argument.
579 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
581 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
582 an internal pragma, save text till the end of the line as a CPP_PRAGMA
583 token instead of executing the pragma.
584 (cpp_handle_deferred_pragma): New interface.
585 * lex.c (token_spellings): Adjust OP and TK definitions to
586 match changes to cpplib.h.
587 (_cpp_lex_token): Check for a directive-result token and
588 return it if present.
589 (cpp_token_val_index): Handle CPP_PRAGMA.
590 * macro.c (cpp_builtin_macro_text): Correct comment.
591 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
593 2004-09-06 Serge Belyshev <belyshev@lubercy.com>
595 PR preprocessor/14699
596 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
597 from size_t to double.
599 2004-08-28 Andreas Schwab <schwab@suse.de>
600 Andreas Jaeger <aj@suse.de>
602 * configure.ac: Set PACKAGE correctly.
603 * configure: Regenerated.
605 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
607 * Makefile.in: Add back top_builddir.
609 2004-08-25 Paolo Bonzini <bonzini@gnu.org>
611 * configure.ac: Replace Automake macro invocations
612 with manual Autoconf checks and substitutions.
613 * configure: Regenerate.
614 * aclocal.m4: Regenerate.
615 * config.in: Regenerate.
616 * Makefile.am: Removed.
617 * Makefile.in: Heavy simplification and reorganization.
619 2004-08-09 Mark Mitchell <mark@codesourcery.com>
621 * configure.ac (arm*-*-eabi*): New target.
622 (arm*-*-symbianelf*): Likewise.
623 * configure: Regenerated.
625 2004-07-24 Bernardo Innocenti <bernie@develer.com>
627 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
628 * directives.c: Use XNEW-family macros from libiberty.
631 * cpplib.h (cpp_deps_style): Export enum with name.
633 2004-07-23 Matthias Klose <doko@debian.org>
635 * init.c (init_library): Use PACKAGE for the text domain.
637 2004-07-16 Andris Pavenis <pavenis@latnet.lv>
639 PR preprocessor/16366
640 * internal.h (struct cpp_reader): New field dir_hash.
641 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
642 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
644 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
646 PR preprocessor/16192
647 PR preprocessor/15913
648 PR preprocessor/15572
649 * expr.c (_cpp_parse_expr): Handle remaining cases where an
650 expression is missing.
651 * init.c (post_options): Traditional cpp doesn't do // comments.
653 2004-06-30 Per Bothner <per@bothner.com>
655 * include/line-map.h (fileline): Remove old typedef.
656 * internal.h (struct cpp_reader): Use source_location typedef instead.
658 2004-06-26 Zack Weinberg <zack@codesourcery.com>
660 Partially revert patch of 2004-06-05.
661 * files.c (search_cache): Remove pfile argument. Don't check
662 for file that would be found by "" or <> search here...
663 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
664 Do not apply directory-of-current-file correction to files
665 found by this check. Rearrange code slightly.
667 2004-06-21 Geoffrey Keating <geoffk@apple.com>
669 * files.c (should_stack_file): Correct swapped parameters to call
671 * pch.c (cpp_valid_state): Handle -fpreprocessed.
673 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
675 * Makefile.in: Regenerate with automake 1.8.5.
676 * aclocal.m4: Likewise.
677 * configure: Regenerate.
679 2004-06-11 Zack Weinberg <zack@codesourcery.com>
681 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
682 * configure, config.in: Regenerate.
683 * system.h: Unconditionally define bool as unsigned char,
684 BOOL_BITFIELD as unsigned int.
685 * .cvsignore: New file.
687 2004-06-09 Geoffrey Keating <geoffk@apple.com>
689 * traditional.c (push_replacement_text): Set macro->traditional.
690 (save_replacement_text): Likewise.
691 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
692 (struct save_macro_item): Delete.
693 (struct save_macro_data): Use a character array not the previous
695 (save_macros): Save macro as text not as internal structures.
696 (cpp_prepare_state): Update for changes to save_macro_data.
697 (cpp_read_state): Don't read macros defined in PCH. Restore
699 * macro.c (create_iso_definition): Honour alloc_subobject.
700 Clear traditional flag.
701 (_cpp_create_definition): Honour alloc_subobject.
702 * lex.c (cpp_token_val_index): New.
703 * internal.h: Include cpp-id-data.h.
704 (uchar): Move definition to cpp-id-data.h.
706 (cpp_macro): Likewise.
707 * directives.c (struct answer): Move to cpp-id-data.h.
708 (do_assert): Honour alloc_subobject.
710 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
711 * include/cpplib.h (struct cpp_string): Add GTY marker.
712 (enum cpp_token_fld_kind): New.
713 (struct cpp_token): Add GTY markers.
714 (cpp_token_val_index): Prototype.
715 (CPP_HASHNODE_VALUE_IDX): New.
716 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
717 * include/cpp-id-data.h: New file.
719 2004-06-09 Paolo Bonzini <bonzini@gnu.org>
721 * Makefile.am (all-local): New.
722 * Makefile.in: Regenerate.
724 2004-06-06 Roger Sayle <roger@eyesopen.com>
726 * Makefile.am (LIBICONV): Declare.
727 (makedepend_LDADD): Use LIBICONV.
728 * Makefile.in: Regenerate.
730 2004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
732 * Makefile.am (LIBINTL): Declare
733 (makedepend_LDADD): Use LIBINTL.
734 * Makefile.in: Regenerate.
736 2004-06-05 Zack Weinberg <zack@codesourcery.com>
738 * Makefile.am: Add makedepend.
739 * Makefile.in, aclocal.m4: Regenerate.
740 * charset.c: Insert a space to avoid a warning.
741 * directives.c: Include mkdeps.h.
742 (_cpp_handle_directive): Reenable macro expander if appropriate.
743 (undefine_macros): Inline body of _cpp_free_definition for speed.
744 Do not call undef callback or _cpp_warn_if_unused_macro.
745 (cpp_get_deps): New interface.
746 * files.c (search_cache): Add pfile argument. Check for file
747 that would be found by "" or <> search here...
748 (_cpp_find_file): ...not here. Correct recorded start_dir of
749 files found by directory-of-current-file search that would be
750 found by "" or <> search.
751 * init.c (cpp_add_dependency_target): Delete.
752 * internal.h (struct lexer_state): Add discarding_output flag.
753 * lex.c (lex_identifier): Compute hash function while scanning.
754 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
756 * makedepend.c: New file.
757 * mkdeps.c (struct deps): Add vpath vector.
758 (apply_vpath, deps_add_vpath): New function.
759 (deps_free): Free vpath vector.
760 (deps_add_dep, deps_add_target): Use apply_vpath.
761 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
762 (ht_lookup_with_hash): New function.
763 * cpplib.h, mkdeps.h: Update prototypes.
764 * symtab.h: Update prototypes.
765 (HT_HASHSTEP, HT_FINISH): New macros.
767 2004-05-29 Geoffrey Keating <geoffk@apple.com>
769 * symtab.c (ht_create): Set entries_owned.
770 (ht_destroy): Honour entries_owned.
771 (ht_expand): Likewise.
773 * include/symtab.h (struct ht): New field 'entries_owned'
774 (ht_load): New prototype.
776 2004-05-26 Paolo Bonzini <bonzini@gnu.org>
779 * configure.ac: Fix m4 quoting when picking
780 the size of HOST_WIDE_INT.
781 * configure: Regenerate.
783 2004-05-25 Paolo Bonzini <bonzini@gnu.org>
785 * Makefile.am: the correct directory for
786 gettext include files is given by @INCINTL@.
787 * Makefile.in: Regenerate.
789 2004-05-24 Paolo Bonzini <bonzini@gnu.org>
791 * system.h [!ENABLE_NLS]: dgettext takes two
794 2004-05-23 Paolo Bonzini <bonzini@gnu.org>
796 Moved libcpp from the gcc subdirectory to the toplevel.
797 * Makefile.am: New file.
798 * Makefile.in: Regenerate.
799 * configure.ac: New file.
800 * configure: Regenerate.
801 * config.in: Regenerate.
802 * charset.c: Moved from gcc/cppcharset.c. Add note about
803 brokenness of input charset detection. Adjust for change
804 in name of cppucnid.h.
805 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
806 * expr.c: Moved from gcc/cppexp.c.
807 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
808 Remove #define of O_BINARY, it is in system.h.
809 * identifiers.c: Moved from gcc/cpphash.c.
810 * internal.h: Moved from gcc/cpphash.h. Change header
811 guard name. All other files adjusted to match name change.
812 * init.c: Moved from gcc/cppinit.c.
813 (init_library) [ENABLE_NLS]: Call bindtextdomain.
814 * lex.c: Moved from gcc/cpplex.c.
815 * directives.c: Moved from gcc/cpplib.c.
816 * macro.c: Moved from gcc/cppmacro.c.
817 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
818 * traditional.c: Moved from gcc/cpptrad.c.
819 * ucnid.h: Moved from gcc/cppucnid.h. Change header
821 * ucnid.pl: Moved from gcc/cppucnid.pl.
822 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
824 * symtab.c: Moved from gcc/hashtable.c.
825 * line-map.c: Moved from gcc. Do not include intl.h.
826 * mkdeps.c: Moved from gcc.
827 * system.h: New file.
828 * include/cpplib.h: Moved from gcc. Change header guard name.
829 * include/line-map.h: Moved from gcc. Change header guard name.
830 * include/mkdeps.h: Moved from gcc. Change header guard name.
831 * include/symtab.h: Moved from gcc/hashtable.h. Change header