OSDN Git Service

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