OSDN Git Service

21b72482a740a4c7bee469e1e2a0177ca4aa0a84
[pf3gnuchains/gcc-fork.git] / libcpp / ChangeLog
1 2007-06-17  Danny Smith  <dannysmith@users.sourceforge.net
2
3         * cppfiles.c (open_file): Correct typo.
4
5 2007-06-16  Vladimir Prus  <vladimir@codesourcery.com>
6
7         * cppfiles.c (open_file): Prevent the call
8         for stat from overwriting errno.
9
10 2007-06-09  Vladimir Prus  <vladimir@codesourcery.com>
11
12         * cppfiles.c (open_file): Account for the
13         fact that on windows, opening a directory gives
14         EACCES.
15
16 2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de>
17
18         PR preprocessor/23479
19         * expr.c (cpp_classify_number): Implement 0b-prefixed binary
20         integer constants.
21         (append_digit): Likewise.
22         * include/cpplib.h: Add CPP_N_BINARY, to be used for 0b-prefixed
23         binary integer constants.
24
25 2007-05-31  Dave Korn  <dave.korn@artimi.com>
26
27         PR preprocessor/14331
28         * lex.c (_cpp_get_fresh_line):  Don't warn if no newline at EOF.
29
30 2007-05-24  Ollie Wild  <aaw@google.com>
31
32         * macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER.
33         * pch.c (cpp_write_pch_deps): Save __COUNTER__ state.
34         (cpp_write_pch_state): Save __COUNTER__ state.
35         (cpp_valid_state): Check valid __COUNTER__ state.
36         (cpp_read_state): Read new __COUNTER__ state.
37         * include/cpplib.h (enum builtin_type): Add BT_COUNTER enumerator.
38         * init.c (builtin_array): Add __COUNTER__/BT_COUNTER.
39         * internal.h (struct cpp_reader): Add counter member.
40
41 2007-05-23  Simon Martin  <simartin@users.sourceforge.net>
42
43         PR preprocessor/20077
44         * macro.c (create_iso_definition): Fixed the method to determine
45         whether the token-pasting operator appears at the beginning or the end
46         of a macro.
47
48 2007-05-21  Ian Lance Taylor  <iant@google.com>
49
50         * internal.h (struct cpp_reader): Add new fields:
51         nonexistent_file_hash and nonexistent_file_ob.
52         * files.c: Include "obstack.h".
53         (find_file_in_dir): Before trying to open the file, look up the
54         path name in the hash table of nonexistent files.  After failing
55         to open the file, add the path name to the hash table.
56         (_cpp_find_file): Cache the results of looking up the file name
57         starting with the quote and bracket chain heads, if we can.
58         (nonexistent_file_hash_eq): New static function.
59         (_cpp_init_files): Initialize pfile->nonexistent_file_hash and
60         pfile->nonexistent_file_ob.
61         (_cpp_cleanup_files): Free pfile->nonexistent_file_hash and
62         pfile->nonexistent_file_ob.
63
64 2007-05-14  Janis Johnson  <janis187@us.ibm.com>
65
66         * expr.c (cpp_classify_number): Warn about dfp constant for -pedantic.
67
68         PR c/31924
69         * expr.c (interpret_float_suffix): Check for invalid suffix.
70
71 2007-05-02  Eric Christopher  <echristo@apple.com>
72
73         * expr.c (num_div_op): Don't overflow if the result is
74         zero.
75
76 2007-05-02  Tom Tromey  <tromey@redhat.com>
77
78         PR preprocessor/28709:
79         * macro.c (paste_tokens): Remove PASTE_LEFT from the old lhs.
80
81 2007-03-30  Michael Meissner  <michael.meissner@amd.com>
82
83         * directives.c (lex_macro_node_from_str): Fix alloca call to be
84         type correct.
85
86 2007-03-30  Richard Henderson  <rth@redhat.com>
87
88         * directives.c (lex_macro_node_from_str): New.
89         (cpp_push_definition, cpp_pop_definition): New.
90         * include/cpplib.h (cpp_push_definition, cpp_pop_definition): Declare.
91
92 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
93
94         * Makefile.in: Add dummy install-pdf target.
95
96 2007-01-30  Tom Tromey  <tromey@redhat.com>
97
98         PR preprocessor/30468:
99         * mkdeps.c (apply_vpath): Strip successive '/'s if we stripped
100         './'.
101
102 2007-01-30  Tom Tromey  <tromey@redhat.com>
103
104         PR preprocessor/29966:
105         * macro.c (lex_expansion_token): Save and restore cpp_reader's
106         cur_token.
107         (_cpp_create_definition): Don't restore cur_token here.
108         * lex.c (_cpp_lex_token): Added assertion.
109
110 2007-01-27  Tom Tromey  <tromey@redhat.com>
111
112         * configure: Rebuilt.
113
114 2007-01-12  Tom Tromey  <tromey@redhat.com>
115
116         PR preprocessor/28227:
117         * directives.c (lex_macro_node): Added 'is_def_or_undef'
118         argument.
119         (do_define): Update.
120         (do_undef): Update.
121         (do_ifdef): Update.
122         (do_ifndef): Update.
123
124 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
125
126         * configure: Regenerate.
127
128 2007-01-11  Paolo Bonzini  <bonzini@gnu.org>
129
130         * configure: Regenerate.
131
132 2007-01-04  Tom Tromey  <tromey@redhat.com>
133
134         PR preprocessor/28165:
135         * internal.h (cpp_in_primary_file): New function.
136         * directives.c (do_include_next): Use cpp_in_primary_file.
137         (do_pragma_once): Likewise.
138         (do_pragma_system_header): Likewise.
139
140 2006-12-29  Ian Lance Taylor  <iant@google.com>
141
142         * lex.c (_cpp_clean_line): Add uses of __builtin_expect.  Don't
143         look backward at the end of the line unless we saw a backslash.
144
145 2006-12-29  Jakub Jelinek  <jakub@redhat.com>
146
147         PR preprocessor/29612
148         * directives.c (do_linemarker): Set pfile->buffer->sysp always, not
149         only when new_sysp is non-zero.
150
151 2006-12-28  Tom Tromey  <tromey@redhat.com>
152
153         PR preprocessor/30001:
154         * charset.c (_cpp_convert_input): Check that to.len is greater
155         than zero.
156
157 2006-11-20  Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
158
159         * configure.ac (need_64bit_hwint): Need 64bit hwint for SPU.
160         * configure: Rebuilt.
161
162 2006-11-01      Douglas Gregor <doug.gregor@gmail.com>
163
164         * include/cpplib.h (enum c_lang): Add CLK_GNUCXX0X and CLK_CXX0X
165         for experimental C++0x mode.
166         * init.c (lang_defaults): Add defaults for C++0x modes. C++0x has
167         adopted the preprocessor changes introduced in C99.
168
169 2006-10-29  Joseph Myers  <joseph@codesourcery.com>
170
171         * configure.ac (need_64bit_hwint): Set for i[34567]86-*-linux*
172         depending on --enable-targets=all.
173         * configure: Regenerate.
174
175 2006-10-12  Jakub Jelinek  <jakub@redhat.com>
176
177         PR preprocessor/28709
178         * macro.c (paste_tokens): Do error reporting here, use BUF with the
179         spelled LHS token as opposed to spelling it again.
180         (paste_all_tokens): Don't report errors here, just break on failure.
181
182 2006-10-10  Brooks Moses  <bmoses@stanford.edu>
183
184         * Makefile.in: Added empty "pdf" target.
185
186 2006-09-22  Geoffrey Keating  <geoffk@apple.com>
187
188         * configure.ac: Make need_64_bit_hwint case for x86-darwin
189         match exactly the glob in gcc/config.gcc.
190         * configure: Regenerate.
191
192 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
193
194         PR c/28768
195         PR preprocessor/14634
196         * lex.c (lex_string): Pedwarn for unterminated literals.
197
198 2006-09-08  Eric Christopher  <echristo@apple.com>
199
200         * configure.ac: Add 64-bit HWI support for i?86-darwin.
201
202 2006-08-14  Steve Ellcey  <sje@cup.hp.com>
203
204         PR c++/28288
205         PR c++/14556
206         * include/cpplib.h: Remove <?, >?, <?=, and >?= tokens.
207         (CPP_LAST_EQ): Change.
208         (CPP_LAST_PUNCTUATOR): Change.
209         * expr.c (cpp_operator): Remove MIN and MAX.
210         (reduce): Remove CPP_MIN and CPP_MAX.
211         (num_binary_op): Ditto.
212         * lex.c (_cpp_lex_direct): Ditto.
213         (cpp_avoid_paste): Remove ? as legal symbol after > or <.
214
215 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
216
217         PR preprocessor/27746
218         * directives.c (do_pragma): Handle pragma with valid namespace
219         and invalid name coming from macro expansion.
220         * directives.c (destringize_and_run): Initialize next field in
221         context.
222
223         PR c/27747
224         PR c++/27748
225         * directives.c (destringize_and_run): Set NO_EXPAND on the
226         tokens.
227
228         * macro.c (_cpp_backup_tokens): Fix comment typo.
229
230 2006-05-31  Daniel Jacobowitz  <dan@codesourcery.com>
231
232         * Makefile.in (CATALOGS): Add po/ prefix.
233         * configure: Regenerated.
234
235 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
236
237         * Makefile.in: Add install-html target. Add install-html to .PHONY
238
239 2006-02-17  Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
240
241         * macro.c (_cpp_builtin_macro_text): Handle BT_TIMESTAMP.
242         * files.c (_cpp_get_file_stat): New function.
243         * include/cpplib.h (builtin_type): Add BT_TIMESTAMP.
244         * init.c (builtin_array): Add support for __TIMESTAMP__/BT_TIMESTAMP.
245         * internal.h (_cpp_get_file_stat): Prototype.
246         (struct cpp_buffer): Add timestamp.
247
248 2006-01-23  Jakub Jelinek  <jakub@redhat.com>
249
250         PR preprocessor/25717
251         * init.c (cpp_init_builtins): If __STDC__ will not change value
252         between system headers and other sources, define it as a normal
253         macro rather than a builtin.
254         * macro.c (_cpp_builtin_macro_text) <case BT_STDC>: Only check
255         cpp_in_system_header condition.
256
257 2006-01-05  Paolo Bonzini  <bonzini@gnu.org>
258
259         * Makefile.in: Use -MMD instead of -MD.
260
261 2006-01-04  Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
262             Richard Henderson  <rth@redhat.com>
263
264         Merge from gomp branch:
265         * directives.c (struct pragma_entry): Add is_deferred.  Add ident
266         entry to value union.
267         (end_directive): Don't eat the line if in_deferred_pragma.
268         (run_directive): Remove pragma hacks.
269         (insert_pragma_entry): Remove.
270         (new_pragma_entry): New.
271         (register_pragma_1): Split out of register_pragma.  Only handle
272         the lookup tree and return the new entry.
273         (cpp_register_pragma): Fill in the pragma entry here.
274         (cpp_register_deferred_pragma): New.
275         (register_pragma_internal): New.
276         (_cpp_init_internal_pragmas): Use register_pragma_internal.
277         (do_pragma): Allow pragma expansion after namespace.  For deferred
278         pragmas, don't slurp the line into a string.
279         (destringize_and_run): Save tokens for deferred pragmas.
280         (cpp_handle_deferred_pragma): Remove.
281         * macro.c (builtin_macro): Remove pragma token hack.
282         (_cpp_push_token_context): Rename from push_token_context and export.
283         * internal.h (struct lexer_state): Add pragma_allow_expansion.
284         (_cpp_push_token_context): Declare.
285         * lex.c (_cpp_lex_token): Allow _cpp_handle_directive to return
286         a token.  Update the line number correctly if so.
287         (_cpp_lex_direct): Emit CPP_PRAGMA_EOL tokens.
288         (cpp_token_val_index): Return CPP_TOKEN_FLD_PRAGMA for pragmas.
289         * include/cpplib.h (PRAGMA_EOL): New.
290         (CPP_TOKEN_FLD_PRAGMA): New.
291         (struct cpp_token): Add val.pragma.
292         (struct cpp_options): Remove defer_pragmas.
293         (cpp_handle_deferred_pragma): Remove.
294         (cpp_register_deferred_pragma): Declare.
295
296 2006-01-01  Jakub Jelinek  <jakub@redhat.com>
297
298         PR c++/25294
299         * directives.c (do_pragma): If pragma line ends with multi-line
300         block comment, end the saved deferred pragma string before that
301         comment.  Handle embedded '\0' chars on the pragma line.
302
303 2005-12-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
304
305         PR c++/23333
306         * include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure.
307
308 2005-12-07  Jon Grimm  <jgrimm2@us.ibm.com>
309             Ben Elliston  <bje@au.ibm.com>
310
311         * include/cpplib.h (CPP_N_DFLOAT): New.
312         * expr.c (interpret_float_suffix): Identify df, dd, and dl
313         suffixes as decimal floating point constants.
314         (cpp_classify_number): Disallow hexadecimal DFP constants.
315
316 2005-11-14  Gerald Pfeifer  <gerald@pfeifer.com>
317             Ian Lance Taylor  <ian@airs.com>
318
319         * include/cpplib.h (struct cpp_callbacks): Annotate error with
320         ATTRIBUTE_FPTR_PRINTF(3,0) instead of ATTRIBUTE_PRINTF(3,0).
321
322 2005-11-09  Per Bothner  <per@bothner.com>
323             Uros Bizjak  <uros@kss-loka.si>
324
325         PR c/24101
326         * init.c (read_original_filename): Temporarily set
327         state.in_directive before calling _cpp_lex_direct for
328         CPP_HASH tokens.
329
330 2005-11-03  James E Wilson  <wilson@specifix.com>
331
332         PR preprocessor/24202
333         * files.c (_cpp_pop_file_buffer): Set buffer_valid to false.
334
335 2005-11-04  Joseph S. Myers  <joseph@codesourcery.com>
336
337         * include/cpplib.h (struct cpp_callbacks): Make error take
338         va_list* parameter.
339         * errors.c (cpp_error): Update call to callback.
340
341 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
342
343         PR preprocessor/22042
344         * macro.c (_cpp_builtin_macro_text): Lower the needed max
345         buffer size.
346         (cpp_quote_string): Don't octalify non printable
347         charactors.
348
349 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
350
351         PR c++/17964
352         * include/cpplib.h (struct cpp_options): Add client_diagnostic.
353         (struct cpp_callbacks): Add error.
354         * errors.c (cpp_error): If client_diagnostic, use error callback.
355         * charset.c (convert_escape): Don't use %03o in diagnostic.
356
357 2005-10-21  James E Wilson  <wilson@specifix.com>
358
359         PR preprocessor/15220
360         * files.c (_cpp_find_file): New parameter angle_brackets.  Fix all
361         callers.  Pass to open_file_failed.
362         (open_file_failed): New parameter angle_brackets.  Fix all callers.
363         Use in print_dep assignment.
364         * init.c (cpp_read_main_file): Pass additional arg to _cpp_find_file.
365         * internal.h (_cpp_find_file): Add new parm to declaration.
366
367 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
368
369         * configure.ac: Require 64-bit int for arm*-*-*eabi*.
370         * configure: Regenerate.
371
372 2005-10-04  Ian Lance Taylor  <ian@airs.com>
373
374         PR preprocessor/13726
375         * directives.c (check_eol_return_comments): New static function.
376         (parse_include): Add buf parameter.  Change all callers.
377         (do_include_common): If not discard comments, turn on
378         save_comments.  Pass collected comments to include callback.
379         * include/cpplib.h (struct cpp_callbacks): Add new parameter to
380         include callback: cpp_token list.
381
382 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
383
384         * include/cpplib.h (struct cpp_options): Add extended_identifiers.
385         * init.c (struct lang_flags, lang_defaults): Add
386         extended_identifiers.
387         (cpp_set_lang): Use it.
388         * lex.c (forms_identifier_p): Check extended_identifiers.
389
390 2005-08-30  Jakub Jelinek  <jakub@redhat.com>
391
392         PR preprocessor/20348
393         PR preprocessor/20356
394         * files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and
395         2004-06-05 changes.
396
397 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
398
399         * configure.ac (ACX_PROG_CC_WARNING_OPTS): add
400         -Wmissing-format-attribute.
401
402         * configure: Regenerate.
403
404 2005-06-29  Kelley Cook  <kcook@gcc.gnu.org>
405
406         * all files: Update FSF address in copyright headers.
407         * makeucnid.c (write_copyright): Update outputted FSF address.
408
409 2005-06-13  Zack Weinberg  <zack@codesourcery.com>
410
411         * configure.ac: Invoke ZW_CREATE_DEPDIR and
412         ZW_PROG_COMPILER_DEPENDENCIES.
413         * aclocal.m4, configure: Regenerate.
414         * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE):
415         New variables.
416         (distclean): Clean up $(DEPDIR) and its contents.
417         (.c.o): Use $(COMPILE).
418         Include $(DEPDIR)/*.Po for most object->header dependencies.
419
420 2005-05-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
421
422         * configure.ac: Check declarations for asprintf and vasprintf.
423         * config.in: Regenerate.
424         * configure: Likewise.
425
426         * charset.c (conversion_loop): Use XRESIZEVEC.
427         (convert_no_conversion): Likewise.
428         (convert_using_iconv): Likewise.
429         (init_iconv_desc): Cast return value of alloca.
430         (cpp_host_to_exec_charset): Use XNEWVEC.
431         (emit_numeric_escape): Use XRESIZEVEC.
432         (cpp_interpret_string): Use XNEWVEC.
433         (cpp_interpret_string): Use XRESIZEVEC.
434         (_cpp_interpret_identifier): Cast return value of alloca.
435         (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC.
436         * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC.
437         (parse_include): Use XNEWVEC.
438         (insert_pragma_entry): Rename local variable "new" to
439         "new_entry".
440         (save_registered_pragmas): Cast return value of xmemdup.
441         (destringize_and_run): Same for alloca.
442         (parse_assertion): Likewise.
443         (do_assert): Cast allocated storage to proper type.
444         (cpp_define): Likewise.
445         (_cpp_define_builtin): Likewise.
446         (cpp_undef): Likewise.
447         (handle_assertion): Likewise.
448         (cpp_push_buffer): Rename local variable "new" to "new_buffer".
449         * expr.c (CPP_UPLUS): Cast value to type cpp_ttype.
450         (CPP_UMINUS): Likewise.
451         (struct cpp_operator): Rename from struct operator.
452         (_cpp_expand_op_stack): Use XRESIZEVEC.
453         * files.c (pch_open_file): Use XNEWVEC.
454         (pch_open_file): Use XRESIZEVEC.
455         (read_file_guts): Use XNEWVEC and XRESIZEVEC.
456         (dir_name_of_file): Use XNEWVEC.
457         (make_cpp_file): Use XCNEW.
458         (make_cpp_dir): Likewise.
459         (allocate_file_hash_entries): USE XNEWVEC.
460         (cpp_included): Cast return value of htab_find_with_hash.
461         (append_file_to_dir): Use XNEWVEC.
462         (read_filename_string): Likewise. Use XRESIZEVEC too.
463         (read_name_map): Cast return value of alloca.  Use XRESIZEVEC.
464         (remap_filename): Use XNEWVEC.
465         (struct pchf_entry): Move definition out of struct pchf_data.
466         (_cpp_save_file_entries): Use XCNEWVAR.
467         (_cpp_read_file_entries): Use XNEWVAR.
468         * identifiers.c (alloc_node): Use XOBNEW.
469         * init.c (cpp_create_reader): Use XCNEW.
470         (cpp_init_builtins): Cast of b->value to enum builtin_type.
471         (read_original_directory): Cast return value of alloca.
472         * lex.c (add_line_note): Use XRESIZEVEC.
473         (warn_about_normalization): Use XNEWVEC.
474         (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype).
475         (new_buff): Use XNEWVEC.
476         * line-map.c (linemap_add): Use XRESIZEVEC.
477         * macro.c (builtin_macro): Cast return value of alloca.
478         (paste_tokens): Likewise.
479         (expand_arg): Use XNEWVEC and XRESIZEVEC.
480         (_cpp_save_parameter): Use XRESIZEVEC.
481         (create_iso_definition): Cast allocated storage to proper type.
482         (_cpp_create_definition): Likewise.
483         (cpp_macro_definition): Use XRESIZEVEC.
484         * makedepend.c (add_clm): Use XNEW.
485         (add_dir): Likewise.
486         * mkdeps.c (munge): Use XNEWVEC.
487         (deps_init): Use XCNEW.
488         (deps_add_target): Use XRESIZEVEC.
489         (deps_add_default_target): Cast return value of alloca.
490         (deps_add_dep): Use XRESIZEVEC.
491         (deps_add_vpath): Likewise.  Use XNEWVEC too.
492         (deps_restore): Likewise.
493         * pch.c (save_idents): Use XNEW and XNEWVEC.
494         (cpp_save_state): Use XNEW.
495         (count_defs): Cast return value of htab_find.
496         (write_defs): Likewise.
497         (cpp_write_pch_deps): Use XNEWVEC.
498         (collect_ht_nodes): Use XRESIZEVEC.
499         (cpp_valid_state): Use XNEWVEC.
500         (save_macros): Use XRESIZEVEC.  Cast return value of xmemdup.
501         * symtab.c (ht_create): Use XCNEW.
502         (ht_lookup_with_hash): Cast return value of obstack_copy0.
503         (ht_expand): Use XCNEWVEC.
504         * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus.
505         (bool): Do not define if __cplusplus.
506
507 2005-05-12  Zack Weinberg  <zack@codesourcery.com>
508
509         * directives.c (#sccs table entry): Mark IN_I, consistent with #ident.
510         (do_sccs): Delete function definition, #define to do_ident.
511         (do_ident): Don't hardwire directive name.
512
513 2005-05-12  Ryota Kunisawa  <kunisawa@access.co.jp>
514
515         PR bootstrap/21230
516         * configure: Regenerate.
517
518 2005-04-27  Andris Pavenis  <pavenis@latnet.lv>
519
520         * files.c: Include io.h for DJGPP to get prototype of setmode.
521
522 2005-04-19  Per Bothner  <per@bothner.com>
523
524         PR preprocessor/20907
525         * line-map.c (linemap_line_start): Fix bug when we need to increse
526         column_bits but can re-use the current line_map.
527
528 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
529
530         * system.h (fopen, fdopen, freopen): Define these to the unlocked
531         libiberty functions.
532
533 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
534
535         * configure.ac (libcpp_UNLOCKED_FUNCS): New.
536         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS.
537         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
538         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
539         _unlocked function.
540         (fwrite_unlocked): Fix prototype.
541
542         * configure, config.in: Regenerate.
543
544 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
545
546         PR preprocessor/19475
547         * macro.c (create_iso_definition): For < ISO C99, don't
548         pedwarn if there is no whitespace between macro name and its
549         replacement, but the replacement starts with a basic character
550         set character.
551
552 2005-03-28  Andreas Jaeger  <aj@suse.de>
553
554         * lex.c (warn_about_normalization): Cast field width to int to
555         avoid warning.
556
557 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
558
559         * configure.ac: Consistently use solaris2.1[0-9]* instead of
560         solaris2.1[0-9].
561         * configure: Regenerate.
562
563 2005-03-15  Geoffrey Keating  <geoffk@apple.com>
564
565         * charset.c (_cpp_valid_ucn): In identifiers, reject a partial
566         UCN rather than printing an error.
567
568 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
569
570         * lex.c (forms_identifier_p): Disable UCNs in C89 mode.
571
572 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
573
574         * init.c (cpp_create_reader): Default warn_normalize to normalized_C.
575         * charset.c: Update for new format of ucnid.h.
576         (ucn_valid_in_identifier): Update for new format of ucnid.h.
577         Add NST parameter, and update it; update callers.
578         (cpp_valid_ucn): Add NST parameter, update callers.  Replace abort
579         with cpp_error.
580         (convert_ucn): Pass normalize_state to cpp_valid_ucn.
581         * internal.h (struct normalize_state): New.
582         (INITIAL_NORMALIZE_STATE): New.
583         (NORMALIZE_STATE_RESULT): New.
584         (NORMALIZE_STATE_UPDATE_IDNUM): New.
585         (_cpp_valid_ucn): New.
586         * lex.c (warn_about_normalization): New.
587         (forms_identifier_p): Add normalize_state parameter, update callers.
588         (lex_identifier): Add normalize_state parameter, update callers.  Keep
589         the state current.
590         (lex_number): Likewise.
591         (_cpp_lex_direct): Pass normalize_state to subroutines.  Check
592         it with warn_about_normalization.
593         * makeucnid.c: New.
594         * ucnid.h: Replace.
595         * ucnid.pl: Remove.
596         * ucnid.tab: Make appropriate for input to makeucnid.c.  Remove
597         comments about obsolete version of C++.
598         * include/cpplib.h (enum cpp_normalize_level): New.
599         (struct cpp_options): Add warn_normalize field.
600
601 2005-03-11  Geoffrey Keating  <geoffk@apple.com>
602
603         * directives.c (glue_header_name): Update call to cpp_spell_token.
604         * internal.h (_cpp_interpret_identifier): New.
605         * charset.c (_cpp_interpret_identifier): New.
606         (_cpp_valid_ucn): Allow UCN version of '$'.
607         * lex.c (lex_identifier): Add extra parameter to indicate if initial
608         character was '$' or '\'.  Support identifiers with UCNs.
609         (forms_identifier_p): Allow UCNs.
610         (_cpp_lex_direct): Pass extra parameter to lex_identifier.
611         (utf8_to_ucn): New.
612         (cpp_spell_token): Add FORSTRING parameter.  Use it.
613         (cpp_token_as_text): Update call to cpp_spell_token.
614         (cpp_output_token): Write UCNs back out.
615         (stringify_arg): Update call to cpp_spell_token.
616         (paste_tokens): Likewise.
617         (cpp_macro_definition): Likewise.
618         * macro.c (stringify_arg): Likewise.
619         (paste_tokens): Likewise.
620         (cpp_macro_definition): Likewise.
621         * include/cpplib.h: Add parameter to cpp_spell_token.
622
623 2005-03-04  Jakub Jelinek  <jakub@redhat.com>
624
625         PR bootstrap/20282
626         PR bootstrap/20305
627         * macro.c (replace_args, cpp_get_token): Copy whole
628         cpp_token_u instead of just cpp_string field from it.
629
630 2005-02-28  Devang Patel  <dpatel@apple.com>
631
632         * directives.c (do_line): Save sysp early before line table is
633         realloc'ed.
634
635 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
636
637         PR 18785
638         * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
639         (cpp_host_to_exec_charset): New function.
640         * include/cpplib.h: Declare cpp_host_to_exec_charset.
641
642 2005-02-19  Devang Patel  <dpatel@apple.com>
643
644         * charset.c (_cpp_convert_input): Check '\r' before inserting
645         '\n' at the end.
646
647 2005-02-15  Eric Christopher  <echristo@redhat.com>
648
649         PR preprocessor/19077
650         * macro.c (cpp_macro_definition): Move handling of whitespace
651         to PREV_WHITE conditional. Remove overloading of len
652         variable.
653
654 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
655
656         * directives.c, files.c, init.c, internal.h, macro.c, pch.c,
657         traditional.c: Update copyright.
658
659 2005-02-14  Paolo Bonzini  <bonzini@gnu.org>
660
661         PR bootstrap/19818
662         * configure.ac: Check for declaration of basename and getopt.
663         * config.in: Regenerate.
664         * configure: Regenerate.
665         * internal.h (ustrcspn): New.
666         * macro.c (create_iso_definition): Fix allocation of memory.
667         (padding_token): Add cast to remove const-ness.
668         * pch.c (cpp_read_state): Use ustrcspn.
669
670 2005-02-08  Mike Stump  <mrs@apple.com>
671
672         * files.c (pchf_adder): Remove.
673         (struct pchf_adder_info): Likewise.
674         (_cpp_save_file_entries): Write out all files so that #import works.
675
676 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
677
678         * configure: Regenerate.
679
680 2005-01-11  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
681
682         * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
683
684         * include/cpplib.h: Also update copyright years.
685
686 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
687
688         * files.c (_cpp_find_file): Add files found by search_path_exhausted
689         to the list of all files.
690
691 2005-01-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
692
693         * internal.h: Update references to Cpp lib filenames.
694         * directives.c: Likewise.
695         * init.c: Likewise.
696         * macro.c: Likewise.
697         * traditional.c: Likewise.
698
699 2004-12-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
700
701         PR preprocessor/15167
702         * files.c (destroy_cpp_file): New function.
703         (should_stack_file): Make a new file if the
704         compared file is still stacked.
705
706 2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>
707
708         PR preprocessor/17610
709         * directives.c (do_include_common): Error out if an empty filename
710         is given for #include (or #include_next or #import).
711
712 2004-11-27  Roger Sayle  <roger@eyesopen.com>
713             Zack Weinberg  <zack@codesourcery.com>
714
715         * internal.h: Replace all uses of uchar with unsigned char.
716         * include/cpp-id-data.h: Likewise.  Guard typedef of uchar
717         with !IN_GCC, so uchar is only defined whilst building libcpp.
718
719 2004-11-24  Kelley Cook  <kcook@gcc.gnu.org>
720
721         * aclocal.m4: Regenerate.
722
723 2004-11-24  Roger Sayle  <roger@eyesopen.com>
724
725         PR preprocessor/15824
726         * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
727         directly, instead of the non-existant "system.h" and "ansidecl.h".
728         * configure: Regenerate.
729
730 2004-11-23  Daniel Jacobowitz  <dan@codesourcery.com>
731             Joseph Myers  <joseph@codesourcery.com>
732
733         * internal.h (struct lexer_state): Add in_deferred_pragma.
734         * directives.c (struct pragma_entry): Add allow_expansion.
735         (insert_pragma_entry): Take allow_expansion flag.
736         (register_pragma): Likewise.
737         (cpp_register_pragma): Likewise.
738         (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
739         (do_pragma): Honor allow_expansion.
740         (cpp_handle_deferred_pragma): Set in_deferred_pragma.
741         * include/cpplib.h (cpp_register_pragma): Update prototype.
742
743 2004-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
744             Mark Mitchell  <mark@codesourcery.com>
745
746         * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
747         need_64bit_hwint=yes.
748         * configure: Regenerate.
749
750 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
751
752         * Makefile.in ($(PACKAGE).pot): New rule.  Depend on
753         po/$(PACKAGE).pot.
754         (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
755         arguments.  Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
756         Remove local srcdir path from generated file.
757
758 2004-11-04  Zack Weinberg  <zack@codesourcery.com>
759             Gerald Pfeifer  <gerald@pfeifer.com>
760
761         * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
762         as well.
763
764 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
765
766         PR 18075
767         * directives.c (do_pragma): Do not defer pragmas which are unknown.
768         (cpp_handle_deferred_pragma): Add cast to silence warning.
769
770 2004-10-14  Joseph S. Myers  <jsm@polyomino.org.uk>
771
772         * errors.c (_cpp_begin_message): Print "error: " for errors.
773
774 2004-10-10  Andreas Jaeger  <aj@suse.de>
775
776         * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
777         * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
778
779 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
780
781         * pch.c (cpp_write_pch_state): Remove variable z as it is not
782         used.
783         (cpp_read_state): Remove unused variables, m, d and mac_count.
784
785 2004-09-29  Per Bothner  <per@bothner.com>
786
787         * directives.c (cpp_handle_deferred_pragma):  Save, clear and restore
788         cb.line_change.  Otherwise do_pragma will call the line_change
789         call-back with a meaningless line number.
790
791 2004-09-24  Zack Weinberg  <zack@codesourcery.com>
792
793         * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
794         programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
795         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
796         * aclocal.m4, configure: Regenerate.
797         * init.c: Include localedir.h.
798         * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
799         (DEFS): Delete.
800         (.c.o): Use $(ALL_CFLAGS).
801         (localedir.h, localedir.hs): New rules.
802         (clean): Use rm -rf to remove directories.
803         (distclean): Also delete localedir.h and localedir.hs.
804         (init.o): Update dependencies.
805
806 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
807
808         * Makefile.in (aclocal.m4): Update dependencies.
809         * configure.ac (AC_CONFIG_MACRO_DIR): New.
810         * aclocal.m4, configure: Regenerate.
811
812 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
813
814         * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
815         (_cpp_convert_input, _cpp_default_encoding): Add comments.
816         Some other comments in this file also tweaked.
817
818         * directives.c (do_pragma): Save current buffer position
819         before lexing the pragma keywords; don't call
820         _cpp_backup_tokens in the defer_pragmas case.
821
822 2004-09-15  Per Bothner  <per@bothner.com>
823
824         * include/line-map.h (line_map_start):  Add parameter names so
825         preceding comment makes sense.
826         (linemap_add):  Remove from comment mention of non-existing parameter.
827
828 2004-09-09  Matt Austern  <austern@apple.com>
829             Zack Weinberg  <zack@codesourcery.com>
830
831         * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
832         prefixes throughout.  Add entry for PRAGMA.  Remove
833         unnecessary "= 0" from EQ.
834         (enum cpp_ttype): Adjust OP and TK definitions to restore
835         prefixes, via token-paste.
836         (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
837         Change from #defines to additional cpp_ttype enumerators.
838         (struct cpp_options): Add defer_pragmas.
839         (cpp_handle_deferred_pragma): Prototype new interface.
840
841         * internal.h (struct cpp_reader): Add directive_result.
842         * directives.c (struct pragma_entry): Add is_internal field;
843         give boolean fields type bool.
844         (start_directive): Initialize pfile->directive_result.type.
845         (_cpp_do__Pragma): Likewise.
846         (run_directive): Do not crash if pfile->buffer->prev is NULL.
847         (insert_pragma_entry): Add 'internal' argument; set new->is_internal
848         from it.
849         (register_pragma): New static function, bulk of former
850         cpp_register_pragma here; add 'internal' argument, pass along
851         to insert_pragma_entry.
852         (cpp_register_pragma): Now a wrapper around register_pragma which
853         always passes false for 'internal' argument.
854         (_cpp_init_internal_pragmas): Call register_pragma directly, passing
855         true for 'internal'.
856         (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
857         an internal pragma, save text till the end of the line as a CPP_PRAGMA
858         token instead of executing the pragma.
859         (cpp_handle_deferred_pragma): New interface.
860         * lex.c (token_spellings): Adjust OP and TK definitions to
861         match changes to cpplib.h.
862         (_cpp_lex_token): Check for a directive-result token and
863         return it if present.
864         (cpp_token_val_index): Handle CPP_PRAGMA.
865         * macro.c (cpp_builtin_macro_text): Correct comment.
866         (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
867
868 2004-09-06  Serge Belyshev  <belyshev@lubercy.com>
869
870         PR preprocessor/14699
871         * symtab.c (ht_dump_statistics): Change type of sum_of_squares
872         from size_t to double.
873
874 2004-08-28  Andreas Schwab  <schwab@suse.de>
875             Andreas Jaeger <aj@suse.de>
876
877         * configure.ac: Set PACKAGE correctly.
878         * configure: Regenerated.
879
880 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
881
882         * Makefile.in: Add back top_builddir.
883
884 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
885
886         * configure.ac: Replace Automake macro invocations
887         with manual Autoconf checks and substitutions.
888         * configure: Regenerate.
889         * aclocal.m4: Regenerate.
890         * config.in: Regenerate.
891         * Makefile.am: Removed.
892         * Makefile.in: Heavy simplification and reorganization.
893
894 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
895
896         * configure.ac (arm*-*-eabi*): New target.
897         (arm*-*-symbianelf*): Likewise.
898         * configure: Regenerated.
899
900 2004-07-24  Bernardo Innocenti  <bernie@develer.com>
901
902         * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
903         * directives.c: Use XNEW-family macros from libiberty.
904         * lex.c: Likewise.
905         * macro.c: Likewise.
906         * cpplib.h (cpp_deps_style): Export enum with name.
907
908 2004-07-23  Matthias Klose  <doko@debian.org>
909
910         * init.c (init_library): Use PACKAGE for the text domain.
911
912 2004-07-16  Andris Pavenis  <pavenis@latnet.lv>
913
914         PR preprocessor/16366
915         * internal.h (struct cpp_reader): New field dir_hash.
916         * files.c (make_cpp_dir): Use dir_hash, not file_hash.
917         (_cpp_init_files, _cpp_cleanup_files): Update for new field.
918
919 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
920
921         PR preprocessor/16192
922         PR preprocessor/15913
923         PR preprocessor/15572
924         * expr.c (_cpp_parse_expr): Handle remaining cases where an
925         expression is missing.
926         * init.c (post_options): Traditional cpp doesn't do // comments.
927
928 2004-06-30  Per Bothner  <per@bothner.com>
929
930         * include/line-map.h (fileline):  Remove old typedef.
931         * internal.h (struct cpp_reader):  Use source_location typedef instead.
932
933 2004-06-26  Zack Weinberg  <zack@codesourcery.com>
934
935         Partially revert patch of 2004-06-05.
936         * files.c (search_cache): Remove pfile argument.  Don't check
937         for file that would be found by "" or <> search here...
938         (_cpp_find_file): ...do it here, before calling find_file_in_dir.
939         Do not apply directory-of-current-file correction to files
940         found by this check.  Rearrange code slightly.
941
942 2004-06-21  Geoffrey Keating  <geoffk@apple.com>
943
944         * files.c (should_stack_file): Correct swapped parameters to call
945         to cb.read_pch.
946         * pch.c (cpp_valid_state): Handle -fpreprocessed.
947
948 2004-06-15  Paolo Bonzini  <bonzini@gnu.org>
949
950         * Makefile.in: Regenerate with automake 1.8.5.
951         * aclocal.m4: Likewise.
952         * configure: Regenerate.
953
954 2004-06-11  Zack Weinberg  <zack@codesourcery.com>
955
956         * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
957         * configure, config.in: Regenerate.
958         * system.h: Unconditionally define bool as unsigned char,
959         BOOL_BITFIELD as unsigned int.
960         * .cvsignore: New file.
961
962 2004-06-09  Geoffrey Keating  <geoffk@apple.com>
963
964         * traditional.c (push_replacement_text): Set macro->traditional.
965         (save_replacement_text): Likewise.
966         * pch.c (cpp_write_pch_state): Don't write list of defined macros.
967         (struct save_macro_item): Delete.
968         (struct save_macro_data): Use a character array not the previous
969         structured format.
970         (save_macros): Save macro as text not as internal structures.
971         (cpp_prepare_state): Update for changes to save_macro_data.
972         (cpp_read_state): Don't read macros defined in PCH.  Restore
973         -D macros as text.
974         * macro.c (create_iso_definition): Honour alloc_subobject.
975         Clear traditional flag.
976         (_cpp_create_definition): Honour alloc_subobject.
977         * lex.c (cpp_token_val_index): New.
978         * internal.h: Include cpp-id-data.h.
979         (uchar): Move definition to cpp-id-data.h.
980         (U): Likewise.
981         (cpp_macro): Likewise.
982         * directives.c (struct answer): Move to cpp-id-data.h.
983         (do_assert): Honour alloc_subobject.
984
985         * include/symtab.h (struct ht): Add field 'alloc_subobject'.
986         * include/cpplib.h (struct cpp_string): Add GTY marker.
987         (enum cpp_token_fld_kind): New.
988         (struct cpp_token): Add GTY markers.
989         (cpp_token_val_index): Prototype.
990         (CPP_HASHNODE_VALUE_IDX): New.
991         (struct cpp_hashnode): Don't skip fields of 'value' when marking.
992         * include/cpp-id-data.h: New file.
993
994 2004-06-09  Paolo Bonzini  <bonzini@gnu.org>
995
996         * Makefile.am (all-local): New.
997         * Makefile.in: Regenerate.
998
999 2004-06-06  Roger Sayle  <roger@eyesopen.com>
1000
1001         * Makefile.am (LIBICONV): Declare.
1002         (makedepend_LDADD): Use LIBICONV.
1003         * Makefile.in: Regenerate.
1004
1005 2004-06-05  Andrew Pinski  <pinskia@physics.uc.edu>
1006
1007         * Makefile.am (LIBINTL): Declare
1008         (makedepend_LDADD): Use LIBINTL.
1009         * Makefile.in: Regenerate.
1010
1011 2004-06-05  Zack Weinberg  <zack@codesourcery.com>
1012
1013         * Makefile.am: Add makedepend.
1014         * Makefile.in, aclocal.m4: Regenerate.
1015         * charset.c: Insert a space to avoid a warning.
1016         * directives.c: Include mkdeps.h.
1017         (_cpp_handle_directive): Reenable macro expander if appropriate.
1018         (undefine_macros): Inline body of _cpp_free_definition for speed.
1019         Do not call undef callback or _cpp_warn_if_unused_macro.
1020         (cpp_get_deps): New interface.
1021         * files.c (search_cache): Add pfile argument.  Check for file
1022         that would be found by "" or <> search here...
1023         (_cpp_find_file): ...not here.  Correct recorded start_dir of
1024         files found by directory-of-current-file search that would be
1025         found by "" or <> search.
1026         * init.c (cpp_add_dependency_target): Delete.
1027         * internal.h (struct lexer_state): Add discarding_output flag.
1028         * lex.c (lex_identifier): Compute hash function while scanning.
1029         * macro.c (cpp_scan_nooutput): Disable macro expansion outside
1030         directives.
1031         * makedepend.c: New file.
1032         * mkdeps.c (struct deps): Add vpath vector.
1033         (apply_vpath, deps_add_vpath): New function.
1034         (deps_free): Free vpath vector.
1035         (deps_add_dep, deps_add_target): Use apply_vpath.
1036         * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
1037         (ht_lookup_with_hash): New function.
1038         * cpplib.h, mkdeps.h: Update prototypes.
1039         * symtab.h: Update prototypes.
1040         (HT_HASHSTEP, HT_FINISH): New macros.
1041
1042 2004-05-29  Geoffrey Keating  <geoffk@apple.com>
1043
1044         * symtab.c (ht_create): Set entries_owned.
1045         (ht_destroy): Honour entries_owned.
1046         (ht_expand): Likewise.
1047         (ht_load): New.
1048         * include/symtab.h (struct ht): New field 'entries_owned'
1049         (ht_load): New prototype.
1050
1051 2004-05-26  Paolo Bonzini  <bonzini@gnu.org>
1052
1053         PR bootstrap/15651
1054         * configure.ac: Fix m4 quoting when picking
1055         the size of HOST_WIDE_INT.
1056         * configure: Regenerate.
1057
1058 2004-05-25  Paolo Bonzini  <bonzini@gnu.org>
1059
1060         * Makefile.am: the correct directory for
1061         gettext include files is given by @INCINTL@.
1062         * Makefile.in: Regenerate.
1063
1064 2004-05-24  Paolo Bonzini  <bonzini@gnu.org>
1065
1066         * system.h [!ENABLE_NLS]: dgettext takes two
1067         parameters.
1068
1069 2004-05-23  Paolo Bonzini  <bonzini@gnu.org>
1070
1071         Moved libcpp from the gcc subdirectory to the toplevel.
1072         * Makefile.am: New file.
1073         * Makefile.in: Regenerate.
1074         * configure.ac: New file.
1075         * configure: Regenerate.
1076         * config.in: Regenerate.
1077         * charset.c: Moved from gcc/cppcharset.c.  Add note about
1078         brokenness of input charset detection.  Adjust for change
1079         in name of cppucnid.h.
1080         * errors.c: Moved from gcc/cpperror.c.  Do not include intl.h.
1081         * expr.c: Moved from gcc/cppexp.c.
1082         * files.c: Moved from gcc/cppfiles.c.  Do not include intl.h.
1083         Remove #define of O_BINARY, it is in system.h.
1084         * identifiers.c: Moved from gcc/cpphash.c.
1085         * internal.h: Moved from gcc/cpphash.h.  Change header
1086         guard name.  All other files adjusted to match name change.
1087         * init.c: Moved from gcc/cppinit.c.
1088         (init_library) [ENABLE_NLS]: Call bindtextdomain.
1089         * lex.c: Moved from gcc/cpplex.c.
1090         * directives.c: Moved from gcc/cpplib.c.
1091         * macro.c: Moved from gcc/cppmacro.c.
1092         * pch.c: Moved from gcc/cpppch.c.  Do not include intl.h.
1093         * traditional.c: Moved from gcc/cpptrad.c.
1094         * ucnid.h: Moved from gcc/cppucnid.h.  Change header
1095         guard name.
1096         * ucnid.pl: Moved from gcc/cppucnid.pl.
1097         * ucnid.tab: Moved from gcc/cppucnid.tab.  Change header
1098         guard name.
1099         * symtab.c: Moved from gcc/hashtable.c.
1100         * line-map.c: Moved from gcc.  Do not include intl.h.
1101         * mkdeps.c: Moved from gcc.
1102         * system.h: New file.
1103         * include/cpplib.h: Moved from gcc.  Change header guard name.
1104         * include/line-map.h: Moved from gcc.  Change header guard name.
1105         * include/mkdeps.h: Moved from gcc.  Change header guard name.
1106         * include/symtab.h: Moved from gcc/hashtable.h.  Change header
1107         guard name.