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