12007-05-13 Release Manager 2 3 * GCC 4.2.0 released. 4 52007-04-23 Tom Tromey <[email protected]> 6 7 PR preprocessor/30468: 8 * mkdeps.c (apply_vpath): Strip successive '/'s if we stripped 9 './'. 10 112006-12-29 Jakub Jelinek <[email protected]> 12 13 PR preprocessor/29612 14 * directives.c (do_linemarker): Set pfile->buffer->sysp always, not 15 only when new_sysp is non-zero. 16 172006-10-12 Jakub Jelinek <[email protected]> 18 19 PR preprocessor/28709 20 * macro.c (paste_tokens): Do error reporting here, use BUF with the 21 spelled LHS token as opposed to spelling it again. 22 (paste_all_tokens): Don't report errors here, just break on failure. 23 242006-10-10 Brooks Moses <[email protected]> 25 26 * Makefile.in: Added empty "pdf" target. 27 282006-09-22 Geoffrey Keating <[email protected]> 29 30 * configure.ac: Make need_64_bit_hwint case for x86-darwin 31 match exactly the glob in gcc/config.gcc. 32 * configure: Regenerate. 33 342006-09-13 Joseph S. Myers <[email protected]> 35 36 PR c/28768 37 PR preprocessor/14634 38 * lex.c (lex_string): Pedwarn for unterminated literals. 39 402006-09-08 Eric Christopher <[email protected]> 41 42 * configure.ac: Add 64-bit HWI support for i?86-darwin. 43 442006-08-14 Steve Ellcey <[email protected]> 45 46 PR c++/28288 47 PR c++/14556 48 * include/cpplib.h: Remove <?, >?, <?=, and >?= tokens. 49 (CPP_LAST_EQ): Change. 50 (CPP_LAST_PUNCTUATOR): Change. 51 * expr.c (cpp_operator): Remove MIN and MAX. 52 (reduce): Remove CPP_MIN and CPP_MAX. 53 (num_binary_op): Ditto. 54 * lex.c (_cpp_lex_direct): Ditto. 55 (cpp_avoid_paste): Remove ? as legal symbol after > or <. 56 572006-06-09 Jakub Jelinek <[email protected]> 58 59 PR preprocessor/27746 60 * directives.c (do_pragma): Handle pragma with valid namespace 61 and invalid name coming from macro expansion. 62 * directives.c (destringize_and_run): Initialize next field in 63 context. 64 65 PR c/27747 66 PR c++/27748 67 * directives.c (destringize_and_run): Set NO_EXPAND on the 68 tokens. 69 70 * macro.c (_cpp_backup_tokens): Fix comment typo. 71 722006-05-31 Daniel Jacobowitz <[email protected]> 73 74 * Makefile.in (CATALOGS): Add po/ prefix. 75 * configure: Regenerated. 76 772006-05-23 Carlos O'Donell <[email protected]> 78 79 * Makefile.in: Add install-html target. Add install-html to .PHONY 80 812006-02-17 Grigory Zagorodnev <[email protected]> 82 83 * macro.c (_cpp_builtin_macro_text): Handle BT_TIMESTAMP. 84 * files.c (_cpp_get_file_stat): New function. 85 * include/cpplib.h (builtin_type): Add BT_TIMESTAMP. 86 * init.c (builtin_array): Add support for __TIMESTAMP__/BT_TIMESTAMP. 87 * internal.h (_cpp_get_file_stat): Prototype. 88 (struct cpp_buffer): Add timestamp. 89 902006-01-23 Jakub Jelinek <[email protected]> 91 92 PR preprocessor/25717 93 * init.c (cpp_init_builtins): If __STDC__ will not change value 94 between system headers and other sources, define it as a normal 95 macro rather than a builtin. 96 * macro.c (_cpp_builtin_macro_text) <case BT_STDC>: Only check 97 cpp_in_system_header condition. 98 992006-01-05 Paolo Bonzini <[email protected]> 100 101 * Makefile.in: Use -MMD instead of -MD. 102 1032006-01-04 Dmitry Kurochkin <[email protected]> 104 Richard Henderson <[email protected]> 105 106 Merge from gomp branch: 107 * directives.c (struct pragma_entry): Add is_deferred. Add ident 108 entry to value union. 109 (end_directive): Don't eat the line if in_deferred_pragma. 110 (run_directive): Remove pragma hacks. 111 (insert_pragma_entry): Remove. 112 (new_pragma_entry): New. 113 (register_pragma_1): Split out of register_pragma. Only handle 114 the lookup tree and return the new entry. 115 (cpp_register_pragma): Fill in the pragma entry here. 116 (cpp_register_deferred_pragma): New. 117 (register_pragma_internal): New. 118 (_cpp_init_internal_pragmas): Use register_pragma_internal. 119 (do_pragma): Allow pragma expansion after namespace. For deferred 120 pragmas, don't slurp the line into a string. 121 (destringize_and_run): Save tokens for deferred pragmas. 122 (cpp_handle_deferred_pragma): Remove. 123 * macro.c (builtin_macro): Remove pragma token hack. 124 (_cpp_push_token_context): Rename from push_token_context and export. 125 * internal.h (struct lexer_state): Add pragma_allow_expansion. 126 (_cpp_push_token_context): Declare. 127 * lex.c (_cpp_lex_token): Allow _cpp_handle_directive to return 128 a token. Update the line number correctly if so. 129 (_cpp_lex_direct): Emit CPP_PRAGMA_EOL tokens. 130 (cpp_token_val_index): Return CPP_TOKEN_FLD_PRAGMA for pragmas. 131 * include/cpplib.h (PRAGMA_EOL): New. 132 (CPP_TOKEN_FLD_PRAGMA): New. 133 (struct cpp_token): Add val.pragma. 134 (struct cpp_options): Remove defer_pragmas. 135 (cpp_handle_deferred_pragma): Remove. 136 (cpp_register_deferred_pragma): Declare. 137 1382006-01-01 Jakub Jelinek <[email protected]> 139 140 PR c++/25294 141 * directives.c (do_pragma): If pragma line ends with multi-line 142 block comment, end the saved deferred pragma string before that 143 comment. Handle embedded '\0' chars on the pragma line. 144 1452005-12-22 Volker Reichelt <[email protected]> 146 147 PR c++/23333 148 * include/cpplib.h: Add PURE_ZERO to flags for the cpp_token structure. 149 1502005-12-07 Jon Grimm <[email protected]> 151 Ben Elliston <[email protected]> 152 153 * include/cpplib.h (CPP_N_DFLOAT): New. 154 * expr.c (interpret_float_suffix): Identify df, dd, and dl 155 suffixes as decimal floating point constants. 156 (cpp_classify_number): Disallow hexadecimal DFP constants. 157 1582005-11-14 Gerald Pfeifer <[email protected]> 159 Ian Lance Taylor <[email protected]> 160 161 * include/cpplib.h (struct cpp_callbacks): Annotate error with 162 ATTRIBUTE_FPTR_PRINTF(3,0) instead of ATTRIBUTE_PRINTF(3,0). 163 1642005-11-09 Per Bothner <[email protected]> 165 Uros Bizjak <[email protected]> 166 167 PR c/24101 168 * init.c (read_original_filename): Temporarily set 169 state.in_directive before calling _cpp_lex_direct for 170 CPP_HASH tokens. 171 1722005-11-03 James E Wilson <[email protected]> 173 174 PR preprocessor/24202 175 * files.c (_cpp_pop_file_buffer): Set buffer_valid to false. 176 1772005-11-04 Joseph S. Myers <[email protected]> 178 179 * include/cpplib.h (struct cpp_callbacks): Make error take 180 va_list* parameter. 181 * errors.c (cpp_error): Update call to callback. 182 1832005-11-03 Andrew Pinski <[email protected]> 184 185 PR preprocessor/22042 186 * macro.c (_cpp_builtin_macro_text): Lower the needed max 187 buffer size. 188 (cpp_quote_string): Don't octalify non printable 189 charactors. 190 1912005-11-03 Joseph S. Myers <[email protected]> 192 193 PR c++/17964 194 * include/cpplib.h (struct cpp_options): Add client_diagnostic. 195 (struct cpp_callbacks): Add error. 196 * errors.c (cpp_error): If client_diagnostic, use error callback. 197 * charset.c (convert_escape): Don't use %03o in diagnostic. 198 1992005-10-21 James E Wilson <[email protected]> 200 201 PR preprocessor/15220 202 * files.c (_cpp_find_file): New parameter angle_brackets. Fix all 203 callers. Pass to open_file_failed. 204 (open_file_failed): New parameter angle_brackets. Fix all callers. 205 Use in print_dep assignment. 206 * init.c (cpp_read_main_file): Pass additional arg to _cpp_find_file. 207 * internal.h (_cpp_find_file): Add new parm to declaration. 208 2092005-10-08 Kazu Hirata <[email protected]> 210 211 * configure.ac: Require 64-bit int for arm*-*-*eabi*. 212 * configure: Regenerate. 213 2142005-10-04 Ian Lance Taylor <[email protected]> 215 216 PR preprocessor/13726 217 * directives.c (check_eol_return_comments): New static function. 218 (parse_include): Add buf parameter. Change all callers. 219 (do_include_common): If not discard comments, turn on 220 save_comments. Pass collected comments to include callback. 221 * include/cpplib.h (struct cpp_callbacks): Add new parameter to 222 include callback: cpp_token list. 223 2242005-09-20 Joseph S. Myers <[email protected]> 225 226 * include/cpplib.h (struct cpp_options): Add extended_identifiers. 227 * init.c (struct lang_flags, lang_defaults): Add 228 extended_identifiers. 229 (cpp_set_lang): Use it. 230 * lex.c (forms_identifier_p): Check extended_identifiers. 231 2322005-08-30 Jakub Jelinek <[email protected]> 233 234 PR preprocessor/20348 235 PR preprocessor/20356 236 * files.c (_cpp_find_file, search_cache): Revert 2004-06-26 and 237 2004-06-05 changes. 238 2392005-07-23 Kaveh R. Ghazi <[email protected]> 240 241 * configure.ac (ACX_PROG_CC_WARNING_OPTS): add 242 -Wmissing-format-attribute. 243 244 * configure: Regenerate. 245 2462005-06-29 Kelley Cook <[email protected]> 247 248 * all files: Update FSF address in copyright headers. 249 * makeucnid.c (write_copyright): Update outputted FSF address. 250 2512005-06-13 Zack Weinberg <[email protected]> 252 253 * configure.ac: Invoke ZW_CREATE_DEPDIR and 254 ZW_PROG_COMPILER_DEPENDENCIES. 255 * aclocal.m4, configure: Regenerate. 256 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.base, COMPILE): 257 New variables. 258 (distclean): Clean up $(DEPDIR) and its contents. 259 (.c.o): Use $(COMPILE). 260 Include $(DEPDIR)/*.Po for most object->header dependencies. 261 2622005-05-28 Gabriel Dos Reis <[email protected]> 263 264 * configure.ac: Check declarations for asprintf and vasprintf. 265 * config.in: Regenerate. 266 * configure: Likewise. 267 268 * charset.c (conversion_loop): Use XRESIZEVEC. 269 (convert_no_conversion): Likewise. 270 (convert_using_iconv): Likewise. 271 (init_iconv_desc): Cast return value of alloca. 272 (cpp_host_to_exec_charset): Use XNEWVEC. 273 (emit_numeric_escape): Use XRESIZEVEC. 274 (cpp_interpret_string): Use XNEWVEC. 275 (cpp_interpret_string): Use XRESIZEVEC. 276 (_cpp_interpret_identifier): Cast return value of alloca. 277 (_cpp_convert_input): Use XNEWVEC and XRESIZEVEC. 278 * directives.c (glue_header_name): Use XNEWVEC and XRESIZEVEC. 279 (parse_include): Use XNEWVEC. 280 (insert_pragma_entry): Rename local variable "new" to 281 "new_entry". 282 (save_registered_pragmas): Cast return value of xmemdup. 283 (destringize_and_run): Same for alloca. 284 (parse_assertion): Likewise. 285 (do_assert): Cast allocated storage to proper type. 286 (cpp_define): Likewise. 287 (_cpp_define_builtin): Likewise. 288 (cpp_undef): Likewise. 289 (handle_assertion): Likewise. 290 (cpp_push_buffer): Rename local variable "new" to "new_buffer". 291 * expr.c (CPP_UPLUS): Cast value to type cpp_ttype. 292 (CPP_UMINUS): Likewise. 293 (struct cpp_operator): Rename from struct operator. 294 (_cpp_expand_op_stack): Use XRESIZEVEC. 295 * files.c (pch_open_file): Use XNEWVEC. 296 (pch_open_file): Use XRESIZEVEC. 297 (read_file_guts): Use XNEWVEC and XRESIZEVEC. 298 (dir_name_of_file): Use XNEWVEC. 299 (make_cpp_file): Use XCNEW. 300 (make_cpp_dir): Likewise. 301 (allocate_file_hash_entries): USE XNEWVEC. 302 (cpp_included): Cast return value of htab_find_with_hash. 303 (append_file_to_dir): Use XNEWVEC. 304 (read_filename_string): Likewise. Use XRESIZEVEC too. 305 (read_name_map): Cast return value of alloca. Use XRESIZEVEC. 306 (remap_filename): Use XNEWVEC. 307 (struct pchf_entry): Move definition out of struct pchf_data. 308 (_cpp_save_file_entries): Use XCNEWVAR. 309 (_cpp_read_file_entries): Use XNEWVAR. 310 * identifiers.c (alloc_node): Use XOBNEW. 311 * init.c (cpp_create_reader): Use XCNEW. 312 (cpp_init_builtins): Cast of b->value to enum builtin_type. 313 (read_original_directory): Cast return value of alloca. 314 * lex.c (add_line_note): Use XRESIZEVEC. 315 (warn_about_normalization): Use XNEWVEC. 316 (_cpp_lex_direct): Cast node->directive_index to (enum cpp_ttype). 317 (new_buff): Use XNEWVEC. 318 * line-map.c (linemap_add): Use XRESIZEVEC. 319 * macro.c (builtin_macro): Cast return value of alloca. 320 (paste_tokens): Likewise. 321 (expand_arg): Use XNEWVEC and XRESIZEVEC. 322 (_cpp_save_parameter): Use XRESIZEVEC. 323 (create_iso_definition): Cast allocated storage to proper type. 324 (_cpp_create_definition): Likewise. 325 (cpp_macro_definition): Use XRESIZEVEC. 326 * makedepend.c (add_clm): Use XNEW. 327 (add_dir): Likewise. 328 * mkdeps.c (munge): Use XNEWVEC. 329 (deps_init): Use XCNEW. 330 (deps_add_target): Use XRESIZEVEC. 331 (deps_add_default_target): Cast return value of alloca. 332 (deps_add_dep): Use XRESIZEVEC. 333 (deps_add_vpath): Likewise. Use XNEWVEC too. 334 (deps_restore): Likewise. 335 * pch.c (save_idents): Use XNEW and XNEWVEC. 336 (cpp_save_state): Use XNEW. 337 (count_defs): Cast return value of htab_find. 338 (write_defs): Likewise. 339 (cpp_write_pch_deps): Use XNEWVEC. 340 (collect_ht_nodes): Use XRESIZEVEC. 341 (cpp_valid_state): Use XNEWVEC. 342 (save_macros): Use XRESIZEVEC. Cast return value of xmemdup. 343 * symtab.c (ht_create): Use XCNEW. 344 (ht_lookup_with_hash): Cast return value of obstack_copy0. 345 (ht_expand): Use XCNEWVEC. 346 * system.h (HAVE_DESIGNATED_INITIALIZERS): False if __cplusplus. 347 (bool): Do not define if __cplusplus. 348 3492005-05-12 Zack Weinberg <[email protected]> 350 351 * directives.c (#sccs table entry): Mark IN_I, consistent with #ident. 352 (do_sccs): Delete function definition, #define to do_ident. 353 (do_ident): Don't hardwire directive name. 354 3552005-05-12 Ryota Kunisawa <[email protected]> 356 357 PR bootstrap/21230 358 * configure: Regenerate. 359 3602005-04-27 Andris Pavenis <[email protected]> 361 362 * files.c: Include io.h for DJGPP to get prototype of setmode. 363 3642005-04-19 Per Bothner <[email protected]> 365 366 PR preprocessor/20907 367 * line-map.c (linemap_line_start): Fix bug when we need to increse 368 column_bits but can re-use the current line_map. 369 3702005-04-19 Kaveh R. Ghazi <[email protected]> 371 372 * system.h (fopen, fdopen, freopen): Define these to the unlocked 373 libiberty functions. 374 3752005-04-11 Kaveh R. Ghazi <[email protected]> 376 377 * configure.ac (libcpp_UNLOCKED_FUNCS): New. 378 (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for libcpp_UNLOCKED_FUNCS. 379 * system.h (putchar, getc, getchar, clearerr, feof, fileno, 380 fflush, fgetc, fgets, ferror, fread): Redefine to the associated 381 _unlocked function. 382 (fwrite_unlocked): Fix prototype. 383 384 * configure, config.in: Regenerate. 385 3862005-04-05 Jakub Jelinek <[email protected]> 387 388 PR preprocessor/19475 389 * macro.c (create_iso_definition): For < ISO C99, don't 390 pedwarn if there is no whitespace between macro name and its 391 replacement, but the replacement starts with a basic character 392 set character. 393 3942005-03-28 Andreas Jaeger <[email protected]> 395 396 * lex.c (warn_about_normalization): Cast field width to int to 397 avoid warning. 398 3992005-03-19 Joseph S. Myers <[email protected]> 400 401 * configure.ac: Consistently use solaris2.1[0-9]* instead of 402 solaris2.1[0-9]. 403 * configure: Regenerate. 404 4052005-03-15 Geoffrey Keating <[email protected]> 406 407 * charset.c (_cpp_valid_ucn): In identifiers, reject a partial 408 UCN rather than printing an error. 409 4102005-03-14 Geoffrey Keating <[email protected]> 411 412 * lex.c (forms_identifier_p): Disable UCNs in C89 mode. 413 4142005-03-14 Geoffrey Keating <[email protected]> 415 416 * init.c (cpp_create_reader): Default warn_normalize to normalized_C. 417 * charset.c: Update for new format of ucnid.h. 418 (ucn_valid_in_identifier): Update for new format of ucnid.h. 419 Add NST parameter, and update it; update callers. 420 (cpp_valid_ucn): Add NST parameter, update callers. Replace abort 421 with cpp_error. 422 (convert_ucn): Pass normalize_state to cpp_valid_ucn. 423 * internal.h (struct normalize_state): New. 424 (INITIAL_NORMALIZE_STATE): New. 425 (NORMALIZE_STATE_RESULT): New. 426 (NORMALIZE_STATE_UPDATE_IDNUM): New. 427 (_cpp_valid_ucn): New. 428 * lex.c (warn_about_normalization): New. 429 (forms_identifier_p): Add normalize_state parameter, update callers. 430 (lex_identifier): Add normalize_state parameter, update callers. Keep 431 the state current. 432 (lex_number): Likewise. 433 (_cpp_lex_direct): Pass normalize_state to subroutines. Check 434 it with warn_about_normalization. 435 * makeucnid.c: New. 436 * ucnid.h: Replace. 437 * ucnid.pl: Remove. 438 * ucnid.tab: Make appropriate for input to makeucnid.c. Remove 439 comments about obsolete version of C++. 440 * include/cpplib.h (enum cpp_normalize_level): New. 441 (struct cpp_options): Add warn_normalize field. 442 4432005-03-11 Geoffrey Keating <[email protected]> 444 445 * directives.c (glue_header_name): Update call to cpp_spell_token. 446 * internal.h (_cpp_interpret_identifier): New. 447 * charset.c (_cpp_interpret_identifier): New. 448 (_cpp_valid_ucn): Allow UCN version of '$'. 449 * lex.c (lex_identifier): Add extra parameter to indicate if initial 450 character was '$' or '\'. Support identifiers with UCNs. 451 (forms_identifier_p): Allow UCNs. 452 (_cpp_lex_direct): Pass extra parameter to lex_identifier. 453 (utf8_to_ucn): New. 454 (cpp_spell_token): Add FORSTRING parameter. Use it. 455 (cpp_token_as_text): Update call to cpp_spell_token. 456 (cpp_output_token): Write UCNs back out. 457 (stringify_arg): Update call to cpp_spell_token. 458 (paste_tokens): Likewise. 459 (cpp_macro_definition): Likewise. 460 * macro.c (stringify_arg): Likewise. 461 (paste_tokens): Likewise. 462 (cpp_macro_definition): Likewise. 463 * include/cpplib.h: Add parameter to cpp_spell_token. 464 4652005-03-04 Jakub Jelinek <[email protected]> 466 467 PR bootstrap/20282 468 PR bootstrap/20305 469 * macro.c (replace_args, cpp_get_token): Copy whole 470 cpp_token_u instead of just cpp_string field from it. 471 4722005-02-28 Devang Patel <[email protected]> 473 474 * directives.c (do_line): Save sysp early before line table is 475 realloc'ed. 476 4772005-02-20 Zack Weinberg <[email protected]> 478 479 PR 18785 480 * charset.c (LAST_POSSIBLY_BASIC_SOURCE_CHAR): New helper macro. 481 (cpp_host_to_exec_charset): New function. 482 * include/cpplib.h: Declare cpp_host_to_exec_charset. 483 4842005-02-19 Devang Patel <[email protected]> 485 486 * charset.c (_cpp_convert_input): Check '\r' before inserting 487 '\n' at the end. 488 4892005-02-15 Eric Christopher <[email protected]> 490 491 PR preprocessor/19077 492 * macro.c (cpp_macro_definition): Move handling of whitespace 493 to PREV_WHITE conditional. Remove overloading of len 494 variable. 495 4962005-02-14 Kazu Hirata <[email protected]> 497 498 * directives.c, files.c, init.c, internal.h, macro.c, pch.c, 499 traditional.c: Update copyright. 500 5012005-02-14 Paolo Bonzini <[email protected]> 502 503 PR bootstrap/19818 504 * configure.ac: Check for declaration of basename and getopt. 505 * config.in: Regenerate. 506 * configure: Regenerate. 507 * internal.h (ustrcspn): New. 508 * macro.c (create_iso_definition): Fix allocation of memory. 509 (padding_token): Add cast to remove const-ness. 510 * pch.c (cpp_read_state): Use ustrcspn. 511 5122005-02-08 Mike Stump <[email protected]> 513 514 * files.c (pchf_adder): Remove. 515 (struct pchf_adder_info): Likewise. 516 (_cpp_save_file_entries): Write out all files so that #import works. 517 5182005-01-23 Joseph S. Myers <[email protected]> 519 520 * configure: Regenerate. 521 5222005-01-11 Tobias Schlueter <[email protected]> 523 524 * include/cpplib.h (c_lang): Fix comment to say cpp_create_reader. 525 526 * include/cpplib.h: Also update copyright years. 527 5282005-01-03 Geoffrey Keating <[email protected]> 529 530 * files.c (_cpp_find_file): Add files found by search_path_exhausted 531 to the list of all files. 532 5332005-01-01 Gabriel Dos Reis <[email protected]> 534 535 * internal.h: Update references to Cpp lib filenames. 536 * directives.c: Likewise. 537 * init.c: Likewise. 538 * macro.c: Likewise. 539 * traditional.c: Likewise. 540 5412004-12-15 Eric Botcazou <[email protected]> 542 543 PR preprocessor/15167 544 * files.c (destroy_cpp_file): New function. 545 (should_stack_file): Make a new file if the 546 compared file is still stacked. 547 5482004-11-28 Nathanael Nerode <[email protected]> 549 550 PR preprocessor/17610 551 * directives.c (do_include_common): Error out if an empty filename 552 is given for #include (or #include_next or #import). 553 5542004-11-27 Roger Sayle <[email protected]> 555 Zack Weinberg <[email protected]> 556 557 * internal.h: Replace all uses of uchar with unsigned char. 558 * include/cpp-id-data.h: Likewise. Guard typedef of uchar 559 with !IN_GCC, so uchar is only defined whilst building libcpp. 560 5612004-11-24 Kelley Cook <[email protected]> 562 563 * aclocal.m4: Regenerate. 564 5652004-11-24 Roger Sayle <[email protected]> 566 567 PR preprocessor/15824 568 * configure.ac: Correct HAVE_UCHAR test to #include <sys/types.h> 569 directly, instead of the non-existant "system.h" and "ansidecl.h". 570 * configure: Regenerate. 571 5722004-11-23 Daniel Jacobowitz <[email protected]> 573 Joseph Myers <[email protected]> 574 575 * internal.h (struct lexer_state): Add in_deferred_pragma. 576 * directives.c (struct pragma_entry): Add allow_expansion. 577 (insert_pragma_entry): Take allow_expansion flag. 578 (register_pragma): Likewise. 579 (cpp_register_pragma): Likewise. 580 (_cpp_init_internal_pragmas): Update calls to cpp_register_pragma. 581 (do_pragma): Honor allow_expansion. 582 (cpp_handle_deferred_pragma): Set in_deferred_pragma. 583 * include/cpplib.h (cpp_register_pragma): Update prototype. 584 5852004-11-18 Daniel Jacobowitz <[email protected]> 586 Mark Mitchell <[email protected]> 587 588 * configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set 589 need_64bit_hwint=yes. 590 * configure: Regenerate. 591 5922004-11-09 Joseph S. Myers <[email protected]> 593 594 * Makefile.in ($(PACKAGE).pot): New rule. Depend on 595 po/$(PACKAGE).pot. 596 (po/$(PACKAGE).pot): Use ":" instead of "," in --keyword 597 arguments. Add keywords _, N_, SYNTAX_ERROR and SYNTAX_ERROR2. 598 Remove local srcdir path from generated file. 599 6002004-11-04 Zack Weinberg <[email protected]> 601 Gerald Pfeifer <[email protected]> 602 603 * internal.h (HAVE_ICONV): Undefine if we do not have HAVE_ICONV_H 604 as well. 605 6062004-10-27 Zack Weinberg <[email protected]> 607 608 PR 18075 609 * directives.c (do_pragma): Do not defer pragmas which are unknown. 610 (cpp_handle_deferred_pragma): Add cast to silence warning. 611 6122004-10-14 Joseph S. Myers <[email protected]> 613 614 * errors.c (_cpp_begin_message): Print "error: " for errors. 615 6162004-10-10 Andreas Jaeger <[email protected]> 617 618 * makedepend.c: Include mkdeps.h for prototype of deps_add_vpath. 619 * Makefile.in (makedepend.o): Add dependency on mkdeps.h. 620 6212004-10-08 Andrew Pinski <[email protected]> 622 623 * pch.c (cpp_write_pch_state): Remove variable z as it is not 624 used. 625 (cpp_read_state): Remove unused variables, m, d and mac_count. 626 6272004-09-29 Per Bothner <[email protected]> 628 629 * directives.c (cpp_handle_deferred_pragma): Save, clear and restore 630 cb.line_change. Otherwise do_pragma will call the line_change 631 call-back with a meaningless line number. 632 6332004-09-24 Zack Weinberg <[email protected]> 634 635 * configure.ac: Move AC_PROG_MAKE_SET, AC_PROG_INSTALL to 636 programs cluster. Use ACX_PROG_CC_WARNING_OPTS, 637 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_PROG_CC_WARNINGS_ARE_ERRORS. 638 * aclocal.m4, configure: Regenerate. 639 * init.c: Include localedir.h. 640 * Makefile.in (WARN_CFLAGS, ALL_CFLAGS): New variables. 641 (DEFS): Delete. 642 (.c.o): Use $(ALL_CFLAGS). 643 (localedir.h, localedir.hs): New rules. 644 (clean): Use rm -rf to remove directories. 645 (distclean): Also delete localedir.h and localedir.hs. 646 (init.o): Update dependencies. 647 6482004-09-22 Kelley Cook <[email protected]> 649 650 * Makefile.in (aclocal.m4): Update dependencies. 651 * configure.ac (AC_CONFIG_MACRO_DIR): New. 652 * aclocal.m4, configure: Regenerate. 653 6542004-09-17 Zack Weinberg <[email protected]> 655 656 * charset.c (_cpp_destroy_iconv, emit_numeric_escape) 657 (_cpp_convert_input, _cpp_default_encoding): Add comments. 658 Some other comments in this file also tweaked. 659 660 * directives.c (do_pragma): Save current buffer position 661 before lexing the pragma keywords; don't call 662 _cpp_backup_tokens in the defer_pragmas case. 663 6642004-09-15 Per Bothner <[email protected]> 665 666 * include/line-map.h (line_map_start): Add parameter names so 667 preceding comment makes sense. 668 (linemap_add): Remove from comment mention of non-existing parameter. 669 6702004-09-09 Matt Austern <[email protected]> 671 Zack Weinberg <[email protected]> 672 673 * include/cpplib.h (TTYPE_TABLE): Remove CPP_ and SPELL_ 674 prefixes throughout. Add entry for PRAGMA. Remove 675 unnecessary "= 0" from EQ. 676 (enum cpp_ttype): Adjust OP and TK definitions to restore 677 prefixes, via token-paste. 678 (CPP_LAST_EQ, CPP_FIRST_DIGRAPH, CPP_LAST_PUNCTUATOR, CPP_LAST_CPP_OP): 679 Change from #defines to additional cpp_ttype enumerators. 680 (struct cpp_options): Add defer_pragmas. 681 (cpp_handle_deferred_pragma): Prototype new interface. 682 683 * internal.h (struct cpp_reader): Add directive_result. 684 * directives.c (struct pragma_entry): Add is_internal field; 685 give boolean fields type bool. 686 (start_directive): Initialize pfile->directive_result.type. 687 (_cpp_do__Pragma): Likewise. 688 (run_directive): Do not crash if pfile->buffer->prev is NULL. 689 (insert_pragma_entry): Add 'internal' argument; set new->is_internal 690 from it. 691 (register_pragma): New static function, bulk of former 692 cpp_register_pragma here; add 'internal' argument, pass along 693 to insert_pragma_entry. 694 (cpp_register_pragma): Now a wrapper around register_pragma which 695 always passes false for 'internal' argument. 696 (_cpp_init_internal_pragmas): Call register_pragma directly, passing 697 true for 'internal'. 698 (do_pragma): If CPP_OPTION (pfile, defer_pragmas) and this isn't 699 an internal pragma, save text till the end of the line as a CPP_PRAGMA 700 token instead of executing the pragma. 701 (cpp_handle_deferred_pragma): New interface. 702 * lex.c (token_spellings): Adjust OP and TK definitions to 703 match changes to cpplib.h. 704 (_cpp_lex_token): Check for a directive-result token and 705 return it if present. 706 (cpp_token_val_index): Handle CPP_PRAGMA. 707 * macro.c (cpp_builtin_macro_text): Correct comment. 708 (builtin_macro): Handle directive-result tokens from _cpp_do__Pragma. 709 7102004-09-06 Serge Belyshev <[email protected]> 711 712 PR preprocessor/14699 713 * symtab.c (ht_dump_statistics): Change type of sum_of_squares 714 from size_t to double. 715 7162004-08-28 Andreas Schwab <[email protected]> 717 Andreas Jaeger <[email protected]> 718 719 * configure.ac: Set PACKAGE correctly. 720 * configure: Regenerated. 721 7222004-08-25 Paolo Bonzini <[email protected]> 723 724 * Makefile.in: Add back top_builddir. 725 7262004-08-25 Paolo Bonzini <[email protected]> 727 728 * configure.ac: Replace Automake macro invocations 729 with manual Autoconf checks and substitutions. 730 * configure: Regenerate. 731 * aclocal.m4: Regenerate. 732 * config.in: Regenerate. 733 * Makefile.am: Removed. 734 * Makefile.in: Heavy simplification and reorganization. 735 7362004-08-09 Mark Mitchell <[email protected]> 737 738 * configure.ac (arm*-*-eabi*): New target. 739 (arm*-*-symbianelf*): Likewise. 740 * configure: Regenerated. 741 7422004-07-24 Bernardo Innocenti <[email protected]> 743 744 * internal.h (xnew, xcnew, xnewvec, xcnewvec, xobnew): Remove. 745 * directives.c: Use XNEW-family macros from libiberty. 746 * lex.c: Likewise. 747 * macro.c: Likewise. 748 * cpplib.h (cpp_deps_style): Export enum with name. 749 7502004-07-23 Matthias Klose <[email protected]> 751 752 * init.c (init_library): Use PACKAGE for the text domain. 753 7542004-07-16 Andris Pavenis <[email protected]> 755 756 PR preprocessor/16366 757 * internal.h (struct cpp_reader): New field dir_hash. 758 * files.c (make_cpp_dir): Use dir_hash, not file_hash. 759 (_cpp_init_files, _cpp_cleanup_files): Update for new field. 760 7612004-07-04 Neil Booth <[email protected]> 762 763 PR preprocessor/16192 764 PR preprocessor/15913 765 PR preprocessor/15572 766 * expr.c (_cpp_parse_expr): Handle remaining cases where an 767 expression is missing. 768 * init.c (post_options): Traditional cpp doesn't do // comments. 769 7702004-06-30 Per Bothner <[email protected]> 771 772 * include/line-map.h (fileline): Remove old typedef. 773 * internal.h (struct cpp_reader): Use source_location typedef instead. 774 7752004-06-26 Zack Weinberg <[email protected]> 776 777 Partially revert patch of 2004-06-05. 778 * files.c (search_cache): Remove pfile argument. Don't check 779 for file that would be found by "" or <> search here... 780 (_cpp_find_file): ...do it here, before calling find_file_in_dir. 781 Do not apply directory-of-current-file correction to files 782 found by this check. Rearrange code slightly. 783 7842004-06-21 Geoffrey Keating <[email protected]> 785 786 * files.c (should_stack_file): Correct swapped parameters to call 787 to cb.read_pch. 788 * pch.c (cpp_valid_state): Handle -fpreprocessed. 789 7902004-06-15 Paolo Bonzini <[email protected]> 791 792 * Makefile.in: Regenerate with automake 1.8.5. 793 * aclocal.m4: Likewise. 794 * configure: Regenerate. 795 7962004-06-11 Zack Weinberg <[email protected]> 797 798 * configure.ac: Don't invoke ACX_HEADER_STDBOOL. 799 * configure, config.in: Regenerate. 800 * system.h: Unconditionally define bool as unsigned char, 801 BOOL_BITFIELD as unsigned int. 802 * .cvsignore: New file. 803 8042004-06-09 Geoffrey Keating <[email protected]> 805 806 * traditional.c (push_replacement_text): Set macro->traditional. 807 (save_replacement_text): Likewise. 808 * pch.c (cpp_write_pch_state): Don't write list of defined macros. 809 (struct save_macro_item): Delete. 810 (struct save_macro_data): Use a character array not the previous 811 structured format. 812 (save_macros): Save macro as text not as internal structures. 813 (cpp_prepare_state): Update for changes to save_macro_data. 814 (cpp_read_state): Don't read macros defined in PCH. Restore 815 -D macros as text. 816 * macro.c (create_iso_definition): Honour alloc_subobject. 817 Clear traditional flag. 818 (_cpp_create_definition): Honour alloc_subobject. 819 * lex.c (cpp_token_val_index): New. 820 * internal.h: Include cpp-id-data.h. 821 (uchar): Move definition to cpp-id-data.h. 822 (U): Likewise. 823 (cpp_macro): Likewise. 824 * directives.c (struct answer): Move to cpp-id-data.h. 825 (do_assert): Honour alloc_subobject. 826 827 * include/symtab.h (struct ht): Add field 'alloc_subobject'. 828 * include/cpplib.h (struct cpp_string): Add GTY marker. 829 (enum cpp_token_fld_kind): New. 830 (struct cpp_token): Add GTY markers. 831 (cpp_token_val_index): Prototype. 832 (CPP_HASHNODE_VALUE_IDX): New. 833 (struct cpp_hashnode): Don't skip fields of 'value' when marking. 834 * include/cpp-id-data.h: New file. 835 8362004-06-09 Paolo Bonzini <[email protected]> 837 838 * Makefile.am (all-local): New. 839 * Makefile.in: Regenerate. 840 8412004-06-06 Roger Sayle <[email protected]> 842 843 * Makefile.am (LIBICONV): Declare. 844 (makedepend_LDADD): Use LIBICONV. 845 * Makefile.in: Regenerate. 846 8472004-06-05 Andrew Pinski <[email protected]> 848 849 * Makefile.am (LIBINTL): Declare 850 (makedepend_LDADD): Use LIBINTL. 851 * Makefile.in: Regenerate. 852 8532004-06-05 Zack Weinberg <[email protected]> 854 855 * Makefile.am: Add makedepend. 856 * Makefile.in, aclocal.m4: Regenerate. 857 * charset.c: Insert a space to avoid a warning. 858 * directives.c: Include mkdeps.h. 859 (_cpp_handle_directive): Reenable macro expander if appropriate. 860 (undefine_macros): Inline body of _cpp_free_definition for speed. 861 Do not call undef callback or _cpp_warn_if_unused_macro. 862 (cpp_get_deps): New interface. 863 * files.c (search_cache): Add pfile argument. Check for file 864 that would be found by "" or <> search here... 865 (_cpp_find_file): ...not here. Correct recorded start_dir of 866 files found by directory-of-current-file search that would be 867 found by "" or <> search. 868 * init.c (cpp_add_dependency_target): Delete. 869 * internal.h (struct lexer_state): Add discarding_output flag. 870 * lex.c (lex_identifier): Compute hash function while scanning. 871 * macro.c (cpp_scan_nooutput): Disable macro expansion outside 872 directives. 873 * makedepend.c: New file. 874 * mkdeps.c (struct deps): Add vpath vector. 875 (apply_vpath, deps_add_vpath): New function. 876 (deps_free): Free vpath vector. 877 (deps_add_dep, deps_add_target): Use apply_vpath. 878 * symtab.c (calc_hash): Use HT_HASHSTEP and HT_FINISH. 879 (ht_lookup_with_hash): New function. 880 * cpplib.h, mkdeps.h: Update prototypes. 881 * symtab.h: Update prototypes. 882 (HT_HASHSTEP, HT_FINISH): New macros. 883 8842004-05-29 Geoffrey Keating <[email protected]> 885 886 * symtab.c (ht_create): Set entries_owned. 887 (ht_destroy): Honour entries_owned. 888 (ht_expand): Likewise. 889 (ht_load): New. 890 * include/symtab.h (struct ht): New field 'entries_owned' 891 (ht_load): New prototype. 892 8932004-05-26 Paolo Bonzini <[email protected]> 894 895 PR bootstrap/15651 896 * configure.ac: Fix m4 quoting when picking 897 the size of HOST_WIDE_INT. 898 * configure: Regenerate. 899 9002004-05-25 Paolo Bonzini <[email protected]> 901 902 * Makefile.am: the correct directory for 903 gettext include files is given by @INCINTL@. 904 * Makefile.in: Regenerate. 905 9062004-05-24 Paolo Bonzini <[email protected]> 907 908 * system.h [!ENABLE_NLS]: dgettext takes two 909 parameters. 910 9112004-05-23 Paolo Bonzini <[email protected]> 912 913 Moved libcpp from the gcc subdirectory to the toplevel. 914 * Makefile.am: New file. 915 * Makefile.in: Regenerate. 916 * configure.ac: New file. 917 * configure: Regenerate. 918 * config.in: Regenerate. 919 * charset.c: Moved from gcc/cppcharset.c. Add note about 920 brokenness of input charset detection. Adjust for change 921 in name of cppucnid.h. 922 * errors.c: Moved from gcc/cpperror.c. Do not include intl.h. 923 * expr.c: Moved from gcc/cppexp.c. 924 * files.c: Moved from gcc/cppfiles.c. Do not include intl.h. 925 Remove #define of O_BINARY, it is in system.h. 926 * identifiers.c: Moved from gcc/cpphash.c. 927 * internal.h: Moved from gcc/cpphash.h. Change header 928 guard name. All other files adjusted to match name change. 929 * init.c: Moved from gcc/cppinit.c. 930 (init_library) [ENABLE_NLS]: Call bindtextdomain. 931 * lex.c: Moved from gcc/cpplex.c. 932 * directives.c: Moved from gcc/cpplib.c. 933 * macro.c: Moved from gcc/cppmacro.c. 934 * pch.c: Moved from gcc/cpppch.c. Do not include intl.h. 935 * traditional.c: Moved from gcc/cpptrad.c. 936 * ucnid.h: Moved from gcc/cppucnid.h. Change header 937 guard name. 938 * ucnid.pl: Moved from gcc/cppucnid.pl. 939 * ucnid.tab: Moved from gcc/cppucnid.tab. Change header 940 guard name. 941 * symtab.c: Moved from gcc/hashtable.c. 942 * line-map.c: Moved from gcc. Do not include intl.h. 943 * mkdeps.c: Moved from gcc. 944 * system.h: New file. 945 * include/cpplib.h: Moved from gcc. Change header guard name. 946 * include/line-map.h: Moved from gcc. Change header guard name. 947 * include/mkdeps.h: Moved from gcc. Change header guard name. 948 * include/symtab.h: Moved from gcc/hashtable.h. Change header 949 guard name. 950