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