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