]> git.ipfire.org Git - thirdparty/gcc.git/blame - libcpp/ChangeLog
trans-array.c (gfc_conv_descriptor_data_get): Rename from gfc_conv_descriptor_data.
[thirdparty/gcc.git] / libcpp / ChangeLog
CommitLineData
c3f829c1
GDR
12005-05-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
2
3 * configure.ac: Check declarations for asprintf and vasprintf.
4 * config.in: Regenerate.
5 * configure: Likewise.
6
7 * charset.c (conversion_loop): Use XRESIZEVEC.
8 (convert_no_conversion): Likewise.
9 (convert_using_iconv): Likewise.
10 (init_iconv_desc): Cast return value of alloca.
11 (cpp_host_to_exec_charset): Use XNEWVEC.
12 (emit_numeric_escape): Use XRESIZEVEC.
13 (cpp_interpret_string): Use XNEWVEC.
14 (cpp_interpret_string): Use XRESIZEVEC.
15 (_cpp_interpret_identifier): Cast return value of alloca.
16 (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC.
17 * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC.
18 (parse_include): Use XNEWVEC.
19 (insert_pragma_entry): Rename local variable "new" to
20 "new_entry".
21 (save_registered_pragmas): Cast return value of xmemdup.
22 (destringize_and_run): Same for alloca.
23 (parse_assertion): Likewise.
24 (do_assert): Cast allocated storage to proper type.
25 (cpp_define): Likewise.
26 (_cpp_define_builtin): Likewise.
27 (cpp_undef): Likewise.
28 (handle_assertion): Likewise.
29 (cpp_push_buffer): Rename local variable "new" to "new_buffer".
30 * expr.c (CPP_UPLUS): Cast value to type cpp_ttype.
31 (CPP_UMINUS): Likewise.
32 (struct cpp_operator): Rename from struct operator.
33 (_cpp_expand_op_stack): Use XRESIZEVEC.
34 * files.c (pch_open_file): Use XNEWVEC.
35 (pch_open_file): Use XRESIZEVEC.
36 (read_file_guts): Use XNEWVEC and XRESIZEVEC.
37 (dir_name_of_file): Use XNEWVEC.
38 (make_cpp_file): Use XCNEW.
39 (make_cpp_dir): Likewise.
40 (allocate_file_hash_entries): USE XNEWVEC.
41 (cpp_included): Cast return value of htab_find_with_hash.
42 (append_file_to_dir): Use XNEWVEC.
43 (read_filename_string): Likewise. Use XRESIZEVEC too.
44 (read_name_map): Cast return value of alloca. Use XRESIZEVEC.
45 (remap_filename): Use XNEWVEC.
46 (struct pchf_entry): Move definition out of struct pchf_data.
47 (_cpp_save_file_entries): Use XCNEWVAR.
48 (_cpp_read_file_entries): Use XNEWVAR.
49 * identifiers.c (alloc_node): Use XOBNEW.
50 * init.c (cpp_create_reader): Use XCNEW.
51 (cpp_init_builtins): Cast of b->value to enum builtin_type.
52 (read_original_directory): Cast return value of alloca.
53 * lex.c (add_line_note): Use XRESIZEVEC.
54 (warn_about_normalization): Use XNEWVEC.
55 (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype).
56 (new_buff): Use XNEWVEC.
57 * line-map.c (linemap_add): Use XRESIZEVEC.
58 * macro.c (builtin_macro): Cast return value of alloca.
59 (paste_tokens): Likewise.
60 (expand_arg): Use XNEWVEC and XRESIZEVEC.
61 (_cpp_save_parameter): Use XRESIZEVEC.
62 (create_iso_definition): Cast allocated storage to proper type.
63 (_cpp_create_definition): Likewise.
64 (cpp_macro_definition): Use XRESIZEVEC.
65 * makedepend.c (add_clm): Use XNEW.
66 (add_dir): Likewise.
67 * mkdeps.c (munge): Use XNEWVEC.
68 (deps_init): Use XCNEW.
69 (deps_add_target): Use XRESIZEVEC.
70 (deps_add_default_target): Cast return value of alloca.
71 (deps_add_dep): Use XRESIZEVEC.
72 (deps_add_vpath): Likewise. Use XNEWVEC too.
73 (deps_restore): Likewise.
74 * pch.c (save_idents): Use XNEW and XNEWVEC.
75 (cpp_save_state): Use XNEW.
76 (count_defs): Cast return value of htab_find.
77 (write_defs): Likewise.
78 (cpp_write_pch_deps): Use XNEWVEC.
79 (collect_ht_nodes): Use XRESIZEVEC.
80 (cpp_valid_state): Use XNEWVEC.
81 (save_macros): Use XRESIZEVEC. Cast return value of xmemdup.
82 * symtab.c (ht_create): Use XCNEW.
83 (ht_lookup_with_hash): Cast return value of obstack_copy0.
84 (ht_expand): Use XCNEWVEC.
85 * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus.
86 (bool): Do not define if __cplusplus.
87
1ed17cd5
ZW
882005-05-12 Zack Weinberg <zack@codesourcery.com>
89
90 * directives.c (#sccs table entry): Mark IN_I, consistent with #ident.
91 (do_sccs): Delete function definition, #define to do_ident.
92 (do_ident): Don't hardwire directive name.
93
5a8c20ce
RK
942005-05-12 Ryota Kunisawa <kunisawa@access.co.jp>
95
96 PR bootstrap/21230
97 * configure: Regenerate.
98
473c5bc9
AP
992005-04-27 Andris Pavenis <pavenis@latnet.lv>
100
101 * files.c: Include io.h for DJGPP to get prototype of setmode.
102
c1fc5047
PB
1032005-04-19 Per Bothner <per@bothner.com>
104
105 PR preprocessor/20907
106 * line-map.c (linemap_line_start): Fix bug when we need to increse
107 column_bits but can re-use the current line_map.
108
042630ad
KG
1092005-04-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
110
111 * system.h (fopen, fdopen, freopen): Define these to the unlocked
112 libiberty functions.
113
0d667716
KG
1142005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
115
116 * configure.ac (libcpp_UNLOCKED_FUNCS): New.
117 (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS.
118 * system.h (putchar, getc, getchar, clearerr, feof, fileno,
119 fflush, fgetc, fgets, ferror, fread): Redefine to the associated
120 _unlocked function.
121 (fwrite_unlocked): Fix prototype.
1ed17cd5 122
0d667716
KG
123 * configure, config.in: Regenerate.
124
cae064e7
JJ
1252005-04-05 Jakub Jelinek <jakub@redhat.com>
126
127 PR preprocessor/19475
128 * macro.c (create_iso_definition): For < ISO C99, don't
129 pedwarn if there is no whitespace between macro name and its
130 replacement, but the replacement starts with a basic character
131 set character.
132
cbada204
AJ
1332005-03-28 Andreas Jaeger <aj@suse.de>
134
135 * lex.c (warn_about_normalization): Cast field width to int to
136 avoid warning.
137
f42eccdb
JM
1382005-03-19 Joseph S. Myers <joseph@codesourcery.com>
139
140 * configure.ac: Consistently use solaris2.1[0-9]* instead of
141 solaris2.1[0-9].
142 * configure: Regenerate.
143
c79e602b
GK
1442005-03-15 Geoffrey Keating <geoffk@apple.com>
145
146 * charset.c (_cpp_valid_ucn): In identifiers, reject a partial
147 UCN rather than printing an error.
148
50668cf6
GK
1492005-03-14 Geoffrey Keating <geoffk@apple.com>
150
6baba9bb
GK
151 * lex.c (forms_identifier_p): Disable UCNs in C89 mode.
152
1532005-03-14 Geoffrey Keating <geoffk@apple.com>
1ed17cd5 154
50668cf6
GK
155 * init.c (cpp_create_reader): Default warn_normalize to normalized_C.
156 * charset.c: Update for new format of ucnid.h.
157 (ucn_valid_in_identifier): Update for new format of ucnid.h.
158 Add NST parameter, and update it; update callers.
159 (cpp_valid_ucn): Add NST parameter, update callers. Replace abort
160 with cpp_error.
161 (convert_ucn): Pass normalize_state to cpp_valid_ucn.
162 * internal.h (struct normalize_state): New.
163 (INITIAL_NORMALIZE_STATE): New.
164 (NORMALIZE_STATE_RESULT): New.
165 (NORMALIZE_STATE_UPDATE_IDNUM): New.
166 (_cpp_valid_ucn): New.
167 * lex.c (warn_about_normalization): New.
168 (forms_identifier_p): Add normalize_state parameter, update callers.
169 (lex_identifier): Add normalize_state parameter, update callers. Keep
170 the state current.
171 (lex_number): Likewise.
172 (_cpp_lex_direct): Pass normalize_state to subroutines. Check
173 it with warn_about_normalization.
174 * makeucnid.c: New.
175 * ucnid.h: Replace.
176 * ucnid.pl: Remove.
177 * ucnid.tab: Make appropriate for input to makeucnid.c. Remove
178 comments about obsolete version of C++.
179 * include/cpplib.h (enum cpp_normalize_level): New.
180 (struct cpp_options): Add warn_normalize field.
181
47e20491
GK
1822005-03-11 Geoffrey Keating <geoffk@apple.com>
183
184 * directives.c (glue_header_name): Update call to cpp_spell_token.
185 * internal.h (_cpp_interpret_identifier): New.
186 * charset.c (_cpp_interpret_identifier): New.
187 (_cpp_valid_ucn): Allow UCN version of '$'.
188 * lex.c (lex_identifier): Add extra parameter to indicate if initial
189 character was '$' or '\'. Support identifiers with UCNs.
190 (forms_identifier_p): Allow UCNs.
191 (_cpp_lex_direct): Pass extra parameter to lex_identifier.
192 (utf8_to_ucn): New.
193 (cpp_spell_token): Add FORSTRING parameter. Use it.
194 (cpp_token_as_text): Update call to cpp_spell_token.
195 (cpp_output_token): Write UCNs back out.
196 (stringify_arg): Update call to cpp_spell_token.
197 (paste_tokens): Likewise.
198 (cpp_macro_definition): Likewise.
199 * macro.c (stringify_arg): Likewise.
200 (paste_tokens): Likewise.
201 (cpp_macro_definition): Likewise.
202 * include/cpplib.h: Add parameter to cpp_spell_token.
203
73096711
JJ
2042005-03-04 Jakub Jelinek <jakub@redhat.com>
205
206 PR bootstrap/20282
207 PR bootstrap/20305
208 * macro.c (replace_args, cpp_get_token): Copy whole
209 cpp_token_u instead of just cpp_string field from it.
210
2203a881
DP
2112005-02-28 Devang Patel <dpatel@apple.com>
212
213 * directives.c (do_line): Save sysp early before line table is
214 realloc'ed.
1ed17cd5 215
c5ff069d
ZW
2162005-02-20 Zack Weinberg <zack@codesourcery.com>
217
218 PR 18785
219 * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro.
220 (cpp_host_to_exec_charset): New function.
221 * include/cpplib.h: Declare cpp_host_to_exec_charset.
222
04c90eea
DP
2232005-02-19 Devang Patel <dpatel@apple.com>
224
225 * charset.c (_cpp_convert_input): Check '\r' before inserting
226 '\n' at the end.
c5ff069d 227
6da55c00
EC
2282005-02-15 Eric Christopher <echristo@redhat.com>
229
230 PR preprocessor/19077
231 * macro.c (cpp_macro_definition): Move handling of whitespace
232 to PREV_WHITE conditional. Remove overloading of len
233 variable.
234
31c3e631
KH
2352005-02-14 Kazu Hirata <kazu@cs.umass.edu>
236
237 * directives.c, files.c, init.c, internal.h, macro.c, pch.c,
238 traditional.c: Update copyright.
239
be0f1e54
PB
2402005-02-14 Paolo Bonzini <bonzini@gnu.org>
241
242 PR bootstrap/19818
243 * configure.ac: Check for declaration of basename and getopt.
244 * config.in: Regenerate.
245 * configure: Regenerate.
246 * internal.h (ustrcspn): New.
247 * macro.c (create_iso_definition): Fix allocation of memory.
248 (padding_token): Add cast to remove const-ness.
249 * pch.c (cpp_read_state): Use ustrcspn.
250
ecddfb39
MS
2512005-02-08 Mike Stump <mrs@apple.com>
252
253 * files.c (pchf_adder): Remove.
254 (struct pchf_adder_info): Likewise.
255 (_cpp_save_file_entries): Write out all files so that #import works.
256
9fcdd891
JM
2572005-01-23 Joseph S. Myers <joseph@codesourcery.com>
258
259 * configure: Regenerate.
260
ecfd72e7
TS
2612005-01-11 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
262
263 * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader.
264
6c25a4f7 265 * include/cpplib.h: Also update copyright years.
c5ff069d 266
942926ad
GK
2672005-01-03 Geoffrey Keating <geoffk@apple.com>
268
269 * files.c (_cpp_find_file): Add files found by search_path_exhausted
270 to the list of all files.
271
a2566ae9
GDR
2722005-01-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
273
274 * internal.h: Update references to Cpp lib filenames.
275 * directives.c: Likewise.
276 * init.c: Likewise.
277 * macro.c: Likewise.
278 * traditional.c: Likewise.
279
1b449375
EB
2802004-12-15 Eric Botcazou <ebotcazou@libertysurf.fr>
281
282 PR preprocessor/15167
283 * files.c (destroy_cpp_file): New function.
284 (should_stack_file): Make a new file if the
285 compared file is still stacked.
286
28303828
NN
2872004-11-28 Nathanael Nerode <neroden@gcc.gnu.org>
288
c5ff069d 289 PR preprocessor/17610
28303828
NN
290 * directives.c (do_include_common): Error out if an empty filename
291 is given for #include (or #include_next or #import).
292
c812785a
RS
2932004-11-27 Roger Sayle <roger@eyesopen.com>
294 Zack Weinberg <zack@codesourcery.com>
295
296 * internal.h: Replace all uses of uchar with unsigned char.
297 * include/cpp-id-data.h: Likewise. Guard typedef of uchar
298 with !IN_GCC, so uchar is only defined whilst building libcpp.
299
f91eaa01
KC
3002004-11-24 Kelley Cook <kcook@gcc.gnu.org>
301
302 * aclocal.m4: Regenerate.
303
f78ce0c2
RS
3042004-11-24 Roger Sayle <roger@eyesopen.com>
305
306 PR preprocessor/15824
307 * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h>
308 directly, instead of the non-existant "system.h" and "ansidecl.h".
309 * configure: Regenerate.
310
b5b3e36a 3112004-11-23 Daniel Jacobowitz <dan@codesourcery.com>
c5ff069d 312 Joseph Myers <joseph@codesourcery.com>
b5b3e36a
DJ
313
314 * internal.h (struct lexer_state): Add in_deferred_pragma.
315 * directives.c (struct pragma_entry): Add allow_expansion.
316 (insert_pragma_entry): Take allow_expansion flag.
317 (register_pragma): Likewise.
318 (cpp_register_pragma): Likewise.
319 (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma.
320 (do_pragma): Honor allow_expansion.
321 (cpp_handle_deferred_pragma): Set in_deferred_pragma.
322 * include/cpplib.h (cpp_register_pragma): Update prototype.
323
a8e68029 3242004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
c5ff069d 325 Mark Mitchell <mark@codesourcery.com>
a8e68029
DJ
326
327 * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
328 need_64bit_hwint=yes.
329 * configure: Regenerate.
330
50f47ee0
JM
3312004-11-09 Joseph S. Myers <joseph@codesourcery.com>
332
333 * Makefile.in ($(PACKAGE).pot): New rule. Depend on
334 po/$(PACKAGE).pot.
335 (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword
336 arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2.
337 Remove local srcdir path from generated file.
338
968e08d6 3392004-11-04 Zack Weinberg <zack@codesourcery.com>
c5ff069d 340 Gerald Pfeifer <gerald@pfeifer.com>
968e08d6
ZW
341
342 * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H
343 as well.
344
3da3d587
ZW
3452004-10-27 Zack Weinberg <zack@codesourcery.com>
346
347 PR 18075
348 * directives.c (do_pragma): Do not defer pragmas which are unknown.
349 (cpp_handle_deferred_pragma): Add cast to silence warning.
350
ac24fc25
JM
3512004-10-14 Joseph S. Myers <jsm@polyomino.org.uk>
352
353 * errors.c (_cpp_begin_message): Print "error: " for errors.
354
7731405b
AJ
3552004-10-10 Andreas Jaeger <aj@suse.de>
356
357 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath.
358 * Makefile.in (makedepend.o): Add dependency on mkdeps.h.
359
646544e3
AP
3602004-10-08 Andrew Pinski <pinskia@physics.uc.edu>
361
362 * pch.c (cpp_write_pch_state): Remove variable z as it is not
363 used.
364 (cpp_read_state): Remove unused variables, m, d and mac_count.
365
67a74146
PB
3662004-09-29 Per Bothner <per@bothner.com>
367
368 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore
369 cb.line_change. Otherwise do_pragma will call the line_change
370 call-back with a meaningless line number.
371
018a4785
ZW
3722004-09-24 Zack Weinberg <zack@codesourcery.com>
373
374 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to
375 programs cluster. Use ACX_PROG_CC_WARNING_OPTS,
376 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS.
377 * aclocal.m4, configure: Regenerate.
378 * init.c: Include localedir.h.
379 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables.
380 (DEFS): Delete.
381 (.c.o): Use $(ALL_CFLAGS).
382 (localedir.h, localedir.hs): New rules.
383 (clean): Use rm -rf to remove directories.
384 (distclean): Also delete localedir.h and localedir.hs.
385 (init.o): Update dependencies.
386
88fa57d7
KC
3872004-09-22 Kelley Cook <kcook@gcc.gnu.org>
388
389 * Makefile.in (aclocal.m4): Update dependencies.
390 * configure.ac (AC_CONFIG_MACRO_DIR): New.
391 * aclocal.m4, configure: Regenerate.
392
8f8e9aa5
ZW
3932004-09-17 Zack Weinberg <zack@codesourcery.com>
394
a29f62d9
ZW
395 * charset.c (_cpp_destroy_iconv, emit_numeric_escape)
396 (_cpp_convert_input, _cpp_default_encoding): Add comments.
397 Some other comments in this file also tweaked.
398
8f8e9aa5
ZW
399 * directives.c (do_pragma): Save current buffer position
400 before lexing the pragma keywords; don't call
401 _cpp_backup_tokens in the defer_pragmas case.
402
a2981930
PB
4032004-09-15 Per Bothner <per@bothner.com>
404
405 * include/line-map.h (line_map_start): Add parameter names so
406 preceding comment makes sense.
407 (linemap_add): Remove from comment mention of non-existing parameter.
408
21b11495
ZW
4092004-09-09 Matt Austern <austern@apple.com>
410 Zack Weinberg <zack@codesourcery.com>
411
412 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_
413 prefixes throughout. Add entry for PRAGMA. Remove
414 unnecessary "= 0" from EQ.
415 (enum cpp_ttype): Adjust OP and TK definitions to restore
416 prefixes, via token-paste.
417 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP):
418 Change from #defines to additional cpp_ttype enumerators.
419 (struct cpp_options): Add defer_pragmas.
420 (cpp_handle_deferred_pragma): Prototype new interface.
421
422 * internal.h (struct cpp_reader): Add directive_result.
423 * directives.c (struct pragma_entry): Add is_internal field;
424 give boolean fields type bool.
425 (start_directive): Initialize pfile->directive_result.type.
426 (_cpp_do__Pragma): Likewise.
427 (run_directive): Do not crash if pfile->buffer->prev is NULL.
428 (insert_pragma_entry): Add 'internal' argument; set new->is_internal
429 from it.
430 (register_pragma): New static function, bulk of former
431 cpp_register_pragma here; add 'internal' argument, pass along
432 to insert_pragma_entry.
433 (cpp_register_pragma): Now a wrapper around register_pragma which
434 always passes false for 'internal' argument.
435 (_cpp_init_internal_pragmas): Call register_pragma directly, passing
436 true for 'internal'.
437 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't
438 an internal pragma, save text till the end of the line as a CPP_PRAGMA
439 token instead of executing the pragma.
440 (cpp_handle_deferred_pragma): New interface.
441 * lex.c (token_spellings): Adjust OP and TK definitions to
442 match changes to cpplib.h.
443 (_cpp_lex_token): Check for a directive-result token and
444 return it if present.
445 (cpp_token_val_index): Handle CPP_PRAGMA.
446 * macro.c (cpp_builtin_macro_text): Correct comment.
447 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma.
448
0fd9e8dd
SB
4492004-09-06 Serge Belyshev <belyshev@lubercy.com>
450
451 PR preprocessor/14699
452 * symtab.c (ht_dump_statistics): Change type of sum_of_squares
453 from size_t to double.
454
39b8ce7f
AS
4552004-08-28 Andreas Schwab <schwab@suse.de>
456 Andreas Jaeger <aj@suse.de>
457
458 * configure.ac: Set PACKAGE correctly.
459 * configure: Regenerated.
460
5d1f4b27
PB
4612004-08-25 Paolo Bonzini <bonzini@gnu.org>
462
463 * Makefile.in: Add back top_builddir.
464
078e3ffe
PB
4652004-08-25 Paolo Bonzini <bonzini@gnu.org>
466
467 * configure.ac: Replace Automake macro invocations
468 with manual Autoconf checks and substitutions.
469 * configure: Regenerate.
470 * aclocal.m4: Regenerate.
471 * config.in: Regenerate.
472 * Makefile.am: Removed.
473 * Makefile.in: Heavy simplification and reorganization.
474
b3f8d95d
MM
4752004-08-09 Mark Mitchell <mark@codesourcery.com>
476
477 * configure.ac (arm*-*-eabi*): New target.
478 (arm*-*-symbianelf*): Likewise.
479 * configure: Regenerated.
480
72bb2c39
BI
4812004-07-24 Bernardo Innocenti <bernie@develer.com>
482
483 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove.
484 * directives.c: Use XNEW-family macros from libiberty.
485 * lex.c: Likewise.
486 * macro.c: Likewise.
487 * cpplib.h (cpp_deps_style): Export enum with name.
488
21b11495 4892004-07-23 Matthias Klose <doko@debian.org>
72bb2c39 490
21b11495 491 * init.c (init_library): Use PACKAGE for the text domain.
85eac2a0 492
a23ee064
AP
4932004-07-16 Andris Pavenis <pavenis@latnet.lv>
494
495 PR preprocessor/16366
496 * internal.h (struct cpp_reader): New field dir_hash.
497 * files.c (make_cpp_dir): Use dir_hash, not file_hash.
498 (_cpp_init_files, _cpp_cleanup_files): Update for new field.
499
a09d4744
NB
5002004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
501
502 PR preprocessor/16192
503 PR preprocessor/15913
504 PR preprocessor/15572
505 * expr.c (_cpp_parse_expr): Handle remaining cases where an
506 expression is missing.
507 * init.c (post_options): Traditional cpp doesn't do // comments.
508
f58f7def
PB
5092004-06-30 Per Bothner <per@bothner.com>
510
511 * include/line-map.h (fileline): Remove old typedef.
512 * internal.h (struct cpp_reader): Use source_location typedef instead.
513
e83d8d43
ZW
5142004-06-26 Zack Weinberg <zack@codesourcery.com>
515
516 Partially revert patch of 2004-06-05.
517 * files.c (search_cache): Remove pfile argument. Don't check
518 for file that would be found by "" or <> search here...
519 (_cpp_find_file): ...do it here, before calling find_file_in_dir.
520 Do not apply directory-of-current-file correction to files
521 found by this check. Rearrange code slightly.
522
c0d578e6
GK
5232004-06-21 Geoffrey Keating <geoffk@apple.com>
524
525 * files.c (should_stack_file): Correct swapped parameters to call
526 to cb.read_pch.
527 * pch.c (cpp_valid_state): Handle -fpreprocessed.
528
159d5224
PB
5292004-06-15 Paolo Bonzini <bonzini@gnu.org>
530
531 * Makefile.in: Regenerate with automake 1.8.5.
532 * aclocal.m4: Likewise.
533 * configure: Regenerate.
534
2fac9c01
ZW
5352004-06-11 Zack Weinberg <zack@codesourcery.com>
536
537 * configure.ac: Don't invoke ACX_HEADER_STDBOOL.
538 * configure, config.in: Regenerate.
539 * system.h: Unconditionally define bool as unsigned char,
540 BOOL_BITFIELD as unsigned int.
541 * .cvsignore: New file.
542
d8044160
GK
5432004-06-09 Geoffrey Keating <geoffk@apple.com>
544
545 * traditional.c (push_replacement_text): Set macro->traditional.
546 (save_replacement_text): Likewise.
547 * pch.c (cpp_write_pch_state): Don't write list of defined macros.
548 (struct save_macro_item): Delete.
549 (struct save_macro_data): Use a character array not the previous
550 structured format.
551 (save_macros): Save macro as text not as internal structures.
552 (cpp_prepare_state): Update for changes to save_macro_data.
553 (cpp_read_state): Don't read macros defined in PCH. Restore
2cf22451 554 -D macros as text.
d8044160
GK
555 * macro.c (create_iso_definition): Honour alloc_subobject.
556 Clear traditional flag.
557 (_cpp_create_definition): Honour alloc_subobject.
558 * lex.c (cpp_token_val_index): New.
559 * internal.h: Include cpp-id-data.h.
560 (uchar): Move definition to cpp-id-data.h.
561 (U): Likewise.
562 (cpp_macro): Likewise.
563 * directives.c (struct answer): Move to cpp-id-data.h.
564 (do_assert): Honour alloc_subobject.
2cf22451
ZW
565
566 * include/symtab.h (struct ht): Add field 'alloc_subobject'.
567 * include/cpplib.h (struct cpp_string): Add GTY marker.
568 (enum cpp_token_fld_kind): New.
569 (struct cpp_token): Add GTY markers.
570 (cpp_token_val_index): Prototype.
571 (CPP_HASHNODE_VALUE_IDX): New.
572 (struct cpp_hashnode): Don't skip fields of 'value' when marking.
573 * include/cpp-id-data.h: New file.
d8044160 574
0ca8e815
PB
5752004-06-09 Paolo Bonzini <bonzini@gnu.org>
576
577 * Makefile.am (all-local): New.
578 * Makefile.in: Regenerate.
579
b51fa00f
RS
5802004-06-06 Roger Sayle <roger@eyesopen.com>
581
582 * Makefile.am (LIBICONV): Declare.
583 (makedepend_LDADD): Use LIBICONV.
584 * Makefile.in: Regenerate.
585
5e2f3f39
AP
5862004-06-05 Andrew Pinski <pinskia@physics.uc.edu>
587
588 * Makefile.am (LIBINTL): Declare
589 (makedepend_LDADD): Use LIBINTL.
590 * Makefile.in: Regenerate.
591
c6e83800
ZW
5922004-06-05 Zack Weinberg <zack@codesourcery.com>
593
594 * Makefile.am: Add makedepend.
595 * Makefile.in, aclocal.m4: Regenerate.
596 * charset.c: Insert a space to avoid a warning.
597 * directives.c: Include mkdeps.h.
598 (_cpp_handle_directive): Reenable macro expander if appropriate.
599 (undefine_macros): Inline body of _cpp_free_definition for speed.
600 Do not call undef callback or _cpp_warn_if_unused_macro.
601 (cpp_get_deps): New interface.
602 * files.c (search_cache): Add pfile argument. Check for file
603 that would be found by "" or <> search here...
604 (_cpp_find_file): ...not here. Correct recorded start_dir of
605 files found by directory-of-current-file search that would be
606 found by "" or <> search.
607 * init.c (cpp_add_dependency_target): Delete.
608 * internal.h (struct lexer_state): Add discarding_output flag.
609 * lex.c (lex_identifier): Compute hash function while scanning.
610 * macro.c (cpp_scan_nooutput): Disable macro expansion outside
611 directives.
612 * makedepend.c: New file.
613 * mkdeps.c (struct deps): Add vpath vector.
614 (apply_vpath, deps_add_vpath): New function.
615 (deps_free): Free vpath vector.
616 (deps_add_dep, deps_add_target): Use apply_vpath.
617 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH.
618 (ht_lookup_with_hash): New function.
619 * cpplib.h, mkdeps.h: Update prototypes.
620 * symtab.h: Update prototypes.
621 (HT_HASHSTEP, HT_FINISH): New macros.
622
b453c95f
GK
6232004-05-29 Geoffrey Keating <geoffk@apple.com>
624
625 * symtab.c (ht_create): Set entries_owned.
626 (ht_destroy): Honour entries_owned.
627 (ht_expand): Likewise.
628 (ht_load): New.
2cf22451
ZW
629 * include/symtab.h (struct ht): New field 'entries_owned'
630 (ht_load): New prototype.
b453c95f 631
963e23c5
PB
6322004-05-26 Paolo Bonzini <bonzini@gnu.org>
633
634 PR bootstrap/15651
635 * configure.ac: Fix m4 quoting when picking
636 the size of HOST_WIDE_INT.
637 * configure: Regenerate.
638
0429bc77
PB
6392004-05-25 Paolo Bonzini <bonzini@gnu.org>
640
641 * Makefile.am: the correct directory for
642 gettext include files is given by @INCINTL@.
643 * Makefile.in: Regenerate.
644
c86dd7db
PB
6452004-05-24 Paolo Bonzini <bonzini@gnu.org>
646
647 * system.h [!ENABLE_NLS]: dgettext takes two
648 parameters.
649
4f4e53dd
PB
6502004-05-23 Paolo Bonzini <bonzini@gnu.org>
651
652 Moved libcpp from the gcc subdirectory to the toplevel.
653 * Makefile.am: New file.
654 * Makefile.in: Regenerate.
655 * configure.ac: New file.
656 * configure: Regenerate.
657 * config.in: Regenerate.
658 * charset.c: Moved from gcc/cppcharset.c. Add note about
659 brokenness of input charset detection. Adjust for change
660 in name of cppucnid.h.
661 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h.
662 * expr.c: Moved from gcc/cppexp.c.
663 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h.
664 Remove #define of O_BINARY, it is in system.h.
665 * identifiers.c: Moved from gcc/cpphash.c.
666 * internal.h: Moved from gcc/cpphash.h. Change header
667 guard name. All other files adjusted to match name change.
668 * init.c: Moved from gcc/cppinit.c.
669 (init_library) [ENABLE_NLS]: Call bindtextdomain.
670 * lex.c: Moved from gcc/cpplex.c.
671 * directives.c: Moved from gcc/cpplib.c.
672 * macro.c: Moved from gcc/cppmacro.c.
673 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h.
674 * traditional.c: Moved from gcc/cpptrad.c.
675 * ucnid.h: Moved from gcc/cppucnid.h. Change header
676 guard name.
677 * ucnid.pl: Moved from gcc/cppucnid.pl.
678 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header
679 guard name.
680 * symtab.c: Moved from gcc/hashtable.c.
681 * line-map.c: Moved from gcc. Do not include intl.h.
682 * mkdeps.c: Moved from gcc.
683 * system.h: New file.
2cf22451
ZW
684 * include/cpplib.h: Moved from gcc. Change header guard name.
685 * include/line-map.h: Moved from gcc. Change header guard name.
686 * include/mkdeps.h: Moved from gcc. Change header guard name.
687 * include/symtab.h: Moved from gcc/hashtable.h. Change header
688 guard name.