OSDN Git Service

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