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