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