OSDN Git Service

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