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