OSDN Git Service

PR preprocessor/15638
[pf3gnuchains/gcc-fork.git] / libcpp / ChangeLog
1 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
2
3         PR preprocessor/15638
4         * files.c (_cpp_find_file): Call open_file_failed after diagnosing
5         invalid PCH.
6         (open_file_failed): Make error for missing file fatal.
7         * include/cpplib.h (CPP_DL_FATAL): Define.
8
9 2009-03-30  Sergiy Vyshnevetskiy  <serg@vostok.net>
10
11         PR preprocessor/31932:
12         * internal.h: Don't mention HAVE_ICONV_H.
13         * configure, config.in: Rebuild.
14         * configure.ac: Don't check for iconv.h.
15
16 2009-03-30  Tom Tromey  <tromey@redhat.com>
17
18         PR preprocessor/39512:
19         * line-map.c (linemap_init): Initialize 'reallocator' field.
20
21 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
22
23         PR target/39558
24         * macro.c (cpp_get_token): If macro_to_expand returns NULL
25         and used some tokens, add CPP_PADDING before next token.
26
27 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
28
29         PR preprocessor/34695
30         * makedepend.c: Remove.
31         * Makefile.in (makedepend_OBJS, makedepend$(EXEEXT)): Remove.
32         (all, clean, TAGS_SOURCES, include): Remove makedepend handling.
33         * directives.c (cpp_errors): Remove.
34         * errors.c (print_location, _cpp_begin_message, v_message):
35         Remove.
36         (cpp_error, cpp_error_with_line): Always use error callback.
37         (cpp_error, cpp_error_with_line, cpp_errno): Return bool.
38         * include/cpplib.h (cpp_options): Remove pedantic_errors,
39         inhibit_warnings, warn_system_headers, inhibit_errors,
40         warnings_are_errors, client_diagnostic.
41         (cpp_callbacks): Add extra arguments to error callback; make it
42         return bool.
43         (cpp_finish): Return void.
44         (cpp_destroy): Remove inaccurate comment about return value.
45         (cpp_errors, CPP_DL_EXTRACT, CPP_DL_WARNING_P): Remove.
46         (CPP_DL_NOTE): Define.
47         * include/line-map.h (linemap_print_containing_files): Remove.
48         * init.c (cpp_finish): Do not check for or return number of
49         errors.
50         * internal.h (cpp_reader): Remove errors field.
51         * line-map.c (linemap_print_containing_files): Remove.
52         * macro.c (_cpp_create_definition): Use CPP_DL_NOTE for message
53         about previous definition.  Only emit it if previous diagnostic
54         was emitted.
55
56 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
57
58         * Makefile.in (po/$(PACKAGE).pot): Use $(mkinstalldirs) not
59         mkinstalldirs.
60
61 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
62
63         * include/cpplib.h (struct cpp_dir): Reorder fields for 64-bit hosts.
64
65 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
66
67         * lex.c (lex_string): Return a CPP_LESS token for missing '>' in a
68         header name.
69         (_cpp_lex_direct): Handle this.
70
71 2009-02-15  Richard Guenther  <rguenther@suse.de>
72
73         Revert last change.
74
75 2009-02-13  Richard Guenther  <rguenther@suse.de>
76
77         * configure.ac: Enable LFS.
78         * configure: Re-generate.
79         * config.in: Likewise.
80
81 2009-01-05  Ben Elliston  <bje@au.ibm.com>
82
83         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
84         (.po.pox): Likewise.
85         (po/$(PACKAGE).pot): Likewise.
86
87 2008-12-10  Alexandre Oliva  <aoliva@redhat.com>
88
89         PR target/37033
90         * pch.c (cpp_valid_state): Improve message for poisoned symbols.
91         Allow for differences in __GCC_HAVE_DWARF2_CFI_ASM.
92
93 2008-11-29  Joseph Myers  <joseph@codesourcery.com>
94
95         * lex.c (cpp_token_len): Use 6 as default length.
96
97 2008-10-31  Manuel López-Ibáñez  <manu@gcc.gnu.org>
98
99         * expr.c (struct op): Add location.
100         (_cpp_parse_expr): Propagate locations throught the stack
101         of expressions.
102         (reduce): Likewise.
103         (check_promotion): Use explicit location in errors.
104
105 2008-10-05  Matthew Gingell  <gingell@adacore.com>
106             Arnaud Charlet  <charlet@adacore.com>
107
108         * include/cpplib.h (cpp_comments, cpp_comment_table): New structs.
109         (cpp_get_comments): New function.
110         * internal.h (struct cpp_reader): Add comments field.
111         * init.c (cpp_destroy): Free comments.
112         * lex.c (store_comment, cpp_get_comments): New functions.
113         (comments): New struct.
114         (save_comment): Store comments in comments struct.
115
116 2008-09-18  Simon Baldwin  <simonb@google.com>
117
118         * include/cpplib.h (struct cpp_options): Add new boolean flag
119         warn_builtin_macro_redefined.
120         * init.c (cpp_create_reader): Initialize warn_builtin_macro_redefined.
121         * (struct builtin_operator): Split out from previous struct builtin,
122         enhance extra const correctness.
123         * (struct builtin_macro): Split out from previous struct builtin, add
124         new always_warn_if_redefined flag, enhance const correctness.
125         * (mark_named_operators): Use struct builtin_operator.
126         * (cpp_init_special_builtins): Use struct builtin_macro, add NODE_WARN
127         to builtins selectively.
128         * macro.c (warn_of_redefinition): Return false if a builtin macro
129         is not flagged with NODE_WARN.
130
131 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
132
133         PR preprocessor/36649
134         * files.c (struct report_missing_guard_data): New type.
135         (report_missing_guard): Put paths into an array instead of printing
136         them right away.  Return 1 rather than 0.
137         (report_missing_guard_cmp): New function.
138         (_cpp_report_missing_guards): Sort and print paths gathered by
139         report_missing_guard callback.
140
141 2008-07-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
142
143         PR 28079
144         * directives.c (strtolinenum): Handle overflow.
145         (do_line): Give a warning if line number overflowed.
146         (do_linemarker): Update call to strtolinenum.
147
148 2008-07-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
149
150         * include/line-map.h (linenum_type): New typedef.
151         (struct line_map): Use it.
152         (SOURCE_LINE): Second arguments is a LOCATION not a LINE.
153         (SOURCE_COLUMN): Likewise.
154         * macro.c (_cpp_builtin_macro_text): Use linenum_type. Don't store
155         source_location values in a variable of type linenum_type.
156         * directives.c (struct if_stack): Use linenum_type.
157         (strtoul_for_line): Rename as strtolinenum.
158         (do_line): Use linenum_type.
159         (do_linemarker): Use linenum_type and strtolinenum.
160         (_cpp_do_file_change): Use linenum_t.
161         * line-map.c (linemap_add): Likewise.
162         (linemap_line_start): Likewise.
163         * traditional.c (struct fun_macro): 'line' is a source_location.
164         * errors.c (print_location): Use linenum_type.
165         * directives-only.c (_cpp_preprocess_dir_only): Likewise.
166         * internal.h (CPP_INCREMENT_LINE): Likewise.
167         * lex.c (_cpp_skip_block_comment): Use source_location.
168         
169 2008-07-14  Ben Elliston  <bje@au.ibm.com>
170
171         * include/cpplib.h (NODE_CONDITIONAL): New.
172         (struct cpp_callbacks): New macro_to_expand field.
173         (struct cpp_hashnode): Adjust size of flags and type fields.
174         (cpp_peek_token): Prototype.
175         * lex.c (cpp_peek_token): New function.
176         (_cpp_temp_token): Protect pre-existing lookaheads.
177         * macro.c (cpp_get_token): Expand any conditional macros.
178         (_cpp_backup_tokens_direct): New.
179         (_cpp_backup_tokens): Call _cpp_backup_tokens_direct.
180         (warn_of_redefinition): Silently allow redefined conditional
181         macros.
182         (_cpp_create_definition): Remove the conditional flag when a user
183         defines one of the conditional macros.
184         * internal.h (_cpp_backup_tokens_direct): New prototype.
185
186 2008-06-13  Andrew Haley  <aph@redhat.com>
187
188         PR preprocessor/33305
189         * macro.c (replace_args): Print a warning for empty macro
190         arguments in C89 and C++.
191
192 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
193
194         * Makefile.in ($(srcdir)/aclocal.m4): Update dependencies.
195         * configure: Regenerate.
196
197 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
198
199         * Makefile.in (datarootdir): New variable.
200
201 2008-06-12  H.J. Lu  <hongjiu.lu@intel.com>
202
203         PR preprocessor/36479
204         * charset.c (cpp_interpret_string_notranslate): Also set
205         narrow_cset_desc.width.
206
207 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
208
209         * configure.ac (parisc*64*-*-*): Remove.
210         * configure: Regenerate.
211
212 2008-05-30  Tom Tromey  <tromey@redhat.com>
213
214         PR preprocessor/36320:
215         * internal.h (_cpp_parse_expr): Update.
216         * expr.c (_cpp_parse_expr): Add 'is_if' argument.  Update error
217         messages.
218         * directives.c (do_if): Update.
219         (do_elif): Require expression if processing group.
220
221 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
222
223         * include/cpplib.h (struct cpp_dir): Add new field, canonical_name.
224
225 2008-05-21  Tom Tromey  <tromey@redhat.com>
226
227         PR preprocessor/27777:
228         * lex.c (cpp_output_line_to_string): New function.
229         * internal.h (_cpp_begin_message): Don't declare.
230         * errors.c (_cpp_begin_message): Now static.
231         * include/cpplib.h (cpp_output_line_to_string): Declare.
232         * directives.c (do_diagnostic): Rewrote.  Use
233         cpp_output_line_to_string.  Don't use _cpp_begin_message.
234
235 2008-05-21  Tom Tromey  <tromey@redhat.com>
236
237         * include/symtab.h (HT_ALLOCED): Remove.
238         (ht_purge): Declare.
239         * symtab.c (DELETED): New define.
240         (ht_lookup): Update comment.
241         (ht_lookup_with_hash): Handle deleted entries.  Remove HT_ALLOCED
242         code.  Use subobject allocator for strings, if it exists.
243         (ht_expand): Handle deleted entries.
244         (ht_forall): Likewise.
245         (ht_purge): New function.
246         (ht_dump_statistics): Print deletion statistics.
247
248 2008-05-13  Tom Tromey  <tromey@redhat.com>
249
250         PR preprocessor/22168:
251         * include/cpplib.h (struct cpp_options) <objc>: Update
252         documentation.
253         * expr.c (eval_token): Warn for use of assertions.
254         * directives.c (directive_diagnostics): Warn about extensions.
255         (DEPRECATED): New define.
256         (DIRECTIVE_TABLE): Use it.
257
258 2008-05-06  Tom Tromey  <tromey@redhat.com>
259
260         PR preprocessor/35313, PR preprocessor/36088:
261         * expr.c (optab) <QUERY, COMMA>: Set precedence to 4.
262         (reduce) <case CPP_QUERY>: Special case CPP_COMMA and CPP_COLON.
263
264 2008-05-04  David S. Miller  <davem@davemloft.net>
265
266         * configure.ac (sparc*-*-*): Always set need_64bit_hwint to yes.
267         * configure: Regenerate.
268
269 2008-04-22  Daniel Franke  <franke.daniel@gmail.com>
270
271         * include/cpplib.h (cpp_define_formatted): New.
272         * directives.c (cpp_define_formatted): New.
273
274 2008-04-21  Tom Tromey  <tromey@redhat.com>
275
276         PR libcpp/33415:
277         * charset.c (_cpp_convert_input): Add buffer_start argument.
278         Ignore UTF-8 BOM if seen.
279         * internal.h (_cpp_convert_input): Add argument.
280         * files.c (struct _cpp_file) <buffer_start>: New field.
281         (destroy_cpp_file): Free buffer_start, not buffer.
282         (_cpp_pop_file_buffer): Likewise.
283         (read_file_guts): Update.
284
285 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
286
287         * include/cpp-id-data.h (UC): Was U, conflicts with U"..." literal.
288         * include/cpplib.h (CHAR16, CHAR32, STRING16, STRING32): New tokens.
289         (struct cpp_options): Added uliterals.
290         (cpp_interpret_string): Update prototype.
291         (cpp_interpret_string_notranslate): Idem.
292         * charset.c (init_iconv_desc): New width member in cset_converter.
293         (cpp_init_iconv): Add support for char{16,32}_cset_desc.
294         (convert_ucn): Idem.
295         (emit_numeric_escape): Idem.
296         (convert_hex): Idem.
297         (convert_oct): Idem.
298         (convert_escape): Idem.
299         (converter_for_type): New function.
300         (cpp_interpret_string): Use converter_for_type, support u and U prefix.
301         (cpp_interpret_string_notranslate): Match changed prototype.
302         (wide_str_to_charconst): Use converter_for_type.
303         (cpp_interpret_charconst): Add support for CPP_CHAR{16,32}.
304         * directives.c (linemarker_dir): Macro U changed to UC.
305         (parse_include): Idem.
306         (register_pragma_1): Idem.
307         (restore_registered_pragmas): Idem.
308         (get__Pragma_string): Support CPP_STRING{16,32}.
309         * expr.c (eval_token): Support CPP_CHAR{16,32}.
310         * init.c (struct lang_flags): Added uliterals.
311         (lang_defaults): Idem.
312         * internal.h (struct cset_converter) <width>: New field.
313         (struct cpp_reader) <char16_cset_desc>: Idem.
314         (struct cpp_reader) <char32_cset_desc>: Idem.
315         * lex.c (digraph_spellings): Macro U changed to UC.
316         (OP, TK): Idem.
317         (lex_string): Add support for u'...', U'...', u"..." and U"...".
318         (_cpp_lex_direct): Idem.
319         * macro.c (_cpp_builtin_macro_text): Macro U changed to UC.
320         (stringify_arg): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
321
322 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
323
324         PR bootstrap/35457
325         * aclocal.m4: Regenerate.
326         * configure: Regenerate.
327
328 2008-04-17  Tom Tromey  <tromey@redhat.com>
329
330         PR libcpp/34866:
331         * errors.c (cpp_error): Don't reference a token before the start
332         of the current run.
333
334 2008-04-16  Tom Tromey  <tromey@redhat.com>
335
336         * Makefile.in (TAGS_SOURCES): New variable.
337         (TAGS): New target.
338
339 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
340
341         * configure.ac: (need_64bit_hwint): Need 64bit hwint for sh-*-*
342         and shbe-*-*.
343         * configure: Rebuilt.
344
345 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
346
347         * include/cpplib.h (struct cpp_callbacks): Add used_define,
348         used_undef and before_define.
349         (NODE_USED): Define.
350         * directives.c (do_define, do_undef, undefine_macros, do_ifdef,
351         do_ifndef, cpp_pop_definition): Handle new flag and use new
352         callbacks.
353         * expr.c (parse_defined): Handle new flag and use new callbacks.
354         * macro.c (enter_macro_context, _cpp_free_definition): Handle new
355         flag and use new callbacks.
356
357 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
358
359         PR pch/13675
360         * files.c (struct _cpp_file): Remove pch field.
361         (pch_open_file): Don't set file->pch, just file->pchname.
362         (should_stack_file): After pfile->cb.read_pch call
363         free pchname and clear pchname, don't close file->fd.
364         Test file->pchname instead of file->pch.  Don't close fd after cb.
365         (_cpp_stack_include): Test file->pchname instead of file->pch.
366
367 2008-03-28  Tom Tromey  <tromey@redhat.com>
368
369         * Makefile.in (POSTCOMPILE): New variable.
370         (.c.o): Use it.
371
372 2008-03-13  Tom Tromey  <tromey@redhat.com>
373
374         PR libcpp/35322:
375         * directives.c (destringize_and_run): Set pfile->directive.
376
377 2008-03-06  Markus Milleder  <markus.milleder@generali.at>
378
379         PR preprocessor/35458
380         * mkdeps.c (munge): Quote '#' with a '\'.
381
382 2008-02-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
383
384         PR preprocessor/35379
385         * mkdeps.c (deps_write): Ensure the first target always appears
386         in the first column, without leading backslash newline.  Avoid
387         some more extra whitespace.
388
389 2008-02-25  Thiemo Seufer <ths@mips.com>
390
391         * Makefile.in ($(srcdir)/config.in): Depend on configure.ac.
392
393 2008-02-19  Tom Tromey  <tromey@redhat.com>
394
395         * traditional.c (lex_identifier): Use CPP_HASHNODE.
396         * lex.c (lex_identifier): Use CPP_HASHNODE.
397         * include/line-map.h (LINEMAP_POSITION_FOR_COLUMN): Wrap in
398         do-while.
399         * identifiers.c (alloc_node): Change return type.
400         (_cpp_init_hashtable): Don't cast 'alloc_node'.
401         (proxy_assertion_broken): New declaration.
402         (cpp_forall_identifiers): Move comment.
403         * line-map.c (linemap_add): Comment fix.
404         (linemap_line_start): Indentation fix.
405
406 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
407
408         PR preprocessor/34692
409         * macro.c (collect_args): Add pragma_buff argument.  Push
410         CPP_PRAGMA ... CPP_PRAGMA_EOL tokens to *pragma_buff, rather
411         than into arguments.  Reset prevent_expansion and parsing_args
412         state at CPP_PRAGMA_EOL/CPP_EOF.
413         (funlike_invocation_p): Add pragma_buff argument, pass it through
414         to collect_args.
415         (enter_macro_context): Add result argument.  Adjust
416         funlike_invocation_p caller.  Emit all deferred pragma tokens
417         gathered during collect_args before the expansion, add a padding
418         token.  Return 2 instead of 1 if any pragma tokens were prepended.
419         (cpp_get_token): If enter_macro_context returns 2, don't return
420         a padding token, instead cycle to grab CPP_PRAGMA token.
421         * directives.c (_cpp_handle_directive): If was_parsing_args
422         in deferred pragma, leave parsing_args and prevent_expansion as is.
423
424 2008-01-22  Tom Tromey  <tromey@redhat.com>
425
426         PR c++/34859
427         * macro.c (_cpp_create_definition): Handle __STDC_LIMIT_MACROS and
428         __STDC_CONSTANT_MACROS.
429
430 2008-01-07  Fred Fish  <fnf@specifix.com>
431
432         PR preprocessor/30363
433         * traditional.c (replace_args_and_push): Add local variable
434         cxtquote, calculate the replacement text size assuming a 
435         worst case of every input character quoted with backslash,
436         and properly handle output quoting of quote characters in
437         actual arguments used in function-like macros.
438
439 2008-01-03  Tom Tromey  <tromey@redhat.com>
440
441         PR preprocessor/34602
442         * directives.c (do_line): Don't try to spell EOF token.
443         (do_linemarker): Add comment.
444
445 2007-12-11  DJ Delorie  <dj@redhat.com>
446
447         * charset.c (convert_using_iconv): Close out any shift states,
448         returning to the initial state.
449
450 2007-12-06  Tom Tromey  <tromey@redhat.com>
451
452         PR c/29172
453         * internal.h (struct cpp_reader) <file_hash_entries>: Changed
454         type.
455         <file_hash_entries_allocated, file_hash_entries_used>: Removed.
456         * files.c (FILE_HASH_POOL_SIZE): New macro.
457         (struct file_hash_entry_pool): New.
458         (destroy_all_cpp_files): New function.
459         (allocate_file_hash_entries): Allocate a file_hash_entry_pool.
460         (new_file_hash_entry): Update.
461         (free_file_hash_entries): New function.
462         (_cpp_cleanup_files): Call free_file_hash_entries and
463         destroy_all_cpp_files.
464         (cpp_clear_file_cache): New function.
465         * include/cpplib.h (cpp_clear_file_cache): Declare.
466
467 2007-12-03  Tom Tromey  <tromey@redhat.com>
468
469         PR preprocessor/34288
470         * configure.ac, config.in: Rebuilt.
471         * configure.ac: Check for ssize_t.
472
473 2007-11-30  Tom Tromey  <tromey@redhat.com>
474
475         PR preprocessor/32868
476         * macro.c (_cpp_create_definition): Special case
477         __STDC_FORMAT_MACROS.
478
479 2007-11-16  Michael Matz  <matz@suse.de>
480
481         * files.c (search_path_head): Fix check for absolute paths.
482
483 2007-11-11  Tom Tromey  <tromey@redhat.com>
484
485         PR c++/17557
486         * include/cpplib.h (cpp_included_before): Declare.
487         * files.c (struct file_hash_entry) <location>: New field.
488         (_cpp_find_file): Initialize new field.
489         (make_cpp_dir): Likewise.
490         (cpp_included_before): New function.
491
492 2007-11-01  Tom Tromey  <tromey@redhat.com>
493
494         PR preprocessor/30805
495         * macro.c (paste_tokens): Handle padding token.
496         (paste_tokens): Don't abort unless padding has PASTE_LEFT flag.
497
498 2007-10-31  Tom Tromey  <tromey@redhat.com>
499
500         PR preprocessor/30786
501         * macro.c (builtin_macro): Return result of _cpp_do__Pragma.
502         * directives.c (_cpp_do__Pragma): Return error status.
503         * internal.h (_cpp_do__Pragma): Update.
504         * directives.c (get__Pragma_string): Back up if EOF seen.
505
506 2007-09-06  Tom Tromey  <tromey@redhat.com>
507
508         * internal.h (struct cpp_reader) <invocation_location>: New
509         field.
510         (struct cpp_reader) <set_invocation_location>: Likewise.
511         * init.c (cpp_set_line_map): New function.
512         * line-map.c (linemap_add): Use linemap's allocator.
513         * include/line-map.h (GTY): Define.
514         (line_map_realloc): New typedef.
515         (struct line_map): Mark with GTY.
516         (struct line_maps): Likewise.
517         (struct line_maps) <maps>: Likewise.
518         (struct line_maps) <reallocator>: New field.
519         * include/symtab.h (GTY): Conditionally define.
520         * include/cpplib.h (cpp_set_line_map): Declare.
521         (cpp_get_token_with_location): Declare.
522         * macro.c (cpp_get_token): Set invocation_location on the reader.
523         (cpp_get_token_with_location): New function.
524
525 2007-08-30  Chao-ying Fu  <fu@mips.com>
526
527         * expr.c (interpret_float_suffix): Support hr, r, lr, llr, uhr, ur,
528         ulr, ullr, hk, k, lk, llk, uhk, uk, ulk, ullk.
529         (cpp_classify_number): Support decimal fixed-point constants without
530         exponents.
531         Warn about fixed-point constants when -pedantic.
532         * include/cpplib.h (CPP_N_SMALL, CPP_N_MEDIUM, CPP_N_LARGE): Change
533         comments to support fixed-point values.
534         (CPP_N_FRACT, CPP_N_ACCUM): Define.
535
536 2007-08-18  Tom Tromey  <tromey@redhat.com>
537
538         PR preprocessor/32974
539         * directives.c (parse_include): Don't check for EOL when
540         processing #pragma dependency.
541
542 2007-07-30  Ollie Wild  <aaw@google.com>
543
544         * directives-only.c: New file.
545         * internal.h (struct _cpp_dir_only_callbacks): New.
546         (_cpp_preprocess_dir_only): New function.
547         * directives.c (_cpp_handle_directive): Check directives_only before
548         disabling execution of indented directives.
549         * files.c (_cpp_stack_file): Add directives_only check.
550         * include/cpplib.h (struct cpp_options): Add directives_only.
551         (cpp_init_special_builtins): New function.
552         * init.c (cpp_init_special_builtins): New function.
553         (cpp_init_builtins): Move builtin_array initialization to
554         cpp_init_special_builtins.
555         (post_options): Check directives_only before setting
556         pfile->state.prevent_expansion = 1.
557         * macro.c (_cpp_builtin_macro_text): Print an error if __COUNTER__
558         is expanded inside a directive while -fdirectives-only is enabled.
559         * Makefile.in (libcpp_a_OBJS): Add directives-only.o.
560         (libcpp_a_SOURCES): Add directives-only.c.
561
562 2007-07-04  Uros Bizjak  <ubizjak@gmail.com>
563
564         * traditional.c (_cpp_scan_out_logical_line): Initialize
565         fmacro.args, fmacro.node, fmacro.offset, fmacro.line and
566         fmacro.args to prevent 'may be used uninitialized' warning.
567
568 2007-07-03  Uros Bizjak  <ubizjak@gmail.com>
569
570         * include/cpplib.h (CPP_N_WIDTH_MD, CPP_N_MD_W, CPP_N_MD_Q):
571         Add new constants.
572         * expr.c (interpret_float_suffix): Process 'w', 'W', 'q' and 'Q'
573         suffixes.  Return CPP_N_MD_W for 'w' or 'W' suffixes and CPP_N_MD_Q
574         for 'q' or 'Q' suffixes.
575
576 2007-06-17  Danny Smith  <dannysmith@users.sourceforge.net
577
578         * files.c (open_file): Correct typo.
579
580 2007-06-16  Vladimir Prus  <vladimir@codesourcery.com>
581
582         * files.c (open_file): Prevent the call
583         for stat from overwriting errno.
584
585 2007-06-09  Vladimir Prus  <vladimir@codesourcery.com>
586
587         * files.c (open_file): Account for the
588         fact that on windows, opening a directory gives
589         EACCES.
590
591 2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de>
592
593         PR preprocessor/23479
594         * expr.c (cpp_classify_number): Implement 0b-prefixed binary
595         integer constants.
596         (append_digit): Likewise.
597         * include/cpplib.h: Add CPP_N_BINARY, to be used for 0b-prefixed
598         binary integer constants.
599
600 2007-05-31  Dave Korn  <dave.korn@artimi.com>
601
602         PR preprocessor/14331
603         * lex.c (_cpp_get_fresh_line):  Don't warn if no newline at EOF.
604
605 2007-05-24  Ollie Wild  <aaw@google.com>
606
607         * macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER.
608         * pch.c (cpp_write_pch_deps): Save __COUNTER__ state.
609         (cpp_write_pch_state): Save __COUNTER__ state.
610         (cpp_valid_state): Check valid __COUNTER__ state.
611         (cpp_read_state): Read new __COUNTER__ state.
612         * include/cpplib.h (enum builtin_type): Add BT_COUNTER enumerator.
613         * init.c (builtin_array): Add __COUNTER__/BT_COUNTER.
614         * internal.h (struct cpp_reader): Add counter member.
615
616 2007-05-23  Simon Martin  <simartin@users.sourceforge.net>
617
618         PR preprocessor/20077
619         * macro.c (create_iso_definition): Fixed the method to determine
620         whether the token-pasting operator appears at the beginning or the end
621         of a macro.
622
623 2007-05-21  Ian Lance Taylor  <iant@google.com>
624
625         * internal.h (struct cpp_reader): Add new fields:
626         nonexistent_file_hash and nonexistent_file_ob.
627         * files.c: Include "obstack.h".
628         (find_file_in_dir): Before trying to open the file, look up the
629         path name in the hash table of nonexistent files.  After failing
630         to open the file, add the path name to the hash table.
631         (_cpp_find_file): Cache the results of looking up the file name
632         starting with the quote and bracket chain heads, if we can.
633         (nonexistent_file_hash_eq): New static function.
634         (_cpp_init_files): Initialize pfile->nonexistent_file_hash and
635         pfile->nonexistent_file_ob.
636         (_cpp_cleanup_files): Free pfile->nonexistent_file_hash and
637         pfile->nonexistent_file_ob.
638
639 2007-05-14  Janis Johnson  <janis187@us.ibm.com>
640
641         * expr.c (cpp_classify_number): Warn about dfp constant for -pedantic.
642
643         PR c/31924
644         * expr.c (interpret_float_suffix): Check for invalid suffix.
645
646 2007-05-02  Eric Christopher  <echristo@apple.com>
647
648         * expr.c (num_div_op): Don't overflow if the result is
649         zero.
650
651 2007-05-02  Tom Tromey  <tromey@redhat.com>
652
653         PR preprocessor/28709
654         * macro.c (paste_tokens): Remove PASTE_LEFT from the old lhs.
655
656 2007-03-30  Michael Meissner  <michael.meissner@amd.com>
657
658         * directives.c (lex_macro_node_from_str): Fix alloca call to be
659         type correct.
660
661 2007-03-30  Richard Henderson  <rth@redhat.com>
662
663         * directives.c (lex_macro_node_from_str): New.
664         (cpp_push_definition, cpp_pop_definition): New.
665         * include/cpplib.h (cpp_push_definition, cpp_pop_definition): Declare.
666
667 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
668
669         * Makefile.in: Add dummy install-pdf target.
670
671 2007-01-30  Tom Tromey  <tromey@redhat.com>
672
673         PR preprocessor/30468
674         * mkdeps.c (apply_vpath): Strip successive '/'s if we stripped
675         './'.
676
677 2007-01-30  Tom Tromey  <tromey@redhat.com>
678
679         PR preprocessor/29966
680         * macro.c (lex_expansion_token): Save and restore cpp_reader's
681         cur_token.
682         (_cpp_create_definition): Don't restore cur_token here.
683         * lex.c (_cpp_lex_token): Added assertion.
684
685 2007-01-27  Tom Tromey  <tromey@redhat.com>
686
687         * configure: Rebuilt.
688
689 2007-01-12  Tom Tromey  <tromey@redhat.com>
690
691         PR preprocessor/28227
692         * directives.c (lex_macro_node): Added 'is_def_or_undef'
693         argument.
694         (do_define): Update.
695         (do_undef): Update.
696         (do_ifdef): Update.
697         (do_ifndef): Update.
698
699 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
700
701         * configure: Regenerate.
702
703 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
704
705         * configure: Regenerate.
706
707 2007-01-04  Tom Tromey  <tromey@redhat.com>
708
709         PR preprocessor/28165
710         * internal.h (cpp_in_primary_file): New function.
711         * directives.c (do_include_next): Use cpp_in_primary_file.
712         (do_pragma_once): Likewise.
713         (do_pragma_system_header): Likewise.
714
715 2006-12-29  Ian Lance Taylor  <iant@google.com>
716
717         * lex.c (_cpp_clean_line): Add uses of __builtin_expect.  Don't
718         look backward at the end of the line unless we saw a backslash.
719
720 2006-12-29  Jakub Jelinek  <jakub@redhat.com>
721
722         PR preprocessor/29612
723         * directives.c (do_linemarker): Set pfile->buffer->sysp always, not
724         only when new_sysp is non-zero.
725
726 2006-12-28  Tom Tromey  <tromey@redhat.com>
727
728         PR preprocessor/30001
729         * charset.c (_cpp_convert_input): Check that to.len is greater
730         than zero.
731
732 2006-11-20  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
733
734         * configure.ac (need_64bit_hwint): Need 64bit hwint for SPU.
735         * configure: Rebuilt.
736
737 2006-11-01      Douglas Gregor <doug.gregor@gmail.com>
738
739         * include/cpplib.h (enum c_lang): Add CLK_GNUCXX0X and CLK_CXX0X
740         for experimental C++0x mode.
741         * init.c (lang_defaults): Add defaults for C++0x modes. C++0x has
742         adopted the preprocessor changes introduced in C99.
743
744 2006-10-29  Joseph Myers  <joseph@codesourcery.com>
745
746         * configure.ac (need_64bit_hwint): Set for i[34567]86-*-linux*
747         depending on --enable-targets=all.
748         * configure: Regenerate.
749
750 2006-10-12  Jakub Jelinek  <jakub@redhat.com>
751
752         PR preprocessor/28709
753         * macro.c (paste_tokens): Do error reporting here, use BUF with the
754         spelled LHS token as opposed to spelling it again.
755         (paste_all_tokens): Don't report errors here, just break on failure.
756
757 2006-10-10  Brooks Moses  <bmoses@stanford.edu>
758
759         * Makefile.in: Added empty "pdf" target.
760
761 2006-09-22  Geoffrey Keating  <geoffk@apple.com>
762
763         * configure.ac: Make need_64_bit_hwint case for x86-darwin
764         match exactly the glob in gcc/config.gcc.
765         * configure: Regenerate.
766
767 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
768
769         PR c/28768
770         PR preprocessor/14634
771         * lex.c (lex_string): Pedwarn for unterminated literals.
772
773 2006-09-08  Eric Christopher  <echristo@apple.com>
774
775         * configure.ac: Add 64-bit HWI support for i?86-darwin.
776
777 2006-08-14  Steve Ellcey  <sje@cup.hp.com>
778
779         PR c++/28288
780         PR c++/14556
781         * include/cpplib.h: Remove <?, >?, <?=, and >?= tokens.
782         (CPP_LAST_EQ): Change.
783         (CPP_LAST_PUNCTUATOR): Change.
784         * expr.c (cpp_operator): Remove MIN and MAX.
785         (reduce): Remove CPP_MIN and CPP_MAX.
786         (num_binary_op): Ditto.
787         * lex.c (_cpp_lex_direct): Ditto.
788         (cpp_avoid_paste): Remove ? as legal symbol after > or <.
789
790 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
791
792         PR preprocessor/27746
793         * directives.c (do_pragma): Handle pragma with valid namespace
794         and invalid name coming from macro expansion.
795         * directives.c (destringize_and_run): Initialize next field in
796         context.
797
798         PR c/27747
799         PR c++/27748
800         * directives.c (destringize_and_run): Set NO_EXPAND on the
801         tokens.
802
803         * macro.c (_cpp_backup_tokens): Fix comment typo.
804
805 2006-05-31  Daniel Jacobowitz  <dan@codesourcery.com>
806
807         * Makefile.in (CATALOGS): Add po/ prefix.
808         * configure: Regenerated.
809
810 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
811
812         * Makefile.in: Add install-html target. Add install-html to .PHONY
813
814 2006-02-17  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
815
816         * macro.c (_cpp_builtin_macro_text): Handle BT_TIMESTAMP.
817         * files.c (_cpp_get_file_stat): New function.
818         * include/cpplib.h (builtin_type): Add BT_TIMESTAMP.
819         * init.c (builtin_array): Add support for __TIMESTAMP__/BT_TIMESTAMP.
820         * internal.h (_cpp_get_file_stat): Prototype.
821         (struct cpp_buffer): Add timestamp.
822
823 2006-01-23  Jakub Jelinek  <jakub@redhat.com>
824
825         PR preprocessor/25717
826         * init.c (cpp_init_builtins): If __STDC__ will not change value
827         between system headers and other sources, define it as a normal
828         macro rather than a builtin.
829         * macro.c (_cpp_builtin_macro_text) <case BT_STDC>: Only check
830         cpp_in_system_header condition.
831
832 2006-01-05  Paolo Bonzini  <bonzini@gnu.org>
833
834         * Makefile.in: Use -MMD instead of -MD.
835
836 2006-01-04  Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
837             Richard Henderson  <rth@redhat.com>
838
839         Merge from gomp branch:
840         * directives.c (struct pragma_entry): Add is_deferred.  Add ident
841         entry to value union.
842         (end_directive): Don't eat the line if in_deferred_pragma.
843         (run_directive): Remove pragma hacks.
844         (insert_pragma_entry): Remove.
845         (new_pragma_entry): New.
846         (register_pragma_1): Split out of register_pragma.  Only handle
847         the lookup tree and return the new entry.
848         (cpp_register_pragma): Fill in the pragma entry here.
849         (cpp_register_deferred_pragma): New.
850         (register_pragma_internal): New.
851         (_cpp_init_internal_pragmas): Use register_pragma_internal.
852         (do_pragma): Allow pragma expansion after namespace.  For deferred
853         pragmas, don't slurp the line into a string.
854         (destringize_and_run): Save tokens for deferred pragmas.
855         (cpp_handle_deferred_pragma): Remove.
856         * macro.c (builtin_macro): Remove pragma token hack.
857         (_cpp_push_token_context): Rename from push_token_context and export.
858         * internal.h (struct lexer_state): Add pragma_allow_expansion.
859         (_cpp_push_token_context): Declare.
860         * lex.c (_cpp_lex_token): Allow _cpp_handle_directive to return
861         a token.  Update the line number correctly if so.
862         (_cpp_lex_direct): Emit CPP_PRAGMA_EOL tokens.
863         (cpp_token_val_index): Return CPP_TOKEN_FLD_PRAGMA for pragmas.
864         * include/cpplib.h (PRAGMA_EOL): New.
865         (CPP_TOKEN_FLD_PRAGMA): New.
866         (struct cpp_token): Add val.pragma.
867         (struct cpp_options): Remove defer_pragmas.
868         (cpp_handle_deferred_pragma): Remove.
869         (cpp_register_deferred_pragma): Declare.
870
871 2006-01-01  Jakub Jelinek  <jakub@redhat.com>
872
873         PR c++/25294
874         * directives.c (do_pragma): If pragma line ends with multi-line
875         block comment, end the saved deferred pragma string before that
876         comment.  Handle embedded '\0' chars on the pragma line.
877
878 2005-12-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
879
880         PR c++/23333
881         * include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure.
882
883 2005-12-07  Jon Grimm  <jgrimm2@us.ibm.com>
884             Ben Elliston  <bje@au.ibm.com>
885
886         * include/cpplib.h (CPP_N_DFLOAT): New.
887         * expr.c (interpret_float_suffix): Identify df, dd, and dl
888         suffixes as decimal floating point constants.
889         (cpp_classify_number): Disallow hexadecimal DFP constants.
890
891 2005-11-14  Gerald Pfeifer  <gerald@pfeifer.com>
892             Ian Lance Taylor  <ian@airs.com>
893
894         * include/cpplib.h (struct cpp_callbacks): Annotate error with
895         ATTRIBUTE_FPTR_PRINTF(3,0) instead of ATTRIBUTE_PRINTF(3,0).
896
897 2005-11-09  Per Bothner  <per@bothner.com>
898             Uros Bizjak  <uros@kss-loka.si>
899
900         PR c/24101
901         * init.c (read_original_filename): Temporarily set
902         state.in_directive before calling _cpp_lex_direct for
903         CPP_HASH tokens.
904
905 2005-11-03  James E Wilson  <wilson@specifix.com>
906
907         PR preprocessor/24202
908         * files.c (_cpp_pop_file_buffer): Set buffer_valid to false.
909
910 2005-11-04  Joseph S. Myers  <joseph@codesourcery.com>
911
912         * include/cpplib.h (struct cpp_callbacks): Make error take
913         va_list* parameter.
914         * errors.c (cpp_error): Update call to callback.
915
916 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
917
918         PR preprocessor/22042
919         * macro.c (_cpp_builtin_macro_text): Lower the needed max
920         buffer size.
921         (cpp_quote_string): Don't octalify non printable
922         charactors.
923
924 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
925
926         PR c++/17964
927         * include/cpplib.h (struct cpp_options): Add client_diagnostic.
928         (struct cpp_callbacks): Add error.
929         * errors.c (cpp_error): If client_diagnostic, use error callback.
930         * charset.c (convert_escape): Don't use %03o in diagnostic.
931
932 2005-10-21  James E Wilson  <wilson@specifix.com>
933
934         PR preprocessor/15220
935         * files.c (_cpp_find_file): New parameter angle_brackets.  Fix all
936         callers.  Pass to open_file_failed.
937         (open_file_failed): New parameter angle_brackets.  Fix all callers.
938         Use in print_dep assignment.
939         * init.c (cpp_read_main_file): Pass additional arg to _cpp_find_file.
940         * internal.h (_cpp_find_file): Add new parm to declaration.
941
942 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
943
944         * configure.ac: Require 64-bit int for arm*-*-*eabi*.
945         * configure: Regenerate.
946
947 2005-10-04  Ian Lance Taylor  <ian@airs.com>
948
949         PR preprocessor/13726
950         * directives.c (check_eol_return_comments): New static function.
951         (parse_include): Add buf parameter.  Change all callers.
952         (do_include_common): If not discard comments, turn on
953         save_comments.  Pass collected comments to include callback.
954         * include/cpplib.h (struct cpp_callbacks): Add new parameter to
955         include callback: cpp_token list.
956
957 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
958
959         * include/cpplib.h (struct cpp_options): Add extended_identifiers.
960         * init.c (struct lang_flags, lang_defaults): Add
961         extended_identifiers.
962         (cpp_set_lang): Use it.
963         * lex.c (forms_identifier_p): Check extended_identifiers.
964
965 2005-08-30  Jakub Jelinek  <jakub@redhat.com>
966
967         PR preprocessor/20348
968         PR preprocessor/20356
969         * files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and
970         2004-06-05 changes.
971
972 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
973
974         * configure.ac (ACX_PROG_CC_WARNING_OPTS): add
975         -Wmissing-format-attribute.
976
977         * configure: Regenerate.
978
979 2005-06-29  Kelley Cook  <kcook@gcc.gnu.org>
980
981         * all files: Update FSF address in copyright headers.
982         * makeucnid.c (write_copyright): Update outputted FSF address.
983
984 2005-06-13  Zack Weinberg  <zack@codesourcery.com>
985
986         * configure.ac: Invoke ZW_CREATE_DEPDIR and
987         ZW_PROG_COMPILER_DEPENDENCIES.
988         * aclocal.m4, configure: Regenerate.
989         * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE):
990         New variables.
991         (distclean): Clean up $(DEPDIR) and its contents.
992         (.c.o): Use $(COMPILE).
993         Include $(DEPDIR)/*.Po for most object->header dependencies.
994
995 2005-05-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
996
997         * configure.ac: Check declarations for asprintf and vasprintf.
998         * config.in: Regenerate.
999         * configure: Likewise.
1000
1001         * charset.c (conversion_loop): Use XRESIZEVEC.
1002         (convert_no_conversion): Likewise.
1003         (convert_using_iconv): Likewise.
1004         (init_iconv_desc): Cast return value of alloca.
1005         (cpp_host_to_exec_charset): Use XNEWVEC.
1006         (emit_numeric_escape): Use XRESIZEVEC.
1007         (cpp_interpret_string): Use XNEWVEC.
1008         (cpp_interpret_string): Use XRESIZEVEC.
1009         (_cpp_interpret_identifier): Cast return value of alloca.
1010         (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC.
1011         * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC.
1012         (parse_include): Use XNEWVEC.
1013         (insert_pragma_entry): Rename local variable "new" to
1014         "new_entry".
1015         (save_registered_pragmas): Cast return value of xmemdup.
1016         (destringize_and_run): Same for alloca.
1017         (parse_assertion): Likewise.
1018         (do_assert): Cast allocated storage to proper type.
1019         (cpp_define): Likewise.
1020         (_cpp_define_builtin): Likewise.
1021         (cpp_undef): Likewise.
1022         (handle_assertion): Likewise.
1023         (cpp_push_buffer): Rename local variable "new" to "new_buffer".
1024         * expr.c (CPP_UPLUS): Cast value to type cpp_ttype.
1025         (CPP_UMINUS): Likewise.
1026         (struct cpp_operator): Rename from struct operator.
1027         (_cpp_expand_op_stack): Use XRESIZEVEC.
1028         * files.c (pch_open_file): Use XNEWVEC.
1029         (pch_open_file): Use XRESIZEVEC.
1030         (read_file_guts): Use XNEWVEC and XRESIZEVEC.
1031         (dir_name_of_file): Use XNEWVEC.
1032         (make_cpp_file): Use XCNEW.
1033         (make_cpp_dir): Likewise.
1034         (allocate_file_hash_entries): USE XNEWVEC.
1035         (cpp_included): Cast return value of htab_find_with_hash.
1036         (append_file_to_dir): Use XNEWVEC.
1037         (read_filename_string): Likewise. Use XRESIZEVEC too.
1038         (read_name_map): Cast return value of alloca.  Use XRESIZEVEC.
1039         (remap_filename): Use XNEWVEC.
1040         (struct pchf_entry): Move definition out of struct pchf_data.
1041         (_cpp_save_file_entries): Use XCNEWVAR.
1042         (_cpp_read_file_entries): Use XNEWVAR.
1043         * identifiers.c (alloc_node): Use XOBNEW.
1044         * init.c (cpp_create_reader): Use XCNEW.
1045         (cpp_init_builtins): Cast of b->value to enum builtin_type.
1046         (read_original_directory): Cast return value of alloca.
1047         * lex.c (add_line_note): Use XRESIZEVEC.
1048         (warn_about_normalization): Use XNEWVEC.
1049         (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype).
1050         (new_buff): Use XNEWVEC.
1051         * line-map.c (linemap_add): Use XRESIZEVEC.
1052         * macro.c (builtin_macro): Cast return value of alloca.
1053         (paste_tokens): Likewise.
1054         (expand_arg): Use XNEWVEC and XRESIZEVEC.
1055         (_cpp_save_parameter): Use XRESIZEVEC.
1056         (create_iso_definition): Cast allocated storage to proper type.
1057         (_cpp_create_definition): Likewise.
1058         (cpp_macro_definition): Use XRESIZEVEC.
1059         * makedepend.c (add_clm): Use XNEW.
1060         (add_dir): Likewise.
1061         * mkdeps.c (munge): Use XNEWVEC.
1062         (deps_init): Use XCNEW.
1063         (deps_add_target): Use XRESIZEVEC.
1064         (deps_add_default_target): Cast return value of alloca.
1065         (deps_add_dep): Use XRESIZEVEC.
1066         (deps_add_vpath): Likewise.  Use XNEWVEC too.
1067         (deps_restore): Likewise.
1068         * pch.c (save_idents): Use XNEW and XNEWVEC.
1069         (cpp_save_state): Use XNEW.
1070         (count_defs): Cast return value of htab_find.
1071         (write_defs): Likewise.
1072         (cpp_write_pch_deps): Use XNEWVEC.
1073         (collect_ht_nodes): Use XRESIZEVEC.
1074         (cpp_valid_state): Use XNEWVEC.
1075         (save_macros): Use XRESIZEVEC.  Cast return value of xmemdup.
1076         * symtab.c (ht_create): Use XCNEW.
1077         (ht_lookup_with_hash): Cast return value of obstack_copy0.
1078         (ht_expand): Use XCNEWVEC.
1079         * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus.
1080         (bool): Do not define if __cplusplus.
1081
1082 2005-05-12  Zack Weinberg  <zack@codesourcery.com>
1083
1084         * directives.c (#sccs table entry): Mark IN_I, consistent with #ident.
1085         (do_sccs): Delete function definition, #define to do_ident.
1086         (do_ident): Don't hardwire directive name.
1087
1088 2005-05-12  Ryota Kunisawa  <kunisawa@access.co.jp>
1089
1090         PR bootstrap/21230
1091         * configure: Regenerate.
1092
1093 2005-04-27  Andris Pavenis  <pavenis@latnet.lv>
1094
1095         * files.c: Include io.h for DJGPP to get prototype of setmode.
1096
1097 2005-04-19  Per Bothner  <per@bothner.com>
1098
1099         PR preprocessor/20907
1100         * line-map.c (linemap_line_start): Fix bug when we need to increse
1101         column_bits but can re-use the current line_map.
1102
1103 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1104
1105         * system.h (fopen, fdopen, freopen): Define these to the unlocked
1106         libiberty functions.
1107
1108 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1109
1110         * configure.ac (libcpp_UNLOCKED_FUNCS): New.
1111         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS.
1112         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
1113         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
1114         _unlocked function.
1115         (fwrite_unlocked): Fix prototype.
1116
1117         * configure, config.in: Regenerate.
1118
1119 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
1120
1121         PR preprocessor/19475
1122         * macro.c (create_iso_definition): For < ISO C99, don't
1123         pedwarn if there is no whitespace between macro name and its
1124         replacement, but the replacement starts with a basic character
1125         set character.
1126
1127 2005-03-28  Andreas Jaeger  <aj@suse.de>
1128
1129         * lex.c (warn_about_normalization): Cast field width to int to
1130         avoid warning.
1131
1132 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
1133
1134         * configure.ac: Consistently use solaris2.1[0-9]* instead of
1135         solaris2.1[0-9].
1136         * configure: Regenerate.
1137
1138 2005-03-15  Geoffrey Keating  <geoffk@apple.com>
1139
1140         * charset.c (_cpp_valid_ucn): In identifiers, reject a partial
1141         UCN rather than printing an error.
1142
1143 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
1144
1145         * lex.c (forms_identifier_p): Disable UCNs in C89 mode.
1146
1147 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
1148
1149         * init.c (cpp_create_reader): Default warn_normalize to normalized_C.
1150         * charset.c: Update for new format of ucnid.h.
1151         (ucn_valid_in_identifier): Update for new format of ucnid.h.
1152         Add NST parameter, and update it; update callers.
1153         (cpp_valid_ucn): Add NST parameter, update callers.  Replace abort
1154         with cpp_error.
1155         (convert_ucn): Pass normalize_state to cpp_valid_ucn.
1156         * internal.h (struct normalize_state): New.
1157         (INITIAL_NORMALIZE_STATE): New.
1158         (NORMALIZE_STATE_RESULT): New.
1159         (NORMALIZE_STATE_UPDATE_IDNUM): New.
1160         (_cpp_valid_ucn): New.
1161         * lex.c (warn_about_normalization): New.
1162         (forms_identifier_p): Add normalize_state parameter, update callers.
1163         (lex_identifier): Add normalize_state parameter, update callers.  Keep
1164         the state current.
1165         (lex_number): Likewise.
1166         (_cpp_lex_direct): Pass normalize_state to subroutines.  Check
1167         it with warn_about_normalization.
1168         * makeucnid.c: New.
1169         * ucnid.h: Replace.
1170         * ucnid.pl: Remove.
1171         * ucnid.tab: Make appropriate for input to makeucnid.c.  Remove
1172         comments about obsolete version of C++.
1173         * include/cpplib.h (enum cpp_normalize_level): New.
1174         (struct cpp_options): Add warn_normalize field.
1175
1176 2005-03-11  Geoffrey Keating  <geoffk@apple.com>
1177
1178         * directives.c (glue_header_name): Update call to cpp_spell_token.
1179         * internal.h (_cpp_interpret_identifier): New.
1180         * charset.c (_cpp_interpret_identifier): New.
1181         (_cpp_valid_ucn): Allow UCN version of '$'.
1182         * lex.c (lex_identifier): Add extra parameter to indicate if initial
1183         character was '$' or '\'.  Support identifiers with UCNs.
1184         (forms_identifier_p): Allow UCNs.
1185         (_cpp_lex_direct): Pass extra parameter to lex_identifier.
1186         (utf8_to_ucn): New.
1187         (cpp_spell_token): Add FORSTRING parameter.  Use it.
1188         (cpp_token_as_text): Update call to cpp_spell_token.
1189         (cpp_output_token): Write UCNs back out.
1190         (stringify_arg): Update call to cpp_spell_token.
1191         (paste_tokens): Likewise.
1192         (cpp_macro_definition): Likewise.
1193         * macro.c (stringify_arg): Likewise.
1194         (paste_tokens): Likewise.
1195         (cpp_macro_definition): Likewise.
1196         * include/cpplib.h: Add parameter to cpp_spell_token.
1197
1198 2005-03-04  Jakub Jelinek  <jakub@redhat.com>
1199
1200         PR bootstrap/20282
1201         PR bootstrap/20305
1202         * macro.c (replace_args, cpp_get_token): Copy whole
1203         cpp_token_u instead of just cpp_string field from it.
1204
1205 2005-02-28  Devang Patel  <dpatel@apple.com>
1206
1207         * directives.c (do_line): Save sysp early before line table is
1208         realloc'ed.
1209
1210 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
1211
1212         PR 18785
1213         * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
1214         (cpp_host_to_exec_charset): New function.
1215         * include/cpplib.h: Declare cpp_host_to_exec_charset.
1216
1217 2005-02-19  Devang Patel  <dpatel@apple.com>
1218
1219         * charset.c (_cpp_convert_input): Check '\r' before inserting
1220         '\n' at the end.
1221
1222 2005-02-15  Eric Christopher  <echristo@redhat.com>
1223
1224         PR preprocessor/19077
1225         * macro.c (cpp_macro_definition): Move handling of whitespace
1226         to PREV_WHITE conditional. Remove overloading of len
1227         variable.
1228
1229 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
1230
1231         * directives.c, files.c, init.c, internal.h, macro.c, pch.c,
1232         traditional.c: Update copyright.
1233
1234 2005-02-14  Paolo Bonzini  <bonzini@gnu.org>
1235
1236         PR bootstrap/19818
1237         * configure.ac: Check for declaration of basename and getopt.
1238         * config.in: Regenerate.
1239         * configure: Regenerate.
1240         * internal.h (ustrcspn): New.
1241         * macro.c (create_iso_definition): Fix allocation of memory.
1242         (padding_token): Add cast to remove const-ness.
1243         * pch.c (cpp_read_state): Use ustrcspn.
1244
1245 2005-02-08  Mike Stump  <mrs@apple.com>
1246
1247         * files.c (pchf_adder): Remove.
1248         (struct pchf_adder_info): Likewise.
1249         (_cpp_save_file_entries): Write out all files so that #import works.
1250
1251 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
1252
1253         * configure: Regenerate.
1254
1255 2005-01-11  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
1256
1257         * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
1258
1259         * include/cpplib.h: Also update copyright years.
1260
1261 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
1262
1263         * files.c (_cpp_find_file): Add files found by search_path_exhausted
1264         to the list of all files.
1265
1266 2005-01-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1267
1268         * internal.h: Update references to Cpp lib filenames.
1269         * directives.c: Likewise.
1270         * init.c: Likewise.
1271         * macro.c: Likewise.
1272         * traditional.c: Likewise.
1273
1274 2004-12-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
1275
1276         PR preprocessor/15167
1277         * files.c (destroy_cpp_file): New function.
1278         (should_stack_file): Make a new file if the
1279         compared file is still stacked.
1280
1281 2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>
1282
1283         PR preprocessor/17610
1284         * directives.c (do_include_common): Error out if an empty filename
1285         is given for #include (or #include_next or #import).
1286
1287 2004-11-27  Roger Sayle  <roger@eyesopen.com>
1288             Zack Weinberg  <zack@codesourcery.com>
1289
1290         * internal.h: Replace all uses of uchar with unsigned char.
1291         * include/cpp-id-data.h: Likewise.  Guard typedef of uchar
1292         with !IN_GCC, so uchar is only defined whilst building libcpp.
1293
1294 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
1295
1296         * aclocal.m4: Regenerate.
1297
1298 2004-11-24  Roger Sayle  <roger@eyesopen.com>
1299
1300         PR preprocessor/15824
1301         * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
1302         directly, instead of the non-existant "system.h" and "ansidecl.h".
1303         * configure: Regenerate.
1304
1305 2004-11-23  Daniel Jacobowitz  <dan@codesourcery.com>
1306             Joseph Myers  <joseph@codesourcery.com>
1307
1308         * internal.h (struct lexer_state): Add in_deferred_pragma.
1309         * directives.c (struct pragma_entry): Add allow_expansion.
1310         (insert_pragma_entry): Take allow_expansion flag.
1311         (register_pragma): Likewise.
1312         (cpp_register_pragma): Likewise.
1313         (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
1314         (do_pragma): Honor allow_expansion.
1315         (cpp_handle_deferred_pragma): Set in_deferred_pragma.
1316         * include/cpplib.h (cpp_register_pragma): Update prototype.
1317
1318 2004-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
1319             Mark Mitchell  <mark@codesourcery.com>
1320
1321         * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
1322         need_64bit_hwint=yes.
1323         * configure: Regenerate.
1324
1325 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
1326
1327         * Makefile.in ($(PACKAGE).pot): New rule.  Depend on
1328         po/$(PACKAGE).pot.
1329         (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
1330         arguments.  Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
1331         Remove local srcdir path from generated file.
1332
1333 2004-11-04  Zack Weinberg  <zack@codesourcery.com>
1334             Gerald Pfeifer  <gerald@pfeifer.com>
1335
1336         * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
1337         as well.
1338
1339 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
1340
1341         PR 18075
1342         * directives.c (do_pragma): Do not defer pragmas which are unknown.
1343         (cpp_handle_deferred_pragma): Add cast to silence warning.
1344
1345 2004-10-14  Joseph S. Myers  <jsm@polyomino.org.uk>
1346
1347         * errors.c (_cpp_begin_message): Print "error: " for errors.
1348
1349 2004-10-10  Andreas Jaeger  <aj@suse.de>
1350
1351         * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
1352         * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
1353
1354 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
1355
1356         * pch.c (cpp_write_pch_state): Remove variable z as it is not
1357         used.
1358         (cpp_read_state): Remove unused variables, m, d and mac_count.
1359
1360 2004-09-29  Per Bothner  <per@bothner.com>
1361
1362         * directives.c (cpp_handle_deferred_pragma):  Save, clear and restore
1363         cb.line_change.  Otherwise do_pragma will call the line_change
1364         call-back with a meaningless line number.
1365
1366 2004-09-24  Zack Weinberg  <zack@codesourcery.com>
1367
1368         * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
1369         programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
1370         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
1371         * aclocal.m4, configure: Regenerate.
1372         * init.c: Include localedir.h.
1373         * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
1374         (DEFS): Delete.
1375         (.c.o): Use $(ALL_CFLAGS).
1376         (localedir.h, localedir.hs): New rules.
1377         (clean): Use rm -rf to remove directories.
1378         (distclean): Also delete localedir.h and localedir.hs.
1379         (init.o): Update dependencies.
1380
1381 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
1382
1383         * Makefile.in (aclocal.m4): Update dependencies.
1384         * configure.ac (AC_CONFIG_MACRO_DIR): New.
1385         * aclocal.m4, configure: Regenerate.
1386
1387 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
1388
1389         * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
1390         (_cpp_convert_input, _cpp_default_encoding): Add comments.
1391         Some other comments in this file also tweaked.
1392
1393         * directives.c (do_pragma): Save current buffer position
1394         before lexing the pragma keywords; don't call
1395         _cpp_backup_tokens in the defer_pragmas case.
1396
1397 2004-09-15  Per Bothner  <per@bothner.com>
1398
1399         * include/line-map.h (line_map_start):  Add parameter names so
1400         preceding comment makes sense.
1401         (linemap_add):  Remove from comment mention of non-existing parameter.
1402
1403 2004-09-09  Matt Austern  <austern@apple.com>
1404             Zack Weinberg  <zack@codesourcery.com>
1405
1406         * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
1407         prefixes throughout.  Add entry for PRAGMA.  Remove
1408         unnecessary "= 0" from EQ.
1409         (enum cpp_ttype): Adjust OP and TK definitions to restore
1410         prefixes, via token-paste.
1411         (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
1412         Change from #defines to additional cpp_ttype enumerators.
1413         (struct cpp_options): Add defer_pragmas.
1414         (cpp_handle_deferred_pragma): Prototype new interface.
1415
1416         * internal.h (struct cpp_reader): Add directive_result.
1417         * directives.c (struct pragma_entry): Add is_internal field;
1418         give boolean fields type bool.
1419         (start_directive): Initialize pfile->directive_result.type.
1420         (_cpp_do__Pragma): Likewise.
1421         (run_directive): Do not crash if pfile->buffer->prev is NULL.
1422         (insert_pragma_entry): Add 'internal' argument; set new->is_internal
1423         from it.
1424         (register_pragma): New static function, bulk of former
1425         cpp_register_pragma here; add 'internal' argument, pass along
1426         to insert_pragma_entry.
1427         (cpp_register_pragma): Now a wrapper around register_pragma which
1428         always passes false for 'internal' argument.
1429         (_cpp_init_internal_pragmas): Call register_pragma directly, passing
1430         true for 'internal'.
1431         (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
1432         an internal pragma, save text till the end of the line as a CPP_PRAGMA
1433         token instead of executing the pragma.
1434         (cpp_handle_deferred_pragma): New interface.
1435         * lex.c (token_spellings): Adjust OP and TK definitions to
1436         match changes to cpplib.h.
1437         (_cpp_lex_token): Check for a directive-result token and
1438         return it if present.
1439         (cpp_token_val_index): Handle CPP_PRAGMA.
1440         * macro.c (cpp_builtin_macro_text): Correct comment.
1441         (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
1442
1443 2004-09-06  Serge Belyshev  <belyshev@lubercy.com>
1444
1445         PR preprocessor/14699
1446         * symtab.c (ht_dump_statistics): Change type of sum_of_squares
1447         from size_t to double.
1448
1449 2004-08-28  Andreas Schwab  <schwab@suse.de>
1450             Andreas Jaeger <aj@suse.de>
1451
1452         * configure.ac: Set PACKAGE correctly.
1453         * configure: Regenerated.
1454
1455 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
1456
1457         * Makefile.in: Add back top_builddir.
1458
1459 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
1460
1461         * configure.ac: Replace Automake macro invocations
1462         with manual Autoconf checks and substitutions.
1463         * configure: Regenerate.
1464         * aclocal.m4: Regenerate.
1465         * config.in: Regenerate.
1466         * Makefile.am: Removed.
1467         * Makefile.in: Heavy simplification and reorganization.
1468
1469 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
1470
1471         * configure.ac (arm*-*-eabi*): New target.
1472         (arm*-*-symbianelf*): Likewise.
1473         * configure: Regenerated.
1474
1475 2004-07-24  Bernardo Innocenti  <bernie@develer.com>
1476
1477         * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
1478         * directives.c: Use XNEW-family macros from libiberty.
1479         * lex.c: Likewise.
1480         * macro.c: Likewise.
1481         * cpplib.h (cpp_deps_style): Export enum with name.
1482
1483 2004-07-23  Matthias Klose  <doko@debian.org>
1484
1485         * init.c (init_library): Use PACKAGE for the text domain.
1486
1487 2004-07-16  Andris Pavenis  <pavenis@latnet.lv>
1488
1489         PR preprocessor/16366
1490         * internal.h (struct cpp_reader): New field dir_hash.
1491         * files.c (make_cpp_dir): Use dir_hash, not file_hash.
1492         (_cpp_init_files, _cpp_cleanup_files): Update for new field.
1493
1494 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
1495
1496         PR preprocessor/16192
1497         PR preprocessor/15913
1498         PR preprocessor/15572
1499         * expr.c (_cpp_parse_expr): Handle remaining cases where an
1500         expression is missing.
1501         * init.c (post_options): Traditional cpp doesn't do // comments.
1502
1503 2004-06-30  Per Bothner  <per@bothner.com>
1504
1505         * include/line-map.h (fileline):  Remove old typedef.
1506         * internal.h (struct cpp_reader):  Use source_location typedef instead.
1507
1508 2004-06-26  Zack Weinberg  <zack@codesourcery.com>
1509
1510         Partially revert patch of 2004-06-05.
1511         * files.c (search_cache): Remove pfile argument.  Don't check
1512         for file that would be found by "" or <> search here...
1513         (_cpp_find_file): ...do it here, before calling find_file_in_dir.
1514         Do not apply directory-of-current-file correction to files
1515         found by this check.  Rearrange code slightly.
1516
1517 2004-06-21  Geoffrey Keating  <geoffk@apple.com>
1518
1519         * files.c (should_stack_file): Correct swapped parameters to call
1520         to cb.read_pch.
1521         * pch.c (cpp_valid_state): Handle -fpreprocessed.
1522
1523 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
1524
1525         * Makefile.in: Regenerate with automake 1.8.5.
1526         * aclocal.m4: Likewise.
1527         * configure: Regenerate.
1528
1529 2004-06-11  Zack Weinberg  <zack@codesourcery.com>
1530
1531         * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
1532         * configure, config.in: Regenerate.
1533         * system.h: Unconditionally define bool as unsigned char,
1534         BOOL_BITFIELD as unsigned int.
1535         * .cvsignore: New file.
1536
1537 2004-06-09  Geoffrey Keating  <geoffk@apple.com>
1538
1539         * traditional.c (push_replacement_text): Set macro->traditional.
1540         (save_replacement_text): Likewise.
1541         * pch.c (cpp_write_pch_state): Don't write list of defined macros.
1542         (struct save_macro_item): Delete.
1543         (struct save_macro_data): Use a character array not the previous
1544         structured format.
1545         (save_macros): Save macro as text not as internal structures.
1546         (cpp_prepare_state): Update for changes to save_macro_data.
1547         (cpp_read_state): Don't read macros defined in PCH.  Restore
1548         -D macros as text.
1549         * macro.c (create_iso_definition): Honour alloc_subobject.
1550         Clear traditional flag.
1551         (_cpp_create_definition): Honour alloc_subobject.
1552         * lex.c (cpp_token_val_index): New.
1553         * internal.h: Include cpp-id-data.h.
1554         (uchar): Move definition to cpp-id-data.h.
1555         (U): Likewise.
1556         (cpp_macro): Likewise.
1557         * directives.c (struct answer): Move to cpp-id-data.h.
1558         (do_assert): Honour alloc_subobject.
1559
1560         * include/symtab.h (struct ht): Add field 'alloc_subobject'.
1561         * include/cpplib.h (struct cpp_string): Add GTY marker.
1562         (enum cpp_token_fld_kind): New.
1563         (struct cpp_token): Add GTY markers.
1564         (cpp_token_val_index): Prototype.
1565         (CPP_HASHNODE_VALUE_IDX): New.
1566         (struct cpp_hashnode): Don't skip fields of 'value' when marking.
1567         * include/cpp-id-data.h: New file.
1568
1569 2004-06-09  Paolo Bonzini  <bonzini@gnu.org>
1570
1571         * Makefile.am (all-local): New.
1572         * Makefile.in: Regenerate.
1573
1574 2004-06-06  Roger Sayle  <roger@eyesopen.com>
1575
1576         * Makefile.am (LIBICONV): Declare.
1577         (makedepend_LDADD): Use LIBICONV.
1578         * Makefile.in: Regenerate.
1579
1580 2004-06-05  Andrew Pinski  <pinskia@physics.uc.edu>
1581
1582         * Makefile.am (LIBINTL): Declare
1583         (makedepend_LDADD): Use LIBINTL.
1584         * Makefile.in: Regenerate.
1585
1586 2004-06-05  Zack Weinberg  <zack@codesourcery.com>
1587
1588         * Makefile.am: Add makedepend.
1589         * Makefile.in, aclocal.m4: Regenerate.
1590         * charset.c: Insert a space to avoid a warning.
1591         * directives.c: Include mkdeps.h.
1592         (_cpp_handle_directive): Reenable macro expander if appropriate.
1593         (undefine_macros): Inline body of _cpp_free_definition for speed.
1594         Do not call undef callback or _cpp_warn_if_unused_macro.
1595         (cpp_get_deps): New interface.
1596         * files.c (search_cache): Add pfile argument.  Check for file
1597         that would be found by "" or <> search here...
1598         (_cpp_find_file): ...not here.  Correct recorded start_dir of
1599         files found by directory-of-current-file search that would be
1600         found by "" or <> search.
1601         * init.c (cpp_add_dependency_target): Delete.
1602         * internal.h (struct lexer_state): Add discarding_output flag.
1603         * lex.c (lex_identifier): Compute hash function while scanning.
1604         * macro.c (cpp_scan_nooutput): Disable macro expansion outside
1605         directives.
1606         * makedepend.c: New file.
1607         * mkdeps.c (struct deps): Add vpath vector.
1608         (apply_vpath, deps_add_vpath): New function.
1609         (deps_free): Free vpath vector.
1610         (deps_add_dep, deps_add_target): Use apply_vpath.
1611         * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
1612         (ht_lookup_with_hash): New function.
1613         * cpplib.h, mkdeps.h: Update prototypes.
1614         * symtab.h: Update prototypes.
1615         (HT_HASHSTEP, HT_FINISH): New macros.
1616
1617 2004-05-29  Geoffrey Keating  <geoffk@apple.com>
1618
1619         * symtab.c (ht_create): Set entries_owned.
1620         (ht_destroy): Honour entries_owned.
1621         (ht_expand): Likewise.
1622         (ht_load): New.
1623         * include/symtab.h (struct ht): New field 'entries_owned'
1624         (ht_load): New prototype.
1625
1626 2004-05-26  Paolo Bonzini  <bonzini@gnu.org>
1627
1628         PR bootstrap/15651
1629         * configure.ac: Fix m4 quoting when picking
1630         the size of HOST_WIDE_INT.
1631         * configure: Regenerate.
1632
1633 2004-05-25  Paolo Bonzini  <bonzini@gnu.org>
1634
1635         * Makefile.am: the correct directory for
1636         gettext include files is given by @INCINTL@.
1637         * Makefile.in: Regenerate.
1638
1639 2004-05-24  Paolo Bonzini  <bonzini@gnu.org>
1640
1641         * system.h [!ENABLE_NLS]: dgettext takes two
1642         parameters.
1643
1644 2004-05-23  Paolo Bonzini  <bonzini@gnu.org>
1645
1646         Moved libcpp from the gcc subdirectory to the toplevel.
1647         * Makefile.am: New file.
1648         * Makefile.in: Regenerate.
1649         * configure.ac: New file.
1650         * configure: Regenerate.
1651         * config.in: Regenerate.
1652         * charset.c: Moved from gcc/cppcharset.c.  Add note about
1653         brokenness of input charset detection.  Adjust for change
1654         in name of cppucnid.h.
1655         * errors.c: Moved from gcc/cpperror.c.  Do not include intl.h.
1656         * expr.c: Moved from gcc/cppexp.c.
1657         * files.c: Moved from gcc/cppfiles.c.  Do not include intl.h.
1658         Remove #define of O_BINARY, it is in system.h.
1659         * identifiers.c: Moved from gcc/cpphash.c.
1660         * internal.h: Moved from gcc/cpphash.h.  Change header
1661         guard name.  All other files adjusted to match name change.
1662         * init.c: Moved from gcc/cppinit.c.
1663         (init_library) [ENABLE_NLS]: Call bindtextdomain.
1664         * lex.c: Moved from gcc/cpplex.c.
1665         * directives.c: Moved from gcc/cpplib.c.
1666         * macro.c: Moved from gcc/cppmacro.c.
1667         * pch.c: Moved from gcc/cpppch.c.  Do not include intl.h.
1668         * traditional.c: Moved from gcc/cpptrad.c.
1669         * ucnid.h: Moved from gcc/cppucnid.h.  Change header
1670         guard name.
1671         * ucnid.pl: Moved from gcc/cppucnid.pl.
1672         * ucnid.tab: Moved from gcc/cppucnid.tab.  Change header
1673         guard name.
1674         * symtab.c: Moved from gcc/hashtable.c.
1675         * line-map.c: Moved from gcc.  Do not include intl.h.
1676         * mkdeps.c: Moved from gcc.
1677         * system.h: New file.
1678         * include/cpplib.h: Moved from gcc.  Change header guard name.
1679         * include/line-map.h: Moved from gcc.  Change header guard name.
1680         * include/mkdeps.h: Moved from gcc.  Change header guard name.
1681         * include/symtab.h: Moved from gcc/hashtable.h.  Change header
1682         guard name.