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