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