]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcpp/ChangeLog
Daily bump.
[thirdparty/gcc.git] / libcpp / ChangeLog
CommitLineData
97f6bd40
TT
12007-12-06 Tom Tromey <tromey@redhat.com>
2
3 PR c/29172:
4 * internal.h (struct cpp_reader) <file_hash_entries>: Changed
5 type.
6 <file_hash_entries_allocated, file_hash_entries_used>: Removed.
7 * files.c (FILE_HASH_POOL_SIZE): New macro.
8 (struct file_hash_entry_pool): New.
9 (destroy_all_cpp_files): New function.
10 (allocate_file_hash_entries): Allocate a file_hash_entry_pool.
11 (new_file_hash_entry): Update.
12 (free_file_hash_entries): New function.
13 (_cpp_cleanup_files): Call free_file_hash_entries and
14 destroy_all_cpp_files.
15 (cpp_clear_file_cache): New function.
16 * include/cpplib.h (cpp_clear_file_cache): Declare.
17
d56a25e1
TT
182007-12-03 Tom Tromey <tromey@redhat.com>
19
20 PR preprocessor/34288:
21 * configure.ac, config.in: Rebuilt.
22 * configure.ac: Check for ssize_t.
23
607f74e9
TT
242007-11-30 Tom Tromey <tromey@redhat.com>
25
26 PR preprocessor/32868:
27 * macro.c (_cpp_create_definition): Special case
28 __STDC_FORMAT_MACROS.
29
b0f4807f
MM
302007-11-16 Michael Matz <matz@suse.de>
31
32 * files.c (search_path_head): Fix check for absolute paths.
33
f1e20710
TT
342007-11-11 Tom Tromey <tromey@redhat.com>
35
36 PR c++/17557:
37 * include/cpplib.h (cpp_included_before): Declare.
38 * files.c (struct file_hash_entry) <location>: New field.
39 (_cpp_find_file): Initialize new field.
40 (make_cpp_dir): Likewise.
41 (cpp_included_before): New function.
42
f373b44d
TT
432007-11-01 Tom Tromey <tromey@redhat.com>
44
45 PR preprocessor/30805:
46 * macro.c (paste_tokens): Handle padding token.
47 (paste_tokens): Don't abort unless padding has PASTE_LEFT flag.
48
5b9a40df
TT
492007-10-31 Tom Tromey <tromey@redhat.com>
50
51 PR preprocessor/30786:
52 * macro.c (builtin_macro): Return result of _cpp_do__Pragma.
53 * directives.c (_cpp_do__Pragma): Return error status.
54 * internal.h (_cpp_do__Pragma): Update.
55 * directives.c (get__Pragma_string): Back up if EOF seen.
56
5ffeb913
TT
572007-09-06 Tom Tromey <tromey@redhat.com>
58
59 * internal.h (struct cpp_reader) <invocation_location>: New
60 field.
61 (struct cpp_reader) <set_invocation_location>: Likewise.
62 * init.c (cpp_set_line_map): New function.
63 * line-map.c (linemap_add): Use linemap's allocator.
64 * include/line-map.h (GTY): Define.
65 (line_map_realloc): New typedef.
66 (struct line_map): Mark with GTY.
67 (struct line_maps): Likewise.
68 (struct line_maps) <maps>: Likewise.
69 (struct line_maps) <reallocator>: New field.
70 * include/symtab.h (GTY): Conditionally define.
71 * include/cpplib.h (cpp_set_line_map): Declare.
72 (cpp_get_token_with_location): Declare.
73 * macro.c (cpp_get_token): Set invocation_location on the reader.
74 (cpp_get_token_with_location): New function.
75
ac6b1c67
CF
762007-08-30 Chao-ying Fu <fu@mips.com>
77
78 * expr.c (interpret_float_suffix): Support hr, r, lr, llr, uhr, ur,
79 ulr, ullr, hk, k, lk, llk, uhk, uk, ulk, ullk.
80 (cpp_classify_number): Support decimal fixed-point constants without
81 exponents.
82 Warn about fixed-point constants when -pedantic.
83 * include/cpplib.h (CPP_N_SMALL, CPP_N_MEDIUM, CPP_N_LARGE): Change
84 comments to support fixed-point values.
85 (CPP_N_FRACT, CPP_N_ACCUM): Define.
86
cda5e672
TT
872007-08-18 Tom Tromey <tromey@redhat.com>
88
89 PR preprocessor/32974:
90 * directives.c (parse_include): Don't check for EOL when
91 processing #pragma dependency.
92
ccfc4c91
OW
932007-07-30 Ollie Wild <aaw@google.com>
94
95 * directives-only.c: New file.
96 * internal.h (struct _cpp_dir_only_callbacks): New.
97 (_cpp_preprocess_dir_only): New function.
98 * directives.c (_cpp_handle_directive): Check directives_only before
99 disabling execution of indented directives.
100 * files.c (_cpp_stack_file): Add directives_only check.
101 * include/cpplib.h (struct cpp_options): Add directives_only.
102 (cpp_init_special_builtins): New function.
103 * init.c (cpp_init_special_builtins): New function.
104 (cpp_init_builtins): Move builtin_array initialization to
105 cpp_init_special_builtins.
106 (post_options): Check directives_only before setting
107 pfile->state.prevent_expansion = 1.
108 * macro.c (_cpp_builtin_macro_text): Print an error if __COUNTER__
109 is expanded inside a directive while -fdirectives-only is enabled.
110 * Makefile.in (libcpp_a_OBJS): Add directives-only.o.
111 (libcpp_a_SOURCES): Add directives-only.c.
112
a206413a
UB
1132007-07-04 Uros Bizjak <ubizjak@gmail.com>
114
115 * traditional.c (_cpp_scan_out_logical_line): Initialize
116 fmacro.args, fmacro.node, fmacro.offset, fmacro.line and
117 fmacro.args to prevent 'may be used uninitialized' warning.
118
c77cd3d1
UB
1192007-07-03 Uros Bizjak <ubizjak@gmail.com>
120
121 * include/cpplib.h (CPP_N_WIDTH_MD, CPP_N_MD_W, CPP_N_MD_Q):
122 Add new constants.
123 * expr.c (interpret_float_suffix): Process 'w', 'W', 'q' and 'Q'
124 suffixes. Return CPP_N_MD_W for 'w' or 'W' suffixes and CPP_N_MD_Q
125 for 'q' or 'Q' suffixes.
126
66938a1d
DS
1272007-06-17 Danny Smith <dannysmith@users.sourceforge.net
128
e1311401 129 * files.c (open_file): Correct typo.
66938a1d 130
71995ede
VP
1312007-06-16 Vladimir Prus <vladimir@codesourcery.com>
132
e1311401 133 * files.c (open_file): Prevent the call
71995ede
VP
134 for stat from overwriting errno.
135
84152c25
VP
1362007-06-09 Vladimir Prus <vladimir@codesourcery.com>
137
e1311401 138 * files.c (open_file): Account for the
84152c25
VP
139 fact that on windows, opening a directory gives
140 EACCES.
141
f7fd775f
JW
1422007-06-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
143
144 PR preprocessor/23479
145 * expr.c (cpp_classify_number): Implement 0b-prefixed binary
146 integer constants.
147 (append_digit): Likewise.
148 * include/cpplib.h: Add CPP_N_BINARY, to be used for 0b-prefixed
149 binary integer constants.
150
ed0e74e0
DK
1512007-05-31 Dave Korn <dave.korn@artimi.com>
152
153 PR preprocessor/14331
154 * lex.c (_cpp_get_fresh_line): Don't warn if no newline at EOF.
155
a702045a
OW
1562007-05-24 Ollie Wild <aaw@google.com>
157
158 * macro.c (_cpp_builtin_macro_text): Handle BT_COUNTER.
159 * pch.c (cpp_write_pch_deps): Save __COUNTER__ state.
160 (cpp_write_pch_state): Save __COUNTER__ state.
161 (cpp_valid_state): Check valid __COUNTER__ state.
162 (cpp_read_state): Read new __COUNTER__ state.
163 * include/cpplib.h (enum builtin_type): Add BT_COUNTER enumerator.
164 * init.c (builtin_array): Add __COUNTER__/BT_COUNTER.
165 * internal.h (struct cpp_reader): Add counter member.
166
126e073b
SM
1672007-05-23 Simon Martin <simartin@users.sourceforge.net>
168
169 PR preprocessor/20077
170 * macro.c (create_iso_definition): Fixed the method to determine
171 whether the token-pasting operator appears at the beginning or the end
172 of a macro.
173
0b4cafec
ILT
1742007-05-21 Ian Lance Taylor <iant@google.com>
175
176 * internal.h (struct cpp_reader): Add new fields:
177 nonexistent_file_hash and nonexistent_file_ob.
178 * files.c: Include "obstack.h".
179 (find_file_in_dir): Before trying to open the file, look up the
180 path name in the hash table of nonexistent files. After failing
181 to open the file, add the path name to the hash table.
182 (_cpp_find_file): Cache the results of looking up the file name
183 starting with the quote and bracket chain heads, if we can.
184 (nonexistent_file_hash_eq): New static function.
185 (_cpp_init_files): Initialize pfile->nonexistent_file_hash and
186 pfile->nonexistent_file_ob.
187 (_cpp_cleanup_files): Free pfile->nonexistent_file_hash and
188 pfile->nonexistent_file_ob.
189
30e04921
JJ
1902007-05-14 Janis Johnson <janis187@us.ibm.com>
191
5a6bb57e
JJ
192 * expr.c (cpp_classify_number): Warn about dfp constant for -pedantic.
193
30e04921
JJ
194 PR c/31924
195 * expr.c (interpret_float_suffix): Check for invalid suffix.
196
22a8a52d
EC
1972007-05-02 Eric Christopher <echristo@apple.com>
198
199 * expr.c (num_div_op): Don't overflow if the result is
200 zero.
201
fca35e1b
TT
2022007-05-02 Tom Tromey <tromey@redhat.com>
203
204 PR preprocessor/28709:
205 * macro.c (paste_tokens): Remove PASTE_LEFT from the old lhs.
206
4cd97075
MM
2072007-03-30 Michael Meissner <michael.meissner@amd.com>
208
209 * directives.c (lex_macro_node_from_str): Fix alloca call to be
210 type correct.
211
121de39f
RH
2122007-03-30 Richard Henderson <rth@redhat.com>
213
214 * directives.c (lex_macro_node_from_str): New.
215 (cpp_push_definition, cpp_pop_definition): New.
216 * include/cpplib.h (cpp_push_definition, cpp_pop_definition): Declare.
217
4fcb360b
BM
2182007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
219
220 * Makefile.in: Add dummy install-pdf target.
221
67e64439
TT
2222007-01-30 Tom Tromey <tromey@redhat.com>
223
224 PR preprocessor/30468:
225 * mkdeps.c (apply_vpath): Strip successive '/'s if we stripped
226 './'.
227
ee380365
TT
2282007-01-30 Tom Tromey <tromey@redhat.com>
229
230 PR preprocessor/29966:
231 * macro.c (lex_expansion_token): Save and restore cpp_reader's
232 cur_token.
233 (_cpp_create_definition): Don't restore cur_token here.
234 * lex.c (_cpp_lex_token): Added assertion.
235
024abeb3
TT
2362007-01-27 Tom Tromey <tromey@redhat.com>
237
238 * configure: Rebuilt.
239
ee1c2a10
TT
2402007-01-12 Tom Tromey <tromey@redhat.com>
241
242 PR preprocessor/28227:
243 * directives.c (lex_macro_node): Added 'is_def_or_undef'
244 argument.
245 (do_define): Update.
246 (do_undef): Update.
247 (do_ifdef): Update.
248 (do_ifndef): Update.
249
67214c16
PB
2502007-01-11 Paolo Bonzini <bonzini@gnu.org>
251
252 * configure: Regenerate.
253
1aa6ca40
PB
2542007-01-11 Paolo Bonzini <bonzini@gnu.org>
255
256 * configure: Regenerate.
257
705e2d28
TT
2582007-01-04 Tom Tromey <tromey@redhat.com>
259
260 PR preprocessor/28165:
261 * internal.h (cpp_in_primary_file): New function.
262 * directives.c (do_include_next): Use cpp_in_primary_file.
263 (do_pragma_once): Likewise.
264 (do_pragma_system_header): Likewise.
265
7af45bd4
ILT
2662006-12-29 Ian Lance Taylor <iant@google.com>
267
268 * lex.c (_cpp_clean_line): Add uses of __builtin_expect. Don't
269 look backward at the end of the line unless we saw a backslash.
270
9d30f270
JJ
2712006-12-29 Jakub Jelinek <jakub@redhat.com>
272
273 PR preprocessor/29612
274 * directives.c (do_linemarker): Set pfile->buffer->sysp always, not
275 only when new_sysp is non-zero.
276
30b0edc0
TT
2772006-12-28 Tom Tromey <tromey@redhat.com>
278
279 PR preprocessor/30001:
280 * charset.c (_cpp_convert_input): Check that to.len is greater
281 than zero.
282
85d9c13c
TS
2832006-11-20 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
284
285 * configure.ac (need_64bit_hwint): Need 64bit hwint for SPU.
83cc06b2 286 * configure: Rebuilt.
85d9c13c 287
dfafdaa6
DG
2882006-11-01 Douglas Gregor <doug.gregor@gmail.com>
289
290 * include/cpplib.h (enum c_lang): Add CLK_GNUCXX0X and CLK_CXX0X
291 for experimental C++0x mode.
292 * init.c (lang_defaults): Add defaults for C++0x modes. C++0x has
293 adopted the preprocessor changes introduced in C99.
294
0f45f0f5
JM
2952006-10-29 Joseph Myers <joseph@codesourcery.com>
296
297 * configure.ac (need_64bit_hwint): Set for i[34567]86-*-linux*
298 depending on --enable-targets=all.
299 * configure: Regenerate.
300
de000d22
JJ
3012006-10-12 Jakub Jelinek <jakub@redhat.com>
302
303 PR preprocessor/28709
304 * macro.c (paste_tokens): Do error reporting here, use BUF with the
305 spelled LHS token as opposed to spelling it again.
306 (paste_all_tokens): Don't report errors here, just break on failure.
307
b5422ad7
BM
3082006-10-10 Brooks Moses <bmoses@stanford.edu>
309
310 * Makefile.in: Added empty "pdf" target.
311
aaf50ff2
GK
3122006-09-22 Geoffrey Keating <geoffk@apple.com>
313
314 * configure.ac: Make need_64_bit_hwint case for x86-darwin
315 match exactly the glob in gcc/config.gcc.
316 * configure: Regenerate.
317
c663e301
JM
3182006-09-13 Joseph S. Myers <joseph@codesourcery.com>
319
320 PR c/28768
321 PR preprocessor/14634
322 * lex.c (lex_string): Pedwarn for unterminated literals.
323
f7288899
EC
3242006-09-08 Eric Christopher <echristo@apple.com>
325
326 * configure.ac: Add 64-bit HWI support for i?86-darwin.
327
b52dbbf8
SE
3282006-08-14 Steve Ellcey <sje@cup.hp.com>
329
330 PR c++/28288
331 PR c++/14556
332 * include/cpplib.h: Remove <?, >?, <?=, and >?= tokens.
333 (CPP_LAST_EQ): Change.
334 (CPP_LAST_PUNCTUATOR): Change.
335 * expr.c (cpp_operator): Remove MIN and MAX.
336 (reduce): Remove CPP_MIN and CPP_MAX.
337 (num_binary_op): Ditto.
338 * lex.c (_cpp_lex_direct): Ditto.
339 (cpp_avoid_paste): Remove ? as legal symbol after > or <.
340
1c90c6f9
JJ
3412006-06-09 Jakub Jelinek <jakub@redhat.com>
342
343 PR preprocessor/27746
344 * directives.c (do_pragma): Handle pragma with valid namespace
345 and invalid name coming from macro expansion.
346 * directives.c (destringize_and_run): Initialize next field in
347 context.
348
349 PR c/27747
350 PR c++/27748
351 * directives.c (destringize_and_run): Set NO_EXPAND on the
352 tokens.
353
354 * macro.c (_cpp_backup_tokens): Fix comment typo.
355
5c3c3683
DJ
3562006-05-31 Daniel Jacobowitz <dan@codesourcery.com>
357
358 * Makefile.in (CATALOGS): Add po/ prefix.
359 * configure: Regenerated.
360
b2bd74bc
CD
3612006-05-23 Carlos O'Donell <carlos@codesourcery.com>
362
363 * Makefile.in: Add install-html target. Add install-html to .PHONY
364
be8ac3e2
GZ
3652006-02-17 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
366
367 * macro.c (_cpp_builtin_macro_text): Handle BT_TIMESTAMP.
368 * files.c (_cpp_get_file_stat): New function.
369 * include/cpplib.h (builtin_type): Add BT_TIMESTAMP.
370 * init.c (builtin_array): Add support for __TIMESTAMP__/BT_TIMESTAMP.
371 * internal.h (_cpp_get_file_stat): Prototype.
372 (struct cpp_buffer): Add timestamp.
373
83900997
JJ
3742006-01-23 Jakub Jelinek <jakub@redhat.com>
375
376 PR preprocessor/25717
377 * init.c (cpp_init_builtins): If __STDC__ will not change value
378 between system headers and other sources, define it as a normal
379 macro rather than a builtin.
380 * macro.c (_cpp_builtin_macro_text) <case BT_STDC>: Only check
381 cpp_in_system_header condition.
382
3832006-01-05 Paolo Bonzini <bonzini@gnu.org>
9220c30c
PB
384
385 * Makefile.in: Use -MMD instead of -MD.
386
bc4071dd
RH
3872006-01-04 Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
388 Richard Henderson <rth@redhat.com>
389
390 Merge from gomp branch:
391 * directives.c (struct pragma_entry): Add is_deferred. Add ident
392 entry to value union.
393 (end_directive): Don't eat the line if in_deferred_pragma.
394 (run_directive): Remove pragma hacks.
395 (insert_pragma_entry): Remove.
396 (new_pragma_entry): New.
397 (register_pragma_1): Split out of register_pragma. Only handle
398 the lookup tree and return the new entry.
399 (cpp_register_pragma): Fill in the pragma entry here.
400 (cpp_register_deferred_pragma): New.
401 (register_pragma_internal): New.
402 (_cpp_init_internal_pragmas): Use register_pragma_internal.
403 (do_pragma): Allow pragma expansion after namespace. For deferred
404 pragmas, don't slurp the line into a string.
405 (destringize_and_run): Save tokens for deferred pragmas.
406 (cpp_handle_deferred_pragma): Remove.
407 * macro.c (builtin_macro): Remove pragma token hack.
408 (_cpp_push_token_context): Rename from push_token_context and export.
409 * internal.h (struct lexer_state): Add pragma_allow_expansion.
410 (_cpp_push_token_context): Declare.
411 * lex.c (_cpp_lex_token): Allow _cpp_handle_directive to return
412 a token. Update the line number correctly if so.
413 (_cpp_lex_direct): Emit CPP_PRAGMA_EOL tokens.
414 (cpp_token_val_index): Return CPP_TOKEN_FLD_PRAGMA for pragmas.
415 * include/cpplib.h (PRAGMA_EOL): New.
416 (CPP_TOKEN_FLD_PRAGMA): New.
417 (struct cpp_token): Add val.pragma.
418 (struct cpp_options): Remove defer_pragmas.
419 (cpp_handle_deferred_pragma): Remove.
420 (cpp_register_deferred_pragma): Declare.
421
d09e893f
JJ
4222006-01-01 Jakub Jelinek <jakub@redhat.com>
423
424 PR c++/25294
425 * directives.c (do_pragma): If pragma line ends with multi-line
426 block comment, end the saved deferred pragma string before that
427 comment. Handle embedded '\0' chars on the pragma line.
428
ab84748a
VR
4292005-12-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
430
431 PR c++/23333
432 * include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure.
433
ad6ed77e
JG
4342005-12-07 Jon Grimm <jgrimm2@us.ibm.com>
435 Ben Elliston <bje@au.ibm.com>
436
437 * include/cpplib.h (CPP_N_DFLOAT): New.
438 * expr.c (interpret_float_suffix): Identify df, dd, and dl
439 suffixes as decimal floating point constants.
440 (cpp_classify_number): Disallow hexadecimal DFP constants.
441
ba096620 4422005-11-14 Gerald Pfeifer <gerald@pfeifer.com>
bc4071dd 443 Ian Lance Taylor <ian@airs.com>
ba096620
GP
444
445 * include/cpplib.h (struct cpp_callbacks): Annotate error with
446 ATTRIBUTE_FPTR_PRINTF(3,0) instead of ATTRIBUTE_PRINTF(3,0).
447
456b8ce5
UB
4482005-11-09 Per Bothner <per@bothner.com>
449 Uros Bizjak <uros@kss-loka.si>
f7288899 450
456b8ce5
UB
451 PR c/24101
452 * init.c (read_original_filename): Temporarily set
453 state.in_directive before calling _cpp_lex_direct for
454 CPP_HASH tokens.
455
5571f74f
JW
4562005-11-03 James E Wilson <wilson@specifix.com>
457
458 PR preprocessor/24202
459 * files.c (_cpp_pop_file_buffer): Set buffer_valid to false.
460
a63607ed
JM
4612005-11-04 Joseph S. Myers <joseph@codesourcery.com>
462
463 * include/cpplib.h (struct cpp_callbacks): Make error take
464 va_list* parameter.
465 * errors.c (cpp_error): Update call to callback.
466
651ed942
AP
4672005-11-03 Andrew Pinski <pinskia@physics.uc.edu>
468
469 PR preprocessor/22042
470 * macro.c (_cpp_builtin_macro_text): Lower the needed max
471 buffer size.
472 (cpp_quote_string): Don't octalify non printable
473 charactors.
474
178b58b5
JM
4752005-11-03 Joseph S. Myers <joseph@codesourcery.com>
476
477 PR c++/17964
478 * include/cpplib.h (struct cpp_options): Add client_diagnostic.
479 (struct cpp_callbacks): Add error.
480 * errors.c (cpp_error): If client_diagnostic, use error callback.
481 * charset.c (convert_escape): Don't use %03o in diagnostic.
482
3ee5ed11 4832005-10-21 James E Wilson <wilson@specifix.com>
6568f34b
JW
484
485 PR preprocessor/15220
486 * files.c (_cpp_find_file): New parameter angle_brackets. Fix all
487 callers. Pass to open_file_failed.
488 (open_file_failed): New parameter angle_brackets. Fix all callers.
489 Use in print_dep assignment.
490 * init.c (cpp_read_main_file): Pass additional arg to _cpp_find_file.
491 * internal.h (_cpp_find_file): Add new parm to declaration.
f7288899 492
077fc835
KH
4932005-10-08 Kazu Hirata <kazu@codesourcery.com>
494
495 * configure.ac: Require 64-bit int for arm*-*-*eabi*.
496 * configure: Regenerate.
497
cbc43ae0
ILT
4982005-10-04 Ian Lance Taylor <ian@airs.com>
499
500 PR preprocessor/13726
501 * directives.c (check_eol_return_comments): New static function.
502 (parse_include): Add buf parameter. Change all callers.
503 (do_include_common): If not discard comments, turn on
504 save_comments. Pass collected comments to include callback.
505 * include/cpplib.h (struct cpp_callbacks): Add new parameter to
506 include callback: cpp_token list.
507
af15a2fe
JM
5082005-09-20 Joseph S. Myers <joseph@codesourcery.com>
509
510 * include/cpplib.h (struct cpp_options): Add extended_identifiers.
511 * init.c (struct lang_flags, lang_defaults): Add
512 extended_identifiers.
513 (cpp_set_lang): Use it.
514 * lex.c (forms_identifier_p): Check extended_identifiers.
515
f5eab47e
JJ
5162005-08-30 Jakub Jelinek <jakub@redhat.com>
517
518 PR preprocessor/20348
519 PR preprocessor/20356
520 * files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and
521 2004-06-05 changes.
522
467129e6
KG
5232005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
524
525 * configure.ac (ACX_PROG_CC_WARNING_OPTS): add
526 -Wmissing-format-attribute.
527
528 * configure: Regenerate.
529
200031d1
KC
5302005-06-29 Kelley Cook <kcook@gcc.gnu.org>
531
532 * all files: Update FSF address in copyright headers.
533 * makeucnid.c (write_copyright): Update outputted FSF address.
534
f610dd5f
ZW
5352005-06-13 Zack Weinberg <zack@codesourcery.com>
536
537 * configure.ac: Invoke ZW_CREATE_DEPDIR and
538 ZW_PROG_COMPILER_DEPENDENCIES.
539 * aclocal.m4, configure: Regenerate.
540 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE):
541 New variables.
542 (distclean): Clean up $(DEPDIR) and its contents.
543 (.c.o): Use $(COMPILE).
544 Include $(DEPDIR)/*.Po for most object->header dependencies.
545
c3f829c1
GDR
5462005-05-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
547
548 * configure.ac: Check declarations for asprintf and vasprintf.
549 * config.in: Regenerate.
550 * configure: Likewise.
551
552 * charset.c (conversion_loop): Use XRESIZEVEC.
553 (convert_no_conversion): Likewise.
554 (convert_using_iconv): Likewise.
555 (init_iconv_desc): Cast return value of alloca.
556 (cpp_host_to_exec_charset): Use XNEWVEC.
557 (emit_numeric_escape): Use XRESIZEVEC.
558 (cpp_interpret_string): Use XNEWVEC.
559 (cpp_interpret_string): Use XRESIZEVEC.
560 (_cpp_interpret_identifier): Cast return value of alloca.
561 (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC.
562 * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC.
563 (parse_include): Use XNEWVEC.
564 (insert_pragma_entry): Rename local variable "new" to
f610dd5f 565 "new_entry".
c3f829c1
GDR
566 (save_registered_pragmas): Cast return value of xmemdup.
567 (destringize_and_run): Same for alloca.
568 (parse_assertion): Likewise.
569 (do_assert): Cast allocated storage to proper type.
570 (cpp_define): Likewise.
571 (_cpp_define_builtin): Likewise.
572 (cpp_undef): Likewise.
573 (handle_assertion): Likewise.
574 (cpp_push_buffer): Rename local variable "new" to "new_buffer".
575 * expr.c (CPP_UPLUS): Cast value to type cpp_ttype.
576 (CPP_UMINUS): Likewise.
577 (struct cpp_operator): Rename from struct operator.
578 (_cpp_expand_op_stack): Use XRESIZEVEC.
579 * files.c (pch_open_file): Use XNEWVEC.
580 (pch_open_file): Use XRESIZEVEC.
581 (read_file_guts): Use XNEWVEC and XRESIZEVEC.
582 (dir_name_of_file): Use XNEWVEC.
583 (make_cpp_file): Use XCNEW.
584 (make_cpp_dir): Likewise.
585 (allocate_file_hash_entries): USE XNEWVEC.
586 (cpp_included): Cast return value of htab_find_with_hash.
587 (append_file_to_dir): Use XNEWVEC.
588 (read_filename_string): Likewise. Use XRESIZEVEC too.
589 (read_name_map): Cast return value of alloca. Use XRESIZEVEC.
590 (remap_filename): Use XNEWVEC.
591 (struct pchf_entry): Move definition out of struct pchf_data.
592 (_cpp_save_file_entries): Use XCNEWVAR.
593 (_cpp_read_file_entries): Use XNEWVAR.
594 * identifiers.c (alloc_node): Use XOBNEW.
595 * init.c (cpp_create_reader): Use XCNEW.
596 (cpp_init_builtins): Cast of b->value to enum builtin_type.
597 (read_original_directory): Cast return value of alloca.
598 * lex.c (add_line_note): Use XRESIZEVEC.
599 (warn_about_normalization): Use XNEWVEC.
600 (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype).
601 (new_buff): Use XNEWVEC.
602 * line-map.c (linemap_add): Use XRESIZEVEC.
603 * macro.c (builtin_macro): Cast return value of alloca.
604 (paste_tokens): Likewise.
605 (expand_arg): Use XNEWVEC and XRESIZEVEC.
606 (_cpp_save_parameter): Use XRESIZEVEC.
607 (create_iso_definition): Cast allocated storage to proper type.
608 (_cpp_create_definition): Likewise.
609 (cpp_macro_definition): Use XRESIZEVEC.
610 * makedepend.c (add_clm): Use XNEW.
611 (add_dir): Likewise.
612 * mkdeps.c (munge): Use XNEWVEC.
613 (deps_init): Use XCNEW.
614 (deps_add_target): Use XRESIZEVEC.
615 (deps_add_default_target): Cast return value of alloca.
616 (deps_add_dep): Use XRESIZEVEC.
617 (deps_add_vpath): Likewise. Use XNEWVEC too.
618 (deps_restore): Likewise.
619 * pch.c (save_idents): Use XNEW and XNEWVEC.
620 (cpp_save_state): Use XNEW.
621 (count_defs): Cast return value of htab_find.
622 (write_defs): Likewise.
623 (cpp_write_pch_deps): Use XNEWVEC.
624 (collect_ht_nodes): Use XRESIZEVEC.
625 (cpp_valid_state): Use XNEWVEC.
626 (save_macros): Use XRESIZEVEC. Cast return value of xmemdup.
627 * symtab.c (ht_create): Use XCNEW.
628 (ht_lookup_with_hash): Cast return value of obstack_copy0.
629 (ht_expand): Use XCNEWVEC.
630 * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus.
631 (bool): Do not define if __cplusplus.
632
1ed17cd5
ZW
6332005-05-12 Zack Weinberg <zack@codesourcery.com>
634
635 * directives.c (#sccs table entry): Mark IN_I, consistent with #ident.
636 (do_sccs): Delete function definition, #define to do_ident.
637 (do_ident): Don't hardwire directive name.
638
5a8c20ce
RK
6392005-05-12 Ryota Kunisawa <kunisawa@access.co.jp>
640
641 PR bootstrap/21230
642 * configure: Regenerate.
643
473c5bc9
AP
6442005-04-27 Andris Pavenis <pavenis@latnet.lv>
645
646 * files.c: Include io.h for DJGPP to get prototype of setmode.
647
c1fc5047
PB
6482005-04-19 Per Bothner <per@bothner.com>
649
650 PR preprocessor/20907
651 * line-map.c (linemap_line_start): Fix bug when we need to increse
652 column_bits but can re-use the current line_map.
653
042630ad
KG
6542005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
655
656 * system.h (fopen, fdopen, freopen): Define these to the unlocked
657 libiberty functions.
658
0d667716
KG
6592005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
660
661 * configure.ac (libcpp_UNLOCKED_FUNCS): New.
662 (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS.
663 * system.h (putchar, getc, getchar, clearerr, feof, fileno,
664 fflush, fgetc, fgets, ferror, fread): Redefine to the associated
665 _unlocked function.
666 (fwrite_unlocked): Fix prototype.
1ed17cd5 667
0d667716
KG
668 * configure, config.in: Regenerate.
669
cae064e7
JJ
6702005-04-05 Jakub Jelinek <jakub@redhat.com>
671
672 PR preprocessor/19475
673 * macro.c (create_iso_definition): For < ISO C99, don't
674 pedwarn if there is no whitespace between macro name and its
675 replacement, but the replacement starts with a basic character
676 set character.
677
cbada204
AJ
6782005-03-28 Andreas Jaeger <aj@suse.de>
679
680 * lex.c (warn_about_normalization): Cast field width to int to
681 avoid warning.
682
f42eccdb
JM
6832005-03-19 Joseph S. Myers <joseph@codesourcery.com>
684
685 * configure.ac: Consistently use solaris2.1[0-9]* instead of
686 solaris2.1[0-9].
687 * configure: Regenerate.
688
c79e602b
GK
6892005-03-15 Geoffrey Keating <geoffk@apple.com>
690
691 * charset.c (_cpp_valid_ucn): In identifiers, reject a partial
692 UCN rather than printing an error.
693
50668cf6
GK
6942005-03-14 Geoffrey Keating <geoffk@apple.com>
695
6baba9bb
GK
696 * lex.c (forms_identifier_p): Disable UCNs in C89 mode.
697
6982005-03-14 Geoffrey Keating <geoffk@apple.com>
1ed17cd5 699
50668cf6
GK
700 * init.c (cpp_create_reader): Default warn_normalize to normalized_C.
701 * charset.c: Update for new format of ucnid.h.
702 (ucn_valid_in_identifier): Update for new format of ucnid.h.
703 Add NST parameter, and update it; update callers.
704 (cpp_valid_ucn): Add NST parameter, update callers. Replace abort
705 with cpp_error.
706 (convert_ucn): Pass normalize_state to cpp_valid_ucn.
707 * internal.h (struct normalize_state): New.
708 (INITIAL_NORMALIZE_STATE): New.
709 (NORMALIZE_STATE_RESULT): New.
710 (NORMALIZE_STATE_UPDATE_IDNUM): New.
711 (_cpp_valid_ucn): New.
712 * lex.c (warn_about_normalization): New.
713 (forms_identifier_p): Add normalize_state parameter, update callers.
714 (lex_identifier): Add normalize_state parameter, update callers. Keep
715 the state current.
716 (lex_number): Likewise.
717 (_cpp_lex_direct): Pass normalize_state to subroutines. Check
718 it with warn_about_normalization.
719 * makeucnid.c: New.
720 * ucnid.h: Replace.
721 * ucnid.pl: Remove.
722 * ucnid.tab: Make appropriate for input to makeucnid.c. Remove
723 comments about obsolete version of C++.
724 * include/cpplib.h (enum cpp_normalize_level): New.
725 (struct cpp_options): Add warn_normalize field.
726
47e20491
GK
7272005-03-11 Geoffrey Keating <geoffk@apple.com>
728
729 * directives.c (glue_header_name): Update call to cpp_spell_token.
730 * internal.h (_cpp_interpret_identifier): New.
731 * charset.c (_cpp_interpret_identifier): New.
732 (_cpp_valid_ucn): Allow UCN version of '$'.
733 * lex.c (lex_identifier): Add extra parameter to indicate if initial
734 character was '$' or '\'. Support identifiers with UCNs.
735 (forms_identifier_p): Allow UCNs.
736 (_cpp_lex_direct): Pass extra parameter to lex_identifier.
737 (utf8_to_ucn): New.
738 (cpp_spell_token): Add FORSTRING parameter. Use it.
739 (cpp_token_as_text): Update call to cpp_spell_token.
740 (cpp_output_token): Write UCNs back out.
741 (stringify_arg): Update call to cpp_spell_token.
742 (paste_tokens): Likewise.
743 (cpp_macro_definition): Likewise.
744 * macro.c (stringify_arg): Likewise.
745 (paste_tokens): Likewise.
746 (cpp_macro_definition): Likewise.
747 * include/cpplib.h: Add parameter to cpp_spell_token.
748
73096711
JJ
7492005-03-04 Jakub Jelinek <jakub@redhat.com>
750
751 PR bootstrap/20282
752 PR bootstrap/20305
753 * macro.c (replace_args, cpp_get_token): Copy whole
754 cpp_token_u instead of just cpp_string field from it.
755
2203a881
DP
7562005-02-28 Devang Patel <dpatel@apple.com>
757
758 * directives.c (do_line): Save sysp early before line table is
759 realloc'ed.
1ed17cd5 760
c5ff069d
ZW
7612005-02-20 Zack Weinberg <zack@codesourcery.com>
762
763 PR 18785
764 * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
765 (cpp_host_to_exec_charset): New function.
766 * include/cpplib.h: Declare cpp_host_to_exec_charset.
767
04c90eea
DP
7682005-02-19 Devang Patel <dpatel@apple.com>
769
770 * charset.c (_cpp_convert_input): Check '\r' before inserting
771 '\n' at the end.
c5ff069d 772
6da55c00
EC
7732005-02-15 Eric Christopher <echristo@redhat.com>
774
775 PR preprocessor/19077
776 * macro.c (cpp_macro_definition): Move handling of whitespace
777 to PREV_WHITE conditional. Remove overloading of len
778 variable.
779
31c3e631
KH
7802005-02-14 Kazu Hirata <kazu@cs.umass.edu>
781
782 * directives.c, files.c, init.c, internal.h, macro.c, pch.c,
783 traditional.c: Update copyright.
784
be0f1e54
PB
7852005-02-14 Paolo Bonzini <bonzini@gnu.org>
786
787 PR bootstrap/19818
788 * configure.ac: Check for declaration of basename and getopt.
789 * config.in: Regenerate.
790 * configure: Regenerate.
791 * internal.h (ustrcspn): New.
792 * macro.c (create_iso_definition): Fix allocation of memory.
793 (padding_token): Add cast to remove const-ness.
794 * pch.c (cpp_read_state): Use ustrcspn.
795
ecddfb39
MS
7962005-02-08 Mike Stump <mrs@apple.com>
797
798 * files.c (pchf_adder): Remove.
799 (struct pchf_adder_info): Likewise.
800 (_cpp_save_file_entries): Write out all files so that #import works.
801
9fcdd891
JM
8022005-01-23 Joseph S. Myers <joseph@codesourcery.com>
803
804 * configure: Regenerate.
805
ecfd72e7
TS
8062005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
807
808 * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
809
6c25a4f7 810 * include/cpplib.h: Also update copyright years.
c5ff069d 811
942926ad
GK
8122005-01-03 Geoffrey Keating <geoffk@apple.com>
813
814 * files.c (_cpp_find_file): Add files found by search_path_exhausted
815 to the list of all files.
816
a2566ae9
GDR
8172005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
818
819 * internal.h: Update references to Cpp lib filenames.
820 * directives.c: Likewise.
821 * init.c: Likewise.
822 * macro.c: Likewise.
823 * traditional.c: Likewise.
824
1b449375
EB
8252004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
826
827 PR preprocessor/15167
828 * files.c (destroy_cpp_file): New function.
829 (should_stack_file): Make a new file if the
830 compared file is still stacked.
831
28303828
NN
8322004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
833
c5ff069d 834 PR preprocessor/17610
28303828
NN
835 * directives.c (do_include_common): Error out if an empty filename
836 is given for #include (or #include_next or #import).
837
c812785a
RS
8382004-11-27 Roger Sayle <roger@eyesopen.com>
839 Zack Weinberg <zack@codesourcery.com>
840
841 * internal.h: Replace all uses of uchar with unsigned char.
842 * include/cpp-id-data.h: Likewise. Guard typedef of uchar
843 with !IN_GCC, so uchar is only defined whilst building libcpp.
844
f91eaa01
KC
8452004-11-24 Kelley Cook <kcook@gcc.gnu.org>
846
847 * aclocal.m4: Regenerate.
848
f78ce0c2
RS
8492004-11-24 Roger Sayle <roger@eyesopen.com>
850
851 PR preprocessor/15824
852 * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
853 directly, instead of the non-existant "system.h" and "ansidecl.h".
854 * configure: Regenerate.
855
b5b3e36a 8562004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
c5ff069d 857 Joseph Myers <joseph@codesourcery.com>
b5b3e36a
DJ
858
859 * internal.h (struct lexer_state): Add in_deferred_pragma.
860 * directives.c (struct pragma_entry): Add allow_expansion.
861 (insert_pragma_entry): Take allow_expansion flag.
862 (register_pragma): Likewise.
863 (cpp_register_pragma): Likewise.
864 (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
865 (do_pragma): Honor allow_expansion.
866 (cpp_handle_deferred_pragma): Set in_deferred_pragma.
867 * include/cpplib.h (cpp_register_pragma): Update prototype.
868
a8e68029 8692004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
c5ff069d 870 Mark Mitchell <mark@codesourcery.com>
a8e68029
DJ
871
872 * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
873 need_64bit_hwint=yes.
874 * configure: Regenerate.
875
50f47ee0
JM
8762004-11-09 Joseph S. Myers <joseph@codesourcery.com>
877
878 * Makefile.in ($(PACKAGE).pot): New rule. Depend on
879 po/$(PACKAGE).pot.
880 (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
881 arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
882 Remove local srcdir path from generated file.
883
968e08d6 8842004-11-04 Zack Weinberg <zack@codesourcery.com>
c5ff069d 885 Gerald Pfeifer <gerald@pfeifer.com>
968e08d6
ZW
886
887 * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
888 as well.
889
3da3d587
ZW
8902004-10-27 Zack Weinberg <zack@codesourcery.com>
891
892 PR 18075
893 * directives.c (do_pragma): Do not defer pragmas which are unknown.
894 (cpp_handle_deferred_pragma): Add cast to silence warning.
895
ac24fc25
JM
8962004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
897
898 * errors.c (_cpp_begin_message): Print "error: " for errors.
899
7731405b
AJ
9002004-10-10 Andreas Jaeger <aj@suse.de>
901
902 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
903 * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
904
646544e3
AP
9052004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
906
907 * pch.c (cpp_write_pch_state): Remove variable z as it is not
908 used.
909 (cpp_read_state): Remove unused variables, m, d and mac_count.
910
67a74146
PB
9112004-09-29 Per Bothner <per@bothner.com>
912
913 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
914 cb.line_change. Otherwise do_pragma will call the line_change
915 call-back with a meaningless line number.
916
018a4785
ZW
9172004-09-24 Zack Weinberg <zack@codesourcery.com>
918
919 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
920 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
921 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
922 * aclocal.m4, configure: Regenerate.
923 * init.c: Include localedir.h.
924 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
925 (DEFS): Delete.
926 (.c.o): Use $(ALL_CFLAGS).
927 (localedir.h, localedir.hs): New rules.
928 (clean): Use rm -rf to remove directories.
929 (distclean): Also delete localedir.h and localedir.hs.
930 (init.o): Update dependencies.
931
88fa57d7
KC
9322004-09-22 Kelley Cook <kcook@gcc.gnu.org>
933
934 * Makefile.in (aclocal.m4): Update dependencies.
935 * configure.ac (AC_CONFIG_MACRO_DIR): New.
936 * aclocal.m4, configure: Regenerate.
937
8f8e9aa5
ZW
9382004-09-17 Zack Weinberg <zack@codesourcery.com>
939
a29f62d9
ZW
940 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
941 (_cpp_convert_input, _cpp_default_encoding): Add comments.
942 Some other comments in this file also tweaked.
943
8f8e9aa5
ZW
944 * directives.c (do_pragma): Save current buffer position
945 before lexing the pragma keywords; don't call
946 _cpp_backup_tokens in the defer_pragmas case.
947
a2981930
PB
9482004-09-15 Per Bothner <per@bothner.com>
949
950 * include/line-map.h (line_map_start): Add parameter names so
951 preceding comment makes sense.
952 (linemap_add): Remove from comment mention of non-existing parameter.
953
21b11495
ZW
9542004-09-09 Matt Austern <austern@apple.com>
955 Zack Weinberg <zack@codesourcery.com>
956
957 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
958 prefixes throughout. Add entry for PRAGMA. Remove
959 unnecessary "= 0" from EQ.
960 (enum cpp_ttype): Adjust OP and TK definitions to restore
961 prefixes, via token-paste.
962 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
963 Change from #defines to additional cpp_ttype enumerators.
964 (struct cpp_options): Add defer_pragmas.
965 (cpp_handle_deferred_pragma): Prototype new interface.
966
967 * internal.h (struct cpp_reader): Add directive_result.
968 * directives.c (struct pragma_entry): Add is_internal field;
969 give boolean fields type bool.
970 (start_directive): Initialize pfile->directive_result.type.
971 (_cpp_do__Pragma): Likewise.
972 (run_directive): Do not crash if pfile->buffer->prev is NULL.
973 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
974 from it.
975 (register_pragma): New static function, bulk of former
976 cpp_register_pragma here; add 'internal' argument, pass along
977 to insert_pragma_entry.
978 (cpp_register_pragma): Now a wrapper around register_pragma which
979 always passes false for 'internal' argument.
980 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
981 true for 'internal'.
982 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
983 an internal pragma, save text till the end of the line as a CPP_PRAGMA
984 token instead of executing the pragma.
985 (cpp_handle_deferred_pragma): New interface.
986 * lex.c (token_spellings): Adjust OP and TK definitions to
987 match changes to cpplib.h.
988 (_cpp_lex_token): Check for a directive-result token and
989 return it if present.
990 (cpp_token_val_index): Handle CPP_PRAGMA.
991 * macro.c (cpp_builtin_macro_text): Correct comment.
992 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
993
0fd9e8dd
SB
9942004-09-06 Serge Belyshev <belyshev@lubercy.com>
995
996 PR preprocessor/14699
997 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
998 from size_t to double.
999
39b8ce7f
AS
10002004-08-28 Andreas Schwab <schwab@suse.de>
1001 Andreas Jaeger <aj@suse.de>
1002
1003 * configure.ac: Set PACKAGE correctly.
1004 * configure: Regenerated.
1005
5d1f4b27
PB
10062004-08-25 Paolo Bonzini <bonzini@gnu.org>
1007
1008 * Makefile.in: Add back top_builddir.
1009
078e3ffe
PB
10102004-08-25 Paolo Bonzini <bonzini@gnu.org>
1011
1012 * configure.ac: Replace Automake macro invocations
1013 with manual Autoconf checks and substitutions.
1014 * configure: Regenerate.
1015 * aclocal.m4: Regenerate.
1016 * config.in: Regenerate.
1017 * Makefile.am: Removed.
1018 * Makefile.in: Heavy simplification and reorganization.
1019
b3f8d95d
MM
10202004-08-09 Mark Mitchell <mark@codesourcery.com>
1021
1022 * configure.ac (arm*-*-eabi*): New target.
1023 (arm*-*-symbianelf*): Likewise.
1024 * configure: Regenerated.
1025
72bb2c39
BI
10262004-07-24 Bernardo Innocenti <bernie@develer.com>
1027
1028 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
1029 * directives.c: Use XNEW-family macros from libiberty.
1030 * lex.c: Likewise.
1031 * macro.c: Likewise.
1032 * cpplib.h (cpp_deps_style): Export enum with name.
1033
21b11495 10342004-07-23 Matthias Klose <doko@debian.org>
72bb2c39 1035
21b11495 1036 * init.c (init_library): Use PACKAGE for the text domain.
85eac2a0 1037
a23ee064
AP
10382004-07-16 Andris Pavenis <pavenis@latnet.lv>
1039
1040 PR preprocessor/16366
1041 * internal.h (struct cpp_reader): New field dir_hash.
1042 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
1043 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
1044
a09d4744
NB
10452004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
1046
1047 PR preprocessor/16192
1048 PR preprocessor/15913
1049 PR preprocessor/15572
1050 * expr.c (_cpp_parse_expr): Handle remaining cases where an
1051 expression is missing.
1052 * init.c (post_options): Traditional cpp doesn't do // comments.
1053
f58f7def
PB
10542004-06-30 Per Bothner <per@bothner.com>
1055
1056 * include/line-map.h (fileline): Remove old typedef.
1057 * internal.h (struct cpp_reader): Use source_location typedef instead.
1058
e83d8d43
ZW
10592004-06-26 Zack Weinberg <zack@codesourcery.com>
1060
1061 Partially revert patch of 2004-06-05.
1062 * files.c (search_cache): Remove pfile argument. Don't check
1063 for file that would be found by "" or <> search here...
1064 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
1065 Do not apply directory-of-current-file correction to files
1066 found by this check. Rearrange code slightly.
1067
c0d578e6
GK
10682004-06-21 Geoffrey Keating <geoffk@apple.com>
1069
1070 * files.c (should_stack_file): Correct swapped parameters to call
1071 to cb.read_pch.
1072 * pch.c (cpp_valid_state): Handle -fpreprocessed.
1073
159d5224
PB
10742004-06-15 Paolo Bonzini <bonzini@gnu.org>
1075
1076 * Makefile.in: Regenerate with automake 1.8.5.
1077 * aclocal.m4: Likewise.
1078 * configure: Regenerate.
1079
2fac9c01
ZW
10802004-06-11 Zack Weinberg <zack@codesourcery.com>
1081
1082 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
1083 * configure, config.in: Regenerate.
1084 * system.h: Unconditionally define bool as unsigned char,
1085 BOOL_BITFIELD as unsigned int.
1086 * .cvsignore: New file.
1087
d8044160
GK
10882004-06-09 Geoffrey Keating <geoffk@apple.com>
1089
1090 * traditional.c (push_replacement_text): Set macro->traditional.
1091 (save_replacement_text): Likewise.
1092 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
1093 (struct save_macro_item): Delete.
1094 (struct save_macro_data): Use a character array not the previous
1095 structured format.
1096 (save_macros): Save macro as text not as internal structures.
1097 (cpp_prepare_state): Update for changes to save_macro_data.
1098 (cpp_read_state): Don't read macros defined in PCH. Restore
2cf22451 1099 -D macros as text.
d8044160
GK
1100 * macro.c (create_iso_definition): Honour alloc_subobject.
1101 Clear traditional flag.
1102 (_cpp_create_definition): Honour alloc_subobject.
1103 * lex.c (cpp_token_val_index): New.
1104 * internal.h: Include cpp-id-data.h.
1105 (uchar): Move definition to cpp-id-data.h.
1106 (U): Likewise.
1107 (cpp_macro): Likewise.
1108 * directives.c (struct answer): Move to cpp-id-data.h.
1109 (do_assert): Honour alloc_subobject.
2cf22451
ZW
1110
1111 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
1112 * include/cpplib.h (struct cpp_string): Add GTY marker.
1113 (enum cpp_token_fld_kind): New.
1114 (struct cpp_token): Add GTY markers.
1115 (cpp_token_val_index): Prototype.
1116 (CPP_HASHNODE_VALUE_IDX): New.
1117 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
1118 * include/cpp-id-data.h: New file.
d8044160 1119
0ca8e815
PB
11202004-06-09 Paolo Bonzini <bonzini@gnu.org>
1121
1122 * Makefile.am (all-local): New.
1123 * Makefile.in: Regenerate.
1124
b51fa00f
RS
11252004-06-06 Roger Sayle <roger@eyesopen.com>
1126
1127 * Makefile.am (LIBICONV): Declare.
1128 (makedepend_LDADD): Use LIBICONV.
1129 * Makefile.in: Regenerate.
1130
5e2f3f39
AP
11312004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
1132
1133 * Makefile.am (LIBINTL): Declare
1134 (makedepend_LDADD): Use LIBINTL.
1135 * Makefile.in: Regenerate.
1136
c6e83800
ZW
11372004-06-05 Zack Weinberg <zack@codesourcery.com>
1138
1139 * Makefile.am: Add makedepend.
1140 * Makefile.in, aclocal.m4: Regenerate.
1141 * charset.c: Insert a space to avoid a warning.
1142 * directives.c: Include mkdeps.h.
1143 (_cpp_handle_directive): Reenable macro expander if appropriate.
1144 (undefine_macros): Inline body of _cpp_free_definition for speed.
1145 Do not call undef callback or _cpp_warn_if_unused_macro.
1146 (cpp_get_deps): New interface.
1147 * files.c (search_cache): Add pfile argument. Check for file
1148 that would be found by "" or <> search here...
1149 (_cpp_find_file): ...not here. Correct recorded start_dir of
1150 files found by directory-of-current-file search that would be
1151 found by "" or <> search.
1152 * init.c (cpp_add_dependency_target): Delete.
1153 * internal.h (struct lexer_state): Add discarding_output flag.
1154 * lex.c (lex_identifier): Compute hash function while scanning.
1155 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
1156 directives.
1157 * makedepend.c: New file.
1158 * mkdeps.c (struct deps): Add vpath vector.
1159 (apply_vpath, deps_add_vpath): New function.
1160 (deps_free): Free vpath vector.
1161 (deps_add_dep, deps_add_target): Use apply_vpath.
1162 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
1163 (ht_lookup_with_hash): New function.
1164 * cpplib.h, mkdeps.h: Update prototypes.
1165 * symtab.h: Update prototypes.
1166 (HT_HASHSTEP, HT_FINISH): New macros.
1167
b453c95f
GK
11682004-05-29 Geoffrey Keating <geoffk@apple.com>
1169
1170 * symtab.c (ht_create): Set entries_owned.
1171 (ht_destroy): Honour entries_owned.
1172 (ht_expand): Likewise.
1173 (ht_load): New.
2cf22451
ZW
1174 * include/symtab.h (struct ht): New field 'entries_owned'
1175 (ht_load): New prototype.
b453c95f 1176
963e23c5
PB
11772004-05-26 Paolo Bonzini <bonzini@gnu.org>
1178
1179 PR bootstrap/15651
1180 * configure.ac: Fix m4 quoting when picking
1181 the size of HOST_WIDE_INT.
1182 * configure: Regenerate.
1183
0429bc77
PB
11842004-05-25 Paolo Bonzini <bonzini@gnu.org>
1185
1186 * Makefile.am: the correct directory for
1187 gettext include files is given by @INCINTL@.
1188 * Makefile.in: Regenerate.
1189
c86dd7db
PB
11902004-05-24 Paolo Bonzini <bonzini@gnu.org>
1191
1192 * system.h [!ENABLE_NLS]: dgettext takes two
1193 parameters.
1194
4f4e53dd
PB
11952004-05-23 Paolo Bonzini <bonzini@gnu.org>
1196
1197 Moved libcpp from the gcc subdirectory to the toplevel.
1198 * Makefile.am: New file.
1199 * Makefile.in: Regenerate.
1200 * configure.ac: New file.
1201 * configure: Regenerate.
1202 * config.in: Regenerate.
1203 * charset.c: Moved from gcc/cppcharset.c. Add note about
1204 brokenness of input charset detection. Adjust for change
1205 in name of cppucnid.h.
1206 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
1207 * expr.c: Moved from gcc/cppexp.c.
1208 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
1209 Remove #define of O_BINARY, it is in system.h.
1210 * identifiers.c: Moved from gcc/cpphash.c.
1211 * internal.h: Moved from gcc/cpphash.h. Change header
1212 guard name. All other files adjusted to match name change.
1213 * init.c: Moved from gcc/cppinit.c.
1214 (init_library) [ENABLE_NLS]: Call bindtextdomain.
1215 * lex.c: Moved from gcc/cpplex.c.
1216 * directives.c: Moved from gcc/cpplib.c.
1217 * macro.c: Moved from gcc/cppmacro.c.
1218 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
1219 * traditional.c: Moved from gcc/cpptrad.c.
1220 * ucnid.h: Moved from gcc/cppucnid.h. Change header
1221 guard name.
1222 * ucnid.pl: Moved from gcc/cppucnid.pl.
1223 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
1224 guard name.
1225 * symtab.c: Moved from gcc/hashtable.c.
1226 * line-map.c: Moved from gcc. Do not include intl.h.
1227 * mkdeps.c: Moved from gcc.
1228 * system.h: New file.
2cf22451
ZW
1229 * include/cpplib.h: Moved from gcc. Change header guard name.
1230 * include/line-map.h: Moved from gcc. Change header guard name.
1231 * include/mkdeps.h: Moved from gcc. Change header guard name.
1232 * include/symtab.h: Moved from gcc/hashtable.h. Change header
1233 guard name.