]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcpp/ChangeLog
tree-inline.c (cfun_stack): Change the type to VEC(function_p,heap).
[thirdparty/gcc.git] / libcpp / ChangeLog
CommitLineData
1ed17cd5
ZW
12005-05-12 Zack Weinberg <zack@codesourcery.com>
2
3 * directives.c (#sccs table entry): Mark IN_I, consistent with #ident.
4 (do_sccs): Delete function definition, #define to do_ident.
5 (do_ident): Don't hardwire directive name.
6
5a8c20ce
RK
72005-05-12 Ryota Kunisawa <kunisawa@access.co.jp>
8
9 PR bootstrap/21230
10 * configure: Regenerate.
11
473c5bc9
AP
122005-04-27 Andris Pavenis <pavenis@latnet.lv>
13
14 * files.c: Include io.h for DJGPP to get prototype of setmode.
15
c1fc5047
PB
162005-04-19 Per Bothner <per@bothner.com>
17
18 PR preprocessor/20907
19 * line-map.c (linemap_line_start): Fix bug when we need to increse
20 column_bits but can re-use the current line_map.
21
042630ad
KG
222005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23
24 * system.h (fopen, fdopen, freopen): Define these to the unlocked
25 libiberty functions.
26
0d667716
KG
272005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
28
29 * configure.ac (libcpp_UNLOCKED_FUNCS): New.
30 (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS.
31 * system.h (putchar, getc, getchar, clearerr, feof, fileno,
32 fflush, fgetc, fgets, ferror, fread): Redefine to the associated
33 _unlocked function.
34 (fwrite_unlocked): Fix prototype.
1ed17cd5 35
0d667716
KG
36 * configure, config.in: Regenerate.
37
cae064e7
JJ
382005-04-05 Jakub Jelinek <jakub@redhat.com>
39
40 PR preprocessor/19475
41 * macro.c (create_iso_definition): For < ISO C99, don't
42 pedwarn if there is no whitespace between macro name and its
43 replacement, but the replacement starts with a basic character
44 set character.
45
cbada204
AJ
462005-03-28 Andreas Jaeger <aj@suse.de>
47
48 * lex.c (warn_about_normalization): Cast field width to int to
49 avoid warning.
50
f42eccdb
JM
512005-03-19 Joseph S. Myers <joseph@codesourcery.com>
52
53 * configure.ac: Consistently use solaris2.1[0-9]* instead of
54 solaris2.1[0-9].
55 * configure: Regenerate.
56
c79e602b
GK
572005-03-15 Geoffrey Keating <geoffk@apple.com>
58
59 * charset.c (_cpp_valid_ucn): In identifiers, reject a partial
60 UCN rather than printing an error.
61
50668cf6
GK
622005-03-14 Geoffrey Keating <geoffk@apple.com>
63
6baba9bb
GK
64 * lex.c (forms_identifier_p): Disable UCNs in C89 mode.
65
662005-03-14 Geoffrey Keating <geoffk@apple.com>
1ed17cd5 67
50668cf6
GK
68 * init.c (cpp_create_reader): Default warn_normalize to normalized_C.
69 * charset.c: Update for new format of ucnid.h.
70 (ucn_valid_in_identifier): Update for new format of ucnid.h.
71 Add NST parameter, and update it; update callers.
72 (cpp_valid_ucn): Add NST parameter, update callers. Replace abort
73 with cpp_error.
74 (convert_ucn): Pass normalize_state to cpp_valid_ucn.
75 * internal.h (struct normalize_state): New.
76 (INITIAL_NORMALIZE_STATE): New.
77 (NORMALIZE_STATE_RESULT): New.
78 (NORMALIZE_STATE_UPDATE_IDNUM): New.
79 (_cpp_valid_ucn): New.
80 * lex.c (warn_about_normalization): New.
81 (forms_identifier_p): Add normalize_state parameter, update callers.
82 (lex_identifier): Add normalize_state parameter, update callers. Keep
83 the state current.
84 (lex_number): Likewise.
85 (_cpp_lex_direct): Pass normalize_state to subroutines. Check
86 it with warn_about_normalization.
87 * makeucnid.c: New.
88 * ucnid.h: Replace.
89 * ucnid.pl: Remove.
90 * ucnid.tab: Make appropriate for input to makeucnid.c. Remove
91 comments about obsolete version of C++.
92 * include/cpplib.h (enum cpp_normalize_level): New.
93 (struct cpp_options): Add warn_normalize field.
94
47e20491
GK
952005-03-11 Geoffrey Keating <geoffk@apple.com>
96
97 * directives.c (glue_header_name): Update call to cpp_spell_token.
98 * internal.h (_cpp_interpret_identifier): New.
99 * charset.c (_cpp_interpret_identifier): New.
100 (_cpp_valid_ucn): Allow UCN version of '$'.
101 * lex.c (lex_identifier): Add extra parameter to indicate if initial
102 character was '$' or '\'. Support identifiers with UCNs.
103 (forms_identifier_p): Allow UCNs.
104 (_cpp_lex_direct): Pass extra parameter to lex_identifier.
105 (utf8_to_ucn): New.
106 (cpp_spell_token): Add FORSTRING parameter. Use it.
107 (cpp_token_as_text): Update call to cpp_spell_token.
108 (cpp_output_token): Write UCNs back out.
109 (stringify_arg): Update call to cpp_spell_token.
110 (paste_tokens): Likewise.
111 (cpp_macro_definition): Likewise.
112 * macro.c (stringify_arg): Likewise.
113 (paste_tokens): Likewise.
114 (cpp_macro_definition): Likewise.
115 * include/cpplib.h: Add parameter to cpp_spell_token.
116
73096711
JJ
1172005-03-04 Jakub Jelinek <jakub@redhat.com>
118
119 PR bootstrap/20282
120 PR bootstrap/20305
121 * macro.c (replace_args, cpp_get_token): Copy whole
122 cpp_token_u instead of just cpp_string field from it.
123
2203a881
DP
1242005-02-28 Devang Patel <dpatel@apple.com>
125
126 * directives.c (do_line): Save sysp early before line table is
127 realloc'ed.
1ed17cd5 128
c5ff069d
ZW
1292005-02-20 Zack Weinberg <zack@codesourcery.com>
130
131 PR 18785
132 * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
133 (cpp_host_to_exec_charset): New function.
134 * include/cpplib.h: Declare cpp_host_to_exec_charset.
135
04c90eea
DP
1362005-02-19 Devang Patel <dpatel@apple.com>
137
138 * charset.c (_cpp_convert_input): Check '\r' before inserting
139 '\n' at the end.
c5ff069d 140
6da55c00
EC
1412005-02-15 Eric Christopher <echristo@redhat.com>
142
143 PR preprocessor/19077
144 * macro.c (cpp_macro_definition): Move handling of whitespace
145 to PREV_WHITE conditional. Remove overloading of len
146 variable.
147
31c3e631
KH
1482005-02-14 Kazu Hirata <kazu@cs.umass.edu>
149
150 * directives.c, files.c, init.c, internal.h, macro.c, pch.c,
151 traditional.c: Update copyright.
152
be0f1e54
PB
1532005-02-14 Paolo Bonzini <bonzini@gnu.org>
154
155 PR bootstrap/19818
156 * configure.ac: Check for declaration of basename and getopt.
157 * config.in: Regenerate.
158 * configure: Regenerate.
159 * internal.h (ustrcspn): New.
160 * macro.c (create_iso_definition): Fix allocation of memory.
161 (padding_token): Add cast to remove const-ness.
162 * pch.c (cpp_read_state): Use ustrcspn.
163
ecddfb39
MS
1642005-02-08 Mike Stump <mrs@apple.com>
165
166 * files.c (pchf_adder): Remove.
167 (struct pchf_adder_info): Likewise.
168 (_cpp_save_file_entries): Write out all files so that #import works.
169
9fcdd891
JM
1702005-01-23 Joseph S. Myers <joseph@codesourcery.com>
171
172 * configure: Regenerate.
173
ecfd72e7
TS
1742005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
175
176 * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
177
6c25a4f7 178 * include/cpplib.h: Also update copyright years.
c5ff069d 179
942926ad
GK
1802005-01-03 Geoffrey Keating <geoffk@apple.com>
181
182 * files.c (_cpp_find_file): Add files found by search_path_exhausted
183 to the list of all files.
184
a2566ae9
GDR
1852005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
186
187 * internal.h: Update references to Cpp lib filenames.
188 * directives.c: Likewise.
189 * init.c: Likewise.
190 * macro.c: Likewise.
191 * traditional.c: Likewise.
192
1b449375
EB
1932004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
194
195 PR preprocessor/15167
196 * files.c (destroy_cpp_file): New function.
197 (should_stack_file): Make a new file if the
198 compared file is still stacked.
199
28303828
NN
2002004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
201
c5ff069d 202 PR preprocessor/17610
28303828
NN
203 * directives.c (do_include_common): Error out if an empty filename
204 is given for #include (or #include_next or #import).
205
c812785a
RS
2062004-11-27 Roger Sayle <roger@eyesopen.com>
207 Zack Weinberg <zack@codesourcery.com>
208
209 * internal.h: Replace all uses of uchar with unsigned char.
210 * include/cpp-id-data.h: Likewise. Guard typedef of uchar
211 with !IN_GCC, so uchar is only defined whilst building libcpp.
212
f91eaa01
KC
2132004-11-24 Kelley Cook <kcook@gcc.gnu.org>
214
215 * aclocal.m4: Regenerate.
216
f78ce0c2
RS
2172004-11-24 Roger Sayle <roger@eyesopen.com>
218
219 PR preprocessor/15824
220 * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
221 directly, instead of the non-existant "system.h" and "ansidecl.h".
222 * configure: Regenerate.
223
b5b3e36a 2242004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
c5ff069d 225 Joseph Myers <joseph@codesourcery.com>
b5b3e36a
DJ
226
227 * internal.h (struct lexer_state): Add in_deferred_pragma.
228 * directives.c (struct pragma_entry): Add allow_expansion.
229 (insert_pragma_entry): Take allow_expansion flag.
230 (register_pragma): Likewise.
231 (cpp_register_pragma): Likewise.
232 (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
233 (do_pragma): Honor allow_expansion.
234 (cpp_handle_deferred_pragma): Set in_deferred_pragma.
235 * include/cpplib.h (cpp_register_pragma): Update prototype.
236
a8e68029 2372004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
c5ff069d 238 Mark Mitchell <mark@codesourcery.com>
a8e68029
DJ
239
240 * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
241 need_64bit_hwint=yes.
242 * configure: Regenerate.
243
50f47ee0
JM
2442004-11-09 Joseph S. Myers <joseph@codesourcery.com>
245
246 * Makefile.in ($(PACKAGE).pot): New rule. Depend on
247 po/$(PACKAGE).pot.
248 (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
249 arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
250 Remove local srcdir path from generated file.
251
968e08d6 2522004-11-04 Zack Weinberg <zack@codesourcery.com>
c5ff069d 253 Gerald Pfeifer <gerald@pfeifer.com>
968e08d6
ZW
254
255 * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
256 as well.
257
3da3d587
ZW
2582004-10-27 Zack Weinberg <zack@codesourcery.com>
259
260 PR 18075
261 * directives.c (do_pragma): Do not defer pragmas which are unknown.
262 (cpp_handle_deferred_pragma): Add cast to silence warning.
263
ac24fc25
JM
2642004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
265
266 * errors.c (_cpp_begin_message): Print "error: " for errors.
267
7731405b
AJ
2682004-10-10 Andreas Jaeger <aj@suse.de>
269
270 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
271 * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
272
646544e3
AP
2732004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
274
275 * pch.c (cpp_write_pch_state): Remove variable z as it is not
276 used.
277 (cpp_read_state): Remove unused variables, m, d and mac_count.
278
67a74146
PB
2792004-09-29 Per Bothner <per@bothner.com>
280
281 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
282 cb.line_change. Otherwise do_pragma will call the line_change
283 call-back with a meaningless line number.
284
018a4785
ZW
2852004-09-24 Zack Weinberg <zack@codesourcery.com>
286
287 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
288 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
289 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
290 * aclocal.m4, configure: Regenerate.
291 * init.c: Include localedir.h.
292 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
293 (DEFS): Delete.
294 (.c.o): Use $(ALL_CFLAGS).
295 (localedir.h, localedir.hs): New rules.
296 (clean): Use rm -rf to remove directories.
297 (distclean): Also delete localedir.h and localedir.hs.
298 (init.o): Update dependencies.
299
88fa57d7
KC
3002004-09-22 Kelley Cook <kcook@gcc.gnu.org>
301
302 * Makefile.in (aclocal.m4): Update dependencies.
303 * configure.ac (AC_CONFIG_MACRO_DIR): New.
304 * aclocal.m4, configure: Regenerate.
305
8f8e9aa5
ZW
3062004-09-17 Zack Weinberg <zack@codesourcery.com>
307
a29f62d9
ZW
308 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
309 (_cpp_convert_input, _cpp_default_encoding): Add comments.
310 Some other comments in this file also tweaked.
311
8f8e9aa5
ZW
312 * directives.c (do_pragma): Save current buffer position
313 before lexing the pragma keywords; don't call
314 _cpp_backup_tokens in the defer_pragmas case.
315
a2981930
PB
3162004-09-15 Per Bothner <per@bothner.com>
317
318 * include/line-map.h (line_map_start): Add parameter names so
319 preceding comment makes sense.
320 (linemap_add): Remove from comment mention of non-existing parameter.
321
21b11495
ZW
3222004-09-09 Matt Austern <austern@apple.com>
323 Zack Weinberg <zack@codesourcery.com>
324
325 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
326 prefixes throughout. Add entry for PRAGMA. Remove
327 unnecessary "= 0" from EQ.
328 (enum cpp_ttype): Adjust OP and TK definitions to restore
329 prefixes, via token-paste.
330 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
331 Change from #defines to additional cpp_ttype enumerators.
332 (struct cpp_options): Add defer_pragmas.
333 (cpp_handle_deferred_pragma): Prototype new interface.
334
335 * internal.h (struct cpp_reader): Add directive_result.
336 * directives.c (struct pragma_entry): Add is_internal field;
337 give boolean fields type bool.
338 (start_directive): Initialize pfile->directive_result.type.
339 (_cpp_do__Pragma): Likewise.
340 (run_directive): Do not crash if pfile->buffer->prev is NULL.
341 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
342 from it.
343 (register_pragma): New static function, bulk of former
344 cpp_register_pragma here; add 'internal' argument, pass along
345 to insert_pragma_entry.
346 (cpp_register_pragma): Now a wrapper around register_pragma which
347 always passes false for 'internal' argument.
348 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
349 true for 'internal'.
350 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
351 an internal pragma, save text till the end of the line as a CPP_PRAGMA
352 token instead of executing the pragma.
353 (cpp_handle_deferred_pragma): New interface.
354 * lex.c (token_spellings): Adjust OP and TK definitions to
355 match changes to cpplib.h.
356 (_cpp_lex_token): Check for a directive-result token and
357 return it if present.
358 (cpp_token_val_index): Handle CPP_PRAGMA.
359 * macro.c (cpp_builtin_macro_text): Correct comment.
360 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
361
0fd9e8dd
SB
3622004-09-06 Serge Belyshev <belyshev@lubercy.com>
363
364 PR preprocessor/14699
365 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
366 from size_t to double.
367
39b8ce7f
AS
3682004-08-28 Andreas Schwab <schwab@suse.de>
369 Andreas Jaeger <aj@suse.de>
370
371 * configure.ac: Set PACKAGE correctly.
372 * configure: Regenerated.
373
5d1f4b27
PB
3742004-08-25 Paolo Bonzini <bonzini@gnu.org>
375
376 * Makefile.in: Add back top_builddir.
377
078e3ffe
PB
3782004-08-25 Paolo Bonzini <bonzini@gnu.org>
379
380 * configure.ac: Replace Automake macro invocations
381 with manual Autoconf checks and substitutions.
382 * configure: Regenerate.
383 * aclocal.m4: Regenerate.
384 * config.in: Regenerate.
385 * Makefile.am: Removed.
386 * Makefile.in: Heavy simplification and reorganization.
387
b3f8d95d
MM
3882004-08-09 Mark Mitchell <mark@codesourcery.com>
389
390 * configure.ac (arm*-*-eabi*): New target.
391 (arm*-*-symbianelf*): Likewise.
392 * configure: Regenerated.
393
72bb2c39
BI
3942004-07-24 Bernardo Innocenti <bernie@develer.com>
395
396 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
397 * directives.c: Use XNEW-family macros from libiberty.
398 * lex.c: Likewise.
399 * macro.c: Likewise.
400 * cpplib.h (cpp_deps_style): Export enum with name.
401
21b11495 4022004-07-23 Matthias Klose <doko@debian.org>
72bb2c39 403
21b11495 404 * init.c (init_library): Use PACKAGE for the text domain.
85eac2a0 405
a23ee064
AP
4062004-07-16 Andris Pavenis <pavenis@latnet.lv>
407
408 PR preprocessor/16366
409 * internal.h (struct cpp_reader): New field dir_hash.
410 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
411 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
412
a09d4744
NB
4132004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
414
415 PR preprocessor/16192
416 PR preprocessor/15913
417 PR preprocessor/15572
418 * expr.c (_cpp_parse_expr): Handle remaining cases where an
419 expression is missing.
420 * init.c (post_options): Traditional cpp doesn't do // comments.
421
f58f7def
PB
4222004-06-30 Per Bothner <per@bothner.com>
423
424 * include/line-map.h (fileline): Remove old typedef.
425 * internal.h (struct cpp_reader): Use source_location typedef instead.
426
e83d8d43
ZW
4272004-06-26 Zack Weinberg <zack@codesourcery.com>
428
429 Partially revert patch of 2004-06-05.
430 * files.c (search_cache): Remove pfile argument. Don't check
431 for file that would be found by "" or <> search here...
432 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
433 Do not apply directory-of-current-file correction to files
434 found by this check. Rearrange code slightly.
435
c0d578e6
GK
4362004-06-21 Geoffrey Keating <geoffk@apple.com>
437
438 * files.c (should_stack_file): Correct swapped parameters to call
439 to cb.read_pch.
440 * pch.c (cpp_valid_state): Handle -fpreprocessed.
441
159d5224
PB
4422004-06-15 Paolo Bonzini <bonzini@gnu.org>
443
444 * Makefile.in: Regenerate with automake 1.8.5.
445 * aclocal.m4: Likewise.
446 * configure: Regenerate.
447
2fac9c01
ZW
4482004-06-11 Zack Weinberg <zack@codesourcery.com>
449
450 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
451 * configure, config.in: Regenerate.
452 * system.h: Unconditionally define bool as unsigned char,
453 BOOL_BITFIELD as unsigned int.
454 * .cvsignore: New file.
455
d8044160
GK
4562004-06-09 Geoffrey Keating <geoffk@apple.com>
457
458 * traditional.c (push_replacement_text): Set macro->traditional.
459 (save_replacement_text): Likewise.
460 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
461 (struct save_macro_item): Delete.
462 (struct save_macro_data): Use a character array not the previous
463 structured format.
464 (save_macros): Save macro as text not as internal structures.
465 (cpp_prepare_state): Update for changes to save_macro_data.
466 (cpp_read_state): Don't read macros defined in PCH. Restore
2cf22451 467 -D macros as text.
d8044160
GK
468 * macro.c (create_iso_definition): Honour alloc_subobject.
469 Clear traditional flag.
470 (_cpp_create_definition): Honour alloc_subobject.
471 * lex.c (cpp_token_val_index): New.
472 * internal.h: Include cpp-id-data.h.
473 (uchar): Move definition to cpp-id-data.h.
474 (U): Likewise.
475 (cpp_macro): Likewise.
476 * directives.c (struct answer): Move to cpp-id-data.h.
477 (do_assert): Honour alloc_subobject.
2cf22451
ZW
478
479 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
480 * include/cpplib.h (struct cpp_string): Add GTY marker.
481 (enum cpp_token_fld_kind): New.
482 (struct cpp_token): Add GTY markers.
483 (cpp_token_val_index): Prototype.
484 (CPP_HASHNODE_VALUE_IDX): New.
485 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
486 * include/cpp-id-data.h: New file.
d8044160 487
0ca8e815
PB
4882004-06-09 Paolo Bonzini <bonzini@gnu.org>
489
490 * Makefile.am (all-local): New.
491 * Makefile.in: Regenerate.
492
b51fa00f
RS
4932004-06-06 Roger Sayle <roger@eyesopen.com>
494
495 * Makefile.am (LIBICONV): Declare.
496 (makedepend_LDADD): Use LIBICONV.
497 * Makefile.in: Regenerate.
498
5e2f3f39
AP
4992004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
500
501 * Makefile.am (LIBINTL): Declare
502 (makedepend_LDADD): Use LIBINTL.
503 * Makefile.in: Regenerate.
504
c6e83800
ZW
5052004-06-05 Zack Weinberg <zack@codesourcery.com>
506
507 * Makefile.am: Add makedepend.
508 * Makefile.in, aclocal.m4: Regenerate.
509 * charset.c: Insert a space to avoid a warning.
510 * directives.c: Include mkdeps.h.
511 (_cpp_handle_directive): Reenable macro expander if appropriate.
512 (undefine_macros): Inline body of _cpp_free_definition for speed.
513 Do not call undef callback or _cpp_warn_if_unused_macro.
514 (cpp_get_deps): New interface.
515 * files.c (search_cache): Add pfile argument. Check for file
516 that would be found by "" or <> search here...
517 (_cpp_find_file): ...not here. Correct recorded start_dir of
518 files found by directory-of-current-file search that would be
519 found by "" or <> search.
520 * init.c (cpp_add_dependency_target): Delete.
521 * internal.h (struct lexer_state): Add discarding_output flag.
522 * lex.c (lex_identifier): Compute hash function while scanning.
523 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
524 directives.
525 * makedepend.c: New file.
526 * mkdeps.c (struct deps): Add vpath vector.
527 (apply_vpath, deps_add_vpath): New function.
528 (deps_free): Free vpath vector.
529 (deps_add_dep, deps_add_target): Use apply_vpath.
530 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
531 (ht_lookup_with_hash): New function.
532 * cpplib.h, mkdeps.h: Update prototypes.
533 * symtab.h: Update prototypes.
534 (HT_HASHSTEP, HT_FINISH): New macros.
535
b453c95f
GK
5362004-05-29 Geoffrey Keating <geoffk@apple.com>
537
538 * symtab.c (ht_create): Set entries_owned.
539 (ht_destroy): Honour entries_owned.
540 (ht_expand): Likewise.
541 (ht_load): New.
2cf22451
ZW
542 * include/symtab.h (struct ht): New field 'entries_owned'
543 (ht_load): New prototype.
b453c95f 544
963e23c5
PB
5452004-05-26 Paolo Bonzini <bonzini@gnu.org>
546
547 PR bootstrap/15651
548 * configure.ac: Fix m4 quoting when picking
549 the size of HOST_WIDE_INT.
550 * configure: Regenerate.
551
0429bc77
PB
5522004-05-25 Paolo Bonzini <bonzini@gnu.org>
553
554 * Makefile.am: the correct directory for
555 gettext include files is given by @INCINTL@.
556 * Makefile.in: Regenerate.
557
c86dd7db
PB
5582004-05-24 Paolo Bonzini <bonzini@gnu.org>
559
560 * system.h [!ENABLE_NLS]: dgettext takes two
561 parameters.
562
4f4e53dd
PB
5632004-05-23 Paolo Bonzini <bonzini@gnu.org>
564
565 Moved libcpp from the gcc subdirectory to the toplevel.
566 * Makefile.am: New file.
567 * Makefile.in: Regenerate.
568 * configure.ac: New file.
569 * configure: Regenerate.
570 * config.in: Regenerate.
571 * charset.c: Moved from gcc/cppcharset.c. Add note about
572 brokenness of input charset detection. Adjust for change
573 in name of cppucnid.h.
574 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
575 * expr.c: Moved from gcc/cppexp.c.
576 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
577 Remove #define of O_BINARY, it is in system.h.
578 * identifiers.c: Moved from gcc/cpphash.c.
579 * internal.h: Moved from gcc/cpphash.h. Change header
580 guard name. All other files adjusted to match name change.
581 * init.c: Moved from gcc/cppinit.c.
582 (init_library) [ENABLE_NLS]: Call bindtextdomain.
583 * lex.c: Moved from gcc/cpplex.c.
584 * directives.c: Moved from gcc/cpplib.c.
585 * macro.c: Moved from gcc/cppmacro.c.
586 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
587 * traditional.c: Moved from gcc/cpptrad.c.
588 * ucnid.h: Moved from gcc/cppucnid.h. Change header
589 guard name.
590 * ucnid.pl: Moved from gcc/cppucnid.pl.
591 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
592 guard name.
593 * symtab.c: Moved from gcc/hashtable.c.
594 * line-map.c: Moved from gcc. Do not include intl.h.
595 * mkdeps.c: Moved from gcc.
596 * system.h: New file.
2cf22451
ZW
597 * include/cpplib.h: Moved from gcc. Change header guard name.
598 * include/line-map.h: Moved from gcc. Change header guard name.
599 * include/mkdeps.h: Moved from gcc. Change header guard name.
600 * include/symtab.h: Moved from gcc/hashtable.h. Change header
601 guard name.