12019-02-22 Release Manager 2 3 * GCC 8.3.0 released. 4 52019-01-22 Nidal Faour <nidal.faour@wdc.com> 6 7 PR lto/88422 8 * simple-object.c (O_BINARY): Define if not already defined. 9 (simple_object_copy_lto_debug_sections): Create file in binary 10 mode. 11 122018-07-26 Release Manager 13 14 * GCC 8.2.0 released. 15 162018-07-19 Eli Zaretskii <eliz@gnu.org> 17 18 * simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect 19 to ENOSYS. 20 212018-05-02 Release Manager 22 23 * GCC 8.1.0 released. 24 252018-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 26 27 PR lto/81968 28 * simple-object.c (handle_lto_debug_sections): Keep .comment 29 section. 30 312018-03-02 David Malcolm <dmalcolm@redhat.com> 32 33 * cp-demangle.c: Update URL for g++ V3 ABI. 34 352018-01-20 Eli Zaretskii <eliz@gnu.org> 36 37 * simple-object-xcoff.c (simple_object_xcoff_find_sections): Use 38 ulong_type to avoid warning about 32-bit shift. 39 402018-01-11 Richard Biener <rguenther@suse.de> 41 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 42 43 PR lto/81968 44 * simple-object-common.h (struct simple_object_functions): 45 Change copy_lto_debug_sections callback signature. 46 * simple-object-elf.c (SHN_HIRESERVE, SHT_SYMTAB_SHNDX, 47 SHF_INFO_LINK): Add defines. 48 (simple_object_elf_copy_lto_debug_sections): Instead of 49 leaving not to be copied sections empty unnamed SHT_NULL 50 remove them from the target section headers and adjust section 51 reference everywhere. Handle SHN_XINDEX in the symbol table 52 processing properly. 53 * simple-object.c (handle_lto_debug_sections): Change 54 interface to return a modified string and handle renaming 55 of relocation sections. 56 572018-01-10 Daniel van Gerpen <daniel@vangerpen.de> 58 59 * argv.c (expandargv): Correct check for dynamically 60 allocated argv. 61 622018-01-03 Jakub Jelinek <jakub@redhat.com> 63 64 Update copyright years. 65 662017-01-02 Richard Biener <rguenther@suse.de> 67 68 PR lto/83452 69 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section): 70 Do not use UNDEF locals for removed symbols but instead just 71 define them in the first prevailing section and with no name. 72 Use the same gnu_lto_v1 name for all removed globals we promote to 73 WEAK UNDEFs so hpux can use a stub to provide this symbol. Clear 74 sh_info and sh_link in removed sections. 75 762017-10-30 Richard Biener <rguenther@suse.de> 77 78 PR lto/82757 79 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): 80 Strip two leading _s from the __gnu_lto_* symbols. 81 822017-10-24 Alan Modra <amodra@gmail.com> 83 84 PR lto/82687 85 PR lto/82575 86 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): 87 Only make __gnu_lto symbols hidden. 88 892017-10-20 Alan Modra <amodra@gmail.com> 90 91 PR lto/82575 92 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): 93 Make discarded non-local symbols weak and hidden. 94 952017-10-18 Jakub Jelinek <jakub@redhat.com> 96 97 PR lto/82598 98 * simple-object.c (handle_lto_debug_sections): Copy over also 99 .note.GNU-stack section with unchanged name. 100 * simple-object-elf.c (SHF_EXECINSTR): Define. 101 (simple_object_elf_copy_lto_debug_section): Drop SHF_EXECINSTR bit 102 on .note.GNU-stack section. 103 1042017-09-25 Nathan Sidwell <nathan@acm.org> 105 106 PR demangler/82195 107 * cp-demangle.c (d_encoding): Strip return type when name is a 108 LOCAL_NAME. 109 (d_local_name): Strip return type of enclosing TYPED_NAME. 110 * testsuite/demangle-expected: Add and adjust tests. 111 1122017-09-21 Nathan Sidwell <nathan@acm.org> 113 114 PR demangler/82195 115 * cp-demangle.c (d_name): Revert addition of 'toplevel' parm. 116 (has_return_type): Recurse for DEMANGLE_COMPONENT_LOCAL_NAME. 117 (d_encoding): Revert d_name change. Use is_fnqual_component_type 118 to strip modifiers that do not belong. 119 (d_special_name, d_class_enum_type): Revert d_name call change. 120 (d_expresion_1): Commonize DEMANGLE_COMPONENT_UNARY building. 121 (d_local_name): Revert parsing of a function type. 122 (d_print_comp_inner): An inner LOCAL_NAME might contain a 123 TEMPLATE. 124 * testsuite/demangle-expected: Add & adjust tests 125 1262017-09-15 Nathan Sidwell <nathan@acm.org> 127 128 PR demangler/82195 129 * cp-demangle.c (d_name): Add 'toplevel' parm. Pass to ... 130 (d_local_name): ... here. Parse trailing function args on nested 131 local_name. 132 (d_encoding, d_special_name, d_class_enum_type): Adjust d_name calls. 133 * testsuite/demangle-expected: Add tests. 134 1352017-09-15 Richard Biener <rguenther@suse.de> 136 137 PR lto/81968 138 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): 139 Iterate marking dependent sections necessary. 140 1412017-09-15 Nathan Sidwell <nathan@acm.org> 142 143 * cp-demangle.c (is_fnqual_component_type): Reimplement using 144 FNQUAL_COMPONENT_CASE. 145 (d_encoding): Hold bare_function_type in local var. 146 (d_local_name): Build name in both cases and build result once. 147 Collapse switch-if to single conditional. 148 (d_local_name): 149 150 * testsuite/demangle-expected: Realign blank lines with tests. 151 1522017-09-12 Jiong Wang <jiong.wang@arm.com> 153 154 * dwarfnames.c (DW_CFA_DUP): New define. 155 1562017-09-01 Martin Liska <mliska@suse.cz> 157 158 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): 159 Remove duplicite declaration. 160 1612017-08-31 Richard Biener <rguenther@suse.de> 162 163 PR lto/81968 164 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section): 165 Keep names of removed global symbols. 166 1672017-08-29 Tony Reix <tony.reix@atos.net> 168 169 * simple-object-xcoff.c (simple_object_xcoff_find_sections): 170 Improve .go_export csect handling. Don't make assumptions 171 on containing section or number of auxiliary entries. 172 1732017-08-28 Richard Biener <rguenther@suse.de> 174 175 PR lto/81968 176 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section): 177 Adjust field with for sh_type write, set SHF_EXCLUDE only for 178 removed sections. 179 1802017-08-22 Richard Biener <rguenther@suse.de> 181 182 PR lto/81925 183 * simple-object-elf.c (simple_object_elf_write_shdr): Adjust 184 type of sh_addralign and sh_entsize and properly write 185 sh_entsize as Elf_Addr. 186 (simple_object_elf_write_to_file): Read sh_entsize as Elf_Addr. 187 1882017-08-21 Richard Biener <rguenther@suse.de> 189 190 * simple-object-common.h (struct simple_object_functions): Add 191 copy_lto_debug_sections hook. 192 * simple-object.c: Include fcntl.h. 193 (handle_lto_debug_sections): New helper function. 194 (simple_object_copy_lto_debug_sections): New function copying 195 early LTO debug sections to regular debug sections in a new file. 196 (simple_object_start_write): Handle NULL segment_name. 197 * simple-object-coff.c (simple_object_coff_functions): Adjust 198 for not implemented copy_lto_debug_sections hook. 199 * simple-object-mach-o.c (simple_object_mach_o_functions): Likewise. 200 * simple-object-xcoff.c (simple_object_xcoff_functions): Likewise. 201 * simple-object-elf.c (SHT_NULL, SHT_SYMTAB, SHT_RELA, SHT_REL, 202 SHT_GROUP): Add various sectopn header types. 203 (SHF_EXCLUDE): Add flag. 204 (Elf32_External_Sym, Elf64_External_Sym): Add symbol struct. 205 (ELF_ST_BIND, ELF_ST_TYPE, ELF_ST_INFO): Add accessors. 206 (STT_OBJECT, STT_FUNC, STT_TLS, STT_GNU_IFUNC): Add Symbol types. 207 (STV_DEFAULT): Add symbol visibility. 208 (SHN_COMMON): Add special section index name. 209 (struct simple_object_elf_write): New. 210 (simple_object_elf_start_write): Adjust for new private data. 211 (simple_object_elf_write_shdr): Pass in values for all fields 212 we write. 213 (simple_object_elf_write_to_file): Adjust. Copy from recorded 214 section headers if requested. 215 (simple_object_elf_release_write): Release private data. 216 (simple_object_elf_copy_lto_debug_sections): Copy and rename sections 217 as denoted by PFN and all their dependences, symbols and relocations 218 to the empty destination file. 219 (simple_object_elf_functions): Adjust for copy_lto_debug_sections hook. 220 2212017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com> 222 223 * dwarfnames.c (DW_FIRST_IDX, DW_END_IDX, DW_IDX, DW_IDX_DUP): New. 224 2252017-06-07 Tony Reix <tony.reix@atos.net> 226 Matthieu Sarter <matthieu.sarter.external@atos.net> 227 David Edelsohn <dje.gcc@gmail.com> 228 229 * simple-object-xcoff.c (simple_object_xcoff_find_sections): 230 Search symbol table for .go_export symbol and apply pfn if found. 231 2322017-05-31 DJ Delorie <dj@redhat.com> 233 234 * configure.ac (strnlen): Add to AC_CHECK_DECLS. 235 * configure: Likewise. 236 * config.in: Add HACE_DECL_STRNLEN. 237 2382017-05-27 Iain Buclaw <ibuclaw@gdcproject.org> 239 240 * d-demangle.c (dlang_identifier): Prefix mangled init symbols 241 with `initializer for'. 242 * testsuite/demangle-expected: Update tests. 243 2442017-05-27 Iain Buclaw <ibuclaw@gdcproject.org> 245 246 * d-demangle.c (dlang_call_convention_p): Move declaration 247 before dlang_type. 248 (dlang_type): Handle function types. 249 * testsuite/d-demangle-expected: Add tests. 250 2512017-05-27 Iain Buclaw <ibuclaw@gdcproject.org> 252 253 * d-demangle.c (dlang_parse_real): Remove stack buffer, write 254 the demangled hexadecimal directly to string. 255 * testsuite/d-demangle-expected: Add tests. 256 2572017-05-24 Eli Zaretskii <eliz@gnu.org> 258 259 * waitpid.c (wait) [__MINGW32__]: Define as a macro 260 that calls _cwait, so that this function works on MinGW. 261 2622017-05-02 Iain Buclaw <ibuclaw@gdcproject.org> 263 264 * d-demangle.c (dlang_hexdigit): New function. 265 (ascii2hex): Remove function. 266 (dlang_parse_string): Update to call dlang_hexdigit. 267 * testsuite/d-demangle-expected: Add tests. 268 2692017-05-02 Iain Buclaw <ibuclaw@gdcproject.org> 270 271 * d-demangle.c (strtol): Remove declaration. 272 Updated all callers to use dlang_number. 273 (dlang_number): New function. 274 (dlang_value): Moved check for ISDIGIT into dlang_parse_integer. 275 * testsuite/d-demangle-expected: Add tests. 276 2772017-05-02 Iain Buclaw <ibuclaw@gdcproject.org> 278 279 * d-demangle.c (dlang_parse_symbol): Remove function. 280 (dlang_parse_qualified): New function. 281 (dlang_parse_mangle): New function. 282 (dlang_type): Update to call dlang_parse_qualified. 283 (dlang_identifier): Update to call either dlang_parse_qualified or 284 dlang_parse_mangle. 285 (dlang_type_modifier_p): Remove function. 286 (dlang_call_convention_p): Don't allow type modifiers in mangle. 287 (dlang_template_args): Update to call dlang_identifier. 288 (dlang_demangle): Update to call dlang_parse_mangle. 289 * testsuite/d-demangle-expected: Add tests. 290 2912017-05-01 Iain Buclaw <ibuclaw@gdcproject.org> 292 293 * d-demangle.c (dlang_value): Add comment explaining why cases for 294 digits are required. 295 * testsuite/d-demangle-expected: Update integer value tests. 296 2972017-05-01 Iain Buclaw <ibuclaw@gdcproject.org> 298 299 * d-demangle.c (dlang_parse_symbol): Skip over anonymous symbols. 300 * testsuite/d-demangle-expected: Add tests. 301 3022017-05-01 Iain Buclaw <ibuclaw@gdcproject.org> 303 304 * d-demangle.c (dlang_identifier): Handle template constraint symbols. 305 (dlang_parse_template): Only advance if template symbol prefix is 306 followed by a digit. 307 * testsuite/d-demangle-expected: Add tests. 308 3092017-05-01 Iain Buclaw <ibuclaw@gdcproject.org> 310 311 * d-demangle.c (dlang_attributes): Handle scope attributes. 312 * testsuite/d-demangle-expected: Add tests. 313 3142017-04-27 Jonathan Wakely <jwakely@redhat.com> 315 316 PR demangler/80513 317 * cp-demangle.c (d_number): Check for overflow. 318 * cplus-dem.c (consume_count): Fix overflow check. 319 (gnu_special): Check for underscore after thunk delta. 320 * testsuite/demangle-expected: Add tests for overflows and invalid 321 characters in thunks. 322 3232017-04-21 Mark Wielaard <mark@klomp.org> 324 325 * cp-demangle.c (MAX_RECURSION_COUNT): New constant. 326 (struct d_print_info): Add recursion field. 327 (d_print_init): Initialize recursion. 328 (d_print_comp): Check and update d_print_info recursion depth. 329 3302017-04-21 Mark Wielaard <mark@klomp.org> 331 332 * cp-demangle.c (d_substitution): Return NULL if d_add_substitution 333 fails. 334 3352017-04-21 Mark Wielaard <mark@klomp.org> 336 337 * cp-demangle.h (struct d_info): Remove did_subs field. 338 * cp-demangle.c (struct d_info_checkpoint): Likewise. 339 (d_template_param): Don't update did_subs. 340 (d_substitution): Likewise. 341 (d_checkpoint): Don't assign did_subs. 342 (d_backtrack): Likewise. 343 (cplus_demangle_init_info): Don't initialize did_subs. 344 3452017-03-27 Pedro Alves <palves@redhat.com> 346 347 * cp-demint.c (cplus_demangle_fill_component): Handle 348 DEMANGLE_COMPONENT_RVALUE_REFERENCE. 349 3502017-03-12 Mark Wielaard <mark@klomp.org> 351 352 * cp-demangle.c (cplus_demangle_fill_name): Initialize 353 demangle_component d_printing. 354 (cplus_demangle_fill_extended_operator): Likewise. 355 (cplus_demangle_fill_ctor): Likewise. 356 (cplus_demangle_fill_dtor): Likewise. 357 3582017-03-08 Mark Wielaard <mark@klomp.org> 359 360 PR demangler/70909 361 PR demangler/67264 362 * cp-demangle.c: Fix endless recursion. Pass 363 struct demangle_component as non const. 364 (d_make_empty): Initialize variable. 365 (d_print_comp_inner): Limit recursion. 366 (d_print_comp): Decrement variable. 367 * cp-demint.c (cplus_demangle_fill_component): Initialize 368 variable. 369 (cplus_demangle_fill_builtin_type): Likewise. 370 (cplus_demangle_fill_operator): Likewise. 371 * testsuite/demangle-expected: Add tests. 372 3732017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de> 374 375 PR PR c++/70182 376 * cp-demangle.c (d_unqualified_name): Handle "on" for 377 operator names. 378 * testsuite/demangle-expected: Add tests. 379 3802017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de> 381 382 PR c++/77489 383 * cp-demangle.c (d_discriminator): Handle discriminator >= 10. 384 * testsuite/demangle-expected: Add tests for discriminator. 385 3862017-01-04 Jakub Jelinek <jakub@redhat.com> 387 388 Update copyright years. 389 3902017-01-04 Alan Modra <amodra@gmail.com> 391 392 * Makefile.in (configure_deps): Update. 393 * configure: Regenerate. 394 3952016-12-13 Jakub Jelinek <jakub@redhat.com> 396 397 PR c++/78761 398 * cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto). 399 * testsuite/demangle-expected: Add test for decltype(auto). 400 4012016-12-12 Nathan Sidwell <nathan@acm.org> 402 403 PR c++/78252 404 * cp-demangle.c (struct d_print_info): Add is_lambda_arg field. 405 (d_print_init): Initialize it. 406 (d_print_comp_inner) <DEMANGLE_COMPONENT_TEMPLATE_PARAM>: Check 407 is_lambda_arg for auto. 408 <DEMANGLE_COMPONENT_REFERENCE, 409 DEMANGLE_COMPONENT_RVALUE_REFERENCE>: Skip smashing check when 410 is_lambda_arg. 411 <DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg 412 printing. 413 * testsuite/demangle-expected: Add lambda auto mangling cases. 414 4152016-12-06 DJ Delorie <dj@redhat.com> 416 417 * argv.c (expandargv): Check for directories passed as @-files. 418 4192016-11-30 David Malcolm <dmalcolm@redhat.com> 420 421 PR c/78498 422 * strndup.c (strlen): Delete decl. 423 (strnlen): Add decl. 424 (strndup): Call strnlen rather than strlen. 425 * xstrndup.c (xstrndup): Likewise. 426 4272016-11-29 Nathan Sidwell <nathan@acm.org> 428 429 * cp-demangle.c (d_print_comp_inner): Fix parameter indentation. 430 4312016-11-03 David Tolnay <dtolnay@gmail.com> 432 Mark Wielaard <mark@klomp.org> 433 434 * Makefile.in (CFILES): Add rust-demangle.c. 435 (REQUIRED_OFILES): Add rust-demangle.o. 436 * cplus-dem.c (libiberty_demanglers): Add rust_demangling case. 437 (cplus_demangle): Handle RUST_DEMANGLING. 438 (rust_demangle): New function. 439 * rust-demangle.c: New file. 440 * testsuite/Makefile.in (really-check): Add check-rust-demangle. 441 (check-rust-demangle): New rule. 442 * testsuite/rust-demangle-expected: New file. 443 4442016-11-15 Mark Wielaard <mark@klomp.org> 445 446 * cp-demangle.c (d_expression_1): Make sure third expression 447 exists for ?: and fold expressions. 448 * testsuite/demangle-expected: Add examples of strings that could 449 crash the demangler because of missing expression. 450 4512016-11-14 Mark Wielaard <mark@klomp.org> 452 453 * cplus-dem.c (demangle_signature): After 'H', template function, 454 no success and don't advance position if end of string reached. 455 (demangle_template): After 'z', template name, return zero on 456 premature end of string. 457 (gnu_special): Guard strchr against searching for zero characters. 458 (do_type): If member, only advance mangled string when 'F' found. 459 * testsuite/demangle-expected: Add examples of strings that could 460 crash the demangler by reading past end of input. 461 4622016-11-06 Mark Wielaard <mark@klomp.org> 463 464 * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local. 465 * configure: Regenerated. 466 4672016-11-07 Jason Merrill <jason@redhat.com> 468 469 * cp-demangle.c (is_fnqual_component_type): New. 470 (d_encoding, d_print_comp_inner, d_print_mod_list): Use it. 471 (FNQUAL_COMPONENT_CASE): New. 472 (d_make_comp, has_return_type, d_print_comp_inner) 473 (d_print_function_type): Use it. 474 (next_is_type_qual): New. 475 (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec. 476 4772016-11-02 Mark Wielaard <mjw@redhat.com> 478 479 * cplus-dem.c (demangle_signature): Move fall through comment. 480 (demangle_fund_type): Add fall through comment between 'G' and 'I'. 481 * hashtab.c (iterative_hash): Add fall through comments. 482 * regex.c (regex_compile): Add Fall through comment after '+'/'?'. 483 (byte_re_match_2_internal): Add Fall through comment after jump_n. 484 Change "Note fall through" to "Fall through". 485 (common_op_match_null_string_p): Return false after set_number_at 486 instead of fall through. 487 4882016-11-01 Jason Merrill <jason@redhat.com> 489 490 * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor. 491 4922016-10-31 Mark Wielaard <mjw@redhat.com> 493 494 * cplus-dem.c (ada_demangle): Initialize demangled to NULL and 495 XDELETEVEC demangled when unknown. 496 4972016-09-19 Andrew Stubbs <ams@codesourcery.com> 498 499 * pex-win32.c (argv_to_cmdline): Quote zero-length parameters. 500 * testsuite/test-pexecute.c (main): Insert check for zero-length parameters. 501 5022016-09-10 Mark Wielaard <mjw@redhat.com> 503 504 * cp-demangle.c (d_substitution): Change struct demangle_component 505 variable name from c to dc. 506 5072016-08-12 Marek Polacek <polacek@redhat.com> 508 509 PR c/7652 510 * cp-demangle.c (d_print_mod): Add FALLTHRU. 511 5122016-08-04 Marcel Böhme <boehme.marcel@gmail.com> 513 514 PR c++/71696 515 * cplus-dem.c: Prevent infinite recursion when there is a cycle 516 in the referencing of remembered mangled types. 517 (work_stuff): New stack to keep track of the remembered mangled 518 types that are currently being processed. 519 (push_processed_type): New method to push currently processed 520 remembered type onto the stack. 521 (pop_processed_type): New method to pop currently processed 522 remembered type from the stack. 523 (work_stuff_copy_to_from): Copy values of new variables. 524 (delete_non_B_K_work_stuff): Free stack memory. 525 (demangle_args): Push/Pop currently processed remembered type. 526 (do_type): Do not demangle a cyclic reference and push/pop 527 referenced remembered type. 528 5292016-07-29 Aldy Hernandez <aldyh@redhat.com> 530 531 * make-relative-prefix.c (make_relative_prefix_1): Fall back to 532 malloc if alloca argument is greater than MAX_ALLOCA_SIZE. 533 5342016-07-15 Jason Merrill <jason@redhat.com> 535 536 * cp-demangle.c (cplus_demangle_operators): Add f[lrLR]. 537 (d_expression_1): Handle them. 538 (d_maybe_print_fold_expression): New. 539 (d_print_comp_inner): Use it. 540 (d_index_template_argument): Handle negative index. 541 542 * cp-demangle.c (cplus_demangle_operators): Add sP and sZ. 543 (d_print_comp_inner): Handle them. 544 (d_template_args_1): Split out from d_template_args. 545 (d_args_length): New. 546 5472016-07-13 Marcel Böhme <boehme.marcel@gmail.com> 548 549 PR c++/70926 550 * cplus-dem.c: Handle large values and overflow when demangling 551 length variables. 552 (demangle_template_value_parm): Read only until end of mangled string. 553 (do_hpacc_template_literal): Likewise. 554 (do_type): Handle overflow when demangling array indices. 555 5562016-06-12 Brooks Moses <bmoses@google.com> 557 558 * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length 559 VLAs. 560 5612016-05-31 Alan Modra <amodra@gmail.com> 562 563 * xmemdup.c (xmemdup): Use xmalloc rather than xcalloc. 564 5652016-05-19 Jakub Jelinek <jakub@redhat.com> 566 567 PR c++/70498 568 * cp-demangle.c (d_expression_1): Formatting fix. 569 5702016-05-18 Artemiy Volkov <artemiyv@acm.org> 571 572 * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference 573 constant. 574 (demangle_template_value_parm): Handle tk_rvalue_reference 575 type kind. 576 (do_type): Support 'O' type id (rvalue references). 577 578 * testsuite/demangle-expected: Add tests. 579 5802016-05-02 Marcel Böhme <boehme.marcel@gmail.com> 581 582 PR c++/70498 583 * cp-demangle.c: Parse numbers as integer instead of long to avoid 584 overflow after sanity checks. Include <limits.h> if available. 585 (INT_MAX): Define if necessary. 586 (d_make_template_param): Takes integer argument instead of long. 587 (d_make_function_param): Likewise. 588 (d_append_num): Likewise. 589 (d_identifier): Likewise. 590 (d_number): Parse as and return integer. 591 (d_compact_number): Handle overflow. 592 (d_source_name): Change variable type to integer for parsed number. 593 (d_java_resource): Likewise. 594 (d_special_name): Likewise. 595 (d_discriminator): Likewise. 596 (d_unnamed_type): Likewise. 597 * testsuite/demangle-expected: Add regression test cases. 598 5992016-04-30 Oleg Endo <olegendo@gcc.gnu.org> 600 601 * configure: Remove SH5 support. 602 6032016-04-08 Marcel Böhme <boehme.marcel@gmail.com> 604 605 PR c++/69687 606 * cplus-dem.c: Include <limits.h> if available. 607 (INT_MAX): Define if necessary. 608 (remember_type, remember_Ktype, register_Btype, string_need): 609 Abort if we detect cases where we the size of the allocation would 610 overflow. 611 612 PR c++/70492 613 * cplus-dem.c (gnu_special): Handle case where consume_count returns 614 -1. 615 6162016-03-31 Mikhail Maltsev <maltsevm@gmail.com> 617 Marcel Bohme <boehme.marcel@gmail.com> 618 619 PR c++/67394 620 PR c++/70481 621 * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing 622 btypevec/ktypevec. 623 * testsuite/demangle-expected: Add coverage tests. 624 6252016-01-27 Iain Buclaw <ibuclaw@gdcproject.org> 626 627 * d-demangle.c (dlang_call_convention): Handle extern Objective-C 628 function calling convention. 629 (dlang_call_convention_p): Likewise. 630 (dlang_type): Likewise. 631 * testsuite/d-demangle-expected: Add coverage tests. 632 6332016-01-27 Iain Buclaw <ibuclaw@gdcproject.org> 634 635 * d-demangle.c (dlang_function_args): Append ',' for variadic functions 636 only if parameters were seen before the elipsis symbol. 637 * testsuite/d-demangle-expected: Add coverage test for parameter-less 638 variadic functions. 639 6402016-01-27 Iain Buclaw <ibuclaw@gdcproject.org> 641 642 * d-demangle.c (dlang_type): Handle function types only in the context 643 of seeing a pointer type symbol. 644 * testsuite/d-demangle-expected: Update function pointer tests. 645 6462016-01-05 Mike Frysinger <vapier@gentoo.org> 647 648 * argv.c (dupargv): Change arg to char * const *. Update comment. 649 (writeargv, countargv): Likewise. 650 * functions.texi (dupargv, writeargv, countargv): Likewise. 651 6522016-01-05 Mike Frysinger <vapier@gentoo.org> 653 654 * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup. 655 6562015-12-28 Patrick Palka <ppalka@gcc.gnu.org> 657 658 * crc32.c: In the documentation, don't refer to GDB's 659 now-nonexistent crc32 implementation. In the table-generation 660 program embedded within the documentation, change the type of 661 the induction variables i and j from int to unsigned int, to 662 avoid undefined behavior. 663 6642015-12-21 Nick Clifton <nickc@redhat.com> 665 666 PR 66827 667 * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left 668 shifting. 669 6702015-11-27 Pedro Alves <palves@redhat.com> 671 672 PR other/61321 673 PR other/61233 674 * cp-demangle.c (d_demangle_callback, d_make_comp): Handle 675 DEMANGLE_COMPONENT_CONVERSION. 676 (is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION 677 instead of DEMANGLE_COMPONENT_CAST. 678 (d_operator_name): Return a DEMANGLE_COMPONENT_CONVERSION 679 component if handling a conversion. 680 (d_count_templates_scopes, d_print_comp_inner): Handle 681 DEMANGLE_COMPONENT_CONVERSION. 682 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_CONVERSION instead 683 of DEMANGLE_COMPONENT_CAST. 684 (d_print_cast): Rename as ... 685 (d_print_conversion): ... this. Adjust comments. 686 (d_print_cast): Rewrite - simply print the left subcomponent. 687 * cp-demint.c (cplus_demangle_fill_component): Handle 688 DEMANGLE_COMPONENT_CONVERSION. 689 690 * testsuite/demangle-expected: Add tests. 691 6922015-11-12 Mike Stump <mikestump@comcast.net> 693 694 * Makefile.in (etags tags TAGS): Use && instead of ;. 695 6962015-11-09 Alan Modra <amodra@gmail.com> 697 698 * configure.ac: Check size of size_t. 699 * configure: Regenerate. 700 * config.in: Regenerate. 701 7022015-11-09 Alan Modra <amodra@gmail.com> 703 704 * obstack.c (_obstack_newchunk): Silence -Wc++compat warning. 705 (_obstack_begin_worker): Likewise. Move assignment to h->chunk 706 after alloc failure check. 707 7082015-11-09 Alan Modra <amodra@gmail.com> 709 710 PR gdb/17133 711 * obstack.c (__alignof__): Expand alignof_type from alignof.h. 712 (obstack_exit_failure): Don't use exitfail.h. 713 (_): Include libintl.h when HAVE_LIBINTL_H and nls enabled. 714 Provide default. Don't include gettext.h. 715 (_Noreturn): Define. 716 * obstacks.texi: Adjust node references to external libc info files. 717 7182015-11-09 Alan Modra <amodra@gmail.com> 719 720 PR gdb/17133 721 * obstack.c: Import current gnulib file. 722 * obstacks.texi: Updated doc, from glibc's manual/memory.texi. 723 7242015-11-06 Joel Brobecker <brobecker@adacore.com> 725 726 * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on 727 Android hosts. 728 * configure: Regenerate. 729 7302015-10-28 Jason Merrill <jason@redhat.com> 731 732 * Makefile.in (TAGS): Fix for separate build directory. 733 7342015-10-18 Roland McGrath <roland@gnu.org> 735 Iain Sandoe <iain@codesourcery.com> 736 737 PR other/63758 738 * pex-unix.c: Obtain the environment interface from settings in 739 environ.h rather than in-line code. Update copyright date. 740 * setenv.c: Likewise. 741 * xmalloc.c: Likewise. 742 7432015-09-30 Jason Merrill <jason@redhat.com> 744 745 * cp-demangle.c (d_cv_qualifiers): Dx means transaction_safe. 746 (cplus_demangle_type): Let d_cv_qualifiers handle it. 747 (d_dump, d_make_comp, has_return_type, d_encoding) 748 (d_count_templates_scopes, d_print_comp_inner) 749 (d_print_mod_list, d_print_mod, d_print_function_type) 750 (is_ctor_or_dtor): Handle DEMANGLE_COMPONENT_TRANSACTION_SAFE. 751 7522015-08-15 Ian Lance Taylor <iant@google.com> 753 754 * cp-demangle.c (d_abi_tags): Preserve di->last_name across any 755 ABI tags. 756 7572015-08-11 Iain Buclaw <ibuclaw@gdcproject.org> 758 759 * d-demangle.c (dlang_parse_real): Remove call to strtod. 760 (strtod): Remove declaration. 761 * testsuite/d-demangle-expected: Update float and complex literal 762 tests to check correct hexadecimal demangling. 763 7642015-07-13 Mikhail Maltsev <maltsevm@gmail.com> 765 766 * cp-demangle.c (d_dump): Fix syntax error. 767 (d_identifier): Adjust type of len to match d_source_name. 768 (d_expression_1): Fix out-of-bounds access. Check code variable for 769 NULL before dereferencing it. 770 (d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER. 771 (d_print_comp_inner): Add NULL pointer check. 772 * cp-demangle.h (d_peek_next_char): Define as inline function when 773 CHECK_DEMANGLER is defined. 774 (d_advance): Likewise. 775 * testsuite/demangle-expected: Add new testcases. 776 7772015-07-09 Uros Bizjak <ubizjak@gmail.com> 778 779 * getruntime.c (RUSAGE_SELF): Define if not already defined. 780 (get_runtime): Use RUSAGE_SELF as argument 1 of getrusage call. 781 7822015-06-01 Jason Merrill <jason@redhat.com> 783 784 * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor 785 extended qualifier. 786 7872015-05-22 Yunlian Jiang <yunlian@google.com> 788 789 * configure.ac: Add AC_GNU_SOURCE. 790 * Makefile.in (COMPILE.c): Add -D_GNU_SOURCE. 791 * configure, config.in: Rebuild. 792 * floatformat.c (_GNU_SOURCE): Don't define if already defined. 793 7942015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 795 796 * d-demangle.c (dlang_symbol_kinds): New enum. 797 (dlang_parse_symbol): Update signature. Handle an ambiguity between 798 pascal functions and template value arguments. Only check for a type 799 if parsing a function, or at the top level. Return failure if the 800 entire symbol was not successfully demangled. 801 (dlang_identifier): Update signature. Handle an ambiguity between two 802 adjacent digits in a mangled symbol string. 803 (dlang_type): Update call to dlang_parse_symbol. 804 (dlang_template_args): Likewise. 805 (dlang_parse_template): Likewise. 806 (dlang_demangle): Likewise. 807 * testsuite/d-demangle-expected: Fix bad tests found, and add problematic 808 examples to the unittests. 809 8102015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 811 812 * d-demangle.c (dlang_template_args): Skip over specialized template 813 parameters in mangled symbol. 814 * testsuite/d-demangle-expected: Add coverage and unittest for specialized 815 template parameters. 816 8172015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 818 819 * d-demangle.c (dlang_type): Handle cent and ucent types. 820 * testsuite/d-demangle-expected: Add coverage tests for cent and ucent. 821 8222015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 823 824 * d-demangle.c (dlang_attributes): Handle return attributes, ignoring 825 return parameters in the mangled string. Return NULL if have encountered 826 an unknown attribute. 827 (dlang_function_args): Handle return parameters in the mangled string. 828 * testsuite/d-demangle-expected: Add coverage tests for functions with 829 return parameters and return attributes. 830 8312015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 832 833 * d-demangle.c (dlang_identifier): Check encoded length of identifier 834 to verify strncmp matches entire string. 835 * testsuite/d-demangle-expected: Fix wrong test for postblit symbol. 836 8372015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 838 839 * d-demangle.c (dlang_type_modifiers): New function. 840 (dlang_type_modifier_p): New function. 841 (dlang_call_convention_p): Ignore any kind of type modifier. 842 (dlang_type): Handle and emit the type modifier after delegate types. 843 (dlang_parse_symbol): Handle and emit the type modifier after the symbol. 844 * testsuite/d-demangle-expected: Add coverage tests for all valid 845 usages of function symbols with type modifiers. 846 8472015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 848 849 * d-demangle.c (dlang_call_convention): Return NULL if have reached the 850 end of the symbol, but expected something to read. 851 (dlang_attributes): Likewise. 852 (dlang_function_type): Likewise. 853 (dlang_type): Likewise. 854 (dlang_identifier): Likewise. 855 (dlang_value): Likewise. 856 8572015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 858 859 * d-demangle.c (dlang_parse_string): Represent embedded whitespace or 860 non-printable characters as hex or escape sequences. 861 * testsuite/d-demangle-expected: Add test for templates with tabs and 862 newlines embedded into the signature. 863 8642015-05-08 Joel Brobecker <brobecker@adacore.com> 865 866 * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined 867 but not HAVE_SYS_TIME_H. 868 8692015-04-22 Eli Zaretskii <eliz@gnu.org> 870 871 * setenv.c <environ>: Declare only if not a macro. 872 8732015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com> 874 875 * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS. 876 8772015-04-10 Jakub Jelinek <jakub@redhat.com> 878 Iain Sandoe <iain@codesourcery.com> 879 880 PR target/65351 881 * configure: Regenerate. 882 8832015-04-07 Jakub Jelinek <jakub@redhat.com> 884 Iain Sandoe <iain@codesourcery.com> 885 886 PR target/65351 887 * configure: Regenerate. 888 8892015-01-19 Eli Zaretskii <eliz@gnu.org> 890 891 * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't 892 macros. 893 8942014-12-24 Uros Bizjak <ubizjak@gmail.com> 895 Ben Elliston <bje@au.ibm.com> 896 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 897 898 * xasprintf.c: New file. 899 * Makefile.in (CFILES): Add xasprintf.c. 900 (REQUIRED_OFILES): Add xasprintf.$(objext). 901 (xasprintf.$(objext)): New target. 902 * functions.texi: Regenerate. 903 9042014-12-11 Uros Bizjak <ubizjak@gmail.com> 905 Ben Elliston <bje@au.ibm.com> 906 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 907 908 * xvasprintf.c: New file. 909 * vprintf-support.h: Likewise. 910 * vprintf-support.c: Likewise. 911 * Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c. 912 (REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext). 913 (vprintf-support.$(objext), xvasprintf.$(objext)): New targets. 914 (vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h. 915 * functions.texi: Regenerate. 916 * vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size. 917 9182014-11-22 John David Anglin <danglin@gcc.gnu.org> 919 920 PR other/63694 921 * configure.ac: Check for strtol, strtoul, strtoll and strtoull 922 declarations. 923 * configure: Regenerated. 924 9252014-11-12 Kirill Yukhin <kirill.yukhin@intel.com> 926 927 * testsuite/test-strtol.c (run_tests): Cast strtol return to 928 unsigned long. 929 9302014-11-11 Anthony Brandon <anthony.brandon@gmail.com> 931 Manuel López-Ibáñez <manu@gcc.gnu.org> 932 933 PR driver/36312 934 * filename_cmp.c (canonical_filename_eq): New function to check if 935 file names are the same. 936 * functions.texi: Updated with documentation for new function. 937 9382014-11-11 David Malcolm <dmalcolm@redhat.com> 939 940 * ChangeLog.jit: New. 941 9422014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 943 944 * sigsetmask.c (_POSIX_SOURCE): Remove. 945 9462014-10-28 Yury Gribov <y.gribov@samsung.com> 947 948 * strtoll.c: New file. 949 * strtoull.c: New file. 950 * configure.ac: Add long long checks. Add harness for strtoll and 951 strtoull. Check decls for strtol, strtoul, strtoll, strtoull. 952 * Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull. 953 * config.in: Regenerate. 954 * configure: Regenerate. 955 * functions.texi: Regenerate. 956 * testsuite/Makefile.in (check-strtol): New rule. 957 (test-strtol): Likewise. 958 (mostlyclean): Clean up strtol test. 959 * testsuite/test-strtol.c: New test. 960 9612014-10-15 David Malcolm <dmalcolm@redhat.com> 962 963 * choose-temp.c (choose_tmpdir): Remove now-redundant local 964 copy of prototype. 965 * functions.texi: Regenerate. 966 * make-temp-file.c (choose_tmpdir): Convert return type from 967 char * to const char * - given that this returns a pointer to 968 a memoized allocation, the caller must not touch it. 969 9702014-10-14 Joel Brobecker <brobecker@adacore.com> 971 972 * d-demangle.c: Replace strtold with strtod in global comment. 973 (strtold): Remove declaration. 974 (strtod): New declaration. 975 (dlang_parse_real): Declare value as double instead of long 976 double. Replace call to strtold by call to strtod. 977 Update format in call to snprintf. 978 9792014-09-26 Jason Merrill <jason@redhat.com> 980 981 * cp-demangle.c (d_substitution): Handle abi tags on abbreviation. 982 9832014-09-26 Max Ostapenko <m.ostapenko@partner.samsung.com> 984 985 * pex-common.h (struct pex_funcs): Add new parameter for open_write field. 986 * pex-unix.c (pex_unix_open_write): Add support for new parameter. 987 * pex-djgpp.c (pex_djgpp_open_write): Likewise. 988 * pex-win32.c (pex_win32_open_write): Likewise. 989 * pex-common.c (pex_run_in_environment): Likewise. 990 9912014-09-23 Iain Buclaw <ibuclaw@gdcproject.org> 992 993 * Makefile.in (CFILES): Add d-demangle.c. 994 (REQUIRED_OFILES): Add d-demangle.o. 995 * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case. 996 (cplus_demangle): Likewise. 997 * d-demangle.c: New file. 998 * testsuite/Makefile.in (really-check): Add check-d-demangle. 999 * testsuite/d-demangle-expected: New file. 1000 10012014-09-19 Ian Lance Taylor <iant@google.com> 1002 1003 * simple-object-elf.c (simple_object_elf_write_ehdr): Correctly 1004 handle objects with more than SHN_LORESERVE sections. 1005 (simple_object_elf_write_shdr): Add sh_link parameter. 1006 (simple_object_elf_write_to_file): Correctly handle objects with 1007 more than SHN_LORESERVE sections. 1008 10092014-08-29 Andrew Burgess <aburgess@broadcom.com> 1010 1011 * cp-demangle.c (d_dump): Only access field from s_fixed part of 1012 the union for DEMANGLE_COMPONENT_FIXED_TYPE. 1013 (d_count_templates_scopes): Likewise. 1014 10152014-08-13 Gary Benson <gbenson@redhat.com> 1016 1017 * testsuite/demangler-fuzzer.c: New file. 1018 * testsuite/Makefile.in (fuzz-demangler): New rule. 1019 (demangler-fuzzer): Likewise. 1020 (mostlyclean): Clean up demangler fuzzer. 1021 10222014-06-11 Andrew Burgess <aburgess@broadcom.com> 1023 1024 * cplus-dem.c (do_type): Call string_delete even if the call to 1025 demangle_template fails. 1026 10272014-06-01 Ray Donnelly <mingw.android@gmail.com> 1028 1029 * pex-win32.c (argv_to_cmdline): Don't quote 1030 args unnecessarily 1031 10322014-05-28 Pedro Alves <palves@redhat.com> 1033 1034 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM 1035 and DEMANGLE_COMPONENT_NUMBER. 1036 10372014-05-22 Thomas Schwinge <thomas@codesourcery.com> 1038 1039 * testsuite/demangle-expected: Fix last commit. 1040 10412014-05-14 Andrew Burgess <aburgess@broadcom.com> 1042 1043 * cplus-dmem.c (internal_cplus_demangle): Free any resources 1044 allocated by possible previous call to gnu_special. 1045 (squangle_mop_up): Reset pointers to NULL after calling free. 1046 * testsuite/demangle-expected: New test case. 1047 10482014-05-08 Gary Benson <gbenson@redhat.com> 1049 1050 * cp-demangle.c (struct d_component_stack): New structure. 1051 (struct d_print_info): New field component_stack. 1052 (d_print_init): Initialize the above. 1053 (d_print_comp_inner): Renamed from d_print_comp. 1054 Do not restore template stack if it would cause a loop. 1055 (d_print_comp): New function. 1056 * testsuite/demangle-expected: New test cases. 1057 10582014-04-17 Jakub Jelinek <jakub@redhat.com> 1059 1060 PR sanitizer/56781 1061 * maint-tool: Also emit rule for noasan/ subdirectory. 1062 * configure.ac (NOASANFLAG): Set and substitute. 1063 * Makefile.in: Regenerated. 1064 (NOASANFLAG): Set. 1065 (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic 1066 subdir. 1067 (stamp-noasandir): New goal. 1068 * configure: Regenerated. 1069 10702014-04-01 Richard Biener <rguenther@suse.de> 1071 1072 * simple-object.c (simple_object_internal_write): Handle 1073 EINTR and short writes. 1074 10752014-03-28 Richard Biener <rguenther@suse.de> 1076 1077 * simple-object.c (simple_object_internal_read): Handle 1078 EINTR and short reads. 1079 10802014-03-13 Uros Bizjak <ubizjak@gmail.com> 1081 1082 * regex.c (bzero) [!_LIBC]: Define without coma expression. 1083 (regerror): Cast the call to memcpy to (void) to avoid unused 1084 value warnings. 1085 10862014-01-28 Thomas Schwinge <thomas@codesourcery.com> 1087 1088 * cp-demangle.c (d_demangle_callback): Put an abort call in place, 1089 to help the compiler. 1090 10912014-01-21 Tom Tromey <tromey@redhat.com> 1092 1093 * _doprint.c (checkit): Use stdarg, not VA_* macros. 1094 * asprintf.c (asprintf): Use stdarg, not VA_* macros. 1095 * concat.c (concat_length, concat_copy, concat_copy2, concat) 1096 (reconcat): Use stdarg, not VA_* macros. 1097 * snprintf.c (snprintf): Use stdarg, not VA_* macros. 1098 * vasprintf.c (checkit): Use stdarg, not VA_* macros. 1099 * vsnprintf.c (checkit): Use stdarg, not VA_* macros. 1100 11012014-01-06 Mike Frysinger <vapier@gentoo.org> 1102 1103 PR other/56780 1104 * configure.ac: Delete target_header_dir assignment. 1105 * configure: Regenerated. 1106 11072014-01-06 Gary Benson <gbenson@redhat.com> 1108 1109 * cp-demangle.c (struct d_print_info): New fields 1110 next_saved_scope, copy_templates, next_copy_template and 1111 num_copy_templates. 1112 (d_count_templates): New function. 1113 (d_print_init): New parameter "dc". 1114 Estimate numbers of templates and scopes required. 1115 (d_print_free): Removed function. 1116 (cplus_demangle_print_callback): Allocate stack for 1117 templates and scopes. Removed call to d_print_free. 1118 (d_copy_templates): Removed function. 1119 (d_save_scope): New function. 1120 (d_get_saved_scope): Likewise. 1121 (d_print_comp): Replace state saving/restoring code with 1122 calls to d_save_scope and d_get_saved_scope. 1123 11242013-12-23 Bill Maddox <maddox@google.com> 1125 1126 * cp-demangle.c (cplus_demangle_fill_ctor,cplus_demangle_fill_dtor): 1127 Handle unified ctor/dtor. 1128 (d_ctor_dtor_name): Handle unified ctor/dtor. 1129 11302013-11-22 Cary Coutant <ccoutant@google.com> 1131 1132 PR other/59195 1133 * cp-demangle.c (struct d_info_checkpoint): New struct. 1134 (struct d_print_info): Add current_template field. 1135 (d_operator_name): Set flag when processing a conversion 1136 operator. 1137 (cplus_demangle_type): When processing <template-args> for 1138 a conversion operator, backtrack if necessary. 1139 (d_expression_1): Renamed from d_expression. 1140 (d_expression): New wrapper around d_expression_1. 1141 (d_checkpoint): New function. 1142 (d_backtrack): New function. 1143 (d_print_init): Initialize current_template. 1144 (d_print_comp): Set current_template. 1145 (d_print_cast): Put current_template in scope for 1146 printing conversion operator name. 1147 (cplus_demangle_init_info): Initialize is_expression and 1148 is_conversion. 1149 * cp-demangle.h (struct d_info): Add is_expression and 1150 is_conversion fields. 1151 * testsuite/demangle-expected: New test cases. 1152 11532013-11-15 Andreas Schwab <schwab@linux-m68k.org> 1154 1155 * configure: Regenerate. 1156 11572013-11-12 Uros Bizjak <ubizjak@gmail.com> 1158 1159 * cp-demangle.c (d_copy_templates): Cast result of malloc 1160 to (struct d_print_template *). 1161 (d_print_comp): Cast result of realloc to (struct d_saved scope *). 1162 11632013-10-29 Marc Glisse <marc.glisse@inria.fr> 1164 1165 PR tree-optimization/58689 1166 * concat.c: Remove note about xmalloc. 1167 11682013-10-27 Gerald Pfeifer <gerald@pfeifer.com> 1169 1170 * testsuite/test-demangle.c: Include unistd.h. 1171 11722013-10-25 Gary Benson <gbenson@redhat.com> 1173 1174 * cp-demangle.c (struct d_saved_scope): New structure. 1175 (struct d_print_info): New fields saved_scopes and 1176 num_saved_scopes. 1177 (d_print_init): Initialize the above. 1178 (d_print_free): New function. 1179 (cplus_demangle_print_callback): Call the above. 1180 (d_copy_templates): New function. 1181 (d_print_comp): New variables saved_templates and 1182 need_template_restore. 1183 [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]: 1184 Capture scope the first time the component is traversed, and use the 1185 captured scope for subsequent traversals. 1186 * testsuite/demangle-expected: Add regression test. 1187 11882013-10-23 Gerald Pfeifer <gerald@pfeifer.com> 1189 1190 * testsuite/test-expandargv.c: Include unistd.h. 1191 11922013-10-15 David Malcolm <dmalcolm@redhat.com> 1193 1194 * configure.ac: If --enable-host-shared, use -fPIC. 1195 * configure: Regenerate. 1196 11972013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com> 1198 1199 * cp-demangle.c (d_name): Demangle local-source-names. 1200 * testsuite/demangle-expected: New test. 1201 12022013-09-10 Paolo Carlini <paolo.carlini@oracle.com> 1203 1204 PR bootstrap/58386 1205 Revert: 1206 1207 2013-09-10 Gary Benson <gbenson@redhat.com> 1208 1209 * cp-demangle.c: Include hashtab.h. 1210 (struct d_print_info): New field saved_scopes. 1211 (d_print_init): Initialize the above. 1212 (d_print_free): New function. 1213 (cplus_demangle_print_callback): Call the above. 1214 (struct d_saved_scope): New structure. 1215 (d_store_scope): New function. 1216 (d_free_scope) Likewise. 1217 (d_restore_scope) Likewise. 1218 (d_hash_saved_scope) Likewise. 1219 (d_equal_saved_scope) Likewise. 1220 (d_print_comp): New variable saved_scope. 1221 [DEMANGLE_COMPONENT_REFERENCE, 1222 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first 1223 time the component is traversed, and use the captured scope for 1224 subsequent traversals. 1225 * testsuite/demangle-expected: Add regression test. 1226 12272013-09-10 Gary Benson <gbenson@redhat.com> 1228 1229 * cp-demangle.c: Include hashtab.h. 1230 (struct d_print_info): New field saved_scopes. 1231 (d_print_init): Initialize the above. 1232 (d_print_free): New function. 1233 (cplus_demangle_print_callback): Call the above. 1234 (struct d_saved_scope): New structure. 1235 (d_store_scope): New function. 1236 (d_free_scope) Likewise. 1237 (d_restore_scope) Likewise. 1238 (d_hash_saved_scope) Likewise. 1239 (d_equal_saved_scope) Likewise. 1240 (d_print_comp): New variable saved_scope. 1241 [DEMANGLE_COMPONENT_REFERENCE, 1242 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first 1243 time the component is traversed, and use the captured scope for 1244 subsequent traversals. 1245 * testsuite/demangle-expected: Add regression test. 1246 12472013-08-20 Alan Modra <amodra@gmail.com> 1248 1249 * floatformat.c (floatformat_ibm_long_double): Rename to.. 1250 (floatformat_ibm_long_double_big): ..this. 1251 (floatformat_ibm_long_double_little): New. 1252 12532013-07-09 Tristan Gingold <gingold@adacore.com> 1254 1255 * makefile.vms (OBJS): Add dwarfnames.obj 1256 12572013-05-31 Matt Burgess <matthew@linuxfromscratch.org> 1258 1259 PR other/56780 1260 * configure.ac: Move test for --enable-install-libiberty 1261 outside of the 'with_target_subdir' test so that it actually gets 1262 run. Add output messages to show the test result. 1263 * configure: Regenerate. 1264 * Makefile.in (install_to_libdir): Place the 1265 installation of the libiberty library in the same guard as that 1266 used for the headers to prevent it being installed unless 1267 requested via --enable-install-libiberty. 1268 12692013-05-06 David Edelsohn <dje.gcc@gmail.com> 1270 Peter Bergner <bergner@vnet.ibm.com> 1271 Segher Boessenkool <segher@kernel.crashing.org> 1272 Jakub Jelinek <jakub@redhat.com> 1273 1274 * hashtab.c (hash_pointer): Remove conditional and avoid 1275 unexecuted shift equal to wordsize. 1276 12772013-04-22 Andi Kleen <ak@linux.intel.com> 1278 1279 * hashtab.c (hash_pointer): Move to end of file and reimplement. 1280 12812013-04-03 Jason Merrill <jason@redhat.com> 1282 1283 * cp-demangle.c (cplus_demangle_type): Fix function quals. 1284 (d_pointer_to_member_type): Simplify. 1285 1286 Demangle C++11 ref-qualifier. 1287 * cp-demangle.c (d_ref_qualifier): New. 1288 (d_nested_name, d_function_type): Use it. 1289 (d_parmlist): Don't get confused by a ref-qualifier. 1290 (cplus_demangle_type): Reorder ref-qualifier. 1291 (d_pointer_to_member_type): Likewise. 1292 (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and 1293 DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS. 1294 (d_make_comp, has_return_type, d_encoding): Likewise. 1295 (d_print_comp, d_print_mod_list, d_print_mod): Likewise. 1296 (d_print_function_type, is_ctor_or_dtor): Likewise. 1297 12982013-03-27 Kai Tietz <ktietz@redhat.com> 1299 1300 * configure: Regenerated. 1301 13022013-03-06 Tobias Burnus <burnus@net-b.de> 1303 1304 * libiberty.texi: Update comment, remove lowersections. 1305 * obstacks.texi: Regenerate. 1306 13072013-03-05 Jakub Jelinek <jakub@redhat.com> 1308 1309 PR middle-end/56526 1310 * simple-object-mach-o.c (simple_object_mach_o_segment): Initialize 1311 wrapper_sect_offset to avoid a warning. 1312 13132013-03-01 Andreas Schwab <schwab@linux-m68k.org> 1314 1315 * obstacks.texi (Obstacks): Trim @node to only contain the 1316 node name. 1317 * libiberty.texi (Obstacks): Lower section. 1318 13192013-02-14 Jason Merrill <jason@redhat.com> 1320 1321 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG. 1322 (d_print_comp): Likewise. 1323 13242013-02-09 Jakub Jelinek <jakub@redhat.com> 1325 1326 PR other/56245 1327 * regex.c (PTR_INT_TYPE): Define. 1328 (EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE. 1329 13302013-01-31 Kai Tietz <ktietz@redhat.com> 1331 1332 PR other/54620 1333 * sha1.c (sha1_process_block): Handle case that size_t is 1334 a wider-integer-scalar as a 32-bit unsigned integer. 1335 1336 PR other/53413 1337 * md5.c (md5_process_block): Handle case that size_t is 1338 a wider-integer-scalar a 32-bit unsigned integer. 1339 13402013-01-04 Ian Lance Taylor <iant@google.com> 1341 1342 PR other/54800 1343 * simple-object-mach-o.c (simple_object_mach_o_segment): Don't 1344 bother to zero out a buffer we are about to set anyhow. 1345 13462013-01-01 David Edelsohn <dje.gcc@gmail.com> 1347 1348 * simple-object-xcoff.c: New file. 1349 * Makefile.in: Add it to build machinery. 1350 * simple-object-common.h (simple_object_xcoff_functions): Declare. 1351 * simple-object.c (format_functions): Add 1352 simple_object_xcoff_functions. 1353 13542012-11-10 Jason Merrill <jason@redhat.com> 1355 1356 * cp-demangle.c (d_unqualified_name): Handle abi tags here. 1357 (d_name): Not here. 1358 13592012-11-09 Jason Merrill <jason@redhat.com> 1360 1361 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_TAGGED_NAME. 1362 (d_make_comp, d_find_pack, d_print_comp): Likewise. 1363 (d_abi_tags): New. 1364 (d_name): Call it. 1365 13662012-10-08 Jason Merrill <jason@redhat.com> 1367 1368 * cp-demangle.c (d_special_name, d_dump): Handle TH and TW. 1369 (d_make_comp, d_print_comp): Likewise. 1370 13712012-09-18 Ian Lance Taylor <iant@google.com> 1372 1373 * strnlen.c: New file. 1374 * configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not 1375 present. 1376 * Makefile.in: Rebuild dependencies. 1377 (CFILES): Add strnlen.c. 1378 (CONFIGURED_OFILES): Add ./strnlen.$(objext). 1379 * configure, config.in, functions.texi: Rebuild. 1380 1381 * maint-tool: Accept .def files in the include directory. 1382 13832012-09-18 Florian Weimer <fweimer@redhat.com> 1384 1385 PR other/54411 1386 * objalloc.c (_objalloc_alloc): Add overflow check covering 1387 alignment and CHUNK_HEADER_SIZE addition. 1388 13892011-08-28 H.J. Lu <hongjiu.lu@intel.com> 1390 1391 * argv.c (dupargv): Replace malloc with xmalloc. Don't check 1392 xmalloc return. 1393 (buildargv): Likewise. Also replace strdup with xstrdup. 1394 (expandargv): Don't check dupargv return. 1395 13962011-08-28 H.J. Lu <hongjiu.lu@intel.com> 1397 1398 PR binutils/14526 1399 * argv.c (buildargv): Replace alloca with xmalloc/free. 1400 14012012-08-17 Andreas Schwab <schwab@linux-m68k.org> 1402 1403 * floatformat.c (floatformat_to_double): Correctly handle numbers 1404 between 1 and 2. Simplify handling of denormal number. 1405 (main): Test with 1.1. 1406 14072012-07-31 Mike Frysinger <vapier@gentoo.org> 1408 1409 * md5.c (md5_finish_ctx): Declare swap_bytes. Assign SWAP() output 1410 to swap_bytes, and then call memcpy to move it to ctx->buffer. 1411 14122012-07-26 Kazu Hirata <kazu@codesourcery.com> 1413 Sandra Loosemore <sandra@codesourcery.com> 1414 1415 * pex-win32.c (pex_win32_exec_child): Only close original file 1416 descriptors if child is launched successfully. 1417 14182012-07-18 Jason Merrill <jason@redhat.com> 1419 1420 * cp-demangle.c (cplus_demangle_operators): Add *_cast. 1421 (op_is_new_cast): New. 1422 (d_expression, d_print_comp): Check it. 1423 14242012-07-13 Doug Evans <dje@google.com> 1425 1426 * filename_cmp.c (filename_hash, filename_eq): New functions. 1427 14282012-06-29 Andreas Schwab <schwab@linux-m68k.org> 1429 1430 * copying-lib.texi (Library Copying): Don't use @heading inside 1431 @enumerate. 1432 14332012-05-22 Tom Tromey <tromey@redhat.com> 1434 1435 http://sourceware.org/bugzilla/show_bug.cgi?id=14065 1436 * testsuite/demangle-expected: Add regression test. 1437 * cp-demangle.c (d_find_pack): Return NULL for 1438 DEMANGLE_COMPONENT_UNNAMED_TYPE. 1439 14402012-04-27 Tom Tromey <tromey@redhat.com> 1441 1442 * dwarfnames.c: New file. 1443 * Makefile.in (CFILES): Add dwarfnames. 1444 (REQUIRED_OFILES): Add dwarfnames. 1445 (./dwarfnames.$(objext)): New target. 1446 14472012-04-04 Tristan Gingold <gingold@adacore.com> 1448 1449 * pex-unix.c (to_ptr32): Fix style. 1450 14512012-04-02 Tristan Gingold <gingold@adacore.com> 1452 1453 * stack-limit.c: Includes ansidecl.h. 1454 (stack_limit_increase): Add ATTRIBUTE_UNUSED 1455 14562012-03-20 Jason Merrill <jason@redhat.com> 1457 1458 * cp-demangle.c (cplus_demangle_type): Handle 'auto'. 1459 14602012-03-07 Jason Merrill <jason@redhat.com> 1461 1462 * cp-demangle.c (cplus_demangle_operators): Add li. 1463 (d_unqualified_name): Handle it specially. 1464 14652012-01-26 Jakub Jelinek <jakub@redhat.com> 1466 1467 * make-relative-prefix.c (make_relative_prefix_1): Avoid warning 1468 about using preprocessor directives inside of macro arguments. 1469 14702012-01-22 Douglas B Rupp <rupp@gnat.com> 1471 1472 * configure: Regenerate. 1473 14742012-01-10 Jason Merrill <jason@redhat.com> 1475 1476 * cp-demangle.c (d_print_comp) [DEMANGLE_COMPONENT_OPERATOR]: 1477 Omit a trailing space in the operator name. 1478 14792012-01-06 Jason Merrill <jason@redhat.com> 1480 1481 PR c++/6057 1482 PR c++/48051 1483 PR c++/50855 1484 PR c++/51322 1485 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and 1486 DEMANGLE_COMPONENT_INITIALIZER_LIST. 1487 (d_make_comp): Likewise. Allow null right arg for 1488 DEMANGLE_COMPONENT_TRINARY_ARG2. 1489 (cplus_demangle_operators): Adjust new/delete; add .*, :: and throw. 1490 (d_template_args, d_template_arg): Handle 'J' for argument packs. 1491 (d_exprlist): Add terminator parm. 1492 (d_expression, d_print_comp): Handle initializer lists, nullary 1493 expressions, prefix/suffix operators, and new. 1494 (d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME 1495 and DEMANGLE_COMPONENT_INITIALIZER_LIST. 1496 * testsuite/demangle-expected: Add tests. 1497 1498 * cp-demangle.c (cplus_demangle_type): decltype, pack expansion 1499 and vector are substitutable. 1500 (cplus_demangle_operators): Sort. 1501 15022012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 1503 1504 * configure: Regenerate. 1505 15062012-01-02 Jakub Jelinek <jakub@redhat.com> 1507 1508 * make-relative-prefix.c (make_relative_prefix_1): Avoid 1509 stack overflow if PATH contains just a single entry and 1510 HOST_EXECUTABLE_SUFFIX needs to be used. 1511 1512 PR driver/48306 1513 * make-relative-prefix.c: Include sys/stat.h. 1514 (make_relative_prefix_1): If access succeeds, check also stat 1515 if nstore is a regular file. 1516 15172011-12-20 Andreas Schwab <schwab@linux-m68k.org> 1518 1519 * configure: Regenerate. 1520 15212011-12-20 Tristan Gingold <gingold@adacore.com> 1522 1523 * aclocal.m4: Assume strncmp works in cross case. 1524 * configure: Regenerate 1525 15262011-12-19 Andreas Schwab <schwab@linux-m68k.org> 1527 1528 * configure: Regenerate. 1529 15302011-11-07 Richard Henderson <rth@redhat.com> 1531 1532 Merged from transactional-memory. 1533 1534 * cp-demangle.c (cplus_demangle_fill_ctor): Accept 1535 gnu_v3_object_ctor_group. 1536 (cplus_demangle_fill_dtor): Accept gnu_v3_object_dtor_group. 1537 (d_ctor_dtor_name): Recognize gnu_v3_object_ctor_group 1538 and gnu_v3_object_dtor_group. 1539 (d_dump): Handle DEMANGLE_COMPONENT_TRANSACTION_CLONE 1540 and DEMANGLE_COMPONENT_NONTRANSACTION_CLONE. 1541 (d_make_comp, d_print_comp): Likewise. 1542 (d_special_name): Generate them. 1543 15442011-11-04 Jason Merrill <jason@redhat.com> 1545 1546 PR c++/48370 1547 * cp-demangle.c (d_special_name, d_print_comp): Handle a 1548 discriminator number on DEMANGLE_COMPONENT_REFTEMP. 1549 15502011-11-02 Doug Evans <dje@google.com> 1551 1552 * Makefile.in (CFILES): Add timeval-utils.c. 1553 (REQUIRED_OFILES): Add timeval-utils.$(objext). 1554 (INSTALLED_HEADERS): Add timeval-utils.h. 1555 (timeval-utils.$(objext)): Add rule. 1556 15572011-10-28 Ian Lance Taylor <iant@google.com> 1558 1559 * setproctitle.c (setproctitle): Use "GNU/Linux" in comment. 1560 15612011-10-26 Iain Sandoe <iains@gcc.gnu.org> 1562 1563 PR target/48108 1564 * simple-object-mach-o.c (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX, 1565 GNU_WRAPPER_NAMES): New macros. 1566 (simple_object_mach_o_segment): Handle wrapper scheme. 1567 (simple_object_mach_o_write_section_header): Allow the segment name 1568 to be supplied. 1569 (simple_object_mach_o_write_segment): Handle wrapper scheme. Ensure 1570 that the top-level segment name in the load command is empty. 1571 (simple_object_mach_o_write_to_file): Determine the number of 1572 sections during segment output, use that in writing the header. 1573 15742011-10-10 Ian Lance Taylor <iant@google.com> 1575 1576 PR c++/48665 1577 * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a 1578 function type, change them to apply to the "this" parameter. 1579 * testsuite/demangle-expected: Add test case. 1580 15812011-09-28 Doug Evans <dje@google.com> 1582 1583 * timeval-utils.c: New file. 1584 1585 * argv.c (countargv): New function. 1586 15872011-09-23 Cary Coutant <ccoutant@google.com> 1588 1589 PR 40831 1590 * cp-demangle.c (d_make_comp): Add new component type. 1591 (cplus_demangle_mangled_name): Check for clone suffixes. 1592 (d_parmlist): Don't error out if we see '.'. 1593 (d_clone_suffix): New function. 1594 (d_print_comp): Print info for clone suffixes. 1595 * testsuite/demangle-expected: Add new testcases. 1596 15972011-09-23 Ian Lance Taylor <iant@google.com> 1598 Pierre Vittet <piervit@pvittet.com> 1599 1600 * md5.c (md5_process_bytes): Correct handling of unaligned 1601 buffer. 1602 16032011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 1604 1605 * aclocal.m4: Include ../config/picflag.m4. 1606 * configure.ac (GCC_PICFLAG): Call it. 1607 (enable_shared): Clear PICFLAG unless shared. 1608 * configure: Regenerate. 1609 16102011-08-12 Steve Ellcey <sje@cup.hp.com> 1611 1612 * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer. 1613 16142011-08-06 Uros Bizjak <ubizjak@gmail.com> 1615 1616 * testsuite/test-expandargv.c (writeout_test): Check result of fwrite. 1617 16182011-08-01 Jason Merrill <jason@redhat.com> 1619 1620 PR c++/49932 1621 * cp-demangle.c (d_prefix): Handle decltype. 1622 * testsuite/demangle-expected: Test it. 1623 16242011-07-26 H.J. Lu <hongjiu.lu@intel.com> 1625 1626 * testsuite/demangle-expected: Remove an extra line. 1627 16282011-07-26 Ian Lance Taylor <iant@google.com> 1629 1630 * cp-demangle.c (d_print_init): Initialize pack_index field. 1631 (d_print_comp): Check for NULL template argument. 1632 * testsuite/demangle-expected: Add test case. 1633 16342011-07-22 Gerald Pfeifer <gerald@pfeifer.com> 1635 1636 PR target/49817 1637 * stack-limit.c: Include <stdint.h>. 1638 16392011-07-22 Jakub Jelinek <jakub@redhat.com> 1640 1641 PR c++/49756 1642 * stack-limit.c: New file. 1643 * Makefile.in: Regenerate deps. 1644 (CFILES): Add stack-limit.c. 1645 (REQUIRED_OFILES): Add ./stack-limit.$(objext). 1646 * configure.ac (checkfuncs): Add getrlimit and setrlimit. 1647 (AC_CHECK_FUNCS): Likewise. 1648 * configure: Regenerated. 1649 * config.in: Regenerated. 1650 16512011-07-04 Jason Merrill <jason@redhat.com> 1652 1653 * cp-demangle.c (d_expression): Handle 'this'. 1654 (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise. 1655 16562011-07-01 Joel Brobecker <brobecker@adacore.com> 1657 1658 * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of 1659 HAVE_CASE_INSENSITIVE_FILE_SYSTEM. 1660 16612011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> 1662 1663 PR debug/49408 1664 * cp-demangle.c (d_print_comp): Suppress argument list for function 1665 references by the '&' unary operator. Keep also already processed 1666 variant without the argument list. Suppress argument list types for 1667 function call used in an expression. 1668 * testsuite/demangle-expected: Fix excessive argument list types in 1669 `test for typed function in decltype'. New testcase for no argument 1670 list types printed. 3 new testcases for function references by the 1671 '&' unary operator.. 1672 16732011-06-20 Jason Merrill <jason@redhat.com> 1674 1675 PR c++/37089 1676 * cp-demangle.c (d_print_comp): Handle reference smashing. 1677 * testsuite/demangle-expected: Test it. 1678 16792011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com> 1680 1681 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: 1682 Suppress d_print_mod for DMGL_RET_POSTFIX. 1683 * testsuite/demangle-expected: New testcases for --ret-postfix. 1684 16852011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com> 1686 1687 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do 1688 not pass DMGL_RET_POSTFIX or DMGL_RET_DROP. Support DMGL_RET_DROP. 1689 * testsuite/demangle-expected: New testcases for --ret-drop. 1690 * testsuite/test-demangle.c: Document --ret-drop in a comment. 1691 (main): New variable ret_drop, fill it, call cplus_demangle with it. 1692 16932011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com> 1694 1695 * cp-demangle.c (struct d_print_info): Remove field options. 1696 (d_print_init): Remove parameter options. 1697 (cplus_demangle_print_callback): Update all the callers. 1698 (d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type) 1699 (d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr): 1700 Add parameter options, update all the callers. 1701 17022011-04-20 Jim Meyering <meyering@redhat.com> 1703 1704 * cp-demint.c (cplus_demangle_v3_components): Remove useless 1705 if-before-free. 1706 * cplus-dem.c (squangle_mop_up): Likewise. 1707 (delete_non_B_K_work_stuff): Likewise. 1708 * pex-common.c (pex_free): Likewise. 1709 * pex-msdos.c (pex_msdos_cleanup): Likewise. 1710 * pex-win32.c (mingw_rootify, msys_rootify): Likewise. 1711 (win32_spawn): Likewise. 1712 * regex.c (FREE_VAR, weak_alias): Likewise. 1713 * spaces.c (spaces): Likewise. 1714 17152011-04-10 Jim Meyering <meyering@redhat.com> 1716 1717 Avoid memory overrun in a test leading to potential double-free. 1718 * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error: 1719 i.e., do copy the trailing NUL byte. 1720 17212011-03-31 Tristan Gingold <gingold@adacore.com> 1722 1723 * makefile.vms (OBJS): Add filename_cmp.obj 1724 17252011-02-28 Kai Tietz <kai.tietz@onevision.com> 1726 1727 * filename_cmp.c (filename_ncmp): New function. 1728 * functions.texi: Regenerated. 1729 17302011-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1731 1732 * splay-tree.c: Escape wrapping newlines in texinfo markup 1733 with '@', to fix function declaration output rendering. 1734 * gather-docs: Relax and improve macro name matching to actually 1735 match all current names and to allow input line wrapping. 1736 * bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c, 1737 hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c, 1738 memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c, 1739 pexecute.txh, random.c, setenv.c, setproctitle.c, 1740 simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c, 1741 strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c: 1742 Wrap long texinfo input lines. 1743 * functions.texi: Regenerate. 1744 17452011-01-18 Mike Frysinger <vapier@gentoo.org> 1746 1747 * .gitignore: New file. 1748 17492010-12-08 Doug Evans <dje@google.com> 1750 1751 * splay-tree.c (splay_tree_foreach_helper): Remove arg `sp', 1752 all callers updated. Rewrite to be non-recursive. 1753 17542010-11-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 1755 1756 * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>. 1757 17582010-11-20 Anthony Green <green@moxielogic.com> 1759 1760 * configure.ac: Turn PR_SET_NAME link test into a test for 1761 sys/prctl.h. 1762 * configure, config.in: Rebuilt. 1763 * setproctitle.c: Test for HAVE_SYS_PRCTL_H. 1764 (setproctitle) Test for PR_SET_NAME definition. 1765 17662010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1767 1768 PR other/46202 1769 * Makefile.in (install-strip): New phony target. 1770 (install): Also mark as phony. 1771 17722010-11-16 Ian Lance Taylor <iant@google.com> 1773 1774 * simple-object.c (simple_object_attributes_merge): Rename from 1775 simple_object_attributes_compare. Call merge field. 1776 * simple-object-common.h (struct simple_object_functions): Rename 1777 attributes_compare field to attribute_merge. 1778 * simple-object-elf.c (EM_SPARC): Define. 1779 (EM_SPARC32PLUS): Define. 1780 (simple_object_elf_attributes_merge): Renamed from 1781 simple_object_elf_attributes_compare. Permit EM_SPARC and 1782 EM_SPARC32PLUS objects to be merged. 1783 (simple_object_elf_functions): Update function name. 1784 * simple-object-coff.c (simple_object_coff_attributes_merge): 1785 Rename from simple_object_coff_attributes_compare. 1786 (simple_object_coff_functions): Update function name. 1787 * simple-object-mach-o.c (simple_object_mach_o_attributes_merge): 1788 Renamed from simple_object_mach_o_attributes_compare. 1789 (simple_object_mach_o_functions): Update function name. 1790 17912010-11-16 H.J. Lu <hongjiu.lu@intel.com> 1792 1793 PR other/42670 1794 PR binutils/11137 1795 * cp-demangle.c (d_make_demangle_mangled_name): New. 1796 (d_demangle_callback): Use it on DCT_GLOBAL_XTORS. 1797 1798 * testsuite/demangle-expected: Updated. 1799 18002010-11-14 Kai Tietz <kai.tietz@onevision.com> 1801 1802 * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading 1803 offset. 1804 18052010-11-12 Ian Lance Taylor <iant@google.com> 1806 1807 PR other/46332 1808 * cp-demangle.c (d_print_function_type): Don't print parentheses 1809 if there are no modifiers to print. 1810 * testsuite/demangle-expected: Tweak one test case, add another. 1811 18122010-11-04 Richard Henderson <rth@redhat.com> 1813 1814 * configure.ac (AC_CHECK_HEADERS): Add process.h. 1815 (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list. 1816 (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe. 1817 * configure, config.in: Rebuild. 1818 * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function. 1819 [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions. 1820 18212010-11-02 Ian Lance Taylor <iant@google.com> 1822 Dave Korn <dave.korn.cygwin@gmail.com> 1823 Iain Sandoe <iains@gcc.gnu.org> 1824 1825 * simple-object.c: New file. 1826 * simple-object-common.h: New file. 1827 * simple-object-elf.c: New file. 1828 * simple-object-mach-o.c: New file. 1829 * simple-object-coff.c: New file. 1830 * simple-object.txh: New file. 1831 * configure.ac: Add AC_TYPE_SSIZE_T. 1832 * Makefile.in: Rebuild dependencies. 1833 (CFILES): Add simple-object.c, simple-object-coff, 1834 simple-object-elf.c, and simple-object-mach-o.c. 1835 (REQUIRED_OFILES): Add corresponding object files. 1836 * configure: Rebuild. 1837 * config.in: Rebuild. 1838 * functions.texi: Rebuild. 1839 18402010-10-29 Ian Lance Taylor <iant@google.com> 1841 1842 * setproctitle.c: Add space after function name in @deftypefn 1843 comment. 1844 * functions.texi: Rebuild. 1845 18462010-10-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1847 1848 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete. 1849 * configure: Regenerate. 1850 18512010-10-07 Andi Kleen <ak@linux.intel.com> 1852 1853 * configure: Regenerate. 1854 * configure.ac: Turn PR_SET_NAME check into link check. 1855 18562010-10-06 Andi Kleen <ak@linux.intel.com> 1857 1858 * Makefile.in (CFILES): Add setproctitle. 1859 (CONFIGURED_OFILES): Add setproctitle. 1860 (setproctitle): Add rule. 1861 * config.in: Regenerate. 1862 * configure: Regenerate. 1863 * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle. 1864 * setproctitle.c: Add file. 1865 * functions.texi: Regenerate. 1866 18672010-09-22 Tristan Gingold <gingold@adacore.com> 1868 1869 * cplus-dem.c (ada_demangle): Add comments. 1870 Handle stream and controlled type operations. 1871 Decoding of some uppercase letters moved before separators. 1872 * testsuite/demangle-expected: Add tests. 1873 18742010-09-10 James Lyon <jameslyon0@googlemail.com> 1875 1876 http://sourceware.org/bugzilla/show_bug.cgi?id=11572 1877 * cp-demangle.c (d_find_pack): Add case for 1878 DEMANGLE_COMPONENT_LAMBDA. 1879 * testsuite/demangle-expected: Add regression test. 1880 18812010-09-08 Tristan Gingold <gingold@adacore.com> 1882 1883 PR 44001 1884 * maint-tool (missing): Fix pattern for object file. 1885 (deps): Use $(objext) for object extension. 1886 * Makefile.in (objext): New variable. 1887 Replace all occurences of .o with .$(objext) 1888 Regenerate with maint-deps 1889 * configure.ac (pexecute): Set to the basename. 1890 * configure: Regenerate. 1891 18922010-08-20 Maciej W. Rozycki <macro@codesourcery.com> 1893 1894 * pex-common.c (pex_read_err): Set stderr_pipe to -1 if a 1895 corresponding stream has been opened. 1896 (pex_free): Close pipe file descriptors corresponding to child's 1897 stdout and stderr before waiting. 1898 18992010-08-13 Nick Clifton <nickc@redhat.com> 1900 1901 * argv.c (expandargv): Limit the number of times that response 1902 files are opened in order to prevent infinite recursion. 1903 19042010-07-21 Pascal Obry <obry@adacore.com> 1905 1906 * make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed. 1907 19082010-07-06 Ken Werner <ken.werner@de.ibm.com> 1909 1910 * floatformat.c (floatformat_ieee_half_big): New variable. 1911 (floatformat_ieee_half_little): Likewise. 1912 19132010-06-14 Gerald Pfeifer <gerald@pfeifer.com> 1914 1915 * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice). 1916 Update copyright years. 1917 Move to GFDL 1.3. 1918 19192010-06-10 Jakub Jelinek <jakub@redhat.com> 1920 1921 PR other/43838 1922 * cp-demangle.c (struct d_print_info): Add flush_count field. 1923 (d_print_init): Initialize it to 0. 1924 (d_print_flush): Increment it. 1925 (d_print_comp): If needed flush before appending ", ". Only 1926 decrement dpi->len if no flushes happened during the recursive 1927 call. 1928 * testsuite/demangle-expected: Add a test for this. 1929 19302010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> 1931 1932 * splay-tree.c: Update copyright years. 1933 (splay_tree_new_typed_alloc): New. 1934 (splay_tree_new_with_allocator): Use it. 1935 1936 * hashtab.c: Update copyright years. 1937 (htab_create_typed_alloc): New. 1938 (htab_create_alloc): Use it. 1939 1940 * functions.texi: Regenerate. 1941 19422010-06-03 Joern Rennecke <joern.rennecke@embecosm.com> 1943 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1944 1945 PR bootstrap/42798 1946 * configure.ac: Check for declaration of 'basename(char *)'. 1947 * configure: Regenerate. 1948 19492010-05-26 Kai Tietz <kai.tietz@onevision.com> 1950 1951 * testsuite/demangle-expected: Add tests for __int128 1952 and unsigned __int128 types. 1953 19542010-05-06 Magnus Fromreide <magfr@lysator.liu.se> 1955 Jason Merrill <jason@redhat.com> 1956 1957 * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr. 1958 (cplus_demangle_type): Handle nullptr. 1959 * testsuite/demangle-expected: Test it. 1960 19612010-04-23 Pedro Alves <pedro@codesourcery.com> 1962 1963 * lbasename.c (lbasename): Split into ... 1964 (unix_lbasename, dos_basename): ... these. 1965 (lbasename): ... and reimplement on top of them. 1966 * Makefile.in (lbasename.o): Add dependency on 1967 $(INCDIR)/filenames.h. 1968 19692010-04-07 Jakub Jelinek <jakub@redhat.com> 1970 1971 * regex.c (byte_re_match_2_internal): Avoid set but not used 1972 warning. 1973 19742010-03-22 Jason Merrill <jason@redhat.com> 1975 1976 * cp-demangle.c (d_print_mod): Use () rather than [] for vectors. 1977 19782010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1979 1980 * Makefile.in (all): Do not use exec. 1981 19822010-02-04 Tom Tromey <tromey@redhat.com> 1983 1984 * testsuite/demangle-expected: Add missing --format=gnu-v3. 1985 19862010-02-03 Jason Merrill <jason@redhat.com> 1987 1988 * cp-demangle.c (d_expression): Handle dependent operator name. 1989 1990 PR c++/12909 1991 * cp-demangle.c (d_number_component, d_vector_type): New. 1992 (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors. 1993 19942010-01-25 Ian Lance Taylor <iant@google.com> 1995 1996 * cp-demangle.c (cplus_demangle_type): Check for invalid type 1997 after "DF". 1998 * testsuite/demangle-expected: Add test. 1999 20002010-01-20 Jason Merrill <jason@redhat.com> 2001 2002 PR c++/42338 2003 * cp-demangle.c (d_print_comp): Fix array index printing. 2004 20052010-01-11 Tristan Gingold <gingold@adacore.com> 2006 2007 * cplus-dem.c (ada_demangle): Remove prototype. 2008 (grow_vect): Removed. 2009 (ada_demangle): Rewritten. 2010 (cplus_demangle): Fix indentation. 2011 * testsuite/demangle-expected: Add tests for Ada. 2012 20132010-01-09 Ian Lance Taylor <iant@google.com> 2014 2015 PR other/42230 2016 * cp-demangle.c (d_demangle): Return dgs.alc on success. 2017 20182010-01-04 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> 2019 2020 PR target/42316 2021 * configure.ac (PICFLAG): Use -fPIC on SH hosts. 2022 * configure: Regenerate. 2023 20242009-12-07 Doug Evans <dje@google.com> 2025 2026 * pex-unix.c (pex_unix_exec_child): Save/restore environ. 2027 20282009-11-26 Ben Elliston <bje@au.ibm.com> 2029 2030 * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order. 2031 * configure: Regenerate. 2032 20332009-11-25 Ben Elliston <bje@au.ibm.com> 2034 2035 * functions.texi: Rebuild. 2036 20372009-11-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 2038 Ben Elliston <bje@au.ibm.com> 2039 2040 * README: Mention changes to Makefile.in and functions.texi. 2041 * gather-docs: Mention 'make stamp-functions' in the header. 2042 20432009-11-23 Ben Elliston <bje@au.ibm.com> 2044 Ian Lance Taylor <iant@google.com> 2045 2046 * pex-unix.c (pex_child_error): Improve warning avoidance by 2047 checking the results of write(3) and exiting with -2 if any write 2048 returns a negative value. 2049 20502009-11-22 Steve Ward <planet36@gmail.com> 2051 2052 * dyn-string.c (dyn_string_append_char): Fix typo in comment. 2053 20542009-11-20 Ben Elliston <bje@au.ibm.com> 2055 2056 * pex-unix.c (pex_child_error): Define writeerr macro to avoid 2057 unused result warnings from write(3) calls. Undefine writeerr 2058 after all uses. 2059 20602009-10-08 Daniel Gutson <dgutson@codesourcery.com> 2061 Daniel Jacobowitz <dan@codesourcery.com> 2062 Pedro Alves <pedro@codesourcery.com> 2063 2064 * argv.c (consume_whitespace): New function. 2065 (only_whitespace): New function. 2066 (buildargv): Always use ISSPACE by calling consume_whitespace. 2067 (expandargv): Skip empty files. Do not stop at the first empty 2068 argument (calling only_whitespace).. 2069 * testsuite/test-expandargv.c: (test_data): Test empty lines 2070 and empty arguments. 2071 (run_tests): Fix false positives due to shorter arguments. 2072 20732009-09-30 Martin Thuresson <martint@google.com> 2074 2075 * regex.c (byte_re_match_2_internal): Split declaration and 2076 assignment to avoid -Wc++-compat warning due to goto. 2077 20782009-09-29 Jason Merrill <jason@redhat.com> 2079 2080 * Makefile.in: Enable demangle target. 2081 * cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New. 2082 (d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas. 2083 (d_parmlist): Factor out from d_bare_function_type. 2084 (d_compact_number): Factor out from d_template_param and d_expression. 2085 (d_append_num): Factor out from d_print_comp. 2086 (d_print_comp, d_print_mod_list): Handle lambdas. 2087 * testsuite/demangle-expected: Add lambda tests. 2088 20892009-09-23 Matthew Gingell <gingell@adacore.com> 2090 2091 * cplus-dem.c (ada_demangle): Ensure demangled is freed. 2092 20932009-09-22 Ozkan Sezer <sezeroz@gmail.com> 2094 2095 * choose-temp.c: Include unistd.h for mingw targets. 2096 20972009-09-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2098 2099 * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>. 2100 21012009-09-15 Tristan Gingold <gingold@adacore.com> 2102 2103 * config.h-vms (intptr_t): Define to compile hashtab.c 2104 21052009-09-04 Ozkan Sezer <sezeroz@gmail.com> 2106 2107 PR target/39065 2108 * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t 2109 with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T. 2110 * config.in: Regenerated. 2111 * configure: Regenerated. 2112 21132009-09-03 Ozkan Sezer <sezeroz@gmail.com> 2114 2115 PR target/39065 2116 * configure.ac: Also check for intptr_t. 2117 * config.h.in: Regenerated. 2118 * configure: Regenerated. 2119 * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t 2120 instead of of long. 2121 21222009-09-02 Tristan Gingold <gingold@adacore.com> 2123 2124 * vmsbuild.com: Removed as unused and superceeded by makefile.vms. 2125 * makefile.vms: Ported to Itanium VMS. Remove useless targets and 2126 dependencies. Remove unused FORMAT variable. 2127 * configure.com: New file to create build.com DCL script for 2128 Itanium VMS or Alpha VMS. 2129 21302009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2131 2132 * configure.ac (AC_PREREQ): Bump to 2.64. 2133 21342009-08-23 H.J. Lu <hongjiu.lu@intel.com> 2135 2136 PR ld/10536 2137 * Makefile.in (install-html-recursive): Removed. 2138 21392009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2140 2141 * config.in: Regenerate. 2142 * configure: Regenerate. 2143 21442009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2145 2146 * Makefile.in (AUTOCONF, configure_deps): New variables. 2147 ($(srcdir)/configure): New rule, active only in maintainer mode. 2148 21492009-07-29 Douglas B Rupp <rupp@gnat.com> 2150 2151 * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS. 2152 21532009-07-27 Douglas B Rupp <rupp@gnat.com> 2154 2155 * pex-unix.c (vfork): Remove VMS specific definition (get from header 2156 file instead). 2157 (to_ptr32): New function. 2158 (pex_unix_exec_child): Use it. 2159 21602009-07-24 Ian Lance Taylor <iant@google.com> 2161 2162 PR bootstrap/40854 2163 * crc32.c (xcrc32): Rename from crc32. 2164 21652009-07-24 Ian Lance Taylor <iant@google.com> 2166 2167 * crc32.c: New file. 2168 * Makefile.in: Rebuild dependencies. 2169 (CFILES): Add crc32.c. 2170 (REQUIRED_OFILES): Add ./crc32.o. 2171 * functions.texi: Rebuild. 2172 21732009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com> 2174 2175 * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>) 2176 (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New. 2177 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>) 2178 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New. 2179 (d_demangle_callback): The variable type is now declared as enum. 2180 Replace parser of _GLOBAL_ symbols by a d_make_comp call. 2181 21822009-06-21 Jakub Jelinek <jakub@redhat.com> 2183 2184 * hashtab.c (htab_traverse): Don't call htab_expand for 2185 nearly empty hashtabs with sizes 7, 13 or 31. 2186 21872009-06-16 Nick Clifton <nickc@redhat.com> 2188 2189 PR 10197 2190 * testsuite/test-demangle.c: Rename getline to get_line to avoid 2191 conflicts with system function of the same name. 2192 21932009-05-30 Eli Zaretskii <eliz@gnu.org> 2194 2195 * snprintf.c: Doc fix. 2196 2197 * vsnprintf.c: Doc fix. 2198 21992009-05-29 Kai Tietz <kai.tietz@onevision.com> 2200 2201 * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false. 2202 22032009-05-29 Michael Matz <matz@suse.de> 2204 2205 * fibheap.c (fibheap_replace_key_data): Make sure we don't early 2206 out when forcing the minimum. 2207 (fibheap_delete_node): Assert that we managed to force the minimum. 2208 22092009-05-25 Tristan Gingold <gingold@adacore.com> 2210 2211 * config.h-vms: Rewritten. Define configure macros. 2212 Use DEC-C builtin alloca. 2213 2214 * makefile.vms (OBJS): Update list. 2215 (OPT): New variable. 2216 (CFLAGS): Update compilation flags. 2217 (libiberty.olb): Do not depend on alloca-conf.h anymore. 2218 22192009-05-19 Ian Lance Taylor <iant@google.com> 2220 Ben Elliston <bje@au.ibm.com> 2221 2222 * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug. 2223 (cplus_demangle_fill_dtor): Likewise. 2224 22252009-05-17 Julian Brown <julian@codesourcery.com> 2226 2227 * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing 2228 standard handles (stdin, stdout, stderr) in parent. 2229 22302009-04-29 Julian Brown <julian@codesourcery.com> 2231 2232 * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT. 2233 (pex_win32_exec_child): Ensure each process has only one handle open 2234 on pipe endpoints. Close standard input after creating child for 2235 symmetry with standard output/standard error. 2236 22372009-04-25 Eli Zaretskii <eliz@gnu.org> 2238 2239 * Makefile.in (needed-list): Target removed (not used in GCC 2240 3.0 and later). All references deleted. 2241 (mostlyclean): Remove references to needed.awk and needed2.awk. 2242 22432009-04-14 Eli Zaretskii <eliz@gnu.org> 2244 2245 * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of 2246 existing and required library functions to with_target_subdir 2247 section, so that the native build does detect them at configure 2248 time. 2249 * configure: Regenerated. 2250 22512009-04-13 Ozkan Sezer <sezeroz@gmail.com> 2252 2253 PR target/39397 2254 * pex-common.h (struct pex_obj): Store pid values as pid_t, 2255 not as long (members *children and (*wait)) 2256 * pex-common.c (pex_run_in_environment): Likewise. 2257 * pex-win32.c (pex_win32_wait): Return pid_t and properly check 2258 returned pid value. 2259 * pex-djgpp.c (pex_djgpp_wait): Return pid_t. 2260 * pex-msdos.c (pex_msdos_wait): Likewise. 2261 22622009-04-07 Arnaud Patard <apatard@mandriva.com> 2263 2264 * configure.ac: Fix Linux/MIPS matching rule. 2265 * configure: Regenerate. 2266 22672009-03-27 Ian Lance Taylor <iant@google.com> 2268 2269 * memmem.c: New file, from gnulib. 2270 * configure.ac: Add memmem to list of functions provided if they 2271 are not available on the host. 2272 * Makefile.in: Rebuild dependencies. 2273 (CFILES): Add memmem.c. 2274 (CONFIGURED_OFILES): Add memmem.o. 2275 * configure, config.in, functions.texi: Rebuild. 2276 22772009-03-23 Jason Merrill <jason@redhat.com> 2278 2279 * cp-demangle.c (d_expression): Handle pack expansion. 2280 (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM. 2281 (d_print_subexpr): Don't wrap function parms in (). 2282 (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle 2283 not finding a pack. 2284 22852009-03-17 Jason Merrill <jason@redhat.com> 2286 2287 * cp-demangle.c (d_make_function_param): new fn. 2288 (cplus_demangle_mangled_name): Work around abi v2 bug. 2289 (d_expr_primary): Likewise. 2290 (cplus_demangle_operators): Add alignof ops. 2291 (d_expression): Handle function parameters and conversions 2292 with other than 1 operand. 2293 (d_print_comp): Handle function parameters. Fix bug with 2294 function used in type of function. 2295 * testsuite/demangle-expected: Update tests. 2296 22972009-02-21 Mark Mitchell <mark@codesourcery.com> 2298 2299 * make-temp-file.c (<windows.h>): Include on Windows. 2300 (choose_tmpdir): On Windows, use GetTempPath. 2301 23022009-01-18 Dave Korn <dave.korn.cygwin@gmail.com> 2303 2304 * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin, 2305 as it no longer shares libiberty object files. 2306 * configure: Regenerated. 2307 23082009-01-07 Jason Merrill <jason@redhat.com> 2309 2310 * cp-demangle.c (d_expression): Remove mangling for zero-op casts. 2311 23122009-01-06 Ben Elliston <bje@au.ibm.com> 2313 2314 * cp-demangle.c (cplus_demangle_type): Return NULL if the 2315 character following a 'D' cannot be recognised. 2316 23172008-12-18 Jason Merrill <jason@redhat.com> 2318 2319 PR c++/38561 2320 * cp-demangle.c (d_expression, d_print_comp): Revert 2321 cast changes. 2322 23232008-12-17 Jason Merrill <jason@redhat.com> 2324 2325 * cp-demangle.c (d_expression): Handle rvalue stubs too. 2326 [DEMANGLE_COMPONENT_CAST]: Update mangling. 2327 (d_print_comp): Avoid extra ", " with empty template argument packs. 2328 Remove handling for obsolete T() mangling. 2329 23302008-12-10 Jason Merrill <jason@redhat.com> 2331 2332 * cp-demangle.c (cplus_demangle_type): Support fixed-point types. 2333 (d_print_comp, d_dump): Likewise. 2334 23352008-10-22 Daniel Jacobowitz <dan@codesourcery.com> 2336 2337 * Makefile.in (CPPFLAGS): Define. 2338 (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS. 2339 23402008-10-15 Paolo Bonzini <bonzini@gnu.org> 2341 2342 PR bootstrap/37137 2343 * Makefile.in (LIBCFLAGS): Remove. 2344 (FLAGS_TO_PASS): Don't mention it. 2345 (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS. 2346 23472008-10-08 David Edelsohn <edelsohn@gnu.org> 2348 2349 * xstrdup.c: Include <sys/types.h> after "config.h" 2350 23512008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com> 2352 2353 * configure.ac: Call AC_SYS_LARGEFILE. 2354 * config.in: Regenerated. 2355 * configure: Likewise. 2356 23572008-10-06 Jason Merrill <jason@redhat.com> 2358 2359 * cp-demangle.c (struct d_print_info): Add pack_index. 2360 (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION. 2361 (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and 2362 DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args. 2363 (cplus_demangle_builtin_types): Add char16/32_t. 2364 (cplus_demangle_type): Recognize them. 2365 (d_template_args): Handle empty argument packs. 2366 (d_template_arg): Handle argument packs. 2367 (d_expression): Handle dependent name. 2368 (d_index_template_argument): New fn. 2369 (d_lookup_template_argument): New fn. 2370 (d_find_pack, d_pack_length): New fn. 2371 (d_print_subexpr): Split out... 2372 (d_print_comp): ...from here. Use d_*_template_argument. 2373 Handle empty arg lists. Support pack expansions. 2374 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32. 2375 23762008-09-09 Jason Merrill <jason@redhat.com> 2377 2378 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE. 2379 (d_make_comp): Likewise. 2380 (cplus_demangle_type): Handle decltype and DFP types. 2381 (cplus_demangle_operators): Call operator takes 2 args. 2382 (cplus_demangle_builtin_types): Add DFP types. 2383 (d_exprlist): New fn. 2384 (d_expression): Handle parm placeholders, T() and calls. 2385 (d_print_comp): Handle decltype, T() and calls. 2386 * testsuite/demangle-expected: Test the above. 2387 23882008-08-07 Aaron W. LaFramboise <aaronavay62@aaronwl.com> 2389 2390 * pex-win32.c (argv_to_argc): New function. 2391 (spawn_script): Duplicate argv before calling win32_spawn. 2392 23932008-07-31 Jakub Jelinek <jakub@redhat.com> 2394 2395 * mkstemps.c (mkstemps): Keep looping even for EISDIR. 2396 23972008-07-31 Denys Vlasenko <dvlasenk@redhat.com> 2398 2399 * mkstemps.c (mkstemps): If open failed with errno other than 2400 EEXIST, return immediately. 2401 * make-temp-file.c: Include errno.h. 2402 (make_temp_file): If mkstemps failed, print an error message 2403 before aborting. 2404 24052008-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2406 2407 * maint-tool (deps): Output config.h instead of stamp-h. 2408 * Makefile.in: Rebuild deps. 2409 (maintainer-clean-subdir): Depend on stamp-h rather than config.h. 2410 Reverts 2007-07-11 change. 2411 24122008-06-19 Eric Blake <ebb9@byu.net> 2413 2414 Adjust strsignal to POSIX 200x prototype. 2415 * strsignal.c (strsignal): Remove const. 2416 24172008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2418 2419 * configure: Regenerate. 2420 24212008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2422 2423 * libiberty.texi: Expand TABs, drop indentation outside examples. 2424 * obstacks.texi: Likewise. 2425 24262008-04-21 Aurelien Jarno <aurelien@aurel32.net> 2427 2428 * configure.ac: use -fPIC on Linux/MIPS hosts. 2429 * configure: Regenerate. 2430 24312008-04-18 Kris Van Hees <kris.van.hees@oracle.com> 2432 2433 * testsuite/demangle-expected: Added tests for char16_t and char32_t. 2434 24352008-04-18 Paolo Bonzini <bonzini@gnu.org> 2436 2437 PR bootstrap/35457 2438 * aclocal.m4: Add override.m4. 2439 * configure: Regenerate. 2440 24412008-03-31 Ian Lance Taylor <iant@google.com> 2442 2443 * cp-demangle.c (d_substitution): Correct overflow check to avoid 2444 -fstrict-overflow optimizations. 2445 24462008-03-27 Paolo Bonzini <bonzini@gnu.org> 2447 2448 * configure.ac (frags): Don't set, use frag instead. 2449 (PICFLAG): Set here and substitute. 2450 * Makefile.in (PICFLAG): Substitute from autoconf. 2451 * configure: Regenerate. 2452 24532008-03-24 Ian Lance Taylor <iant@google.com> 2454 2455 * sha1.c: New file, from gnulib. 2456 * Makefile.in: Rebuild dependencies. 2457 (CFILES): Add sha1.c. 2458 (REQUIRED_OFILES): Add sha1.o. 2459 24602008-03-24 Doug Evans <dje@google.com> 2461 2462 * make-relative-prefix.c (make_relative_prefix_1): Handle NULL 2463 return from strdup. 2464 24652008-03-12 Seongbae Park <seongbae.park@gmail.com> 2466 2467 * cplus-dem.c (malloc, realloc): Use void * instead of char * 2468 as return type. 2469 24702008-03-11 Nick Clifton <nickc@redhat.com> 2471 2472 * md5.c (md5_process_bytes): Do not assume that memcpy will 2473 provide a return value. 2474 24752008-02-19 Ben Elliston <bje@au.ibm.com> 2476 2477 PR other/12618 2478 * testsuite/Makefile.in (mostlyclean): Remove any core file. 2479 24802008-01-26 David Daney <ddaney@avtrex.com> 2481 2482 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE, 2483 DEMANGLE_COMPONENT_COMPOUND_NAME, and 2484 DEMANGLE_COMPONENT_CHARACTER cases. 2485 (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and 2486 DEMANGLE_COMPONENT_JAVA_RESOURCE cases. 2487 (d_make_character): New function. 2488 (d_java_resource): Same. 2489 (d_special_name): Handle "Gr" case. 2490 (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE, 2491 DEMANGLE_COMPONENT_COMPOUND_NAME, and 2492 DEMANGLE_COMPONENT_CHARACTER cases. 2493 * testsuite/demangle-expected: Add test for java resource name 2494 mangling. 2495 24962008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com> 2497 2498 * cplus-dem.c (demangle_function_name): Changed to return value 2499 indicating if a name was correctly demangled. 2500 (iterate_demangle_function): Use demangle_function_name return 2501 value. 2502 25032008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 2504 2505 PR other/33768 2506 * splay-tree.c (rotate_left): Fix minor typo in comment. 2507 (rotate_right): Likewise. 2508 25092007-11-12 Joseph Myers <joseph@codesourcery.com> 2510 2511 * floatformat.c (floatformat_ibm_long_double_is_valid): Fix 2512 compiler warnings. 2513 (floatformat_ibm_long_double): Use 2514 floatformat_ibm_long_double_is_valid. 2515 25162007-11-07 Joseph Myers <joseph@codesourcery.com> 2517 Daniel Jacobowitz <dan@codesourcery.com> 2518 2519 * floatformat.c (mant_bits_set): New. 2520 (floatformat_to_double): Use it. Note no special handling of 2521 split formats. 2522 (floatformat_from_double): Note no special handing of split 2523 formats. 2524 (floatformat_ibm_long_double_is_valid, 2525 floatformat_ibm_long_double): New. 2526 (floatformat_ieee_single_big, floatformat_ieee_single_little, 2527 floatformat_ieee_double_big, floatformat_ieee_double_little, 2528 floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f, 2529 floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext, 2530 floatformat_m68881_ext, floatformat_i960_ext, 2531 floatformat_m88110_ext, floatformat_m88110_harris_ext, 2532 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword, 2533 floatformat_ia64_spill_big, floatformat_ia64_spill_little, 2534 floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update 2535 for addition of split_half field. 2536 25372007-09-06 Tom Tromey <tromey@redhat.com> 2538 2539 * pexecute.txh (pex_free): Document process killing. 2540 25412007-08-31 Douglas Gregor <doug.gregor@gmail.com> 2542 2543 * cp-demangle.c (d_dump): Handle 2544 DEMANGLE_COMPONENT_RVALUE_REFERENCE. 2545 (d_make_comp): Ditto. 2546 (cplus_demangle_type): Ditto. 2547 (d_print_comp): Ditto. 2548 (d_print_mod): Ditto. 2549 (d_print_function_type): Ditto. 2550 25512007-08-24 Kai Tietz <kai.tietz@onevision.com> 2552 2553 * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t. 2554 * pex-djgpp.c: Likewise. 2555 * pex-msdos.c: Likewise. 2556 * pex-unix.c: Likewise. 2557 * pex-win32.c: Likewise. 2558 25592007-08-17 Michael Snyder <msnyder@access-company.com> 2560 2561 * make-relative-prefix.c (make_relative_prefix_1): Resource leaks. 2562 25632007-08-03 Michael Snyder <msnyder@access-company.com> 2564 2565 * make-relative-prefix.c (make_relative_prefix_1): Fix resource 2566 leak. 2567 25682007-07-31 Michael Snyder <msnyder@access-company.com> 2569 2570 * cp-demangle.c (d_print_comp): Guard against null. 2571 25722007-07-25 Ben Elliston <bje@au.ibm.com> 2573 2574 * Makefile.in (CFILES): Remove ternary.c. 2575 (REQUIRED_OFILES): Remove ./ternary.o. 2576 (INSTALLED_HEADERS): Remove ternary.h. 2577 (ternary.o): Remove. 2578 * ternary.c: Remove. 2579 25802007-07-23 DJ Delorie <dj@redhat.com> 2581 2582 * argv.c (writeargv): Fix typo in inline documentation. 2583 * functions.texi: Regenerate. 2584 25852007-07-17 DJ Delorie <dj@redhat.com> 2586 2587 * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate 2588 gettimeofday entry. 2589 * configure: Likewise. 2590 25912007-07-11 Alexandre Oliva <aoliva@redhat.com> 2592 2593 * maint-tool (deps): Output stamp-h instead of config.h. 2594 * Makefile.in: Rebuild deps. 2595 (maintainer-clean-subdir): Depend on stamp-h rather than config.h. 2596 25972007-07-02 Simon Baldwin <simonb@google.com> 2598 2599 * argv.c (writeargv): Removed declaration of unused variable. 2600 26012007-06-14 Paolo Bonzini <bonzini@gnu.org> 2602 2603 * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too. 2604 * configure: Regenerate. 2605 26062007-06-14 Paolo Bonzini <bonzini@gnu.org> 2607 2608 * aclocal.m4: Include config/warnings.m4. 2609 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS. 2610 * configure: Regenerate. 2611 26122007-06-07 Geoffrey Keating <geoffk@apple.com> 2613 2614 * configure.ac: Non-default multilibs can be cross compilations. 2615 * configure: Regenerate 2616 26172007-05-07 Nathan Froyd <froydnj@codesourcery.com> 2618 2619 * argv.c (writeargv): New function. 2620 26212007-05-05 Geoffrey Keating <geoffk@apple.com> 2622 2623 * cp-demangle.c (d_name): Detect local-source-name. 2624 (d_prefix): Likewise. 2625 (d_unqualified_name): Implement local-source-name. 2626 26272007-05-03 Joel Brobecker <brobecker@adacore.com> 2628 2629 * filename_cmp.c: Replace include of ctype.h by include of 2630 safe-ctype.h. 2631 (filename_cmp): Use TOLOWER instead of tolower for conversions 2632 that are locale-independent. 2633 * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h. 2634 26352007-04-11 Thomas Neumann <tneumann@users.sourceforge.net> 2636 2637 * argv.c: Use ANSI C declarations. 2638 * make-relative-prefix.c: Likewise. 2639 26402007-04-06 Joel Brobecker <brobecker@adacore.com> 2641 2642 * filename_cmp.c (filename_cmp): Improve documentation. 2643 26442007-04-02 Andreas Schwab <schwab@suse.de> 2645 2646 * filename_cmp.c: Include "config.h". 2647 26482007-03-29 Joel Brobecker <brobecker@adacore.com> 2649 2650 * filename_cmp.c: New file. 2651 * Makefile.in (CFILES): Add filename_cmp.c. 2652 (REQUIRED_OFILES): Add filename_cmp.o 2653 (filename_cmp.o): New rule. 2654 * functions.texi: Regenerate. 2655 26562007-03-15 Geoffrey Keating <geoffk@apple.com> 2657 2658 * cp-demangle.c (d_encoding): Exit early on error. 2659 (d_pointer_to_member_type): Exit early if cplus_demangle_type 2660 returns NULL. 2661 (cplus_demangle_type): Likewise. 2662 * testsuite/demangle-expected: New testcase. 2663 26642007-03-01 Brooks Moses <brooks.moses@codesourcery.com> 2665 2666 * Makefile.in: Add install-pdf target as copied from 2667 automake v1.10 rules. 2668 * testsuite/Makefile.in: Add dummy install-pdf target. 2669 26702007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de> 2671 Eric Botcazou <ebotcazou@libertysurf.fr> 2672 2673 PR other/16513 2674 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR). 2675 Install headers in multilib independent location. 2676 26772007-02-26 DJ Delorie <dj@redhat.com> 2678 2679 * configure.ac: add djgpp-specific results, so we don't have to 2680 link during a cross compilation. 2681 * configure: Regenerated. 2682 26832007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2684 2685 * hex.c: Fix typo. 2686 * choose-temp.c: Likewise. 2687 * functions.texi: Regenerate. 2688 26892007-01-31 Vladimir Prus <vladimir@codesourcery.com> 2690 2691 * pex-common.h (struct pex_obj): New fields 2692 stderr_pipe and read_err. 2693 * pex-common.c (pex_init_common): Initialize 2694 stderr_pipe. 2695 (pex_run_in_environment): Add error checking 2696 for PEX_STDERR_TO_PIPE. Create a pipe 2697 for stderr if necessary. 2698 (pex_read_err): New. 2699 (pex_free): Close read_err. 2700 * pexecute.txh: Document changes. 2701 * functions.texi: Regenerated. 2702 27032007-01-31 Ben Elliston <bje@au.ibm.com> 2704 2705 * strsignal.c (psignal): Change type of signo to int. 2706 * functions.texi: Regenerate. 2707 27082007-01-29 Simon Baldwin <simonb@google.com> 2709 2710 * cp-demangle.h (cplus_demangle_operators): External definition 2711 suppressed if not building for libstdc++. 2712 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface 2713 to demangling, provides a malloc-less version of __cxa_demangle. 2714 (cplus_demangle_print_callback): Public callback version of 2715 cplus_demangle_print. 2716 (struct d_growable_string): New growable string structure. 2717 (d_growable_string_init): New function, provides support for 2718 growable strings separate from print info. 2719 (d_growable_string_resize): Likewise. 2720 (d_growable_string_append_buffer): Likewise. 2721 (d_growable_string_callback_adapter):): Likewise. 2722 (d_print_init): New print info initialization function. 2723 (d_print_error): Macro replace by inline function. 2724 (d_print_saw_error): Likewise. 2725 (d_append_char): Likewise. 2726 (d_append_buffer): Likewise. 2727 (d_append_string): New inline function, replaces the 2728 d_append_string_constant macro. 2729 (d_flush_buffer): New function, flushes buffer to callback. 2730 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback 2731 for unsupported dynamic arrays replaced by alloca(). 2732 (d_demangle): Return string length estimating removed. 2733 (d_dump): Moved error case handling from call site into function. 2734 (d_print_resize): Function removed. 2735 (d_print_append_char): Likewise. 2736 (d_print_append_buffer): Likewise. 2737 (d_print_error): Likewise. 2738 (d_print_comp): Added special case handling for Java arrays. 2739 (java_demangle_v3): Removed string post-processing for Java arrays, 2740 now replaced by special case handling in d_print_comp. 2741 (cplus_demangle_v3_callback): Augmented interface to demangling, 2742 provides a malloc-less version of cplus_demangle_v3. 2743 (java_demangle_v3_callback): Augmented interface to demangling, 2744 provides a malloc-less version of java_demangle_v3. 2745 27462007-01-12 Ben Elliston <bje@au.ibm.com> 2747 2748 * pex-unix.c (writeerr): Cast write result to void. 2749 2750 * choose-temp.c (choose_temp_base): Check the result of the call 2751 to mktemp rather than testing the length of the modified string. 2752 27532006-12-20 Geoffrey Keating <geoffk@apple.com> 2754 2755 * cp-demangle.h: Add comment explaining what to do to avoid 2756 overrunning string. 2757 (d_check_char): New. 2758 (d_next_char): Don't advance past trailing '\0'. 2759 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char. 2760 (d_nested_name): Likewise. 2761 (d_special_name): Likewise. 2762 (d_call_offset): Likewise. 2763 (d_function_type): Likewise. 2764 (d_array_type): Likewise. 2765 (d_pointer_to_member_type): Likewise. 2766 (d_template_param): Likewise. 2767 (d_template_args): Likewise. 2768 (d_template_arg): Likewise. 2769 (d_expr_primary): Likewise. 2770 (d_local_name): Likewise. 2771 (d_substitution): Likewise. 2772 (d_ctor_dtor_name): Use d_advance rather than d_next_char. 2773 * testsuite/test-demangle.c: Include sys/mman.h. 2774 (MAP_ANONYMOUS): Define. 2775 (protect_end): New. 2776 (main): Use protect_end. 2777 * testsuite/demangle-expected: Add testcases for overrunning 2778 the end of the string. 2779 27802006-11-30 Andrew Stubbs <andrew.stubbs@st.com> 2781 J"orn Rennecke <joern.rennecke@st.com> 2782 2783 PR driver/29931 2784 * make-relative-prefix.c (make_relative_prefix_1): New function, 2785 broken out of make_relative_prefix. Make link resolution dependent 2786 on new parameter. 2787 (make_relative_prefix): Use make_relative_prefix_1. 2788 (make_relative_prefix_ignore_links): New function. 2789 27902006-11-08 Vladimir Prus <vladimir@codesourcery.com> 2791 2792 * pex-win32.c (no_suffixes): Remove. 2793 (std_suffixes): Add "" as first element. 2794 (find_executable): Remove detection of already-present 2795 extension. Try all suffixes in std_suffixes. 2796 27972006-11-07 Julian Brown <julian@codesourcery.com> 2798 2799 * floatformat.c (get_field): Fix segfault with little-endian word 2800 order on 64-bit hosts. 2801 (put_field): Likewise. 2802 (min): Move definition. 2803 28042006-10-26 Danny Smith <dannysmith@users.sourceforge.net> 2805 2806 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC. 2807 (find_executable): Likewise. 2808 (win32_spawn): Cast alloca return to (char**). 2809 Replace malloc with XNEWVEC. 2810 bcopy.c (bcopy): Add explict casts in assignments. 2811 28122006-10-25 Ben Elliston <bje@au.ibm.com> 2813 2814 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}. 2815 28162006-10-10 Brooks Moses <bmoses@stanford.edu> 2817 2818 * Makefile.in: Added "pdf", "libiberty.pdf" target support. 2819 * testsuite/Makefile.in: Added empty "pdf" target. 2820 28212006-09-22 Ian Lance Taylor <ian@airs.com> 2822 2823 PR other/29176 2824 * cp-demangle.c (d_substitution): Check for overflow when 2825 computing substitution index. 2826 28272006-08-30 Corinna Vinschen <corinna@vinschen.de> 2828 2829 * configure.ac: Add case for Mingw as host. 2830 * configure: Regenerate. 2831 28322006-08-27 Ian Lance Taylor <ian@airs.com> 2833 2834 PR driver/27622 2835 * pex-common.h (struct pex_funcs): Add toclose parameter to 2836 exec_child field. 2837 * pex-common.c (pex_run_in_environment): Pass toclose to 2838 exec_child. 2839 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter. 2840 * pex-unix.c (pex_unix_exec_child): Likewise. 2841 * pex-msdos.c (pex_msdos_exec_child): Likewise. 2842 * pex-win32.c (pex_win32_exec_child): Likewise. 2843 2844 PR other/28797 2845 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution 2846 for a qualified member which is not a function. 2847 * testsuite/demangle-expected: Add test case. 2848 28492006-07-27 Jan Hubicka <jh@suse.cz> 2850 2851 PR rtl-optimization/28071 2852 * hashtab.c (htab_empty): Clear out n_deleted/n_elements; 2853 downsize the hashtable. 2854 28552006-07-04 Peter O'Gorman <peter@pogma.com> 2856 2857 * Makefile.in: chmod 644 before ranlib during install. 2858 28592006-06-02 Mark Shinwell <shinwell@codesourcery.com> 2860 2861 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning 2862 to environ. 2863 28642006-06-01 Mark Shinwell <shinwell@codesourcery.com> 2865 2866 * pex-common.c: New function pex_run_in_environment. 2867 * pex-common.h: Add environment parameter to exec_child. 2868 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child. 2869 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child. 2870 (pex_djgpp_exec_child): Pass environment to child process. 2871 * pex-unix.c: Add environment parameter to pex_unix_exec_child. 2872 (pex_unix_exec_child): Pass environment to child process. 2873 * pex-win32.c: Add environment parameter to pex_win32_exec_child. 2874 New function env_compare for comparing VAR=VALUE pairs. 2875 (win32_spawn): Assemble environment block and pass to CreateProcess. 2876 (spawn_script): Pass environment through to win32_spawn. 2877 (pex_win32_exec_child): Pass environment through to spawn_script and 2878 win32_spawn. 2879 * functions.texi: Regenerate. 2880 * pexecute.txh: Document pex_run_in_environment. 2881 28822006-05-28 Mark Shinwell <shinwell@codesourcery.com> 2883 2884 * mkstemps.c: Open temporary files in binary mode. 2885 28862006-05-12 Anton Blanchard <anton@samba.org> 2887 2888 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to 2889 hold "int%u_t". 2890 28912006-04-24 Julian Brown <julian@codesourcery.com> 2892 2893 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case. 2894 28952006-03-29 Jim Blandy <jimb@codesourcery.com> 2896 2897 * pex-common.c (pex_input_file, pex_input_pipe): New functions. 2898 (pex_init_common): Initialize obj->input_file. 2899 (pex_run): Close any file opened by pex_input_file. 2900 * pexecute.txh (pex_input_file, pex_input_pipe): New docs. 2901 * pex-common.h (struct pex_obj): New field input_file. 2902 (struct pex_funcs): New function ptr fdopenw. 2903 * pex-unix.c (pex_unix_fdopenw): New function. 2904 (funcs): List it as our fdopenw function. 2905 * pex-win32.c (pex_win32_fdopenw): New function. 2906 (funcs): List it as our fdopenw function. 2907 * pex-djgpp.c (funcs): Leave fdopenw null. 2908 * pex-msdos (funcs): Same. 2909 * functions.texi: Regenerated. 2910 29112006-04-10 Jim Blandy <jimb@codesourcery.com> 2912 2913 * pex-common.c (temp_file): New function, containing guts of 2914 pex-style temporary file name generation. 2915 (pex_run): Use it. 2916 29172006-04-06 Carlos O'Donell <carlos@codesourcery.com> 2918 2919 * Makefile.in: Add install-html, install-html-am, and 2920 install-html-recursive targets. Define mkdir_p and 2921 NORMAL_INSTALL. 2922 * configure.ac: AC_SUBST datarootdir, docdir, htmldir. 2923 * configure: Regenerate. 2924 * testsuite/Makefile.in: Add install-html and html targets. 2925 29262006-03-31 Mark Mitchell <mark@codesourcery.com> 2927 2928 * pex-win32.c (<errno.h>): Include. 2929 (fix_argv): Remove. 2930 (argv_to_cmdline): New function. 2931 (std_suffixes): New variable. 2932 (no_suffixes): Likewise. 2933 (find_executable): New function. 2934 (win32_spawn): Likewise. 2935 (spawn_script): Use win32_spawn instead of _spawnv[p]. 2936 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls. 2937 (pex_win32_wait): Likewise. 2938 29392006-03-24 Jim Blandy <jimb@codesourcery.com> 2940 2941 * pex-common.c (pex_run): Simplify output name handling. 2942 29432006-03-12 Jim Blandy <jimb@red-bean.com> 2944 2945 * pex-common.h (struct pex_obj): Doc fixes. 2946 29472006-03-11 Jim Blandy <jimb@red-bean.com> 2948 2949 * functions.texi: Regenerate. 2950 29512006-02-21 Ben Elliston <bje@au.ibm.com> 2952 2953 * pexecute.c (pwait): Syntax fix for previous change. 2954 29552006-02-17 Uttam Pawar <uttamp@us.ibm.com> 2956 2957 * pexecute.c (pwait): Free vector pointer. 2958 * partition.c (partition_print): Free class_elements pointer. 2959 29602006-02-11 Roger Sayle <roger@eyesopen.com> 2961 R. Scott Bailey <scott.bailey@eds.com> 2962 Bill Northcott <w.northcott@unsw.edu.au> 2963 2964 PR bootstrap/16787 2965 * floatformat.c: Include <float.h> where available. 2966 (NAN): Use value of DBL_QNAN if defined, and NAN isn't. 2967 29682006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net> 2969 2970 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where 2971 supported. 2972 * configure: Regenerated. 2973 29742006-01-20 Carlos O'Donell <carlos@codesourcery.com> 2975 2976 * testsuite/Makefile.in: Add test-expandargv test. 2977 * testsuite/test-expandargv.c: New test. 2978 * argv.c (expandargv): Check for errors with ferror, 2979 rather than just by looking at return value from fread. 2980 29812005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net> 2982 2983 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast 2984 to convert from "from". 2985 (floatformat_to_double): Likewise. 2986 (floatformat_from_double): Use explicit cast to convert from "to". 2987 29882005-12-10 Terry Laurenzo <tlaurenzo@gmail.com> 2989 2990 PR java/9861 2991 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer 2992 and include return type when found. 2993 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add 2994 conditional logic to change printing order of return type.when 2995 the DMGL_RET_POSTFIX option is present. 2996 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle 2997 call. 2998 * testsuite/test-demangle.c (main): Recognize option --ret-postfix 2999 * testsuite/demangle-expected: Test cases to verify extended encoding. 3000 Updated comment to document --ret-postfix option. 3001 30022005-11-06 Richard Guenther <rguenther@suse.de> 3003 3004 * splay-tree.c (rotate_left): New function. 3005 (rotate_right): Likewise. 3006 (splay_tree_splay_helper): Remove. 3007 (splay_tree_splay): Re-implement. 3008 30092005-10-31 Mark Kettenis <kettenis@gnu.org> 3010 3011 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double): 3012 New variables. 3013 30142005-10-07 Mark Mitchell <mark@codesourcery.com> 3015 3016 * at-file.texi: Fix typo. 3017 30182005-10-03 Mark Mitchell <mark@codesourcery.com> 3019 3020 * at-file.texi: New file. 3021 30222005-09-27 Mark Mitchell <mark@codesourcery.com> 3023 3024 * argv.c (expandargv): Do not use xmalloc_failed. 3025 30262005-09-26 Mark Mitchell <mark@codesourcery.com> 3027 3028 * argv.c (safe-ctype.h): Include it. 3029 (ISBLANK): Remove. 3030 (stdio.h): Include. 3031 (buildargv): Use ISSPACE instead of ISBLANK. 3032 (expandargv): New function. 3033 * Makefile.in: Regenerated. 3034 30352005-09-14 Christopher Faylor <cgf@timesys.com> 3036 3037 * pex-win32.c: Include "windows.h". 3038 (backslashify): New function. 3039 (fix_argv): Use backslashify to convert path to windows format. 3040 Allocate one more place in new argv for potential executable from '#!' 3041 parsing. 3042 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS 3043 (openkey): Ditto. 3044 (mingw_rootify): Ditto. 3045 (msys_rootify): Ditto. 3046 (spawn_script): New function. 3047 (pex_win32_exec_child): Save translated argv in newargv. Pass to 3048 spawn_script if spawnv* fails. 3049 (main): New function. Conditional on MAIN. Useful for testing. 3050 30512005-08-17 Mark Kettenis <kettenis@gnu.org> 3052 3053 * floatformat.c (floatformat_always_valid): Change type of last 3054 argument to `void *'. 3055 (floatformat_i387_ext_is_valid): Likewise. 3056 (floatformat_to_double): Change type of second argument to `const 3057 void *'. 3058 (floatformat_from_double): Change type of last argument to `void 3059 *'. 3060 (floatformat_is_valid): Change type of last argument to `const 3061 void *'. 3062 (ieee_test): Remove redundant casts. 3063 30642005-08-17 Kelley Cook <kcook@gcc.gnu.org> 3065 3066 * strverscmp.c: Update FSF address. 3067 * testsuite/Makefile.in: Likewise. 3068 * testsuite/test-demangle.c: Likewise. 3069 * testsuite/test-pexecute.c: Likewise. 3070 30712005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3072 3073 * getopt.c: Include ansidecl.h before system headers. 3074 30752005-07-22 Ben Elliston <bje@gnu.org> 3076 3077 * getopt.c: Include "ansidecl.h". 3078 (_getopt_initialize): Mark argc and argv parameters as unused. 3079 30802005-07-22 Ben Elliston <bje@gnu.org> 3081 3082 * regex.c (regcomp): Change type of `i' from unsigned to int. 3083 30842005-07-22 Ben Elliston <bje@gnu.org> 3085 3086 Recover patch lost in the sourceware repository: 3087 2005-07-09 Ben Elliston <bje@au.ibm.com> 3088 * memcpy.c: Remove ANSI_PROTOTYPES conditional code. 3089 * memmove.c: Likewise. 3090 * objalloc.c: Likewise. 3091 30922005-07-22 Ben Elliston <bje@gnu.org> 3093 3094 * configure.ac: Check for a getopt(3) declaration. 3095 * configure, config.in: Regenerate. 3096 30972005-07-15 Ben Elliston <bje@au.ibm.com> 3098 3099 * regex.c (TRANSLATE): Cast rhs of ternary expression to char. 3100 31012005-07-12 Ben Elliston <bje@au.ibm.com> 3102 3103 * floatformat.c (floatformat_to_double): Add a comment about a 3104 potential source of warnings when compiling this file. 3105 31062005-07-12 Ben Elliston <bje@au.ibm.com> 3107 3108 * pexecute.c (pexecute): Cast string litrals to char *. 3109 * regex.c (re_comp): Cast a call to gettext() to char *. 3110 31112005-07-07 Kelley Cook <kcook@gcc.gnu.org> 3112 3113 * config.table: Delete file. Move former contents into ... 3114 * configure.ac: ... here and escape any brackets for m4. 3115 * Makefile.in (config.status): Remove dependency on config.table. 3116 * configure: Regenerate. 3117 31182005-07-07 Kelley Cook <kcook@gcc.gnu.org> 3119 3120 * config.in: Regenerate for 6/20 change. 3121 31222005-07-03 Steve Ellcey <sje@cup.hp.com> 3123 3124 PR other/13906 3125 * md5.c (md5_process_bytes): Check alignment. 3126 31272005-07-01 Ian Lance Taylor <ian@airs.com> 3128 3129 PR other/22268 3130 * cp-demangle.c (d_expr_primary): Don't run off the end of the 3131 string while looking for the end of a literal value. 3132 * testsuite/demangle-expected: Add test case. 3133 31342005-06-30 Daniel Berlin <dberlin@dberlin.org> 3135 3136 * hashtab.c (EMPTY_ENTRY): Moved and renamed. 3137 (DELETED_ENTRY): Ditto. 3138 31392005-06-20 Geoffrey Keating <geoffk@apple.com> 3140 3141 * strverscmp.c: New. 3142 * Makefile.in (CFILES): Add strverscmp.c. 3143 (CONFIGURED_OFILES): Add strverscmp.o. 3144 (strverscmp.o): New rule. 3145 (stamp-functions): Add $(srcdir) to files in source directory. 3146 * configure.ac (funcs): Add strverscmp. 3147 (AC_CHECK_FUNCS): Add strverscmp. 3148 * configure: Regenerate. 3149 * functions.texi: Regenerate. 3150 31512005-05-28 Eli Zaretskii <eliz@gnu.org> 3152 3153 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS. 3154 * config.in, configure: Regenerate. 3155 31562005-05-25 Richard Henderson <rth@redhat.com> 3157 3158 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS. 3159 (d_make_comp, d_print_comp): Likewise. 3160 (d_special_name): Generate one. 3161 * testsuite/demangle-expected: Add a hidden alias test. 3162 31632005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net> 3164 3165 * configure.ac: Check declarations for calloc(), getenv(), 3166 malloc(), realloc() and sbrk(). 3167 * config.in: Regenerate. 3168 * configure: Likewise. 3169 3170 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC 3171 instead of xmalloc. 3172 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc. 3173 * concat.c (liiberty_concat_ptr): Surround definition with an 3174 extern "C" block, if __cplusplus. 3175 (concat): Use XNEWVEC instead of xmalloc. 3176 (reconcat): Likewise. 3177 * cp-demangle.c (struct d_print_template): Rename member 3178 "template" to "template_decl". Adjust use throughout the file. 3179 (d_print_resize): Properly cast return value of realloc(). 3180 (cplus_demangle_print): Same for malloc(). 3181 (d_demangle): Likewise. 3182 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter 3183 "typename" to "type_name". 3184 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc(). 3185 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc(). 3186 (demangle_template_value_parm): Likewise. 3187 (demangle_template): Likewise. 3188 (recursively_demangle): Likewise. 3189 (do_hpacc_template_literal): Likewise. 3190 (do_arg): Likewise. 3191 (remember_type): Likewise. 3192 (remember_Ktype): Likewise. 3193 (register_Btype): Likewise. 3194 (string_need): Use XRESIZEVEC instead of xrealloc(). 3195 * dyn-string.c (dyn_string_init): Use XNEWVEC. 3196 (dyn_string_new): Use XNEW. 3197 (dyn_string_resize): Use XRESIZEVEC. 3198 * fnmatch.c (fnmatch): Rename local variable "not" to "negate". 3199 * getopt.c (getenv): Declare only if !__cplusplus and !getenv. 3200 Otherwise include <stdlib.h>. 3201 (exchange): Cast return value of malloc(). 3202 * hashtab.c (htab_size): Define as both macro and non-inline 3203 function. 3204 (htab_elements): Likewise. 3205 * getpwd.c (getpwd): Use XNEWVEC. 3206 (htab_create_alloc_ex): Use C90 prototype-style. 3207 * lrealpath.c (lrealpath): Appropriately cast return value of 3208 malloc(). 3209 * make-relative-prefix.c (save_string): Likewise. 3210 * make-temp-file.c (try_dir): Rename from "try". Adjust use in 3211 the file. 3212 (choose_tmpdir): Use XNEWVEC. 3213 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern". 3214 * pex-common.c (pex_init_common): Use XNEW. 3215 (pex_add_remove): Use XRESIZEVEC. 3216 (pex_run): Likewise. 3217 (pex_get_status_and_time): Likewise. 3218 * pex-djgpp.c (pex_djgpp_exec_child): Likewise. 3219 * pex-msdos.c (pex_init): Use XNEW. 3220 (pex_msdos_exec_child): Likewise. 3221 (pex_msdos_exec_child): Use XRESIZEVEC. 3222 * pex-unix.c (pex_wait): Use XNEW. 3223 * pex-win32.c (fix_argv): Use XNEWVEC. 3224 * pexecute.c (pwait): Likewise. 3225 * setenv.c (setenv): Properly cast return value of malloc(). 3226 * sigsetmask.c (sigsetmask): Rename local variables "old" and 3227 "new" to "old_sig" and "new_sig". 3228 * sort.c (main): Use XNEWVEC. 3229 * spaces.c (spaces): Cast return value of malloc(). 3230 * strndup.c (strndup): Likewise. 3231 * ternary.c (ternary_insert): Use XNEW. 3232 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration 3233 with an extern "C" block if __cplusplus. 3234 * xstrdup.c (xstrdup): Cast return value of memcpy(). 3235 * xstrerror.c (strerror): Enclose declaration in an extern "C" 3236 block if __cplusplus. 3237 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy(). 3238 32392005-05-16 Andreas Jaeger <aj@suse.de> 3240 3241 * getpwd.c: Remove unneeded prototype getcwd and move getwd so 3242 that it's only declared if needed. 3243 3244 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is 3245 defined. 3246 32472005-05-15 Andreas Jaeger <aj@suse.de> 3248 3249 * functions.texi: Regenerated. 3250 32512005-05-15 Eli Zaretskii <eliz@gnu.org> 3252 3253 * pexecute.txh: Enclose multi-word data types in @deftypefn in 3254 braces. Minor wording fixes. Use --- for em-dash. Use 3255 @enumerate in enumerated lists. 3256 3257 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in 3258 braces. 3259 32602005-05-11 Eli Zaretskii <eliz@gnu.org> 3261 3262 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and 3263 sys/stat.h. 3264 (pex_init): Fix last argument to pex_init_common. 3265 (pex_djgpp_exec_child): Remove leading underscore from _open, 3266 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program', 3267 which is undeclared, with `executable', which was unused. Remove 3268 unused variable `e'. Fix casting of last arg to spawnv/spawnvp. 3269 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED. 3270 32712005-05-11 Paul Brook <paul@codesourcery.com> 3272 3273 * Makefile.in: Regenerate dependencies. 3274 32752005-05-10 Nick Clifton <nickc@redhat.com> 3276 3277 * Update the address and phone number of the FSF organization in 3278 the GPL notices in the following files: 3279 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c, 3280 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c, 3281 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c, 3282 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c, 3283 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c, 3284 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c, 3285 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c, 3286 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c, 3287 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c, 3288 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c, 3289 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c, 3290 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c, 3291 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c 3292 32932005-05-06 Kelley Cook <kcook@gcc.gnu.org> 3294 3295 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove. 3296 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE. 3297 * configure: Regenerate. 3298 32992005-05-06 Kelley Cook <kcook@gcc.gnu.org> 3300 3301 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS. 3302 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF. 3303 * aclocal.m4: Don't include accross.m4. 3304 * configure, config.in: Regenerate. 3305 33062005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3307 3308 * fopen_unlocked.c (unlock_std_streams): New. 3309 3310 * functions.texi: Regenerate. 3311 33122005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3313 3314 * fopen_unlocked.c (unlock_stream): New. 3315 Consolidate unlocking code into a helper function. 3316 3317 * functions.texi: Regenerate. 3318 33192005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net> 3320 3321 * asprintf.c: Include config.h. 3322 * basename.c: Likewise. 3323 * fdmatch.c: Likewise. 3324 * hex.c: Likewise. 3325 * lbasename.c: Likewise. 3326 * spaces.c: Likewise. 3327 * xatexit.c:Likewise. 3328 * configure.ac: Do check declarations for basename, ffs, asprintf 3329 and vasprintf for real. 3330 * configure: Regenerate. 3331 33322005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net> 3333 3334 * argv.c (dupargv): Allocate space of argv[argc], not 3335 sizeof(char *) of that amount. Cast result to char *. 3336 33372005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net> 3338 3339 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal): 3340 Replace not with negate. 3341 33422005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net> 3343 3344 * configure.ac: Check declarations for basename, ffs, asprintf, 3345 vasprintf. 3346 * configure: Regenerate. 3347 * config.in: Likewise. 3348 33492005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3350 3351 * Makefile.in (CFILES): Add fopen_unlocked.c. 3352 (REQUIRED_OFILES): Add ./fopen_unlocked.o. 3353 Regenerate dependencies. 3354 3355 * configure.ac: Check for stdio_ext.h and __fsetlocking. 3356 3357 * fopen_unlocked.c: New file. 3358 3359 * functions.texi, configure, config.in: Regenerate. 3360 33612005-04-04 Ian Lance Taylor <ian@airs.com> 3362 3363 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable 3364 declaration before statement. 3365 33662005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3367 3368 * bcmp.c: Fix warnings and implement using memcmp. 3369 * bcopy.c: Fix warnings. 3370 * bzero.c: Fix warnings and implement using memset. 3371 3372 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings 3373 -Wstrict-prototypes. 3374 * configure, config.in: Regenerate. 3375 3376 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix 3377 warnings and reconcile interfaces with relevant standards. 3378 33792005-04-02 Ian Lance Taylor <ian@airs.com> 3380 3381 * cp-demangle.c: Update copyright. 3382 33832005-03-31 Joseph S. Myers <joseph@codesourcery.com> 3384 3385 * gettimeofday.c: Add "Supplemental" to @deftypefn. 3386 * functions.texi: Regenerate. 3387 33882005-03-28 Ian Lance Taylor <ian@airs.com> 3389 3390 * pex-common.c: New file. 3391 * pex-one.c: New file. 3392 * pexecute.c: New file. 3393 * pex-common.h: Include <stdio.h>. 3394 (struct pex_obj): Define. 3395 (struct pex_funcs): Define. 3396 (pex_init_common): Declare. 3397 * pex-unix.c: Rewrite. 3398 * pex-win32.c: Rewrite. 3399 * pex-djgpp.c: Rewrite. 3400 * pex-msdos.c: Rewrite. 3401 * testsuite/text-pexecute.c: New file. 3402 * pexecute.txh: Rewrite. 3403 * configure.ac: Check for wait3 and wait4. Set CHECK to 3404 really-check rather than check-cplus-dem. 3405 * functions.texi: Rebuild. 3406 * Makefile.in: Rebuild dependencies. 3407 (CFILES): Add pexecute.c, pex-common.c, pex-one.c. 3408 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o. 3409 * testsuite/Makefile.in (really-check): New target. 3410 (check-pexecute, test-pexecute): New targets. 3411 * configure: Rebuild. 3412 34132005-03-28 Mark Kettenis <kettenis@gnu.org> 3414 3415 * unlink-if-ordinary.c: Include <sys/types.h>. 3416 34172005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3418 3419 Convert libiberty to use ISO C prototype style 7/n. 3420 * regex.c (PARAMS): Remove definition. 3421 (PREFIX): Unconditionaly define using ISO C ## operator. 3422 (init_syntax_once, extract_number, extract_number_and_incr, 3423 print_fastmap, print_partial_compiled_pattern, 3424 print_compiled_pattern, print_double_string, printchar, 3425 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers, 3426 regex_compile, store_op1, store_op2, insert_op1, insert_op2, 3427 at_begline_loc_p, at_endline_p, group_in_compile_stack, 3428 insert_space, wcs_compile_range, byte_compile_range, 3429 truncate_wchar, re_compile_fastmap, re_compile_fastmap, 3430 re_set_registers, re_search, re_search_2, re_search_3, re_match, 3431 re_match_2, count_mbs_length, wcs_re_match_2_internal, 3432 byte_re_match_2_internal, group_match_null_string_p, 3433 alt_match_null_string_p, common_op_match_null_string_p, 3434 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp, 3435 regexec, regerror, regfree): Use ISO C prototype style. 3436 * partition.c: (elem_compare): Likewise. 3437 * cp-demangle.c (print_usage): Likewise. 3438 34392005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3440 3441 Convert libiberty to use ISO C prototype style 5/n. 3442 * random.c (srandom, initstate, setstate, random): Use ISO C 3443 prototypes. 3444 * putenv.c (putenv): Likewise. 3445 * physmem.c (physmem_available, physmem_total, main): Likewise. 3446 * pex-win32.c (fix_argv, pexecute, pwait): Likewise. 3447 * pex-unix.c (pexecute, pwait): Likewise. 3448 * pex-msdos.c (pexecute, pwait): Likewise. 3449 * pex-djgpp.c (pexecute, pwait): Likewise. 3450 * partition.c (partition_new, partition_delete, partition_union) 3451 (elem_compare, partition_print): Likewise. 3452 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk, 3453 _obstack_allocated_p, _obstack_free, obstack_free, 3454 _obstack_memory_used, print_and_abort, obstack_next_free, 3455 obstack_object_size, obstack_base): Likewise. Remove codes 3456 predicated on !defined(__STDC__). 3457 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free, 3458 objalloc_free_block): Use ISO C prototypes. 3459 * mkstemps.c (mkstemps): Likewise. 3460 * memset.c (memset): Likewise. 3461 * mempcpy.c (mempcpy): Likewise. 3462 * rename.c (rename): Likewise. 3463 * rindex.c (rindex): Likewise. 3464 * setenv.c (setenv, unsetenv): Likewise. 3465 * sigsetmask.c (sigsetmask): Likewise. 3466 * snprintf.c (snprintf): Likewise. 3467 * sort.c (sort_pointers, xmalloc): Likewise. 3468 * spaces.c (spaces): Likewise. 3469 * splay-tree.c (splay_tree_delete_helper, 3470 splay_tree_splay_helper, splay_tree_splay, 3471 splay_tree_foreach_helper, splay_tree_xmalloc_allocate, 3472 splay_tree_new, splay_tree_xmalloc_allocate, 3473 splay_tree_new_with_allocator, splay_tree_delete, 3474 splay_tree_insert, splay_tree_remove, splay_tree_lookup, 3475 splay_tree_max, splay_tree_min, splay_tree_predecessor, 3476 splay_tree_successor, splay_tree_foreach, 3477 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise. 3478 * stpcpy.c (stpcpy): Likewise. 3479 * stpncpy.c (stpncpy): Likewise. 3480 * strcasecmp.c (strcasecmp): Likewise. 3481 * strchr.c (strchr): Likewise. 3482 * strdup.c (strdup): Likewise. 3483 34842005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3485 3486 Convert libiberty to use ISO C prototype style 6/n. 3487 * strerror.c (init_error_tables, errno_max, strerror, strerrno, 3488 strtoerrno, main): Use ISO C prototype style. 3489 * strncasecmp.c (strncasecmp): Likewise. 3490 * strncmp.c (strncmp): Likewise. 3491 * strndup.c (strndup): Likewise. 3492 * strrchr.c (strrchr): Likewise. 3493 * strsignal.c (init_signal_tables, signo_max, strsignal, 3494 strsigno, strtosigno, psignal, main): Likewise. 3495 * strstr.c (strstr): Likewise. 3496 * strtod.c (strtod, atof): Likewise. 3497 * strtol.c (strtol): Likewise. 3498 * strtoul.c (strtoul): Likewise. 3499 * ternary.c (ternary_insert, ternary_cleanup, ternary_search, 3500 ternary_recursivesearch): Likewise. 3501 * tmpnam.c (tmpnam): Likewise. 3502 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise. 3503 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise. 3504 * vfork.c (vfork): Likewise. 3505 * vfprintf.c (vfprintf): Likewise. 3506 * vprintf.c (vprintf): Likewise. 3507 * vsnprintf.c (vsnprintf, checkit, main): Likewise. 3508 * vsprintf.c (vsprintf): Likewise. 3509 * waitpid.c (waitpid): Likewise. 3510 * xatexit.c (xatexit, xatexit_cleanup): Likewise. 3511 * xexit.c (xexit): Likewise. 3512 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc, 3513 xcalloc, xrealloc): Likewise. 3514 * xmemdup.c (xmemdup): Likewise. 3515 * xstrdup.c (xstrdup): Likewise. 3516 * xstrerror.c (xstrerror): Likewise. 3517 * xstrndup.c (xstrndup): Likewise. 3518 35192005-03-27 Andreas Jaeger <aj@suse.de> 3520 3521 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional 3522 flags. 3523 * configure: Regenerated. 3524 35252005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3526 3527 * getopt1.c (getopt_long_only): Fix thinko. 3528 35292005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3530 3531 Convert libiberty to use ISO C prototype style 4/n. 3532 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer, 3533 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2, 3534 htab_create_alloc, htab_set_functions_ex, htab_create, 3535 htab_try_create, htab_delete, htab_empty, 3536 find_empty_slot_for_expand, htab_expand, htab_find_with_hash, 3537 htab_find, htab_find_slot_with_hash, htab_find_slot, 3538 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot, 3539 htab_traverse_noresize, htab_traverse, htab_collisions, 3540 htab_hash_string, iterative_hash): Use ISO C prototype. 3541 * hex.c (hex_init): Likewise. 3542 * index.c (index): Likewise. 3543 * insque.c (insque, remque): Likewise. 3544 * lbasename.c (lbasename): Likewise. 3545 * lrealpath.c (lrealpath): Likewise. 3546 * make-relative-prefix.c (save_string, split_directories, 3547 free_split_directories, make_relative_prefix): Likewise. 3548 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise. 3549 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream, 3550 md5_buffer, md5_process_bytes, md5_process_block): Likewise. 3551 * memchr.c (memchr): Likewise. 3552 * memcpy.c (memcpy): Likewise. 3553 * memmove.c (memmove): Likewise. 3554 * gettimeofday.c (gettimeofday): Likewise. 3555 * getruntime.c (get_run_time): Likewise. 3556 * getpwd.c (getpwd, getpwd): Likewise. 3557 * getpagesize.c (getpagesize): Likewise. 3558 * getopt1.c (getopt_long, getopt_long_only, main): Likewise. 3559 * getopt.c (my_index, exchange, _getopt_initialize, 3560 _getopt_internal, getopt, main): Likewise. 3561 * getcwd.c (getcwd): Likewise. 3562 * fnmatch.c (fnmatch): Likewise. 3563 * floatformat.c (floatformat_always_valid, 3564 floatformat_i387_ext_is_valid, get_field, floatformat_to_double, 3565 put_field, floatformat_from_double, floatformat_is_valid, 3566 ieee_test, main): Likewise. 3567 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare, 3568 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key, 3569 fibheap_union, fibheap_extract_min, fibheap_replace_key_data, 3570 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node, 3571 fibheap_delete, fibheap_empty, fibheap_extr_min_node, 3572 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate, 3573 fibheap_link, fibheap_cut, fibheap_cascading_cut, 3574 fibnode_insert_after, fibnode_remove): Likewise. 3575 * ffs.c (ffs): Likewise. 3576 * fdmatch.c (fdmatch): Likewise. 3577 * dyn-string.c (dyn_string_init, dyn_string_new, 3578 dyn_string_delete, dyn_string_release, dyn_string_resize, 3579 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr, 3580 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert, 3581 dyn_string_insert_cstr, dyn_string_insert_char, 3582 dyn_string_append, dyn_string_append_cstr, 3583 dyn_string_append_char, dyn_string_substring, dyn_string_eq): 3584 Likewise. 3585 35862005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3587 3588 Convert libiberty to use ISO C prototype style 3/n. 3589 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count, 3590 consume_count_with_underscores, code_for_qualifier, 3591 qualifier_string, demangle_qualifier, cplus_demangle_opname, 3592 cplus_mangle_opname, cplus_demangle_set_style, 3593 cplus_demangle_name_to_style, cplus_demangle, grow_vect, 3594 ada_demangle, internal_cplus_demangle, squangle_mop_up, 3595 work_stuff_copy_to_from, delete_non_B_K_work_stuff, 3596 delete_work_stuff, mop_up, demangle_signature, 3597 demangle_method_args, demangle_template_template_parm, 3598 demangle_expression, demangle_integral_value, 3599 demangle_real_value, demangle_template_value_parm, 3600 demangle_template, arm_pt, demangle_arm_hp_template, 3601 demangle_class_name, demangle_class, iterate_demangle_function, 3602 demangle_prefix, gnu_special, recursively_demangle, arm_special, 3603 demangle_qualified, get_count, do_type, demangle_fund_type, 3604 do_hpacc_template_const_value, do_hpacc_template_literal, 3605 snarf_numeric_literal, do_arg, remember_type, remember_Ktype, 3606 register_Btype, remember_Btype, forget_B_and_K_types, 3607 forget_types, demangle_args, demangle_nested_args, 3608 demangle_function_name, string_need, string_delete, string_init, 3609 string_clear, string_empty, string_append, string_appends, 3610 string_appendn, string_prepend, string_prepends, string_prependn, 3611 string_append_template_idx): Use ISO C prootype style. 3612 * cp-demint.c (cplus_demangle_fill_component, 3613 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator, 3614 cplus_demangle_v3_components): Likewise. 3615 36162005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net> 3617 3618 Convert libiberty to use ISO C prototype style 2/n. 3619 * cp-demangle.h: Remove uses of PARAMS. 3620 * cp-demangle.c: Likewise. 3621 (d_dump, cplus_demangle_fill_name, 3622 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor, 3623 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name, 3624 d_make_builtin_type, d_make_operator, d_make_extended_operator, 3625 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub, 3626 cplus_demangle_mangled_name, has_return_type, 3627 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name, 3628 d_prefix, d_unqualified_name, d_source_name, d_number, 3629 d_identifier, d_operator_name, d_special_name, d_call_offset, 3630 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers, 3631 d_function_type, d_bare_function_type, d_class_enum_type, 3632 d_array_type, d_pointer_to_member_type, d_template_param, 3633 d_template_args, d_template_arg, d_expression, d_expr_primary, 3634 d_local_name, d_discriminator, d_add_substitution, 3635 d_substitution, d_print_resize, d_print_append_char, 3636 d_print_append_buffer, d_print_error, cplus_demangle_print, 3637 d_print_comp, d_print_java_identifier, d_print_mod_list, 3638 d_print_mod, d_print_function_type, d_print_array_type, 3639 d_print_expr_op, d_print_cast, cplus_demangle_init_info, 3640 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3, 3641 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor, 3642 print_usage, main): 3643 36442005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net> 3645 3646 Convert libiberty to ISO C prototype style 1/n. 3647 * _doprnt.c: Remove conditional #include <varargs.h> on 3648 ANSI_PROTOTYPES as the latter is always assumed. 3649 (_doprnt, checkit, main): Use ISO C prototype. 3650 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype. 3651 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES. 3652 (dupargv, freeargv, buildargv, main): Use ISO C prototype. 3653 * atexit.c (atexit): Likewise 3654 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES. 3655 (asprintf): Use ISO C prototype. 3656 * basename.c (basename): Likewise 3657 * bcmp.c (bcmp): Likewise. 3658 * bcopy.c (bcopy): Likewise. 3659 * bzero.c (bzero): Likewise. 3660 * bsearch.c (bsearch): Likewise. Improve const-correctness. 3661 * choose-temp.c (choose_temp_base): Likewise. 3662 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES. 3663 (calloc): Use ISO C prototype. 3664 * clock.c (clock): Likewise. 3665 * concat.c: Remove conditional #include on ANSI_PROTOTYPES. 3666 (vconcat_length, vconcat_copy, concat_length, concat_copy, 3667 concat_copy2, concat, reconcat, main): Use ISO C prototype. 3668 * copysign.c (copysign): Likewise. 3669 36702005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3671 3672 * Makefile.in (CFILES): Add strndup.c and xstrndup.c. 3673 (REQUIRED_OFILES): Add xstrndup.o. 3674 (CONFIGURED_OFILES): Add strndup.o. 3675 Regenerate dependencies. 3676 3677 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup. 3678 3679 * strndup.c, xstrndup.c: New. 3680 3681 * config.in, configure, functions.texi: Regenerate. 3682 36832005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3684 3685 * xmemdup.c, xstrdup.c: Expose the tail call. 3686 36872005-03-09 Mark Mitchell <mark@codesourcery.com> 3688 3689 * configure.ac (funcs): Add gettimeofday. 3690 * configure: Regenerated. 3691 * gettimeofday.c: New file. 3692 * Makefile.in (CFILES): Add gettimeofday. 3693 (CONFIGURED_OFILES): Add gettimeofday.o. 3694 (./gettimeofday.o): New rule. 3695 36962005-03-09 Ian Lance Taylor <ian@airs.com> 3697 3698 * pex-os2.c: Remove. 3699 * configure.ac: Remove *-*-os2-emx* case when setting pexecute. 3700 * Makefile.in (CFILES): Remove pex-os2.c. 3701 (CONFIGURED_OFILES): Remove pex-os2.o. 3702 (pex-os2.o): Remove target. 3703 * configure: Rebuild. 3704 37052005-03-07 Ian Lance Taylor <ian@airs.com> 3706 3707 * mpw-config.in: Remove. 3708 * mpw-make.sed: Remove. 3709 * mpw.c: Remove. 3710 * Makefile.in (CFILES): Remove pex-mpw.c. 3711 (CONFIGURED_OFILES): Remove pex-mpw.o. 3712 (mpw.o, pex-mpw.o): Remove targets. 3713 * maint-tool (undoc): Remove reference to mpw.c. 3714 37152005-03-06 DJ Delorie <dj@redhat.com> 3716 3717 * configure.ac (target_header_dir): vfork is a stub under djgpp. 3718 * configure: Regenerated. 3719 37202005-03-01 Jan Beulich <jbeulich@novell.com> 3721 3722 * Makefile.in (CFILES): Add unlink-if-ordinary.c 3723 (REQUIRED_OFILES): Add unlink-if-ordinary.o. 3724 Add dependencies and rule for unlink-if-ordinary.o. 3725 * unlink-if-ordinary.c: New. 3726 37272005-03-01 Ben Elliston <bje@au.ibm.com> 3728 3729 * hashtab.c (htab_find_slot_with_hash): Make function 3730 documentation clearer. 3731 37322005-02-13 Jason Merrill <jason@redhat.com> 3733 3734 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous 3735 arguments. 3736 37372005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de> 3738 3739 * hex.c (hex_value): Group 'unsigned int' together to get correct 3740 markup. 3741 * functions.texi: Regenerated. 3742 37432004-12-27 H.J. Lu <hongjiu.lu@intel.com> 3744 3745 * Makefile.in: Undo to 2004-12-17. 3746 * aclocal.m4: Likewise. 3747 * config.table: Likewise. 3748 * configure.ac: Likewise. 3749 * maint-tool: Likewise. 3750 * configure: Likewise. 3751 37522004-12-19 H.J. Lu <hongjiu.lu@intel.com> 3753 3754 PR bootstrap/19072 3755 * Makefile.in (enable_shared): New substitute. 3756 (LTTARGETLIB): New. 3757 (PREFIXTARGETLIB): New. 3758 (LTTESTLIB): New. 3759 (PREFIXTESTLIB): New. 3760 (CCLD): New. 3761 (LINK): New. 3762 ($(TARGETLIB)): Use $(LINK) to create libraries and create 3763 targets by hand. 3764 ($(TESTLIB)): Likewise. 3765 (mostlyclean): Don't remove .libs. Remove the libtool object 3766 directory. 3767 3768 * config.table (enable_shared): Removed. 3769 3770 * configure.ac (enable_static): Set to yes. 3771 (AC_PROG_LIBTOOL): Removed. 3772 (AM_DISABLE_SHARED): Uncommented. 3773 (AM_PROG_LIBTOOL): Likewise. 3774 (LIBOBJS): Add `./' to avoid VPATH. 3775 (LTLIBOBJS): Likewise. 3776 (enable_shared): Substitute. 3777 * configure: Regenerated. 3778 37792004-12-18 H.J. Lu <hongjiu.lu@intel.com> 3780 3781 * Makefile.in (top_builddir): Set to `.'. 3782 (OUTPUT_OPTION): Removed. 3783 (LIBTOOL): New. 3784 (LTLIBOBJS): New. 3785 (EXTRA_LTOFILES): New. 3786 (FLAGS_TO_PASS): Add EXTRA_LTOFILES. 3787 (all): Remove stamp-picdir. 3788 (LTCOMPILE): New. 3789 (.c.lo): New rule. 3790 (REQUIRED_LTOFILES): New. 3791 (CONFIGURED_LTOFILES): New. 3792 ($(TARGETLIB)): Check .libs for PIC object files. Depend on 3793 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS). 3794 (stamp-picdir): Completely removed. 3795 (maint-missing): Pass $(REQUIRED_LTOFILES) 3796 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES) 3797 $(CONFIGURED_OFILES) 3798 (maint-buildall): Depend on $(REQUIRED_LTOFILES) 3799 $(CONFIGURED_LTOFILES). 3800 (mostlyclean): Also remove *.lo .libs. 3801 Run "make maint-deps". 3802 3803 * aclocal.m4: Include ../libtool.m4. 3804 3805 * config.table: Don't check --enable-shared. 3806 3807 * configure.ac (AC_PROG_LIBTOOL): Add. 3808 (AC_PROG_CC_C_O): Removed. 3809 (OUTPUT_OPTION): Removed. 3810 (NO_MINUS_C_MINUS_O): Removed. 3811 (ltpexecute): New substitute. 3812 (LIBOBJS): Cleanup. 3813 * configure: Regenerated. 3814 3815 * maint-tool: Updated for .lo/libtool. 3816 38172004-12-11 Ben Elliston <bje@au.ibm.com> 3818 3819 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int). 3820 * configure: Regenerate. 3821 * config.in: Likewise. 3822 38232004-12-07 DJ Delorie <dj@redhat.com> 3824 3825 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so 3826 that recursion (and thus large stack space) is not needed. 3827 38282004-11-29 Matt Kraai <kraai@alumni.cmu.edu> 3829 3830 * pex-unix.c: Fix the spelling of longjmp. 3831 38322004-11-23 Ian Lance Taylor <ian@wasabisystems.com> 3833 3834 PR other/18623 3835 * cp-demangle.c (d_call_offset): Remove useless local variables 3836 offset and virtual_offset. 3837 * cplus-dem.c (ada_demangle): Remove useless local variable 3838 at_start_name. 3839 (demangle_template): Remove useless local variable start. 3840 38412004-11-19 Roger Sayle <roger@eyesopen.com> 3842 3843 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before 3844 "ansidecl.h" to avoid redeclaration errors with native compilers. 3845 * regex.c: Protect config.h from multiple inclusion. 3846 38472004-11-12 Mike Stump <mrs@apple.com> 3848 3849 * Makefile.in (libiberty.html): Fix html generation. 3850 38512004-09-08 Adam Nemet <anemet@lnxw.com> 3852 3853 * vasprintf.c: Accept __va_copy in addition to va_copy. 3854 38552004-09-03 Paolo Bonzini <bonzini@gnu.org> 3856 3857 * configure: Regenerate. 3858 38592004-09-02 Paolo Bonzini <bonzini@gnu.org> 3860 3861 * configure.ac: Do not enable multilibs for build-side libiberty. 3862 38632004-06-29 Danny Smith <dannysmith@users.sourceforge.net> 3864 3865 * lrealpath.c (lrealpath): Add _WIN32 support. 3866 38672004-06-28 Zack Weinberg <zack@codesourcery.com> 3868 3869 * cp-demangle.h: Declare cplus_demangle_operators, 3870 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and 3871 cplus_demangle_type as static if IN_GLIBCPP_V3. 3872 38732004-06-28 Ian Lance Taylor <ian@wasabisystems.com> 3874 3875 PR other/16240 3876 * cp-demangle.c (d_expr_primary): Check for a failure return from 3877 cplus_demangle_type. 3878 * testsuite/demangle-expected: Add test case. 3879 38802004-05-31 Danny Smith <dannysmith@users.sourceforge.net> 3881 3882 * pex-win32.c (fix_argv): Expand comment. 3883 38842004-05-25 Daniel Jacobowitz <drow@false.org> 3885 3886 * Makefile.in: Add .NOEXPORT. 3887 38882004-04-29 Douglas B Rupp <rupp@gnat.com> 3889 3890 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update 3891 copyright. 3892 38932004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl> 3894 3895 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition. 3896 * configure: Regenerate. 3897 38982004-04-22 Richard Henderson <rth@redhat.com> 3899 3900 * hashtab.c: Include limits.h, stdint.h, ansidecl.h. 3901 (CHAR_BIT): Provide default. 3902 (struct prime_ent, prime_tab): New. 3903 (higher_prime_index): Rename from higher_prime_number, return index. 3904 (htab_mod_1): New. 3905 (htab_mod, htab_mod_m2): Use it. 3906 (htab_create_alloc, htab_create_alloc_ex): Store prime index. 3907 (htab_expand): Likewise. 3908 * configure.ac: Check for stdint.h. 3909 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in. 3910 * config.in, configure: Rebuild. 3911 39122004-04-13 Ian Lance Taylor <ian@wasabisystems.com> 3913 3914 * strerror.c: Include config.h, and redefine sys_nerr and 3915 sys_errlist, before including ansidecl.h and libiberty.h. 3916 39172004-04-13 Jeff Law <law@redhat.com> 3918 3919 * hashtab.c (htab_remove_elt_with_hash): New function. 3920 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash. 3921 39222004-03-31 Richard Henderson <rth@redhat.com> 3923 3924 * hashtab.c (htab_size): Move to top of file; mark inline. 3925 (htab_elements): Likewise. 3926 (htab_mod, htab_mod_m2): New. 3927 (htab_delete): Refactor htab->size and htab->entries. 3928 (htab_empty): Likewise. 3929 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2. 3930 (htab_find_with_hash, htab_find_slot_with_hash): Likewise. 3931 (htab_clear_slot): Use htab_size, htab_elements. 3932 (htab_traverse_noresize, htab_traverse): Likewise. 3933 39342004-03-17 Ian Lance Taylor <ian@wasabisystems.com> 3935 3936 * pex-unix.c (pexecute): Use vfork instead of fork, with 3937 appropriate changes to make this safe. 3938 * pex-common.h (STDERR_FILE_NO): Define. 3939 3940 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for 3941 an 80 column screen. Run maint-deps. 3942 39432004-03-09 Kelley Cook <kcook@gcc.gnu.org> 3944 3945 * configure.ac: Bump version to 2.59. Apply suggested autoupdates. 3946 * acconfig.h: Delete redundant file. 3947 * config.in: Regenerate. 3948 * configure: Regenerate. 3949 39502004-03-09 Hans-Peter Nilsson <hp@axis.com> 3951 3952 * configure: Regenerate for config/accross.m4 correction. 3953 39542004-03-07 Andreas Jaeger <aj@suse.de> 3955 3956 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for 3957 prototypes. 3958 (main): Initialize style. 3959 39602004-02-24 Ian Lance Taylor <ian@wasabisystems.com> 3961 3962 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED, 3963 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG, 3964 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT. 3965 * cp-demangle.c (cplus_demangle_builtin_types): Change char and 3966 short types to D_PRINT_DEFAULT. Change other integer types to use 3967 new D_PRINT_* values where appropriate. Change float types to 3968 D_PRINT_FLOAT. 3969 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_* 3970 values. 3971 * testsuite/demangle-expected: Adjust two test cases. 3972 3973 * cp-demangle.c (d_print_function_type): Print a space before the 3974 parenthesis around the function type in more cases. 3975 * testsuite/demangle-expected: Adjust one test case. 3976 3977 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra 3978 parentheses around a cast. 3979 * testsuite/demangle-expected: Adjust two test cases to match new 3980 output. 3981 3982 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle. 3983 3984 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't 3985 push more than one of the same CV-qualifier on the top of the 3986 stack. 3987 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified, 3988 move the CV-qualifiers to apply to the element type instead. 3989 (d_print_array_type): When checking the modifiers, keep looking 3990 past ones which have been printed already. 3991 * testsuite/demangle-expected: Add three test cases. 3992 39932004-02-23 Ian Lance Taylor <ian@wasabisystems.com> 3994 3995 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle 3996 empty string correctly. 3997 3998 * cp-demangle.c (__cxa_demangle): It is not an error if status is 3999 not NULL. It is an error if the mangled name is the same as a 4000 built-in type name. 4001 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather 4002 than cplus_demangle_v3. 4003 4004 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and 4005 the associated #define of RETURN_ON_ALLOCATION_FAILURE. 4006 40072004-02-16 Matt Kraai <kraai@alumni.cmu.edu> 4008 4009 * regex.c: Include <ansidecl.h>. 4010 (regcomp): Cast i to int. 4011 (regerror): Add ATTRIBUTE_UNUSED to parameter preg. 4012 40132004-01-25 Ian Lance Taylor <ian@wasabisystems.com> 4014 4015 * configure.ac: Add m4_pattern_allow(LIBOBJS). 4016 * configure: Regenerate. 4017 40182004-01-22 DJ Delorie <dj@redhat.com> 4019 4020 * Makefile.in: Convert to ./ throughout. Rebuild dependencies 4021 with explicit build rules. 4022 (VPATH): Remove. 4023 (.c.o): Poison. 4024 * configure.ac (pexecute, LIBOBJS): Add ./ . 4025 * maint-tool: Build dependencies with explicit rules. 4026 40272004-01-15 Kazu Hirata <kazu@cs.umass.edu> 4028 4029 * strdup.c (strdup): Constify the argument. 4030 40312004-01-14 Loren J. Rittle <ljrittle@acm.org> 4032 4033 * Makefile.in (distclean): Remove config.cache. 4034 40352004-01-13 Daniel Jacobowitz <drow@mvista.com> 4036 4037 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE 4038 takes two parameters. 4039 * cp-demint.c (cplus_demangle_fill_component): Likewise. 4040 40412004-01-12 Ian Lance Taylor <ian@wasabisystems.com> 4042 4043 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is 4044 defined, rename some functions which are to become static via 4045 #define. 4046 (CP_STATIC_IF_GLIBCPP_V3): Define. 4047 (struct d_operator_info): Move definition to cp-demangle.h, and 4048 rename to demangle_operator_info. Change all uses. 4049 (enum d_builtin_type_print): Move definition to cp-demangle.h. 4050 (struct d_builtin_type_info): Move definition to cp-demangle.h, 4051 and rename to demangle_builtin_type_info. Change all uses. 4052 (enum d_comp_type): Move definition to include/demangle.h, and 4053 rename to demangle_component_type, and change all enums to start 4054 with DEMANGLE_COMPONENT_ instead of D_. Change all uses. 4055 (struct d_comp): Move definition to include/demangle.h, and rename 4056 to demangle_component. Change all uses. 4057 (struct d_info): Move definition to cp-demangle.h. 4058 (cplus_demangle_fill_name): New function. 4059 (cplus_demangle_fill_extended_operator): New function. 4060 (cplus_demangle_fill_ctor): New function. 4061 (cplus_demangle_fill_dtor): New function. 4062 (d_make_empty): Remove type parameter. Change all callers. 4063 (d_make_name): Use cplus_demangle_fill_name. 4064 (d_make_extended_operator): Use 4065 cplus_demangle_fill_extended_operator. 4066 (d_make_ctor): Use cplus_demangle_fill_ctor. 4067 (d_make_dtor): Use cplus_demangle_fill_dtor. 4068 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make 4069 non-static by default. Change all callers. 4070 (cplus_demangle_operators): Rename from d_operators. Change all 4071 uses. Make non-static by default. Add sentinel at end of array. 4072 (d_operator_name): Adjust initialization of high for new sentinel 4073 in cplus_demangle_operators. 4074 (cplus_demangle_builtin_types): Rename from d_builtin_types. 4075 Change all uses. Make non-static by default. Change initializer 4076 to use D_BUILTIN_TYPE_COUNT instead of magic number 26. 4077 (cplus_demangle_type): Rename from d_type. Make non-static by 4078 default. Change all callers. 4079 (cplus_demangle_init_info): Rename from d_init_info. Make 4080 non-static by default. Change all callers. 4081 * cp-demangle.h: New file. 4082 * cp-demint.c: New file. 4083 * Makefile.in: Rebuild dependencies. 4084 (CFILES): Add cp-demint.c. 4085 (REQUIRED_OFILES): Add cp-demint.o. 4086 40872004-01-09 Kelley Cook <kcook@gcc.gnu.org> 4088 4089 * configure.in: Rename file to ... 4090 * configure.ac: ... this. 4091 * Makefile.in: Update a comment for above change. 4092 * README: Likewise. 4093 * config.in: Regenerate. 4094 40952004-01-02 Ian Lance Taylor <ian@wasabisystems.com> 4096 4097 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip 4098 CV-qualifiers from D_COMP_LOCAL_NAME right subtree. 4099 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when 4100 demangling template parameters. 4101 * testsuite/test-demangle.c (fail): New static function. 4102 (main): Support new options in input file: --no-params, 4103 --is-v3-ctor, and --is-v3-dtor. 4104 * testsuite/demangle-expected: Add --no-params to most tests, and 4105 add the correct result when parameters are not demangled. Add 4106 some simple tests for V3 constructor/destructor recognition. 4107 41082003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4109 4110 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change. 4111 41122003-12-22 Daniel Jacobowitz <drow@mvista.com> 4113 4114 PR debug/13272 4115 * Makefile.in (lbasename.o): Depend on filenames.h. 4116 * lbasename.c: Include "filenames.h" instead of defining 4117 its macros locally. 4118 41192003-12-22 Ian Lance Taylor <ian@wasabisystems.com> 4120 4121 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports 4122 dynamic arrays. 4123 (struct d_operator_info): Add len field. 4124 (struct d_builtin_type_info): Add len and java_len fields. 4125 (struct d_standard_sub_info): Add simple_len, full_len, and 4126 set_last_name_len fields. 4127 (struct d_comp): Add len field to s_string. 4128 (struct d_info): Add send, did_subs, and expansion fields. 4129 (d_append_string_constant): Define. 4130 (d_append_string): Remove. Change all users to use 4131 d_append_string_constant or d_append_buffer instead. 4132 (d_make_sub): Add len parameter. Change all callers. 4133 (d_name): Increase expansion when substituting std::. 4134 (d_unqualified_name): Increase expansion for an operator. 4135 (d_number): Don't use multiplication for negative numbers. 4136 (d_identifier): Make sure there are enough characters in the 4137 string for the specified length. Adjust expansion for an 4138 anonymous namespace. 4139 (d_operators): Initialize len field. 4140 (d_special_name, d_ctor_dtor_name): Increase expansion. 4141 (d_builtin_types): Initialize len and java_len fields. 4142 (d_type): Increase expansion for a builtin type. 4143 (d_cv_qualifiers): Increase expansion for each qualifier. 4144 (d_bare_function_type): Decrease expansion when removing single 4145 void parameter. 4146 (d_template_param): Increment did_subs. 4147 (d_expression): Increase expansion for an operator. 4148 (d_expr_primary): Decrease expansion for a type we will print 4149 specially. 4150 (standard_subs): Initialize new fields. 4151 (d_substitution): Increment did_subs when doing a normal 4152 substitution. Increase expansion for a special substitution. 4153 (d_print): Add estimate parameter. Change all callers. 4154 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline. 4155 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call. 4156 (d_print_java_identifier): Rename from d_print_identifier. Handle 4157 only Java case. Change caller. 4158 (d_init_info): Change return type to void. Change all callers. 4159 Initialize send, did_subs, and expansion fields. Do not 4160 initialize comps and subs fields. 4161 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs 4162 arrays on stack. Make an estimate of the length of the demangled 4163 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures. 4164 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and 4165 subs arrays on stack. 4166 41672003-12-20 Ian Lance Taylor <ian@wasabisystems.com> 4168 4169 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$' 4170 after the identifier. 4171 * testsuite/demangle-expected: Add test case. 4172 41732003-12-19 Ian Lance Taylor <ian@wasabisystems.com> 4174 4175 Fix for PR c++/13447: 4176 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME. 4177 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME. 4178 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like 4179 D_COMP_QUAL_NAME. 4180 (is_ctor_or_dtor): Likewise. 4181 (d_local_name): Use D_COMP_LOCAL_NAME rather than 4182 D_COMP_QUAL_NAME. 4183 (d_print_comp) [D_COMP_LOCAL_NAME]: New. 4184 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is 4185 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree. 4186 (d_print_mod_list): Handle D_COMP_LOCAL_NAME. 4187 * testsuite/demangle-expected: Add two test cases. 4188 4189 * cp-demangle.c (d_print_function_type): Clear the global modifier 4190 list when printing the modifiers, not just when printing the 4191 function parameters. 4192 * testsuite/demangle-expected: Add two test cases. 4193 41942003-12-15 Ian Lance Taylor <ian@wasabisystems.com> 4195 4196 * cp-demangle.c (d_print_function_type): Print the function 4197 parameters with no modifiers. 4198 * testsuite/demangle-expected: Add test case. 4199 4200 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't 4201 expect that we've read the entire string. 4202 (is_ctor_or_dtor): Don't expect that we've read the entire 4203 string--reverse patch of 2003-11-29. 4204 42052003-12-15 Brendan Kehoe <brendan@zen.org> 4206 4207 * Makefile.in (floatformat.o): Add dependency on 4208 config.h to accompany change of 2003-12-03. 4209 42102003-12-15 Ian Lance Taylor <ian@wasabisystems.com> 4211 4212 Fix handling of constructor/destructor of standard substitution: 4213 * cp-demangle.c (struct d_standard_sub_info): Define. 4214 (d_substitution): Add prefix argument. Change all callers. 4215 Rework handling of standard substitutions to print full name when 4216 qualifying a constructor/destructor, or when DMGL_VERBOSE is set. 4217 * testsuite/demangle-expected: Add test case. 4218 4219 Fix handling of negative literal constants: 4220 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG. 4221 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG. 4222 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number. 4223 (d_print_comp): Handle D_COMP_LITERAL_NEG. 4224 * testsuite/demangle-expected: Add test case. 4225 42262003-12-04 Ian Lance Taylor <ian@wasabisystems.com> 4227 4228 * cp-demangle.c (IS_UPPER, IS_LOWER): Define. 4229 (d_last_char): Define new macro. 4230 (d_make_name): Reject an empty name. 4231 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros. 4232 (d_substitution, d_print_identifier): Likewise. 4233 (d_print_comp) [D_COMP_OPERATOR]: Likewise. 4234 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro. 4235 (d_print_mod) Use new d_last_char macro. 4236 (d_print_cast): Use new d_last_char macro. 4237 (is_ctor_or_dtor): Don't leak memory. 4238 4239 Fix handling of member function modifiers: 4240 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS, 4241 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS. 4242 (d_dump): Dump new d_comp_type values. 4243 (d_make_comp): Accept new d_comp_type values. 4244 (has_return_type): Only accept _THIS variants of qualifiers. 4245 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of 4246 qualifiers. 4247 (d_cv_qualifiers): Add member_fn parameter. Change all callers. 4248 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing 4249 qualifiers and printing them at the end, add _THIS qualifiers to 4250 the modifier list. 4251 (d_print_comp) [D_COMP_*_THIS]: New cases. 4252 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of 4253 qualifiers. 4254 (d_print_mod_list): Add suffix parameter. Change all callers. 4255 Keep walking the list even if the current modifier has been 4256 printed. 4257 (d_print_mod): Handle new _THIS qualifiers. 4258 (d_print_function_type): Handle new _THIS qualifiers when deciding 4259 whether to print a parenthesis. Put a space before the 4260 parenthesis in some cases. Call d_print_mod_list again at the 4261 end, passing suffix as 1. 4262 (is_ctor_or_dtor): Look for new _THIS qualifiers. 4263 * testsuite/demangle-expected: Add test case. 4264 4265 Fix for PR gcc/13304: 4266 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character 4267 before the '<' is itself a '<', insert a space. 4268 (d_print_cast): Likewise. 4269 * testsuite/demangle-expected: Add test case. 4270 4271 Fix for PR gcc/13244: 4272 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression 4273 which uses the '>' operator in an extra layer of parens. 4274 * testsuite/demangle-expected: Add test case. 4275 42762003-12-03 Ian Lance Taylor <ian@wasabisystems.com> 4277 4278 * floatformat.c: Include "config.h" and <string.h> if available. 4279 (INFINITY, NAN): Define if not defined by <math.h>. 4280 (floatformat_to_double): Handle NaN, infinity, and denormalized 4281 numbers. 4282 (floatformat_from_double): Likewise. 4283 (ieee_test): In debugging code, use little endian rather than big 4284 endian. Correct tests to handle NaN and to check correct sign of 4285 zero. Omit m68k extended test. 4286 (main): Add more debugging cases. 4287 42882003-11-29 Ian Lance Taylor <ian@wasabisystems.com> 4289 4290 * cp-demangle.c (d_demangle): Only return success if we consumed 4291 the entire demangled string. 4292 (is_ctor_or_dtor): Likewise. 4293 4294 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch 4295 to restore expected result of EDG test case to original expected 4296 result. 4297 42982003-11-26 Ian Lance Taylor <ian@wasabisystems.com> 4299 4300 * cp-demangle.c (struct d_print_mod): Add templates field. 4301 (d_make_builtin_type): Check for NULL type. 4302 (d_make_extended_operator): Check for NULL name. 4303 (d_make_ctor, d_make_dtor): Likewise. 4304 (d_mangled_name): Add top_level parameter. Change all callers. 4305 (d_encoding): If DMGL_PARAMS is not set, strip off initial 4306 CV-qualifiers. 4307 (d_type): Check some return values we rely on. 4308 (d_bare_function_type, d_array_type): Likewise. 4309 (d_pointer_to_member_type, d_template_args): Likewise. 4310 (d_add_substitution): Fail if argument is NULL. 4311 (d_print_resize): Check whether buf is NULL. 4312 (d_print_comp): Save current templates list with each modifier. 4313 Don't pass the modifier list down when printing a template. 4314 (d_print_cast): Don't pass the modifier list down when printing a 4315 template. 4316 (d_print_mod_list): Temporarily set templates list while printing 4317 a modifier. 4318 (d_print_mod): Check that buf is not NULL before using it. 4319 (d_print_function_type): Print parens if there is no modifier. 4320 (d_init_info): Permit as many substitutions as there are 4321 characters in the mangled name. 4322 * testsuite/demangle-expected: Add two new test cases. 4323 43242003-11-25 Ian Lance Taylor <ian@wasabisystems.com> 4325 4326 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to 4327 d_demangle. 4328 43292003-11-22 Ian Lance Taylor <ian@wasabisystems.com> 4330 4331 * cp-demangle.c (d_encoding): Add top_level parameter. Change all 4332 callers. 4333 (print_usage): Display new -p option. 4334 (long_options): Add --no-params. 4335 (main): Accept and handle -p. 4336 43372003-11-21 Ian Lance Taylor <ian@wasabisystems.com> 4338 4339 * cp-demangle.c (has_return_type): Skip qualifiers when checking 4340 whether we have a template. 4341 * testsuite/demangle-expected: Add four new tests. 4342 43432003-11-20 Ian Lance Taylor <ian@wasabisystems.com> 4344 4345 * testsuite/demangle-expected: Minor changes to match output of 4346 new demangler: adjust whitespace in four tests, and change order 4347 of qualifiers in one test. 4348 4349 * cp-demangle.c: Complete rewrite. 4350 43512003-11-19 Mark Mitchell <mark@codesourcery.com> 4352 4353 * cp-demangle.c (demangle_type): Correct thinko in substitution 4354 processing. 4355 43562003-11-18 Ian Lance Taylor <ian@wasabisystems.com> 4357 4358 * cp-demangle.c (demangle_operator_name): Remove space before 4359 "sizeof". 4360 (demangle_type_ptr): Put qualifiers in the right place. Handle 4361 qualifiers in pointer to member specially. 4362 (demangle_type): Handle qualifiers for pointer or reference 4363 specially. Handle function type. 4364 (demangle_local_name): Save and restore caret around demangling of 4365 initial encoding. 4366 4367 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to 4368 cplus_demangle. 4369 4370 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a. 4371 43722003-10-31 Andreas Jaeger <aj@suse.de> 4373 4374 * floatformat.c (floatformat_always_valid): Add unused attribute. 4375 43762003-10-30 Josef Zlomek <zlomekj@suse.cz> 4377 4378 Jan Hubicka <jh@suse.cz> 4379 * vasprintf.c (int_vasprintf): Pass va_list by value. 4380 Use va_copy for copying va_list. 4381 (vasprintf): Pass va_list by value. 4382 43832003-10-30 Josef Zlomek <zlomekj@suse.cz> 4384 4385 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted 4386 instead of increasing n_elements when inserting to deleted slot. 4387 43882003-10-20 J. Brobecker <brobecker@gnat.com> 4389 4390 * cplus-dem.c (demangle_template): Register a new Btype only 4391 when needed. 4392 * testsuite/demangle-expected: Add a new test. 4393 43942003-10-16 H.J. Lu <hongjiu.lu@intel.com> 4395 4396 * testsuite/demangle-expected: Update the expected output of 4397 _GLOBAL__I__Z2fnv. 4398 43992003-10-02 Daniel Jacobowitz <drow@mvista.com> 4400 4401 * strerror.c: Revert last change. Declare static sys_nerr 4402 and sys_errlist using different names. 4403 44042003-10-01 Daniel Jacobowitz <drow@mvista.com> 4405 4406 * strerror.c: Don't provide or reference sys_errlist if 4407 strerror is available. 4408 44092003-10-01 H.J. Lu <hongjiu.lu@intel.com> 4410 4411 * configure.in: Check if $MAKEINFO is missing. 4412 * configure: Regenerated. 4413 44142003-09-24 Daniel Jacobowitz <drow@mvista.com> 4415 4416 * configure.in: Use AC_PROG_CPP_WERROR. 4417 * configure: Regenerated. 4418 44192003-09-22 Andrew Cagney <cagney@redhat.com> 4420 4421 * floatformat.c (floatformat_i387_ext_is_valid): New function. 4422 (floatformat_always_valid): New function. 4423 (floatformat_i387_ext): Initialize new "is_valid" field to 4424 "floatformat_i387_ext_is_valid". 4425 (floatformat_ieee_single_little): Initialize "is_valid" field to 4426 floatformat_always_valid. 4427 (floatformat_ieee_double_big): Ditto. 4428 (floatformat_ieee_double_little): Ditto. 4429 (floatformat_ieee_double_little): Ditto. 4430 (floatformat_ieee_double_littlebyte_bigword): Ditto. 4431 (floatformat_i960_ext): Ditto. 4432 (floatformat_m88110_ext): Ditto. 4433 (floatformat_m88110_harris_ext): Ditto. 4434 (floatformat_arm_ext_big): Ditto. 4435 (floatformat_arm_ext_littlebyte_bigword): Ditto. 4436 (floatformat_ia64_spill_big): Ditto. 4437 (floatformat_ia64_spill_little): Ditto. 4438 (floatformat_ia64_quad_big): Ditto. 4439 (floatformat_ia64_quad_little): Ditto. 4440 (floatformat_ia64_quad_little): Ditto. 4441 (floatformat_is_valid): Call "is_valid". 4442 44432003-09-15 Andrew Cagney <cagney@redhat.com> 4444 4445 * floatformat.c (get_field): Make "data" constant. 4446 (floatformat_is_valid, floatformat_to_double): Make "from" 4447 constant, fix casts. 4448 (floatformat_from_double): Make "from" constant. 4449 44502003-09-15 Daniel Jacobowitz <drow@mvista.com> 4451 4452 * floatformat.c (floatformat_is_valid): New function. 4453 (get_field, put_field): Correct comments. 4454 44552003-09-06 Josef Zlomek <zlomekj@suse.cz> 4456 4457 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to 4458 FIBHEAPKEY_T. 4459 44602003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 4461 4462 PR bootstrap/12100 4463 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define. 4464 * configure: Rebuilt. 4465 44662003-08-27 Daniel Jacobowitz <drow@mvista.com> 4467 4468 * aclocal.m4: Include acx.m4 and no-executables.m4. 4469 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ. 4470 (LIB_AC_PROG_CC): Remove. 4471 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES. 4472 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using 4473 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if 4474 performing link tests. 4475 * configure: Regenerated. 4476 44772003-08-12 Nathanael Nerode <neroden@gcc.gnu.org> 4478 4479 * cp-demangle.c: Clarify what package(s) this is part of. 4480 44812003-07-05 Danny Smith <dannysmith@users.sourceforge.net> 4482 4483 * pex-win32.c (pexecute): Mark parameters this_pname and 4484 temp_base as unused. Remove unused variables retries, 4485 sleep_interval. Initialize org_stdin, org_stdout. 4486 (pwait): Mark parameter flags as unused. 4487 44882003-07-02 Danny Smith <dannysmith@users.sourceforge.net> 4489 4490 * pex-win32.c (fix_argv): Ensure that the executable pathname 4491 uses Win32 backslashes. 4492 (pexecute): Cast away constness when assigning *errmsg_arg. 4493 44942003-06-26 H.J. Lu <hongjiu.lu@intel.com> 4495 4496 * testsuite/demangle-expected: Add more GNU V3 testcases. 4497 44982003-06-22 Zack Weinberg <zack@codesourcery.com> 4499 4500 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC, 4501 not HC_ASCII and HC_EBCDIC. 4502 Add documentation in form expected by gather-docs. 4503 * hex.c: Use HOST_CHARSET, not hand-coded check of character set. 4504 * Makefile.in, functions.texi: Regenerate. 4505 45062003-06-21 Zack Weinberg <zack@codesourcery.com> 4507 4508 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET 4509 for charset determination. 4510 45112003-06-19 Dara Hazeghi <dhazeghi@yahoo.com> 4512 4513 * configure.in: Add check for malloc.h needed by 4514 m68k for function free(). 4515 * configure: Regenerated. 4516 * config.in: Add HAVE_MALLOC_H. 4517 * hashtab.c: include malloc.h were available for 4518 free(). 4519 45202003-06-09 Albert Chin-A-Young <china@thewrittenword.com> 4521 4522 PR bootstrap/10974 4523 * physmem.c: Update comment. 4524 * configure.in: Modify test for _system_configuration for older 4525 AIX systems. 4526 4527 * config.in, configure: Regenerated. 4528 45292003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 4530 4531 PR other/10810 4532 * test-demangle.c (getline): Fix fence-post error. 4533 45342003-06-03 Nick Clifton <nickc@redhat.com> 4535 4536 * asprintf.c: Change comment to note that -1 is returned upon 4537 error. 4538 * vasprintf.c: Likewise. 4539 (vasprintf): Return -1 upon error. 4540 * functions.texi: Document changes to asprintf and vasprintf. 4541 45422003-05-19 Kelley Cook <kelleycook@wideopenwest.com> 4543 4544 * config.table: Accept i[345867]86 variant. 4545 45462003-05-15 Jim Blandy <jimb@redhat.com> 4547 4548 * hex.c (_hex_value): Make this unsigned. 4549 (hex_value): Update documentation for new return type. hex_value 4550 now expands to an unsigned int expression, to avoid unexpected 4551 sign extension when we store it in a bfd_vma, which is larger than 4552 int on some platforms. 4553 * functions.texi: Regenerated. 4554 45552003-05-07 Josef Zlomek <zlomekj@suse.cz> 4556 4557 * splay-tree.c (splay_tree_predecessor): Fix comment. 4558 (splay_tree_successor): Fix comment. 4559 45602003-05-07 Jason Merrill <jason@redhat.com> 4561 4562 * hashtab.c (iterative_hash): New fn. 4563 * configure.in: Add AC_C_BIGENDIAN_CROSS. 4564 * aclocal.m4: Include accross.m4. 4565 * configure, config.in: Regenerate. 4566 45672003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4568 4569 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls. 4570 * configure: Regenerate. 4571 45722003-05-03 Carlo Wood <carlo@alinoe.com> 4573 4574 * cp-demangle.c: Fix typo in "char_traints" string-literal. 4575 45762003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4577 4578 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls. 4579 (main): Test that we don't write too much data. 4580 45812003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4582 4583 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and 4584 vsnprintf. 4585 * snprintf.c, vsnprintf.c: New files. 4586 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c. 4587 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o. 4588 Regenerate dependencies. 4589 4590 * functions.texi, configure, config.in: Regenerated. 4591 45922003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4593 4594 * mempcpy.c, stpcpy.c, stpncpy.c: New files. 4595 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy 4596 and stpncpy. 4597 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c. 4598 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o. 4599 Regenerate dependencies. 4600 4601 * functions.texi, configure, config.in: Regenerated. 4602 46032003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4604 4605 * argv.c: Fix comments. 4606 * calloc.c: Don't unnecessarily include "libiberty.h". 4607 (bzero): Add prototype. 4608 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES. 4609 * getcwd.c (getcwd): Use standard definition to avoid conflicts 4610 with system headers. 4611 * hashtab.c (htab_traverse): Delete unused variables. 4612 * rename.c: Include "ansidecl.h". 4613 (rename): Use standard definition to avoid conflicts with system 4614 headers. 4615 * strsignal.c: Rely on ANSI_PROTOTYPES. 4616 * strstr.c: Check GNUC >= 2, not GNUC == 2. 4617 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES. 4618 * vprintf.c: Include "ansidecl.h" earlier, rely on 4619 ANSI_PROTOTYPES. 4620 * vsprintf.c: Include "ansidecl.h" earlier, rely on 4621 ANSI_PROTOTYPES and possibly include <stdarg.h>. 4622 4623 * Makefile.in: Regenerate dependencies. 4624 46252003-04-15 DJ Delorie <dj@redhat.com> 4626 4627 * maint-tool (deps): Scan for headers in $srcdir also. 4628 46292003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4630 4631 PR target/10338 4632 PR bootstrap/10198 4633 PR bootstrap/10140 4634 * getopt.c (exchange, _getopt_initialize): Use mempcpy not 4635 __mempcpy. 4636 * regex.c (regerror): Likewise. 4637 46382003-04-14 Roger Sayle <roger@eyesopen.com> 4639 4640 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__. 4641 * memchr.c: Likewise. 4642 * strcasecmp.c: Likewise. 4643 * strncasecmp.c: Likewise. 4644 * strncmp.c: Likewise. 4645 * xatexit.c: Likewise. 4646 * xmalloc.c: Likewise. 4647 4648 * copysign.c: Use traditional function declaration instead of DEFUN. 4649 * sigsetmask.c: Likewise. 4650 4651 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN. 4652 * memset.c: Likewise. 4653 4654 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy. 4655 * memmove.c: Likewise. 4656 46572003-04-14 Roger Sayle <roger@eyesopen.com> 4658 4659 * strdup.c (strdup): Tweak implementation to use memcpy. 4660 46612003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4662 4663 * configure.in (HAVE_UINTPTR_T): Always define. 4664 * configure: Regenerated. 4665 46662003-03-23 Alexandre Oliva <aoliva@redhat.com> 4667 4668 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS) 4669 instead of $$CC alone. 4670 (install_to_tooldir): Use it. 4671 46722003-17-03 Jan Hubicka <jh@suse.cz> 4673 4674 * hashtab.c (htab_traverse_noresize): Break out from ... 4675 * hashtab.c (htab_traverse): ... here. 4676 46772003-12-03 Jan Hubicka <jh@suse.cz> 4678 4679 * hashtab.c (htab_expand): Fix warning. 4680 4681 * hashtab.c (htab_expand): Compute the size of hashtable based 4682 on the number of elements actually used. 4683 (htab_traverse): Call htab_expand when table is too empty. 4684 46852003-03-11 Carlo Wood <carlo@gnu.org> 4686 4687 * cplus-dem.c (demangle_integral_value): Correction to reflect 4688 patch of 2002-01-10 in order to also make negative multi-digits 4689 without leading underscore work. 4690 46912003-03-03 Mark Mitchell <mark@codesourcery.com> 4692 4693 * cplus-dem.c: Add license exception to copyright notice. 4694 46952003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4696 4697 * physmem.c: Formatting changes from upstream. 4698 46992003-02-24 Danny Smith <dannysmith@users.source.forge.net> 4700 4701 * physmem.c (physmem_total): Add _WIN32 support. 4702 (physmem_available): Likewise. 4703 47042003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 4705 4706 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for 4707 GSI_PHYSMEM. 4708 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS. 4709 47102003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4711 4712 * configure.in: Check for sys/systemcfg.h and 4713 _system_configuration. 4714 * physmem.c: Add support for AIX. Tweek formatting as per 4715 upstream coreutils beta. 4716 47172003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4718 Richard Earnshaw <rearnsha@arm.com> 4719 Geoffrey Keating <geoffk@apple.com> 4720 4721 * configure.in: Check for sys/sysctl.h and sysctl. 4722 * physmem.c: Add support for *bsd and darwin. 4723 * Makefile.in: Generate depedency for physmem.o. 4724 47252003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 4726 4727 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on 4728 Tru64 UNIX. 4729 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on 4730 Tru64 UNIX. 4731 4732 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h, 4733 machine/hal_sysinfo.h, sys/table.h. 4734 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table. 4735 * configure, config.in: Regenerate. 4736 47372003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4738 4739 * configure.in: Check for sys/sysmp.h and sysmp. 4740 * physmem.c: Pull upstream copy, add support for irix6. 4741 4742 * config.in, configure: Regenerated. 4743 47442003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4745 4746 * physmem.c (physmem_total, physmem_available): De-ANSI-fy. 4747 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and 4748 pstat_getdynamic. 4749 47502003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4751 4752 * Makefile.in (CFILES): Add physmem.c. 4753 (REQUIRED_OFILES): Add physmem.o. 4754 * configure.in: Check for sys/pstat.h. 4755 (checkfuncs): Add pstat_getstatic and pstat_getdynamic. 4756 * physmem.c: New file, copied from textutils. 4757 4758 * config.in, configure: Regenerated. 4759 47602003-02-20 Daniel Jacobowitz <drow@mvista.com> 4761 4762 * Makefile.in (CFILES): Add lrealpath.c. 4763 (REQUIRED_OFILES): Add lrealpath.o. 4764 (lrealpath.o): Add rule. 4765 * aclocal.m4 (libiberty_NEED_DECLARATION): Add. 4766 * configure.in: Add realpath and canonicalize_file_name to 4767 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION 4768 for canonicalize_file_name. 4769 * lrealpath.c: New file. 4770 * make-relative-prefix.c: Update documentation. 4771 (make_relative_prefix): Simplify. Use lbasename and lrealpath. 4772 * config.in: Regenerated. 4773 * configure: Regenerated. 4774 * functions.texi: Regenerated. 4775 47762003-02-20 jmc <jmc@prioris.mini.pw.edu.pl> 4777 4778 * cplus_dem.c: Fix typo: intializes -> initializes. 4779 47802003-02-20 Alexandre Oliva <aoliva@redhat.com> 4781 4782 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to 4783 config.status. 4784 * configure: Rebuilt. 4785 47862003-02-13 Daniel Jacobowitz <drow@mvista.com> 4787 4788 Fix PR c++/7612. 4789 * cplus-dem.c (demangle_signature): Call string_delete. 4790 Remove extra string_init. 4791 (demangle_arm_hp_template): Call string_delete instead of 4792 string_clear. Add missing string_delete call. 4793 (demangle_qualified): Add missing string_delete call. 4794 (do_type): Remove unused variable btype. Add missing string_delete 4795 call. Call string_delete instead of string_clear. 4796 (demangle_fund_type): Move variable btype inside of the switch 4797 statement. Add missing string_delete call. 4798 (do_arg): Call string_delete instead of string_clear. Remove extra 4799 string_init. 4800 (demangle_nested_args): Free work->previous_argument. 4801 48022003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4803 4804 * acconfig.h: New file. Add uintptr_t. 4805 * config.in: Regenerated. 4806 48072003-02-04 Joseph S. Myers <jsm@polyomino.org.uk> 4808 4809 * libiberty.texi: Update to GFDL 1.2. 4810 48112003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de> 4812 4813 * Makefile.in (libiberty_topdir): New subst. 4814 (mkinstalldirs): Redefine in terms of the above. 4815 * configure.in: AC_SUBST it. 4816 * configure: Regenerate. 4817 48182003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de> 4819 4820 * Makefile.in (all-subdir, check-subdir, installcheck-subdir) 4821 (info-subdir, install-info-subdir, clean-info-subdir) 4822 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir) 4823 (clean-subdir, distclean-subdir, maintainer-clean-subdir): 4824 Pass $(FLAGS_TO_PASS). 4825 48262003-01-27 Alexandre Oliva <aoliva@redhat.com> 4827 4828 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use 4829 /`$$CC -print-multi-os-directory`. 4830 48312003-01-26 Daniel Jacobowitz <drow@mvista.com> 4832 4833 * hashtab.c (htab_create_alloc_ex): New function. 4834 (hatab_set_functions_ex): New function. 4835 (htab_delete, htab_expand): Support alternate allocation functions. 4836 48372003-01-24 Christopher Faylor <cgf@redhat.com> 4838 4839 * configure.in: Remove special pex-cygwin consideration. 4840 * configure: Regenerate. 4841 * pex-cygwin.c: Remove. 4842 * Makefile.in: Remove pex-cygwin.[co] lines. 4843 48442003-01-24 Zack Weinberg <zack@codesourcery.com> 4845 4846 * Makefile.in (CFILES): Add pex-*.c. 4847 (REQUIRED_OFILES): Change pexecute.o to @pexecute@ 4848 (CONFIGURED_OFILES): Add pex-*.o. 4849 (TEXIFILES): Add pexecute.txh. 4850 (pexecute.o): Delete rule. 4851 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o, 4852 pex-unix.o, pex-win32.o): New rules. 4853 * configure.in: Change AC_INIT argument to xmalloc.c. 4854 Compute appropriate pexecute implementation and substitute it 4855 as @pexecute@. 4856 4857 * pexecute.c: Split up into... 4858 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c, 4859 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these 4860 new files. 4861 4862 * functions.texi: Regenerate. 4863 * configure: Regenerate. 4864 48652003-01-20 Josef Zlomek <zlomekj@suse.cz> 4866 4867 * hashtab.c (htab_expand): Fix allocation of new entries. 4868 48692003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de> 4870 4871 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR. 4872 4873 * Makefile.in (install_to_libdir, install_to_tooldir): Add a 4874 mkinstalldirs command. 4875 48762002-12-04 Danny Smith <dannysmith@users.sourceforge.net> 4877 4878 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX): 4879 Define for hosts with HOST_EXECUTABLE_SUFFIX. 4880 48812002-11-24 Nick Clifton <nickc@redhat.com> 4882 4883 * make-relative-prefix.c (make_relative_prefix): Ensure return 4884 string is empty before using strcat to construct it. 4885 48862002-11-22 Daniel Jacobowitz <drow@mvista.com> 4887 4888 * Makefile.in: Add make-relative-prefix.c. 4889 * make-relative-prefix.c: New file. 4890 * functions.texi: Rebuilt. 4891 48922002-11-16 Jakub Jelinek <jakub@redhat.com> 4893 4894 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be 4895 used with arguments in traditional C' warnings. 4896 48972002-10-16 Jakub Jelinek <jakub@redhat.com> 4898 4899 * config.table: Use mh-s390pic for s390x too. 4900 49012002-10-06 Andreas Jaeger <aj@suse.de> 4902 4903 * cplus-dem.c (ada_demangle): Get rid of unneeded 4904 variable and of strict-aliasing warning. 4905 (grow_vect): Use char as first parameter. 4906 49072002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4908 4909 * Makefile.in (all): Fix multilib parallel build. 4910 49112002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca> 4912 4913 * cp-demangle.c (demangling_new): Cast 0 to enum. 4914 (demangle_char): Cast return of strdup to char *. 4915 (is_gnu_v3_mangled_ctor): Cast 0 to enum. 4916 (is_gnu_v3_mangled_dtor): Likewise. 4917 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *. 4918 (work_stuff_copy_to_from): Cast return of xmalloc to char **. 4919 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t. 4920 * md5.c (md5_process_bytes): Cast results back to const void *. 4921 (md5_process_block): Add cast to const md5_uint32 *. 4922 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T. 4923 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to 4924 unsigned short. 4925 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc 4926 to void *. 4927 * vasprintf.c (int_vasprintf): Cast return of malloc to char *. 4928 49292002-09-19 Nick Clifton <nickc@redhat.com> 4930 4931 * README: Update email addresses for bugs and patches. 4932 49332002-09-10 Mike Stump <mrs@apple.com> 4934 4935 * splay-tree.c (splay_tree_successor): Fix comments. 4936 49372002-09-11 Zack Weinberg <zack@codesourcery.com> 4938 4939 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c. 4940 * testsuite/Makefile.in: Adjust for test-demangle. 4941 * testsuite/regress-demangle: Deleted. 4942 * testsuite/test-demangle.c: New file. 4943 * testsuite/demangle-expected: Change \$ to $ throughout, now that 4944 this file is not being read by a shell script. 4945 49462002-09-05 Roger Sayle <roger@eyesopen.com> 4947 4948 * regex.c: Only use "#pragma alloca" on AIX when not using gcc. 4949 49502002-08-07 DJ Delorie <dj@redhat.com> 4951 4952 * regex.c (re_error_msgid): Just use a simple array of strings. 4953 (re_compile_pattern): Compensate. 4954 (re_comp): Likewise. 4955 (re_comp): Likewise. 4956 (regerror): Likewise. 4957 49582002-07-29 Neil Booth <neil@daikokuya.co.uk> 4959 4960 * cplus-dem.c (PREPEND_BLANK): Remove. 4961 49622002-07-10 Jason Merrill <jason@redhat.com> 4963 4964 * cp-demangle.c (demangle_identifier): Support extended Unicode 4965 characters. 4966 49672002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4968 4969 * cp-demangle.c (demangle_v3_with_details): Wrap in 4970 !defined IN_GLIBCPP_V3. 4971 49722002-07-01 Mark Mitchell <mark@codesourcery.com> 4973 4974 * cp-demangle.c (demangle_operator_name): Add type_arg parameter. 4975 Set it for the "st" operator. 4976 (demangle_expression): Handle expressions with types as arguments. 4977 49782002-06-30 Douglas Rupp <rupp@gnat.com> 4979 4980 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure. 4981 * Makefile.in (OUTPUT_OPTION): Use. 4982 49832002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de> 4984 4985 * Makefile.in (install_to_libdir): Add $(DESTDIR). 4986 (install_to_tooldir): Likewise. 4987 49882002-06-17 Douglas Rupp <rupp@gnat.com> 4989 4990 * lbasename.c: Add 2002 to copyright. 4991 (IS_DIR_SEPARATOR): Remove VMS junk. 4992 49932002-06-05 Geoffrey Keating <geoffk@redhat.com> 4994 4995 * hashtab.c (htab_create): New stub function for backward 4996 compatibility. 4997 (htab_try_create): Likewise. 4998 49992002-06-03 Geoffrey Keating <geoffk@redhat.com> 5000 5001 * hashtab.c (htab_create): Delete. 5002 (htab_try_create): Delete. 5003 (htab_create_alloc): New. 5004 (htab_delete): Support user-specified memory allocation. 5005 (htab_expand): Likewise. 5006 50072002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de> 5008 5009 * configure.in: Fix typo in the code checking for sys_errlist. 5010 * configure: Regenerated. 5011 50122002-05-13 Andreas Schwab <schwab@suse.de> 5013 5014 * config.table: Use mh-x86pic also for x86-64. 5015 50162002-05-08 Alexandre Oliva <aoliva@redhat.com> 5017 5018 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at 5019 script entry, and set LD to it when configuring multilibs. 5020 * configure: Rebuilt. 5021 50222002-05-07 Mark Mitchell <mark@codesourcery.com> 5023 5024 * configure.in (AC_TYPE_PID_T): Use it. 5025 * configure: Regenerated. 5026 * getruntime.c: Include <sys/types.h>. 5027 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid". 5028 50292002-04-09 Richard Henderson <rth@redhat.com> 5030 5031 * hashtab.c (higher_prime_number): Use 7 as minimum. 5032 (find_empty_slot_for_expand): Don't compute hash2 unless needed. 5033 (htab_find_slot_with_hash): Likewise. 5034 50352002-04-01 Phil Edwards <pme@gcc.gnu.org> 5036 5037 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3. 5038 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally 5039 not compile if IN_GLIBCPP_V3 defined. 5040 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme. 5041 50422002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz> 5043 5044 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled" 5045 if it is NULL. 5046 50472002-03-27 DJ Delorie <dj@redhat.com> 5048 5049 * hex.c: Add documentation. 5050 (_hex_value): Provide non-ASCII empty table. 5051 (hex_init): Initialize the non-ASCII table. 5052 * functions.texi: Regenerate. 5053 50542002-03-27 Mark Mitchell <mark@codesourcery.com> 5055 5056 * dyn-string.c: Add libgcc exception to copyright notice. 5057 50582002-03-26 H.J. Lu (hjl@gnu.org) 5059 5060 * config.table: Support --with-build-subdir. 5061 * configure.in: Likewise. 5062 * configure: Rebuild. 5063 50642002-03-18 Stuart Griffith <Stuart_Griffith@credence.com> 5065 5066 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity' 5067 seen. 5068 50692002-03-12 Mark Mitchell <mark@codesourcery.com> 5070 5071 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright 5072 notice. 5073 50742002-03-11 Douglas B Rupp <rupp@gnat.com> 5075 5076 * xatexit.c [VMS]: Include stdlib.h and unixlib.h. 5077 50782002-03-06 Jim Blandy <jimb@redhat.com> 5079 5080 * splay-tree.c (splay_tree_xmalloc_allocate, 5081 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not 5082 prototyped definitions. Mark `data' arguments as unused. 5083 50842002-03-06 Andrew Cagney <ac131313@redhat.com> 5085 5086 * floatformat.c (floatformat_arm_ext_big): Delete definition. 5087 50882002-03-04 Phil Edwards <pme@gcc.gnu.org> 5089 5090 * configure.in: Add --enable-install-libiberty option. 5091 * Makefile.in (INSTALLED_HEADERS): New variable. 5092 (install_to_libdir): Possibly also copy headers. 5093 * configure: Regenerated. 5094 50952002-03-04 Neil Booth <neil@daikokuya.demon.co.uk> 5096 5097 * xmalloc.c (xmalloc_fail): Clarify error message further. 5098 50992002-03-03 Neil Booth <neil@daikokuya.demon.co.uk> 5100 5101 * xmalloc.c (xmalloc_fail): Clarify error message. 5102 51032002-02-22 Jim Blandy <jimb@redhat.com> 5104 5105 * splay-tree.c (splay_tree_xmalloc_allocate, 5106 splay_tree_xmalloc_deallocate): New functions. 5107 (splay_tree_new): Call splay_tree_new_with_allocator, passing the 5108 above functions and a dummy data pointer. 5109 (splay_tree_new_with_allocator): New function. 5110 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert, 5111 splay_tree_remove): Use the splay tree's allocation and 5112 deallocation functions. 5113 51142002-02-19 Scott Snyder <snyder@fnal.gov> 5115 5116 * testsuite/demangle-expected: Add test case for infinite loop in 5117 demangler. 5118 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle 5119 if do_type() doesn't make any progress --- prevents an infinite 5120 loop. 5121 51222002-02-18 Carlo Wood <carlo@gnu.org> 5123 5124 PR c++/5390 5125 * cplus-dem.c (demangle_integral_value): Accept multi-digit 5126 numbers that do not start with an underscore; This is needed 5127 for integer template parameters. This doesn't break anything 5128 because multi-digit numbers are never followed by a digit. 5129 * testsuite/demangle-expected: Corrected all mangled test 5130 cases with multi-digit template parameters: g++ 2.95.x does 5131 not generate underscores around these parameters. 5132 51332002-02-05 Jason Merrill <jason@redhat.com> 5134 5135 * cplus-dem.c (flags): Add DMGL_VERBOSE 5136 (cplus_demangle_v3_p): Remove. 5137 (demangle_it): Add DMGL_TYPES to passed flags. 5138 * cp-demangle.c (cplus_demangle_v3_all): Remove. 5139 (cplus_demangle_v3_type): Remove. 5140 (cplus_demangle_v3): Add options parm. 5141 51422002-02-02 H.J. Lu (hjl@gnu.org) 5143 5144 * cp-demangle.c (cp_demangle_type): Do not protect with 5145 IN_LIBGCC2. 5146 (cplus_demangle_v3_all): New. 5147 (cplus_demangle_v3): Call cplus_demangle_v3_all. 5148 (cplus_demangle_v3_type): Call cplus_demangle_v3_all. 5149 5150 * cplus-dem.c (cplus_demangle_v3_p): New function pointer. 5151 Initialized to cplus_demangle_v3. 5152 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead 5153 of cplus_demangle_v3. 5154 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for 5155 command line symbol. 5156 5157 * testsuite/regress-demangle: Pass the mangled name at the 5158 command line. 5159 51602002-02-01 H.J. Lu <hjl@gnu.org> 5161 5162 * cp-demangle.c (cp_demangle_type): Call demangling_new with 5163 DMGL_GNU_V3. 5164 51652002-01-31 Phil Edwards <pme@gcc.gnu.org> 5166 5167 * cp-demangle.c: Revert yesterday's change. 5168 51692002-01-31 Adam Megacz <adam@xwt.org> 5170 5171 * configure.in: Treat mingw the same as cywin 5172 wrt HAVE_SYS_ERRLIST. 5173 51742002-01-30 Phil Edwards <pme@gcc.gnu.org> 5175 5176 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2. 5177 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on 5178 cp_demangle_type. 5179 * testsuite/demangle-expected: New gnu-v3 test. 5180 51812002-01-22 Momchil Velikov <velco@fadata.bg> 5182 5183 * configure.in (variable detection): Use arrays of unspecified 5184 size instead of plain integers. 5185 51862002-01-18 DJ Delorie <dj@redhat.com> 5187 5188 * Makefile.in (TESTLIB): New. This library is for future 5189 testsuites. 5190 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize, 5191 break down by letter. 5192 (REQUIRED_OFILES): List long-to-compile files first. 5193 (maint-deps): New, target for updating dependencies. 5194 (dependencies): Update. 5195 * maint-tool: Add dependency-generating option. 5196 * configure.in: Check for _doprnt even if we're not providing it. 5197 * configure: Regenerate. 5198 5199 * _doprnt.c: Modifications to allow compiling on any platform. 5200 * copysign.c: Likewise. 5201 * putenv.c: Likewise. 5202 * setenv.c: Likewise. 5203 * vsprintf.c: Likewise. 5204 52052002-01-15 Douglas B Rupp <rupp@gnat.com> 5206 5207 * mkstemps.c (mkstemps): On VMS, open temp file with option 5208 that causes it to be deleted when closed. 5209 52102002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5211 5212 * cp-demangle.c (long_options): Const-ify. 5213 * cplus-dem.c (long_options): Likewise. 5214 5215 * cplus-dem.c (mystrstr): Delete. All callers changed to use 5216 strstr instead. 5217 52182001-12-31 Ira Ruben <ira@apple.com> 5219 5220 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try. 5221 * configure: Regenerated. 5222 52232001-12-24 Douglas B. Rupp <rupp@gnat.com> 5224 5225 * configure.in (uintptr_t): Use AC_CHECK_TYPE. 5226 * configure: Regenerated. 5227 52282001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org> 5229 5230 PR other/2719 5231 * cplus-dem.c (consume_count): Treat negative count as an error. 5232 * testsuite/demangle-expected: Added testcase. 5233 5234Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com> 5235 5236 * configure.in: Hardcode that vfork works on VMS host. 5237 * configure: Regenerated. 5238 52392001-12-06 Richard Henderson <rth@redhat.com> 5240 5241 * cplus-dem.c (libiberty_demanglers): Add no_demangling case. 5242 (cplus_demangle): Support no_demangling. 5243 52442001-11-27 Zack Weinberg <zack@codesourcery.com> 5245 5246 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build 5247 in libiberty context. Fix typo in leading comment. 5248 * configure.in: Fix various AC_DEFINEs so autoheader works. 5249 If any of vprintf, vsprintf, vfprintf is missing from libc, 5250 then AC_REPLACE_FUNCS(_doprnt). 5251 52522001-11-26 DJ Delorie <dj@redhat.com> 5253 Daniel Jacobowitz <drow@mvista.com> 5254 5255 * Makefile.in (stamp-h): Depend on Makefile for proper 5256 serialization. 5257 (*-subdir): Depend on config.h for proper serialization. 5258 52592001-11-26 DJ Delorie <dj@redhat.com> 5260 5261 * configure.in: Check for alloca.h (for regex.c and putenv.c). 5262 * configure: Regenerate. 5263 * config.h: Add HAVE_ALLOCA_H. 5264 52652001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5266 5267 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) || 5268 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting 5269 is available. 5270 5271Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com) 5272 5273 * config.in (HAVE_UINTPTR_T): Provide autoconf stub. 5274 * configure.in (HAVE_UINTPTR_T): Test for system defining 5275 uintptr_t and define HAVE_UINTPTR_T appropriately. 5276 * regex.c (uintptr_t): Do not provide a definition if the 5277 system provided one. 5278 5279 * regex.c (PREFIX): Provide an alternate definition for 5280 non-ANSI/ISO compilers. 5281 (ARG_PREFIX): Likewise. 5282 52832001-11-12 Jim Meyering <meyering@lucent.com> 5284 5285 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise, 5286 this code would end up calling gettext even in packages built 5287 with --disable-nls. 5288 * getopt.c (_): Likewise. 5289 * regex.c (_): Likewise. 5290 52912001-11-03 Alan Modra <amodra@bigpond.net.au> 5292 5293 * configure.in: Cope with missing makeinfo. 5294 * configure: Regenerate. 5295 52962001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5297 5298 * hex.c (hex_init): Provide empty stub. 5299 5300 * hex.c (hex_init): Delete. 5301 (_hex_value): Const-ify and initialize at compile-time. 5302 53032001-10-19 H.J. Lu <hjl@gnu.org> 5304 5305 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if 5306 necessary. 5307 53082001-10-17 DJ Delorie <dj@redhat.com> 5309 5310 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c, 5311 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c, 5312 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c: 5313 Improve manual formatting. 5314 * functions.texi: Regenerate. 5315 53162001-10-15 DJ Delorie <dj@redhat.com> 5317 5318 * Makefile.in (TEXIFILES): Add fnmatch.txh. 5319 (maint-undoc): New. 5320 maint-tool: Add "undoc" tool. 5321 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c, 5322 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c, 5323 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c, 5324 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update 5325 documentation. 5326 * fnmatch.txh: New. 5327 * functions.texi: Regenerate. 5328 53292001-10-10 Joseph S. Myers <jsm28@cam.ac.uk> 5330 5331 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero". 5332 * strtod.c: Use "ISO C" instead of "ANSI C". 5333 * functions.texi: Regenerate. 5334 53352001-10-07 Joseph S. Myers <jsm28@cam.ac.uk> 5336 5337 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c, 5338 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c, 5339 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c, 5340 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix 5341 spelling. Give names to function arguments in documentation. Use 5342 (void) prototypes in documentation. 5343 * functions.texi: Regenerate. 5344 53452001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5346 5347 * argv.c (buildargv, tests, main): Const-ify. 5348 * cp-demangle.c (operator_code): Likewise. 5349 * cplus-dem.c (optable, libiberty_demanglers, 5350 cplus_demangle_set_style, cplus_demangle_name_to_style, 5351 print_demangler_list): Likewise. 5352 * hashtab.c (higher_prime_number): Likewise. 5353 * strcasecmp.c (charmap): Likewise. 5354 * strerror.c (error_info, strerror, main): Likewise. 5355 * strncasecmp.c (charmap): Likewise. 5356 * strsignal.c (signal_info): Likewise. 5357 53582001-09-29 DJ Delorie <dj@redhat.com> 5359 5360 * configure: Regenerate. 5361 53622001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5363 5364 * concat.c: Include stdlib.h. 5365 53662001-09-27 Eli Zaretskii <eliz@is.elta.co.il> 5367 5368 * libiberty.texi: (Top level): Add syncodeindex pg. Add 5369 @dircategory and @direntry directives. Add @finalout. 5370 (many nodes): Lose the next,prev,up pointers on the @nide line. 5371 (Using, Supplemental Functions, Replacement Functions): Fix 5372 markup. 5373 (Functions): Move around, to allow makeinfo to build the manual 5374 without next,prev,up pointers in thye node lines. 5375 (Licenses): Fix typos. 5376 5377 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c, 5378 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup. 5379 * functions.texi: Regenerate. 5380 5381 * copying-lib.texi: Lose the next,prev,up pointers on the @node 5382 line. 5383 53842001-09-27 DJ Delorie <dj@redhat.com> 5385 5386 * configure.in: Don't use in-tree texinfo, because libiberty must 5387 be built before it. Check for makeinfo version 4 or higher. 5388 * functions.texi: Regenerate. 5389 53902001-09-20 DJ Delorie <dj@redhat.com> 5391 Phil Edwards <pedwards@disaster.jaj.com> 5392 5393 * configure.in (MAKEINFO, PERL): Detect these. 5394 (--enable-maintainer-mode): Add. 5395 * configure: Regenerate. 5396 * Makefile.in (MAKEINFO, PERL): Define. 5397 (libiberty.info, libiberty.dvi, libiberty.html): New. 5398 (CFILES): Add bsearch.c. 5399 (CONFIGURED_OFILES): New, list of objects configure might add. 5400 (maint-missing, maint-buildall): New, for maintainers only. 5401 (clean, mostlyclean): Add info/dvi/html files. 5402 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New. 5403 * gather-docs: New, for maintainers. 5404 * maint-tool: New, for maintainers. 5405 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c, 5406 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c, 5407 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c, 5408 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c, 5409 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c, 5410 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c, 5411 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c, 5412 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update 5413 documentation. 5414 54152001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5416 5417 * concat.c (reconcat): Fix for traditional C. 5418 54192001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5420 5421 * concat.c (reconcat): New function. 5422 54232001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5424 5425 * concat.c (vconcat_length, vconcat_copy, concat_length, 5426 concat_copy, concat_copy2): New functions. 5427 (concat): Use vconcat_length/vconcat_copy. 5428 5429 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len): 5430 Define. 5431 54322001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5433 5434 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN, 5435 VA_FIXEDARG & VA_CLOSE. 5436 5437 * vasprintf.c: Check HAVE_STRING_H when including string.h. 5438 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1. 5439 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string. 5440 54412001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5442 5443 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE. 5444 54452001-08-23 Ulrich Drepper <drepper@redhat.com> 5446 5447 * regex.c (truncate_wchar): Use wcrtomb not wctomb. 5448 54492001-08-23 Ulrich Drepper <drepper@redhat.com> 5450 5451 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc 5452 instead of mbrtowc. 5453 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of 5454 wcslen, and __wcscoll instead of wcscoll. 5455 54562001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu> 5457 5458 * fibheap.c (fibheap_init, fibnode_init): Remove. 5459 (fibheap_new, fibnode_new): Use xcalloc to allocate and 5460 initialize memory. 5461 (fibheap_insert): Remove check for node allocation failure. 5462 54632001-08-21 Richard Henderson <rth@redhat.com> 5464 5465 * Makefile.in (fibheap.o): Depend on config.h. 5466 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some 5467 functions for inlining. 5468 5469Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com> 5470 5471 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever 5472 hosting on cygwin. 5473 * configure: Regenerate. 5474 54752001-08-20 Andrew Cagney <ac131313@redhat.com> 5476 5477 * floatformat.c (floatformat_m88110_ext): Remove #ifdef 5478 HARRIS_FLOAT_FORMAT. 5479 (floatformat_ia64_spill_little, floatformat_ia64_quad_little) 5480 (floatformat_ia64_spill_big, floatformat_ia64_quad_big) 5481 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword) 5482 (floatformat_m88110_harris_ext): New float formats. 5483 54842001-08-20 Daniel Berlin <dan@cgsoftware.com> 5485 5486 * fibheap.c: New file. Fibonacci heap. 5487 5488 * Makefile.in (CFILES): Add fibheap.c. 5489 (REQUIRED_OFILES): Add fibheap.o. 5490 (fibheap.o): Add dependencies for fibheap.o. 5491 54922001-08-17 Christopher Faylor <cgf@cygnus.com> 5493 5494 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin. 5495 * configure: Regenerate. 5496 54972001-08-16 Richard Henderson <rth@redhat.com> 5498 5499 * hashtab.c (htab_hash_string): New. 5500 55012001-08-13 Andrew Cagney <ac131313@redhat.com> 5502 5503 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix 5504 name. 5505 55062001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com> 5507 5508 * regex.c (wcs_regex_compile): Use appropriate string 5509 to compare with collating element. 5510 Fix the padding for the alignment. 5511 55122001-08-10 Andrew Cagney <ac131313@redhat.com> 5513 5514 * lbasename.c (lbasename): Change function definition to return a 5515 const char pointer. 5516 55172001-08-07 Jason Merrill <jason_merrill@redhat.com> 5518 5519 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary 5520 for". 5521 55222001-08-03 Richard Henderson <rth@redhat.com> 5523 5524 * Makefile.in (concat.o): Depend on config.h. 5525 55262001-07-30 Andreas Jaeger <aj@suse.de> 5527 5528 * concat.c: Include "config.h". 5529 55302001-07-30 Andreas Jaeger <aj@suse.de> 5531 5532 * regex.c: Declare wcs functions only if compiling with 5533 MBS_SUPPORT. 5534 Don't use #elif for traditional C. 5535 55362001-07-23 Ulrich Drepper <drepper@redhat.com> 5537 5538 * regex.c: Revamp memory allocation for WCHAR functions to 5539 not use too much stack. 5540 55412001-07-30 Andreas Jaeger <aj@suse.de> 5542 5543 * regex.c: Declare wcs functions only if compiling with 5544 MBS_SUPPORT. 5545 Don't use #elif for traditional C. 5546 55472001-07-25 Daniel Jacobowitz <drow@mvista.com> 5548 5549 * Makefile.in (regex.o): Add dependency on config.h. 5550 55512001-07-18 Andreas Schwab <schwab@suse.de> 5552 5553 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the 5554 underscore character. 5555 55562001-07-18 Ulrich Drepper <drepper@redhat.com> 5557 5558 * regex.c: Limit string length printed in debug messages to 100 5559 chars. 5560 55612001-07-18 Andreas Jaeger <aj@suse.de> 5562 5563 * regex.c: Place under LGPL version 2.1. 5564 55652001-07-10 Jeff Johnston <jjohnstn@redhat.com> 5566 5567 * Makefile.in: Add support for regex code. 5568 * regex.c: New file. 5569 55702001-07-05 Mark Klein <mklein@dis.com> 5571 5572 * Makefile.in: Add ffs.c dependency. 5573 * configure.in: Add ffs.c. 5574 * ffs.c: New file. 5575 55762001-06-18 Richard Henderson <rth@redhat.com> 5577 5578 * concat.c: Include <sys/types.h>. 5579 55802001-06-11 Loren J. Rittle <ljrittle@acm.org> 5581 5582 bootstrap/3106 5583 * strerror.c (sys_nerr): Hide the OS header version. 5584 * strsignal.c (sys_nsig): Likewise. 5585 55862001-06-10 Richard Henderson <rth@redhat.com> 5587 5588 * concat.c: Include string.h. Fix int vs size_t usage. 5589 Simplify the iteration loops. Use memcpy. 5590 55912001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu> 5592 5593 * partition.c: Fix misspelling of `implementation'. 5594 55952001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> 5596 5597 * md5.c (md5_init_ctx): Declare constants as unsigned. 5598 (md5_process_block): Likewise. 5599 56002001-05-07 Zack Weinberg <zackw@stanford.edu> 5601 5602 * cp-demangle.c (demangle_v3_with_details, 5603 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style 5604 function definition. 5605 * ternary.c: Use K+R style function definitions. Use PTR, not 5606 void *. Make arguments constant where possible. 5607 56082001-05-07 Mark Mitchell <mark@codesourcery.com> 5609 5610 * splay-tree.h (splay_tree_max): New function. 5611 (splay_tree_min): Likewise. 5612 56132001-04-15 Daniel Berlin <dan@cgsoftware.com> 5614 5615 * ternary.c: New file - Ternary search tree implementation. 5616 5617 * Makefile.in: Add ternary.o, and ternary.c dependencies. 5618 56192001-04-03 Zack Weinberg <zackw@stanford.edu> 5620 5621 * make-temp-file.c (try): Inline. 5622 56232001-02-28 Richard Henderson <rth@redhat.com> 5624 5625 * Makefile.in (make-temp-file.o): Depend on config.h. 5626 56272001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5628 5629 * memchr.c (memchr): Adjust condition to avoid infinite loop. 5630 56312001-03-23 Jakub Jelinek <jakub@redhat.com> 5632 5633 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1, 5634 `_' not followed by a digit is invalid. 5635 56362001-03-22 Jim Blandy <jimb@redhat.com> 5637 5638 * cp-demangle.c (string_list_delete): Use dyn_string_delete 5639 instead of free, to free the contents as well as the string 5640 structure. 5641 56422001-03-21 Zack Weinberg <zackw@stanford.edu> 5643 5644 * make-temp-file.c: Always default DIR_SEPARATOR to '/'. 5645 Don't default P_tmpdir to anything. Try /var/tmp before 5646 /usr/tmp. 5647 56482001-03-20 Zack Weinberg <zackw@stanford.edu> 5649 5650 * choose-temp.c: Split off make_temp_file, and the code 5651 duplicated between it and choose_temp_base, into... 5652 * make-temp-file.c: ... here; new file. 5653 5654 * Makefile.in (CFILES): Add make-temp-file.c. 5655 (REQUIRED_OFILES): Add make-temp-file.o. 5656 56572001-03-20 Jim Blandy <jimb@redhat.com> 5658 5659 * cp-demangle.c (struct demangling_def): New fields: 5660 is_constructor and is_destructor. 5661 (demangling_new): Initialize them. 5662 (demangle_ctor_dtor_name): Set them, if we detect a constructor 5663 or destructor. 5664 (demangle_v3_with_details, is_gnu_v3_mangled_ctor, 5665 is_gnu_v3_mangled_dtor): New functions. 5666 56672001-03-20 Jason Merrill <jason@redhat.com> 5668 5669 * cplus-dem.c (main): Skip initial $. 5670 56712001-03-15 Michael Meissner <meissner@redhat.com> 5672 5673 * hashtab.c (higher_prime_number): Silence warning that 4294967291 5674 might be a signed integer under pre-ISO C systems. 5675 56762001-03-10 Neil Booth <neil@daikokuya.demon.co.uk> 5677 John David Anglin <dave@hiauly1.hia.nrc.ca> 5678 5679 * lbasename.c: New file. 5680 * Makefile.in: Update for lbasename. 5681 56822001-03-06 Zack Weinberg <zackw@stanford.edu> 5683 5684 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New. 5685 * configure.in: Replace all alloca logic with a simple use of 5686 the above new macro. 5687 * config.table: Kill *-*-beos* entry. 5688 * config/mh-beos: Delete. 5689 * configure, config.in: Regenerate. 5690 5691 * Makefile.in (ALLOCA, HFILES): Kill. 5692 (REQUIRED_OFILES): Add alloca.o. 5693 (alloca.o): Depend on libiberty.h. 5694 (argv.o): Don't depend on alloca-conf.h. 5695 * alloca-conf.h: Delete. 5696 * alloca.c: Include libiberty.h. Kill all #ifdef emacs 5697 blocks. Provide the C alloca unconditionally. Use PTR where 5698 appropriate. Make i00afunc static. 5699 * argv.c: Don't include alloca-conf.h. 5700 57012001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca> 5702 5703 * cplus-dem.c (main): Cast enum style to int. 5704 57052001-02-16 Loren J. Rittle <ljrittle@acm.org> 5706 5707 * cplus-dem.c (main): Initialize style. 5708 57092001-02-02 Phil Edwards <pme@sources.redhat.com> 5710 5711 * COPYING.LIB: Update to LGPL 2.1 from the FSF. 5712 57132001-01-31 Bryce McKinlay <bryce@albatross.co.nz> 5714 5715 Add support for Java demangling under the v3 ABI: 5716 * cp-demangle.c (NAMESPACE_SEPARATOR): New define. 5717 (struct demangling_def): Add `style' field. 5718 (demangling_new): New parameter `style'. Set it in demangling_t. 5719 (demangle_prefix): Use NAMESPACE_SEPARATOR. 5720 (demangle_type_ptr): Don't emit pointer symbol if doing Java output. 5721 (cp_demangle): New parameter `style'. Pass it to demangling_new(). 5722 (main): Call cp_demangle with extra parameter. 5723 (java_demangle_v3): New function. 5724 (java_builtin_type_names): New. Table of primitive type names used 5725 for Java demangling. 5726 (demangle_builtin_type): Look up in java_builtin_type_names if doing 5727 Java output. 5728 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java 5729 demangling. 5730 (long_options): Remove obsolete `java' option. 5731 (main): Remove explicit handling of `java' option. Instead, pass style 5732 parameter in cplus_demangle flags as gdb does. 5733 * testsuite/demangle.expected: Add some Java test cases. 5734 57352000-12-29 DJ Delorie <dj@redhat.com> 5736 5737 * fnmatch.c: Make the note about the origins of this file more 5738 accurate, at least until we can sync with glibc. 5739 * getopt.c: Ditto. 5740 * getopt1.c: Ditto. 5741 * md5.c: Ditto. 5742 * obstack.c: Ditto. 5743 57442000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5745 5746 * bsearch.c: New file. 5747 * configure.in (funcs): Add bsearch. 5748 (AC_CHECK_FUNCS): Likewise. 5749 * configure, config.in: Regenerate. 5750 57512000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5752 5753 * safe-ctype.c: #include "ansidecl.h". 5754 * strtod.c: Likewise. 5755 57562000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5757 5758 * strtoul.c: Include safe-ctype.h, not ctype.h. 5759 57602000-12-07 Zack Weinberg <zack@wolery.stanford.edu> 5761 5762 * safe-ctype.c: New file. 5763 * Makefile.in (CFILES): Add safe-ctype.c. 5764 (REQUIRED_OFILES): Add safe-ctype.o. 5765 5766 * argv.c: Define ISBLANK and use it, not isspace. 5767 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c, 5768 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use 5769 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c) 5770 before calling TOLOWER(c)/TOUPPER(c). 5771 57722000-12-07 Mike Stump <mrs@wrs.com> 5773 5774 * Makefile.in (distclean): When cleaning, remove testsuite. 5775 57762000-12-05 Jason Merrill <jason@redhat.com> 5777 5778 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled 5779 name before allocating the dyn_string. 5780 57812000-12-04 Jason Merrill <jason@redhat.com> 5782 5783 * cp-demangle.c: s/new_abi/v3/. 5784 * cplus-dem.c: Likewise. 5785 (current_demangling_style): Now auto_demangling. 5786 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING. 5787 (main): Use standard symbol chars for auto_demangling. 5788 57892000-11-26 Mark Mitchell <mark@codesourcery.com> 5790 5791 * hashtab.c (higher_prime_number): Use a table, rather than a 5792 seive, to find the next prime. 5793 57942000-11-22 H.J. Lu <hjl@gnu.org> 5795 5796 * cplus-dem.c (main): Handle gnat_demangling. 5797 57982000-11-22 Zack Weinberg <zack@wolery.stanford.edu> 5799 5800 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in. 5801 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader. 5802 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three 5803 argument form of AC_DEFINE in dummy definitions block. Use 5804 AC_DEFINE_NOAUTOHEADER for real definitions of things defined 5805 in dummy block. Preload cache variables instead of bypassing 5806 tests, where possible. 5807 * acconfig.h: Removed. 5808 5809 * xmalloc.c (xmalloc_failed): New function, does error 5810 reporting on failed allocation. 5811 (xmalloc, xcalloc, xrealloc): Use it. 5812 58132000-11-21 Hans-Peter Nilsson <hp@bitrange.com> 5814 5815 * cplus-dem.c (cplus_demangle): Fix formatting. 5816 (grow_vect): Ditto. 5817 (ada_demangle): Ditto. 5818 (internal_cplus_demangle): Ditto. 5819 (mop_up): Ditto. 5820 58212000-11-21 H.J. Lu <hjl@gnu.org> 5822 5823 * cplus-dem.c (main): Handle java_demangling. 5824 58252000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5826 5827 * cplus-dem.c (grow_vect): Prototype. 5828 (ada_demangle): Cast the arg of ctype macros to unsigned char. 5829 58302000-11-15 Hans-Peter Nilsson <hp@bitrange.com> 5831 5832 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for 5833 parameter `option'. 5834 58352000-11-15 Kenneth Block <kenneth.block@compaq.com> 5836 5837 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot 5838 be used in GCC. 5839 58402000-11-15 Kenneth Block <kenneth.block@compaq.com> 5841 5842 * cplus-dem.c: Add gnat demangler. Add java to demangle style 5843 list. 5844 58452000-11-04 Hans-Peter Nilsson <hp@bitrange.com> 5846 5847 * hashtab.c (htab_expand): Change to return int. Use calloc or 5848 xcalloc depending on htab->return_allocation_failure. Return zero 5849 if calloc fails. 5850 (htab_create): Update comment to cover memory allocation. 5851 (htab_try_create): New. 5852 (htab_find_slot_with_hash): Return NULL if htab_expand fails. 5853 Update comment to cover this. 5854 58552000-11-03 Hans-Peter Nilsson <hp@bitrange.com> 5856 5857 * hashtab.c: Change void * to PTR where necessary. 5858 (htab_create, htab_expand): Correct formatting of comment before 5859 function. 5860 58612000-10-22 Alex Samuel <samuel@codesourcery.com> 5862 5863 * cp-demangle.c (string_list_def): Add caret_position and comments. 5864 (result_caret_pos): New macro. 5865 (result_append_string): Rename to... 5866 (result_add_string): ... this, and insert at caret position. 5867 Rename throughout. 5868 (result_append): Rename to... 5869 (result_add): ... this, and insert at caret position. Rename 5870 throughout. 5871 (result_append_char): Rename to... 5872 (result_add_char): ... this, and insert at caret position. Rename 5873 throughout. 5874 (result_append_space): Remove. 5875 (string_list_new): Initialize caret position. 5876 (result_add_separated_char): Use caret position. 5877 (result_get_caret): New funtion. 5878 (result_set_caret): Likewise. 5879 (result_shift_caret): Likewise. 5880 (result_previous_char_is_space): Likewise. 5881 (substitution_start): Use caret position. 5882 (substitution_add): Likewise. 5883 (demangling_new): Initialize caret position. 5884 (demangle_encoding): Use caret position. 5885 (demanglin_nested_name): Put CV qualifiers after name. 5886 (demangle_type_ptr): Use switch statement. Handle pointers to 5887 arrays. Don't use result_append_space. Use caret position. 5888 (demangle_type): Emit CV qualifiers after underlying type. Adjust 5889 call to demangle_array_type. 5890 (demangle_array_type): Add parameter to handle pointers to arrays. 5891 58922000-10-01 Mark Mitchell <mark@codesourcery.com> 5893 5894 * splay-tree.c (splay_tree_insert): Fix formatting. 5895 58962000-09-16 Mark Mitchell <mark@codesourcery.com> 5897 5898 * splay-tree.c (splay_tree_predecessor): Fix typo in comment. 5899 59002000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5901 5902 * splay-tree.c: #include <stdio.h>. 5903 59042000-09-14 Hans-Peter Nilsson <hp@axis.com> 5905 5906 * testsuite/demangle-expected: Add two tests for anonymous 5907 namespaces. 5908 * cplus-dem.c (gnu_special): Handle anonymous namespaces. 5909 59102000-09-10 Mark Mitchell <mark@codesourcery.com> 5911 5912 * splay-tree.c (splay_tree_predecessor): New function. 5913 (splay_tree_successor): Likewise. 5914 59152000-09-10 Hans-Peter Nilsson <hp@axis.com> 5916 5917 * testsuite/demangle-expected: Add four tests for type_info 5918 mangling. 5919 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type, 5920 for a non-template non-qualified type_info function or node. 5921 59222000-09-08 Alex Samuel <samuel@codesourcery.com> 5923 5924 * cp-demangle.c: Fix copyright banner. 5925 59262000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5927 5928 * md5.c: #include "ansidecl.h". 5929 59302000-09-06 Alex Samuel <samuel@codesourcery.com> 5931 5932 * cp-demangle.c (status_allocation_failed): Rearrange whitespace. 5933 (demangle_type): Handle substitution candidates correctly in the 5934 face of special substitutions. 5935 59362000-09-05 Alex Samuel <samuel@codesourcery.com> 5937 5938 * cp-demangle.c (demangle_encoding): Rename variable. 5939 (demangle_name): Rename parameter. Handle return type 5940 suppression. 5941 (demangle_nested_name): Rename parameter. 5942 (demangle_prefix): Likewise. Change return type suppression. 5943 (demangle_unqualified_name): Add parameter. Flag constructors and 5944 conversion operators. 5945 (demangle_special_name): Fix comment. 5946 (demangle_type): Rename variable. 5947 (demangle_bare_function_type): Check for missing return type and 5948 parameter. 5949 (demangle_class_enum_type): Rename parameter. 5950 (demangle_discriminator): Fix misspelling in comment. 5951 59522000-08-31 DJ Delorie <dj@redhat.com> 5953 5954 * configure.in (Cygwin): special case cygwin only when we're 5955 building cygwin, not when we're hosting cygwin. 5956 59572000-09-04 Alex Samuel <samuel@codesourcery.com> 5958 5959 * cp-demangle.c (demangle_template_arg): Eat an `E' after an 5960 <expression>. 5961 59622000-09-04 Alex Samuel <samuel@codesourcery.com> 5963 5964 * cp-demangle.c (demangle_type_ptr): Increment position past 5965 pointer and reference characters. 5966 59672000-09-04 Alex Samuel <samuel@codesourcery.com> 5968 5969 * cp-demangle.c (demangle_nv_offset): New function. 5970 (demangle_v_offset): Likewise. 5971 (demangle_call_offset): Likewise. 5972 (demangle_special_name): Update thunk demangling to comply with 5973 ABI changes. 5974 59752000-09-03 Alex Samuel <samuel@codesourcery.com> 5976 5977 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro. 5978 (substitution_def): Remove template_parm_number. 5979 (NOT_TEMPLATE_PARM): Remove. 5980 (result_insert_string): New macro. 5981 (result_insert): Likewise. 5982 (result_insert_char): Likewise. 5983 (substitution_add): Remove last parameter. Don't store template 5984 parm number. 5985 (BFT_NO_RETURN_TYPE): Define as NULL. 5986 (demangle_encoding): Adjust call to demangle_bare_function_type. 5987 (demangle_name): Adjust substitution. Adjust call to 5988 substitution_add. 5989 (demangle_prefix): Adjust call to substitution_add. 5990 (demangle_identifier): Handle anonymous namespaces. 5991 (demangle_operator_name): Change demangling of vendor-extended 5992 operator to match ABI changes. 5993 (demangle_type_ptr): Change parameters. Make recursive. Handle 5994 substitutions here. 5995 (demangle_type): Adjust calls to demangle_template_param, 5996 substitution_add, and demangle_type_ptr. Fix substitution of 5997 templated types. 5998 (demangle_function_type): Change parameter to a pointer. 5999 (demangle_bare_function_type): Likewise. Adjust insertion point. 6000 (demangle_template_param): Remove last parameter. 6001 (demangle_expr_primary): Remove unused variable. Adjust call to 6002 demangle_template_param. 6003 (is_mangled_char): Accept `$' and `.'. 6004 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'. 6005 * dyn-string.c (dyn_string_insert_char): New function. 6006 60072000-08-31 Hans-Peter Nilsson <hp@axis.com> 6008 6009 * testsuite/demangle-expected: Add nine tests for 6010 underscore-after-number followed by five tests for name-signature 6011 delimiter. 6012 60132000-08-28 Richard Henderson <rth@cygnus.com> 6014 6015 * Makefile.in (md5.o): Depend on config.h. 6016 60172000-08-28 Jason Merrill <jason@redhat.com> 6018 6019 * Makefile.in (REQUIRED_OFILES): Add md5.o. 6020 (CFILES): Add md5.c. 6021 * md5.c: New file. 6022 60232000-08-27 Alex Samuel <samuel@codesourcery.com> 6024 6025 * cp-demangle.c (demangle_name): Initialize template_p in local 6026 name case. Don't re-add substitutions as candidates. 6027 (demangle_nested_name): Use <unqualified-name>. 6028 (demangle_prefix): Likewise. Don't add template names as 6029 substitution candidates twice, or re-add a substitution or the 6030 last prefix component. 6031 (demangle_local_name): Adjust output format. 6032 60332000-08-25 Alex Samuel <samuel@codesourcery.com> 6034 6035 * cp-demangle.c (result_add_separated_char): Change parameter to 6036 int. 6037 (substitution_add): Don't check for duplicates. Check if 6038 previously allocated size is zero. 6039 (demangle_name): Remove duplicate check for std substitution. 6040 Clear template flag appropriately. 6041 (demangle_prefix): Remove argument to demangle_substitution. 6042 Don't check that template flag is already set. 6043 (demangle_operator_name): Add pt operator. 6044 (demangle_type): Don't treat r as built-in type. Remove argument 6045 to demangle_substitution. Fix substitution candidate mechanics. 6046 Handle <template-template-parm>s. Improve comments. 6047 (demangle_template_param): Don't handle template arg lists here. 6048 (demangle_substitution): Remove parameter. 6049 (print_usage): Remove extra fprintf option. 6050 60512000-08-24 Greg McGary <greg@mcgary.org> 6052 6053 * random.c (end_ptr): Revert previous change. 6054 60552000-08-24 Greg McGary <greg@mcgary.org> 6056 6057 * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname, 6058 demangle_expression, demangle_function_name): Use ARRAY_SIZE. 6059 * random.c (end_ptr): Likewise. 6060 60612000-08-23 Alex Samuel <samuel@codesourcery.com> 6062 6063 * cp-demangle.c (result_close_template_list): Remove function. 6064 (result_add_separated_char): New function. 6065 (result_open_template_list): New macro. 6066 (result_close_template_list): Likewise. 6067 (demangle_prefix): Don't set template_p if the 6068 prefix ends with a ctor name. 6069 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR. 6070 (demangle_type): Check for template args after substitution. 6071 (demangle_template_args): Use result_open_template_list. 6072 60732000-08-02 Zack Weinberg <zack@wolery.cumb.org> 6074 6075 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop. 6076 60772000-07-26 Dave Pitts <dpitts@cozx.com> 6078 6079 * config/mh-openedition.h: Added -DLE370 definition. 6080 60812000-07-26 Mark Elbrecht <snowball3@bigfoot.com> 6082 6083 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to 6084 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call. 6085 Cast program to 'char *' in errmsg_arg assignment. 6086 (PWAIT_ERROR): Define. 6087 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform 6088 to DJGPP's WIF* macros. 6089 60902000-07-27 RodneyBrown <RodneyBrown@pmsc.com> 6091 Jeff Law <law@cygnus.com> 6092 6093 * getcwd.c: Include string.h, stdlib.h for prototypes 6094 6095 * Makefile.in (rename.o, waitpid.o): Depend on config.h 6096 * rename.c: Include config.h, unistd.h 6097 * waitpid.c: Include config.h, sys/wait.h 6098 60992000-07-24 Hans-Peter Nilsson <hp@axis.com> 6100 6101 * cplus-dem.c (work_stuff_copy_to_from): New. 6102 (delete_non_B_K_work_stuff): New. 6103 (delete_work_stuff): New. 6104 (mop_up): Break out work_stuff partly destruction to 6105 delete_non_B_K_work_stuff. 6106 (iterate_demangle_function): New. 6107 (demangle_prefix): Call iterate_demangle_function instead of 6108 demangle_function_name. Leave handling of name-signature 6109 __-delimiters to iterate_demangle_function. 6110 (demangle_integral_value): Strip an optional 6111 following underscore cautiously. Handle negative numbers. 6112 61132000-07-24 Daniel Berlin <dberlin@redhat.com> 6114 6115 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to 6116 if (AUTO_DEMANGLING || GNU_DEMANGLING) 6117 61182000-07-21 Alex Samuel <samuel@codesourcery.com> 6119 6120 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge 6121 allocating ctor mangling. 6122 (demangle_array_type): Handle empty and non-constant array length. 6123 61242000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG> 6125 Jeff Law <law@cygnus.com> 6126 6127 * configure.in (AC_CHECK_HEADERS): Add time.h. 6128 (AC_HEADER_TIME): Add check. 6129 * configure, config.in: Regenerate. 6130 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>. 6131 6132 * configure.in (AC_CHECK_HEADERS): Add limits.h. 6133 * configure, config.in: Regenerate. 6134 * sort.c: Portably #include <limits.h> and/or <sys/param.h>. 6135 * strtol.c, strtoul.c: #include "config.h". Portably #include 6136 <limits.h> and/or <sys/param.h>. 6137 * Makefile.in (strtol.o, strtoul.o): Update dependencies. 6138 6139 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro. 6140 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check. 6141 * configure, config.in: Regenerate. 6142 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary. 6143 6144 * cp-demangle.c, mkstemps.c: #include <sys/types.h>. 6145 61462000-07-21 Mike Stump <mrs@wrs.com> 6147 6148 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c. 6149 * (vasprintf.o): Add dependency for config.h in vasprintf.c. 6150 61512000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6152 6153 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2. 6154 6155 * setenv.c (setenv): Initialize variable `ep'. 6156 6157 * sigsetmask.c (abort): Prototype. 6158 6159 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not 6160 __STDC__ for stdarg.h include. 6161 (int_vasprintf): Prototype. 6162 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in 6163 definition. Cast `global_total_width' in comparison. 6164 (main): Prototype. Return a value. 6165 6166 * vfork.c (fork): Prototype. 6167 6168 * xexit.c: Include config.h. 6169 61702000-07-20 Joseph S. Myers <jsm28@cam.ac.uk> 6171 6172 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int, 6173 and print it with %u. 6174 61752000-07-17 Hans-Peter Nilsson <hp@axis.com> 6176 6177 * testsuite/regress-demangle (failed test): Show result and 6178 expected output. 6179 61802000-07-07 Andrew Haley <aph@cygnus.com> 6181 6182 * cplus-dem.c (main): fflush() after emitting last char before 6183 waiting for input. 6184 61852000-06-28 Alex Samuel <samuel@codesourcery.com> 6186 6187 * cp-demangle.c (demangle_encoding): Accept no substitutions. 6188 (demangle_name): Handle <substitution> followed by 6189 <unqualified-template-name>. 6190 (demangle_type): Follow special substitutions with 6191 <class-enum-type> 6192 (demangle_subtitution): Set template_p for special substitutions. 6193 (main): Fix typos. 6194 61952000-06-27 Alex Samuel <samuel@codesourcery.com> 6196 6197 * cp-demangle.c (demangle_special_name): Swap base and derived 6198 class when demangling construction vtables. 6199 62002000-06-21 Alex Samuel <samuel@codesourcery.com> 6201 6202 * cp-demangle.c: Don't include ctype.h. 6203 (IS_DIGIT): New macro. 6204 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout 6205 instead of isdigit and isalpanum. 6206 (demangling_def): Make name and next const pointers. 6207 (STATUS_ALLOCATION_FAILED): New status code. 6208 (dyn_string_append_space): Handle failure in 6209 dyn_string_append_char. 6210 (int_to_dyn_string): Likewise. Change return value to status_t. 6211 (string_list_new): Handle failure of dyn_string_init. 6212 (result_close_template_list): Change return type to status_t. 6213 Handle failure in dyn_string_append. 6214 (result_push): Change return value to status_t. Handle failure in 6215 string_list_new. Handle failure of result_push throughout. 6216 (substitution_add): Change return value to status_t. Handle 6217 dyn_string failures. Handle failure of substitution_add 6218 throughout. 6219 (template_arg_list_new): Return NULL on allocation failure. 6220 (result_append_string): Return STATUS_ALLOCATION_FAILED on error. 6221 Handle error result throughout. 6222 (result_append): Likewise. 6223 (result_append_char): Likewise. 6224 (result_append_space): Likewise. 6225 (demangling_new): Make argument a const pointer. Handle 6226 allocation failures. 6227 (demangle_template_args): Handle failure in template_arg_list_new 6228 and result_close_template_list. 6229 (demangle_discriminator): Return if int_to_dyn_string fails. 6230 (cp_demangle): Likewise. 6231 (cp_demangle_type): New function. 6232 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on 6233 memory allocation failure. 6234 (main): Likewise. 6235 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if 6236 IN_LIBGCC2. 6237 (dyn_string_init): Change return value to int. Handle 6238 RETURN_ON_ALLOCATION_FAILURE case. 6239 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case. 6240 (dyn_string_release): Delete the dyn_string. 6241 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case. 6242 (dyn_string_copy): Change return type to int. 6243 (dyn_string_copy_cstr): Likewise. 6244 (dyn_string_prepend): Likewise. 6245 (dyn_string_prepend_cstr): Likewise. 6246 (dyn_string_insert): Likewise. 6247 (dyn_string_insert_cstr): Likewise. 6248 (dyn_string_append): Likewise. 6249 (dyn_string_append_cstr): Likewise. 6250 (dyn_string_append_char): Likewise. 6251 (dyn_string_substring): Likewise. 6252 62532000-06-09 Zack Weinberg <zack@wolery.cumb.org> 6254 6255 * cp-demangle.c (demangle_operator_name): Add spaces before 6256 names beginning with a letter: delete, delete[], new, new[], 6257 sizeof. 6258 (demangle_special_name): Handle TF <type> and TJ <type>. 6259 6260Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be> 6261 6262 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch. 6263 6264Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be> 6265 6266 * cp-demangle.c (stdio.h): File included unconditionaly. 6267 (template_arg_list_new): Parameter list is PARAMS ((void)), not (). 6268 * dyn-string.c (stdio.h): File included. 6269 * partition.c (partition_print): No `&' needed to take the address of 6270 a function. 6271 62722000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6273 6274 * configure.in (ac_libiberty_warn_cflags): Add -pedantic. 6275 6276 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify. 6277 6278 * cp-demangle.c (demangle_char): Change parameter from char to int. 6279 (demangle_expression, demangle_expr_primary): Remove extra 6280 semi-colon in prototype. 6281 6282 * dyn-string.c (dyn_string_append_char): Change parameter from 6283 char to int. 6284 6285 * memcmp.c (memcmp): Constify. 6286 6287 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with 6288 __extension__. 6289 6290 * partition.c (elem_compare): Prototype. Don't cast away 6291 const-ness. 6292 6293 * setenv.c (setenv): Use braces to avoid ambiguous `else'. 6294 62952000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6296 6297 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h. 6298 6299 * cp-demangle.c: Include demangle.h. 6300 (template_arg_list_new): DeANSIfy. 6301 (cp_demangle): Make static and add prototype. 6302 (operator_code, operators): Constify. 6303 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'. 6304 63052000-06-05 Alex Samuel <samuel@codesourcery.com> 6306 6307 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to 6308 unsigned char. 6309 (demangle_unqualified_name): Likewise. 6310 (demangle_number_literally): Likewise. 6311 (demangle_type): Likewise. 6312 (demangle_substitution): Likewise. 6313 (is_mangled_char): Likewise, for isalnum. 6314 63152000-06-04 Alex Samuel <samuel@codesourcery.com> 6316 6317 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c. 6318 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o. 6319 (cp-demangle.o): New dependency. 6320 (dyn-string.o): Likewise. 6321 6322 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions. 6323 6324 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI 6325 demangler. 6326 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI 6327 demangling mode. 6328 (gnu_new_abi_symbol_characters): New function. 6329 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New 6330 file. 6331 * cp-demangle.c: New file. 6332 6333Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com> 6334 6335 * floatformat.c: Add name to each floatformat field. 6336 6337Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com) 6338 6339 * Makefile.in (objalloc.o): Depend on config.h 6340 63412000-05-29 Zack Weinberg <zack@wolery.cumb.org> 6342 6343 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h 6344 if HAVE_STRING_H. 6345 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H. 6346 * objalloc.c: Include config.h. Include stdlib.h and don't 6347 declare malloc or free if HAVE_STDLIB_H. 6348 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H, 6349 else declare malloc without prototype. Include string.h if 6350 HAVE_STRING_H, else declare memset without prototype. Don't 6351 include stddef.h. 6352 63532000-05-23 Mike Stump <mrs@wrs.com> 6354 6355 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make 6356 -j3. 6357 63582000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca> 6359 6360 * xmalloc.c: Include config.h for HAVE_SBRK definition. 6361 63622000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl> 6363 6364 * hashtab.c (hash_pointer): Delete low-order bits which are 6365 probably zero, also eliminate a warning on alpha. 6366 63672000-05-15 David Edelsohn <edelsohn@gnu.org> 6368 6369 * Makefile.in: Change "pic" to depend on $(PICFLAG), not 6370 on $(enable_shared). 6371 63722000-05-10 Jakub Jelinek <jakub@redhat.com> 6373 6374 * config.table: Use mh-sparcpic for sparc*-*-*. 6375 63762000-05-08 Nick Clifton <nickc@cygnus.com> 6377 6378 * Makefile.in (CFILES): Add strncmp.c. 6379 (NEEDED): Add strncmp. 6380 63812000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6382 6383 * cplus-dem.c (cplus_demangle_opname, demangle_function_name): 6384 Cast the arguments to `islower' to `unsigned char'. 6385 (print_demangler_list): Prototype. 6386 6387Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be> 6388 6389 * sort.c (UCHAR_MAX): Provide fallback definition. 6390 63912000-04-29 Alexandre Oliva <aoliva@cygnus.com> 6392 6393 * Makefile.in (maintainer-clean-subdir): Fix handling of empty 6394 SUBDIRS. 6395 63962000-04-28 Kenneth Block <block@zk3.dec.com> 6397 Jason Merrill <jason@casey.cygnus.com> 6398 6399 * cplus-dem.c (libiberty_demanglers): New table for demangle styles. 6400 (cplus_demangle_set_style): New function for setting style. 6401 (cplus_demangle_name_to_style): New function to translate name. 6402 64032000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6404 6405 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP. 6406 6407 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h. 6408 (libiberty_AC_FUNC_STRNCMP): Invoke. 6409 6410 * strncmp.c: New file. 6411 6412Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz> 6413 6414 * hashtab.c (htab_expand): Add prototype. 6415 (find_empty_slot_for_expand): Likewise. 6416 64172000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6418 6419 * hashtab.c (hash_pointer, eq_pointer): Make definition static to 6420 match prototype. 6421 (htab_expand): Cast the return value of xcalloc. 6422 64232000-04-24 Mark Mitchell <mark@codesourcery.com> 6424 6425 * hashtab.c (hash_pointer): New function. 6426 (eq_pointer): Likewise. 6427 (htab_hash_pointer): New variable. 6428 (htab_eq_pointer): Likewise. 6429 64302000-04-23 Mark Mitchell <mark@codesourcery.com> 6431 6432 * sort.c (sort_pointers): Fix endianness bugs. 6433 6434 * sort.c: New file. 6435 * Makefile.in (CFILES): Add sort.c 6436 (REQUIRED_OFILES): Add sort.o. 6437 (sort.o): New target. 6438 64392000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG> 6440 6441 * Makefile.in (*-subdir): Revamp slightly to avoid losing on 6442 4.3BSD systems. 6443 6444Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 6445 6446 * hashtab.c: Various minor cleanups. 6447 (htab_find_slot_with_hash): INSERT is now enum insert_option. 6448 (htab_find_slot): Likewise. 6449 64502000-04-16 Dave Pitts <dpitts@cozx.com> 6451 6452 * cplus-dem.c (cplus_demangle_opname): Changed to use islower. 6453 64542000-04-05 Richard Henderson <rth@cygnus.com> 6455 6456 * splay-tree.c (splay_tree_remove): New. 6457 64582000-03-30 Mark Mitchell <mark@codesourcery.com> 6459 6460 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash 6461 codes. 6462 (htab_find_with_hash): Likewise. 6463 (htab_find_slot_with_hash): Likewise. 6464 64652000-03-29 Zack Weinberg <zack@wolery.cumb.org> 6466 6467 * hashtab.c (htab_find_with_hash): Avoid calculating hash2 6468 unless it will be used. Rearrange loop for better 6469 optimization. 6470 (higher_prime_number): Add static prototype. 6471 6472Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com) 6473 6474 * Makefile.in (partition.o): Depend on config.h 6475 64762000-03-14 Bernd Schmidt <bernds@cygnus.co.uk> 6477 6478 * hashtab.c (find_empty_slot_for_expand): New function. 6479 (htab_expand): Use it instead of htab_find_slot. 6480 (htab_find_with_hash): Renamed from htab_find; now accepts extra 6481 argument HASH. 6482 (htab_find_slot_with_hash): Likewise for htab_find_slot. 6483 (htab_find): New wrapper function. 6484 (htab_find_slot): Likewise. 6485 (htab_traverse): Pass slot, not entry, to called function. 6486 64872000-03-09 Alex Samuel <samuel@codesourcery.com> 6488 6489 * Makefile.in (CFILES): Add partition.c. 6490 (REQUIRED_OFILES): Add partition.o. 6491 (partition.o): New rule. 6492 * partition.c: New file. 6493 64942000-03-09 Zack Weinberg <zack@wolery.cumb.org> 6495 6496 * hashtab.c (htab_create): Set del_f. 6497 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot): 6498 Use it. 6499 65002000-03-08 Zack Weinberg <zack@wolery.cumb.org> 6501 6502 * hashtab.c: Remove debugging variables (all_searches, 6503 all_collisions, all_expansions). Delete 6504 all_hash_table_collisions. 6505 (create_hash_table, delete_hash_table, empty_hash_table, 6506 find_hash_table_entry, remove_element_from_hash_table_entry, 6507 clear_hash_table_slot, traverse_hash_table, hash_table_size, 6508 hash_table_elements_number, hash_table_collisions): Rename to: 6509 htab_create, htab_delete, htab_empty, htab_find_slot, 6510 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size, 6511 htab_elements, htab_collisions. 6512 (htab_find): New function, handles common case where you don't 6513 plan to add or delete an entry. 6514 (htab_expand): Don't create a whole new table, just a new 6515 entry vector. 6516 (htab_find_slot): Simplify logic. 6517 65181999-08-03 Ian Lance Taylor <ian@zembu.com> 6519 6520 * floatformat.c: Add casts to avoid signed/unsigned warnings. 6521 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix. 6522 6523 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to 6524 $(TARGETLIB)n so it works on MSDOS. 6525 (install_to_tooldir): Likewise. 6526 65271999-07-21 Ian Lance Taylor <ian@zembu.com> 6528 6529 From Mark Elbrecht: 6530 * makefile.dos: Remove; obsolete. 6531 * configure.bat: Remove; obsolete. 6532 65331999-07-11 Ian Lance Taylor <ian@zembu.com> 6534 6535 * splay-tree.c (splay_tree_insert): Add initialization to avoid 6536 warning. 6537 65382000-01-04 Mumit Khan <khan@xraylith.wisc.edu> 6539 6540 * pexecute.c: Conditionally include string.h. 6541 (fix_argv): Handle embedded whitespace in args for Mingw32. 6542 65432000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6544 6545 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if 6546 we're using gcc. 6547 6548 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@ 6549 65501999-12-27 Geoff Keating <geoffk@cygnus.com> 6551 6552 * vasprintf.c (int_vasprintf): Don't re-read the format character 6553 as this mishandles strings like '%%s'. 6554 65551999-12-05 Mark Mitchell <mark@codesourcery.com> 6556 6557 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s 6558 rather than struct splay_tree_node. 6559 (splay_tree_insert): Use struct splay_tree_s rather than struct 6560 splay_tree. 6561 6562Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be> 6563 6564 * hashtab.c (sys/types.h): File included. 6565 65661999-11-22 Jason Merrill <jason@casey.cygnus.com> 6567 6568 * strtoul.c, strtol.c, random.c: Remove advertising clause from 6569 BSD license, pursuant with 6570 6571 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change 6572 6573Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com) 6574 6575 * hashtab.c: Include stdio.h. 6576 6577Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com) 6578 6579 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS. 6580 6581Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be> 6582 6583 * xstrdup (sys/types.h): Include this file. 6584 65851999-10-28 Nathan Sidwell <nathan@acm.org> 6586 6587 * Makefile.in (SUBDIRS): New macro. 6588 (mostlyclean, clean, distclean, maintainer-clean): Adjust to 6589 avoid multiple subdirectory cleaning. 6590 (*-subdir): Use SUBDIRS. 6591 65921999-10-25 Jim Kingdon <http://developer.redhat.com/> 6593 6594 * cplus-dem.c: Move declarations of standard_symbol_characters and 6595 hp_symbol_characters inside #ifdef MAIN to avoid compiler 6596 warnings. 6597 65981999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com> 6599 6600 * hashtab.c (find_hash_table_entry): When returning a 6601 DELETED_ENTRY slot, change it to EMPTY_ENTRY first. 6602 (clear_hash_table_slot): New function which deletes an entry 6603 by its position in the table, not its value. 6604 (traverse_hash_table): New function which calls a hook 6605 function for every live entry in the table. 6606 66071999-10-19 Mark Mitchell <mark@codesourcery.com> 6608 6609 * cplus-dem.c (INTBUF_SIZE): New macro. 6610 (string_append_template_idx): New function. 6611 (demangle_expression): Likewise. 6612 (demangle_integral_value): Use it. 6613 (demangle_real_value): New function, split out from ... 6614 (demangle_template_value_parm): ... here. Use 6615 string_append_template_idx. Use demangle_real_value. 6616 (demangle_template): Use string_append_template_idx. 6617 (demangle_qualified): Use consume_count_with_underscores. 6618 (get_count): Tweak formatting. 6619 (do_type): Use string_append_template_idx. 6620 66211999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6622 6623 * calloc.c: Add a public domain notice. 6624 6625Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be> 6626 6627 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly. 6628 6629Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com> 6630 6631 * Makefile.in (CFILES): Add hashtab.c 6632 (REQUIRED_OFILES): Add hashtab.o 6633 (hashtab.o): Add dependencies. 6634 * hashtab.c: New file 6635 6636Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu> 6637 6638 * basename.c (DIR_SEPARATOR): New macro. 6639 (DIR_SEPARATOR_2): Likewise. 6640 (HAVE_DOS_BASED_FILESYSTEM): Likewise. 6641 (IS_DIR_SEPARATOR): Likewise. 6642 (main): Handle MSDOS style pathname. 6643 66441999-10-11 Mark Mitchell <mark@codesourcery.com> 6645 6646 * cplus-dem.c (do_type): Handle pointer to member types whose 6647 enclosing classes have namespace scope. 6648 6649Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org> 6650 6651 * config.table: Provide a backup shell for executing move-if-change. 6652 66531999-10-02 Mark Mitchell <mark@codesourcery.com> 6654 6655 * xmalloc.c (xmalloc): Fix spelling error. 6656 (xcalloc, xrealloc): Likewise. 6657 66581999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6659 6660 * cplus-dem.c (fancy_abort, demangle_integral_value, 6661 demangle_arm_hp_template, recursively_demangle, 6662 standard_symbol_characters, hp_symbol_characters, main): Add prototype. 6663 (program_name, program_version, fatal): Constify a char*. 6664 (usage, fatal): Mark with ATTRIBUTE_NORETURN. 6665 (main): Call return, not exit. 6666 66671999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6668 6669 * choose-temp.c: Remove obsolete comment about gcc. 6670 (make_temp_file): Constify a char*. 6671 6672Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6673 6674 * xmemdup.c: Include sys/types.h. 6675 66761999-09-07 Jeff Garzik <jgarzik@pobox.com> 6677 6678 * xmemdup.c: New xmemdup function. 6679 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co]. 6680 6681Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org> 6682 6683 * config.table: Add openedition target. 6684 * config/mh-openedition: New file. 6685 6686Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org> 6687 6688 * pexecute.c (pexecute): Fill in temp_base when needed. 6689 66901999-08-31 Richard Henderson <rth@cygnus.com> 6691 6692 * getpwd.c: Check HAVE_GETCWD before defining it away. 6693 66941999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6695 6696 * Makefile.in (CFILES): Add calloc.c and getpwd.c. 6697 (REQUIRED_OFILES): Add getpwd.o. 6698 (getpwd.o): Add target. 6699 6700 * configure.in (AC_PREREQ): Bump to 2.13. 6701 (AC_CHECK_HEADERS): Add check for <sys/stat.h>. 6702 6703 * getpwd.c: New file, moved here from gcc. 6704 67051999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6706 6707 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when 6708 comparing against a signed quantity. 6709 (arm_special): Likewise. 6710 (demangle_fund_type): Likewise. 6711 (do_hpacc_template_const_value): Mark parameter `work' with 6712 ATTRIBUTE_UNUSED. 6713 (main): Constify variable `valid_symbols'. 6714 6715Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be> 6716 6717 * strtoul.c (strtoul): Add parentheses around && within ||. 6718 6719Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org> 6720 6721 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix, 6722 libdir, libsubdir and tooldir. 6723 67241999-08-01 Mark Mitchell <mark@codesourcery.com> 6725 6726 * splay-tree.c (splay_tree_insert): Return the new node. 6727 67281999-07-14 Richard Henderson <rth@cygnus.com> 6729 6730 * argv.c: Include stdlib.h and string.h instead of 6731 prototyping directly. 6732 * choose-temp.c: Conditionally include string.h. 6733 67341999-07-12 Jason Merrill <jason@yorick.cygnus.com> 6735 6736 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero. 6737 67381999-07-11 Ian Lance Taylor <ian@zembu.com> 6739 6740 * splay-tree.c (splay_tree_insert): Add initialization to avoid 6741 warning. 6742 67431999-07-07 Jason Merrill <jason@yorick.cygnus.com> 6744 6745 * Makefile.in (needed-list): Only include stuff we actually need 6746 for libstdc++. 6747 67481999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 6749 6750 * configure.in (checkfuncs): Add gettimeofday. 6751 * config.in, configure: Regenerated. 6752 6753Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu> 6754 6755 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if 6756 the test fails. 6757 * configure: Regenerate. 6758 67591999-06-10 Mike Stump <mrs@wrs.com> 6760 6761 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix 6762 parallel builds. 6763 67641999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6765 6766 * putenv.c: Include ansidecl.h to define `const'. 6767 * setenv.c: Likewise. 6768 6769Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca> 6770 6771 * Makefile.in (CFILES): Add putenv.c and setenv.c. 6772 * configure.in (funcs): Add putenv and setenv. 6773 (AC_CHECK_FUNCS): Check for putenv and setenv. 6774 * configure: Rebuilt. 6775 * putenv.c setenv.c: New files. 6776 6777 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE 6778 bytes of space using malloc. 6779 6780Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com> 6781 6782 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance 6783 the *mangled pointer beyond the end of the string. Clean up code to 6784 match prevailing coding style. 6785 67861999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz> 6787 6788 * tmpnam.c (L_tmpnam): Fix typo. 6789 6790Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org> 6791 6792 * cplus-dem.c (standard_symbol_characters): Renamed from 6793 standard_symbol_alphabet. No longer modify TABLE. 6794 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer 6795 modify TABLE. 6796 (main): Corresponding changes. Use strchr to determine if a 6797 character is valid. 6798 67991999-05-11 Jim Blandy <jimb@zwingli.cygnus.com> 6800 6801 * cplus-dem.c (main): Use table lookup to distinguish identifier 6802 characters from non-identifier characters. 6803 (standard_symbol_alphabet, hp_symbol_alphabet): New functions. 6804 6805Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com> 6806 6807 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list. 6808 * getruntime.c: Only attempt to include sys/resource.h and 6809 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H 6810 are defined. 6811 6812Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com) 6813 6814 * configure.in (alloca detection): Handle alloca directly for interix. 6815 * configure: Rebuilt. 6816 6817Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu> 6818 6819 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32. 6820 68211999-04-20 Jim Blandy <jimb@zwingli.cygnus.com> 6822 6823 Fix from Dale Hawkins: 6824 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be 6825 reallocated properly if we use it again. 6826 6827 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be 6828 stricter about syntax. Always null-terminate string. 6829 6830Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu> 6831 6832 * configure.in (checkfuncs): Check for sbrk. 6833 * config.in: Rebuilt. 6834 * configure: Likewise. 6835 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions. 6836 68371999-04-12 Jim Blandy <jimb@zwingli.cygnus.com> 6838 6839 Fix from Marcus Daniels: 6840 * cplus-dem.c (demangle_fund_type): Don't run off the end of the 6841 identifier looking for another underscore. 6842 6843Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu> 6844 6845 * pexecute.c: Change all references to __UWIN__ to _UWIN. 6846 * xmalloc.c: Likewise. 6847 (xcalloc): UWIN has sbrk. 6848 (xrealloc): Fix guard macro. 6849 68501999-04-11 Richard Henderson <rth@cygnus.com> 6851 6852 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin 6853 or <alloca.h>. 6854 * clock.c (GNU_HZ): New definition. 6855 (clock): Use it. 6856 * getruntime.c: Likewise. 6857 6858 * config.table: Use mh-beos. 6859 * config/mh-beos: New file. 6860 68611999-04-11 Mark Mitchell <mark@codesourcery.com> 6862 6863 * cplus-dem.c (demangle_template_value_parm): Handle 6864 pointers-to-members. 6865 (do_type): Handle template parameters as qualifiers. 6866 68671999-04-01 Jim Blandy <jimb@zwingli.cygnus.com> 6868 6869 * cplus-dem.c: Attempt to handle overflows in counts with some 6870 semblance of grace. 6871 (consume_count): Detect overflows. Return -1 to indicate errors, 6872 instead of zero. 6873 (demangle_template_value_parm, demangle_template): Handle change 6874 to consume_count's return convention. 6875 68761999-04-05 Tom Tromey <tromey@cygnus.com> 6877 6878 * testsuite/regress-demangle: New file. 6879 * testsuite/demangle-expected: New file. 6880 6881 * Makefile.in (all, check, installcheck, info, install-info, 6882 clean-info, dvi, install, etags, tags, mostlyclean, clean, 6883 distclean, maintainer-clean, realclean): Depend on corresponding 6884 `-subdir' target. 6885 (all-subdir check-subdir installcheck-subdir info-subdir 6886 install-info-subdir clean-info-subdir dvi-subdir 6887 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir 6888 distclean-subdir maintainer-clean-subdir): New target. 6889 * testsuite/Makefile.in: New file. 6890 * configure: Rebuilt. 6891 * configure.in: Create testsuite/Makefile. 6892 68931999-04-02 Mark Mitchell <mark@codesourcery.com> 6894 6895 * splay-tree.h (splay_tree_compare_pointers): Define. 6896 68971999-03-30 Mark Mitchell <mark@codesourcery.com> 6898 6899 * splay-tree.c (splay_tree_compare_ints): Define. 6900 69011999-03-30 Tom Tromey <tromey@cygnus.com> 6902 6903 * cplus-dem.c (consume_count): If `count' wraps, return 0 and 6904 don't advance input pointer. 6905 (demangle_class_name): If consume_count didn't find a count, do 6906 nothing. Don't bother with `strlen' sanity check; consume_count 6907 does it for us. 6908 69091999-03-16 Stan Shebs <shebs@andros.cygnus.com> 6910 6911 From Art Haas <ahaas@neosoft.com>: 6912 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings 6913 when doing arm or hp style. 6914 (demangle_nested_args): Decr forgetting_types field when done. 6915 6916Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu> 6917 6918 * pexecute.c (__CYGWIN32__): Rename to 6919 (__CYGWIN__): this. 6920 * xmalloc.c: Likewise. 6921 6922 Changes to support i386-pc-uwin. 6923 * configure.in (*-*-uwin*): Workaround for vfork bug. 6924 * configure: Regenerate. 6925 * pexecute.c (pexecute): Be like standard Unix. 6926 (pwait): Likewise. 6927 * xmalloc.c (first_break): Define. 6928 (xmalloc_set_program_name): Use. 6929 (xmalloc): Use. 6930 6931Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 6932 6933 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc 6934 6935Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com> 6936 6937 * config.table: Check cygwin*, not cygwin32*. 6938 6939Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com> 6940 6941 * Makefile.in: Change mkstemp -> mkstemps. 6942 6943Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr> 6944 6945 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o 6946 * configure.in (funcs): Check for and conditionally add mkstemps to 6947 the list of functions libiberty will provide. 6948 * configure: Rebuilt. 6949 6950Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu> 6951 6952 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on 6953 platforms that don't have HZ. 6954 * getruntime.c (HZ): Likewise. 6955 6956Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com> 6957 6958 * Makefile.in (xstrdup.o): Depend on config.h. 6959 6960Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org) 6961 6962 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after 6963 freeing it. 6964 6965Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6966 6967 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed. 6968 6969Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com> 6970 6971 * Makefile.in (CFILES): fix typo, splay-tree.c instead of 6972 splay-tree.o. 6973 69741999-01-04 Jason Molenda (jsm@bugshack.cygnus.com) 6975 6976 * configure.in: Require autoconf 2.12.1 or higher. 6977 69781998-12-30 Michael Meissner <meissner@cygnus.com> 6979 6980 * random.c (NULL): Don't redefine NULL if it is already defined. 6981 6982Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6983 6984 * argv.c (buildargv): Cast the result of alloca in assignment. 6985 6986 * choose-temp.c: Include stdlib.h. 6987 6988 * cplus-dem.c (demangle_arm_pt): Remove unused prototype. 6989 (snarf_numeric_literal): Constify first parameter. 6990 (code_for_qualifier): Avoid a gcc extension, make the parameter an 6991 int, not a char. 6992 (demangle_qualifier): Likewise. 6993 (demangle_signature): Cast the argument of a ctype function to 6994 unsigned char. 6995 (arm_pt): Add parens around assignment used as truth value. 6996 (demangle_arm_hp_template): Constify variable `args'. 6997 (do_hpacc_template_const_value): Cast the argument of a ctype 6998 function to unsigned char. 6999 (do_hpacc_template_literal): Remove unused variable `i'. 7000 (snarf_numeric_literal): Constify parameter `args'. 7001 Cast the argument of a ctype function to unsigned char. 7002 7003 * floatformat.c (floatformat_to_double): Add explicit braces to 7004 avoid ambiguous `else'. 7005 7006 * fnmatch.c (fnmatch): Change type of variables `c', `c1', 7007 `cstart' and `cend' to unsigned char. Cast the argument of macro 7008 `FOLD', which uses ctype functions, to unsigned char. 7009 7010 * objalloc.c (free): Add prototype. 7011 7012Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se> 7013 7014 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o 7015 7016Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com> 7017 7018 * cplus-dem.c (demangle_arm_pt): remove declaration -- function 7019 doesn't exist. 7020 (do_hpacc_template_literal): remove unused variable `i'. 7021 7022Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com> 7023 7024 * cplus-dem.c (demangle_fund_type): Process CV and u codes before 7025 bumping the pointer we read from. Also prepend these codes, 7026 as we do in other places. 7027 70281998-12-18 Nick Clifton <nickc@cygnus.com> 7029 7030 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be 7031 'const char *' in order to match its usage when calling siblings. 7032 (snarf_numeric_literal): Make first arg 'const char **' in order 7033 to match usage. 7034 7035Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7036 7037 * choose-temp.c: Don't check IN_GCC anymore. 7038 7039 * floatformat.c (floatformat_from_double): Use `const', not `CONST'. 7040 * memchr.c (memchr): Likewise. 7041 * memcpy.c (memcpy): Likewise. 7042 * memmove.c (memmove): Likewise. 7043 7044 * mkstemp.c: Don't check IN_GCC anymore. 7045 * pexecute.c: Likewise. 7046 * splay-tree.c: Likewise. 7047 7048 * strchr.c (strchr): Use `const', not `CONST'. 7049 * strrchr.c (strrchr): Likewise. 7050 * strtol.c (strtol): Likewise. 7051 * strtoul.c (strtoul): Likewise. 7052 7053Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com> 7054 Elena Zannoni <ezannoni@cygnus.com> 7055 Stan Shebs <shebs@cygnus.com> 7056 Edith Epstein <eepstein@cygnus.com> 7057 Andres MacLeod <amacleod@cygnus.com> 7058 Satish Pai <pai@apollo.hp.com> 7059 7060 * HP aCC demangling support. 7061 * cplus-dem.c 7062 (main): Remove default to HP style demangling, set to EDG 7063 demangling correctly when -edg specified; set the demangling style 7064 when user specifies 'edg'. Set strip_underscore to 7065 prepends_underscore, if not HPUXHPPA. Set 7066 current_demangling_style to hp_demangling if HPUXHPPA. Set 7067 current demangling style correctly if the switch is hp. Read 7068 label correctly also in the HP style case. 7069 (work_stuff): add temp_start field; add field for volatile member 7070 function. 7071 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP 7072 style for this case is the same as ARM. 7073 (demangle_args): handle EDG_DEMANGLING style; support HP style. 7074 (demangle_arm_hp_template): new function. (It was 7075 demangle_arm_pt.); check and set value of temp_start field in 7076 multiple places. Also, when ceching for end of template args, 7077 check to see if at end of static member of template class. 7078 (demangle_class): new local variable : save_class_name_end Don't 7079 include template args in string defining class. 7080 (demangle_class_name): use demangel_arm_hp_template. 7081 (demangle_function_name): handle case where demangling style is 7082 HP_DEMANGLING and currently point at an 'X' in the mangled name. 7083 Handle EDG_DEMANGLING style. Handle constructor and destructor 7084 ops for HP style. 7085 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING 7086 styles. global destructor and constructor for HP style are same 7087 as for ARM style. Same for local variables. 7088 (demangle_qualified): handle EDG_DEMANGLING style. 7089 (demangle_signature): add case for volatile member function. For 7090 cases '1' - '9' : initialize the temp_start field to -1 and handle 7091 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING 7092 and AUTO_DEMANGLING styles. If expecting a function and managed 7093 to demangle the funct args, then handle the LUCID_DEMANGLING, 7094 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local 7095 class name after "Lnnn_ in HP style case. HP style too needs to 7096 forget types. _nnn is OK for HP style, so don't report failure. 7097 (do_hpacc_template_const_value): new function. Handle template's 7098 value param for HP/aCC. 7099 (do_hpacc_template_literal): new function. Handle a template's 7100 literal parameter for HP aCC. 7101 (recursively_demangle): new function 7102 (snarf_numeric_literal): new function. 7103 (usage): add 'edg' to the list of demangling styles; add hp switch 7104 to message. 7105 7106Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com> 7107 7108 * pexecute.c: Remove obsolete ifdefed cygwin code. 7109 7110Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7111 7112 * choose-temp.c: Always include libiberty.h. Avoid redundancies. 7113 * cplus-dem.c: Likewise. Conform to libiberty.h. 7114 * pexecute.c: Likewise. 7115 * splay-tree.c: Likewise. 7116 71171998-11-25 Mike Stump <mrs@wrs.com> 7118 7119 * Makefile.in (splay-tree.o): Add config.h dependency. 7120 7121Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7122 7123 * configure.in: Use AC_PREREQ(2.12.1). 7124 71251998-11-16 Benjamin Kosnik <bkoz@haight.constant.com> 7126 7127 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types. 7128 7129Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com) 7130 7131 * mpw.c (mpw_access): Add missing parens. 7132 7133Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7134 7135 * configure.in: Call AC_HEADER_SYS_WAIT. 7136 7137 * pexecute.c: Include sys/wait.h when !IN_GCC. 7138 7139Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com> 7140 7141 * pexecute.c: revert back to checking old Cygwin 7142 preprocessor symbol until some time has passed. 7143 7144Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com> 7145 7146 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin 7147 since it will now support similar constructs. 7148 7149Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7150 7151 * configure.in: Check for calloc. 7152 7153 * calloc.c: New file. 7154 7155 * xmalloc.c (xcalloc): New function. 7156 7157Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com> 7158 7159 *cplus-dem.c (demangle_prefix): Use the last "__" 7160 in the mangled name when looking for the signature. This allows 7161 template names to begin with "__". 7162 71631998-11-08 Mark Mitchell <mark@markmitchell.com> 7164 7165 * cplus-dem.c (type_kind_t): Add tk_reference. 7166 (demangle_template_value_parm): Handle it. 7167 (do_type): Use it for references, instead of tk_pointer. 7168 7169 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle, 7170 not internal_cplus_demangle. 7171 7172Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7173 7174 * choose-temp.c: Don't include gansidecl.h. 7175 * mkstemp.c: Likewise. 7176 * pexecute.c: Likewise. 7177 7178Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com> 7179 7180 * configure.in: detect cygwin* instead of cygwin32* 7181 * configure: regenerate 7182 7183Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7184 7185 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining 7186 whether to include config.h. Possibly include unistd.h in the 7187 !IN_GCC case. Define VFORK_STRING as a printable function call 7188 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is 7189 defined, include vfork.h. If VMS is defined, define vfork() 7190 appropriately. Remove vfork check on USG, we're using autoconf. 7191 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking 7192 locally what string to use. 7193 71941998-10-26 Mark Mitchell <mark@markmitchell.com> 7195 7196 * splay-tree.c: Tweak include directives to make sure declarations of 7197 xmalloc and free are available. 7198 71991998-10-25 Mark Mitchell <mark@markmitchell.com> 7200 7201 * cplus-dem.c (gnu_special): Fix handling of virtual tables in 7202 anonymous namespaces. 7203 72041998-10-23 Mark Mitchell <mark@markmitchell.com> 7205 7206 * cplus-dem.c (work_stuff): Replace const_type and volatile_type 7207 with type_quals. 7208 (TYPE_UNQUALIFIED): New macro. 7209 (TYPE_QUAL_CONST): Likewise. 7210 (TYPE_QUAL_VOLATILE): Likewise. 7211 (TYPE_QUAL_RESTRICT): Likewise. 7212 (code_for_qualifier): New function. 7213 (qualifier_string): Likewise. 7214 (demangle_qualifier): Likewise. 7215 (internal_cplus_demangle): Use them. 7216 (demangle_signature): Likewise. 7217 (demangle_template_value_parm): Likewise. 7218 (do_type): Likewise. 7219 (demangle_fund_type)): Likewise. 7220 7221Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7222 7223 * splay-tree.c (splay_tree_foreach_helper): Make definition static 7224 to match prototype. 7225 72261998-10-21 Mark Mitchell <mark@markmitchell.com> 7227 7228 * splay-tree.c: New file. 7229 * Makefile.in (CFILES): Add it. 7230 (REQUIRED_OFILES): Likewise. 7231 (splay-tree.o): Add dependencies. 7232 7233Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 7234 7235 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking 7236 range of 'K' index. 7237 7238Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7239 7240 * choose-temp.c: Prototype mkstemps() when IN_GCC. 7241 7242 * cplus-dem.c (consume_count): Cast argument of ctype macro to 7243 `unsigned char'. 7244 (cplus_demangle_opname): Cast the result of `strlen' to (int) when 7245 comparing against one. 7246 (cplus_mangle_opname): Likewise. 7247 (demangle_integral_value): Cast argument of ctype macro to 7248 `unsigned char'. 7249 (demangle_template_value_parm): Likewise. 7250 (demangle_template): Initialize variable `bindex'. Cast the 7251 result of `strlen' to (int) when comparing against one. Remove 7252 unused variable `start_of_value_parm'. 7253 (demangle_class_name): Cast the result of `strlen' to (int) when 7254 comparing against one. 7255 (demangle_prefix): Cast argument of ctype macro to `unsigned char'. 7256 (gnu_special): Likewise. Cast the result of `strlen' to (int) 7257 when comparing against one. 7258 (demangle_qualified): Cast argument of ctype macro to `unsigned char'. 7259 (get_count): Likewise. 7260 (do_type): Likewise. Cast the result of `strlen' to (int) when 7261 comparing against one. 7262 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'. 7263 (demangle_function_name): Cast the result of `strlen' to (int) 7264 when comparing against one. 7265 7266 * mkstemp.c (mkstemps): Cast variable `len' to (int) when 7267 comparing against one. 7268 7269Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com) 7270 7271 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h 7272 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too. 7273 * config.in, configure: Rebuilt. 7274 7275 * getopt.c: Check HAVE_STRINGS_H before including strings.h. 7276 * configure.in (AC_CHECK_HEADERS): Check for strings.h too. 7277 * config.in, configure: Rebuilt. 7278 7279Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com> 7280 7281 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT 7282 7283Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com> 7284 7285 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h. 7286 7287Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com) 7288 7289 * Merge egcs & devo libiberty. 7290 72911998-09-08 Martin von Löwis <loewis@informatik.hu-berlin.de> 7292 7293 * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces. 7294 7295Mon Sep 7 23:29:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7296 7297 * mkstemp.c: Include config.h even when not IN_GCC. Wrap header 7298 inclusions inside HAVE_*_H macros. Include ansidecl.h when not 7299 IN_GCC. 7300 7301 * vasprintf.c: Include stdarg.h/varargs.h first. 7302 7303 * vprintf.c: Likewise. 7304 7305Sat Sep 5 03:24:49 1998 Jeffrey A Law (law@cygnus.com) 7306 7307 * pexecute.c: Updates from gcc. Copy in gcc has been removed. This 7308 is the canonical copy. Define ISSPACE if !IN_GCC. 7309 * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly. 7310 * getopt1.c, obstack.c: Similarly. 7311 * Makefile.in: Build mkstemp.o 7312 7313Tue Sep 1 23:12:47 1998 Christopher Faylor <cgf@cygnus.com> 7314 7315 * configure.in: Include asprintf in list of functions known not 7316 to be in newlib. 7317 * configure: Rebuild. 7318 7319Wed Aug 19 14:05:01 1998 Mumit Khan <khan@xraylith.wisc.edu> 7320 7321 * cplus-dem.c (work_stuff): Add dllimported. 7322 (demangled_prefix): Mark symbols imported from PE DLL. 7323 (internal_cplus_demangled): Handle. 7324 73251998-08-17 Jason Merrill <jason@yorick.cygnus.com> 7326 7327 * cplus-dem.c (do_type): Fix simple array handling. If we fail, 7328 stay failed. 7329 7330Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7331 7332 * cplus-dem.c: Include config.h if it exists. Also, only 7333 prototype malloc/realloc if we can't get stdlib.h. 7334 7335Sat Aug 15 16:15:01 1998 Ian Lance Taylor <ian@cygnus.com> 7336 7337 * configure.in: Switch back to checking --with-target-subdir when 7338 deciding whether to check for newlib, undoing part of July 15 7339 change. 7340 * configure: Rebuild. 7341 7342Thu Aug 13 16:47:38 1998 Mark Mitchell <mark@markmitchell.com> 7343 7344 * cplus-dem.c (type_kind_t): New type. 7345 (demangle_template_value_parm): Add type_kind_t parameter. Rely 7346 on this paramter, rather than demangling the type again. 7347 (demangle_integral_value): Pass tk_integral. 7348 (demangle_template_: Pass the value returned from do_type. 7349 (do_type): Return a type_kind_t. Pass tk_integral to 7350 demangle_template_value_parm for array bounds. 7351 (demangle_fund_type): Likewise. 7352 7353 Also incorporate from GCC version: 7354 7355 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com> 7356 7357 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays. 7358 7359Thu Aug 13 16:47:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7360 7361 * cplus-dem.c (demangle_nested_args): Make function definition 7362 static to match the prototype. 7363 7364Tue Jul 28 11:33:09 1998 Mark Mitchell <mark@markmitchell.com> 7365 7366 * cplus-dem.c (type_kind_t): New type. 7367 (demangle_template_value_parm): Add type_kind_t parameter. Rely 7368 on this paramter, rather than demangling the type again. 7369 (demangle_integral_value): Pass tk_integral. 7370 (demangle_template_: Pass the value returned from do_type. 7371 (do_type): Return a type_kind_t. Pass tk_integral to 7372 demangle_template_value_parm for array bounds. 7373 (demangle_fund_type): Likewise. 7374 7375 Also incorporate from GCC version: 7376 7377 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com> 7378 7379 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays. 7380 7381Mon Jul 27 12:16:08 1998 Ian Lance Taylor <ian@cygnus.com> 7382 7383 * Makefile.in (ALLOCA): New variable. 7384 ($(TARGETLIB)): Add $(ALLOCA) to library. 7385 (needed-list): Add $(ALLOCA). 7386 ($(ALLOCA)): Depend upon stamp-picdir. 7387 7388Sun Jul 19 08:23:17 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7389 7390 * cplus-dem.c (demangle_nested_args): Make function definition 7391 static to match the prototype. 7392 7393Wed Jul 15 00:12:58 1998 Ian Lance Taylor <ian@cygnus.com> 7394 7395 * configure.in: Check --with-cross-host rather than 7396 --with-target-subdir when deciding whether build uses a cross 7397 compiler, and when deciding where to install the library. 7398 * configure: Rebuild. 7399 7400Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com> 7401 7402 * cplus-dem.c (demangle_nested_args): Return a value. 7403 7404Sat Jul 11 16:19:48 1998 Mark Mitchell <mark@markmitchell.com> 7405 7406 * cplus-dem.c (string): Move definition before work_stuff. 7407 (work_stuff): Add volatile_type, forgetting_types, 7408 previous_argument, and nrepeats fields. 7409 (SCOPE_STRING): New macro. 7410 (demangle_template): Add `remember' parameter. Add comment. 7411 Register the `B' code type here, if remembering. Tidy. Fix crash 7412 on NULL tmpl_argvec. Be consistent with use of tname/trawname. 7413 (demangle_nested_args): New function. 7414 (internal_cplus_demangle): Handle volatile-qualified member 7415 functions. 7416 (mop_up): Delete the previous_argument string if present. 7417 (demangle_signature): Tidy. Handle volatile-qualified member 7418 functions. Handle back-references using the `B' code. Use extra 7419 parameter to demangle_template and SCOPE_STRING where appropriate. 7420 (demangle_template_value_parm): Fix thinko; 'B' is not an integral 7421 code. 7422 (demangle_class): Use SCOPE_STRING. 7423 (gnu_special): Pass additional argument to demangle_template. 7424 Use SCOPE_STRING. 7425 (demangle_qualified): Save qualified types for later 7426 back-references. Handle constructors and destructors for template 7427 types correctly. 7428 (do_type): Tidy. Use SCOPE_STRING. Pass extra argument to 7429 demangle_template. Use demangled_nested_args. Don't remember 7430 qualified types here; that's now done in demangle_qualified. 7431 Similarly for templates. 7432 (do_arg): Improve commment. Handle 'n' repeat code. 7433 (remember_type): Check forgetting_types. 7434 (demangle_args): Deal with 'n' repeat codes. Tidy. 7435 7436Thu Jul 2 16:26:24 1998 Ian Lance Taylor <ian@cygnus.com> 7437 7438 * config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on 7439 *-*-freebsd2.2.*. From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>. 7440 7441Mon Jun 15 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com> 7442 7443 * configure.in (setobjs): Correct quoting error in cygwin32 case. 7444 From Chris Faylor <cgf@cygnus.com>. 7445 7446Mon Jun 1 13:47:55 1998 Jason Molenda (crash@bugshack.cygnus.com) 7447 7448 * obstack.c: Update to latest FSF version. 7449 7450Mon Jun 1 14:17:36 1998 Mike Stump <mrs@wrs.com> 7451 7452 * Makefile.in: Add a dependency on stamp-picdir for the 7453 objects, so that we can do a parallel build. 7454 7455Sat May 30 22:17:13 1998 Mumit Khan <khan@xraylith.wisc.edu> 7456 7457 * configure.in (checkfuncs): Add missing "'". 7458 7459Fri May 29 12:40:41 1998 Jason Molenda (crash@bugshack.cygnus.com) 7460 7461 * obstack.c (_obstack_memory_used): Elide this function if we're 7462 on a system with GNU libc. 7463 7464Tue May 26 18:28:43 1998 Ian Lance Taylor <ian@cygnus.com> 7465 7466 * Makefile.in (distclean): Remove config.log. 7467 7468Tue May 26 15:01:52 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 7469 7470 * Makefile.in (distclean): Don't remove alloca-conf.h. 7471 7472Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se> 7473 7474 * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767. 7475 74761998-05-21 Mark Mitchell <mmitchell@usa.net> 7477 7478 * cplus-dem.c (do_type): Handle volatile qualification. 7479 74801998-05-21 Manfred Hollstein <manfred@s-direktnet.de> 7481 7482 * configure.in: Check for unistd.h as well. 7483 * configure: Rebuild. 7484 * config.in: Rebuild. 7485 * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE 7486 is defined in unistd.h. Reformat conditional block for easier reading. 7487 7488 * config.table (shared): Default to no if ${enable_shared} 7489 is unset or empty; this logic is used by the toplevel 7490 configure scripts, too. 7491 7492Sat May 16 14:01:26 1998 Jeffrey A Law (law@cygnus.com) 7493 7494 * config.table: Add line to set enable_shared in the Makefile 7495 as needed. 7496 7497Wed May 13 14:24:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7498 7499 * cplus-dem.c (squangle_mop_up): Change return type to void. 7500 (internal_cplus_demangle): Remove unused parameter `options'. 7501 All callers changed. 7502 (cplus_demangle_opname): Remove function wide variable `int i' and 7503 replace with `size_t i' at each location where it is used. 7504 (cplus_mangle_opname): change type of `i' from int to size_t. 7505 7506Wed May 13 13:39:38 1998 Ian Lance Taylor <ian@cygnus.com> 7507 7508 * alloca-conf.h: Include config.h. Check HAVE_ALLOCA_H rather 7509 than sparc or sun. 7510 * Makefile.in (argv.o): Depend upon config.h and alloca-conf.h. 7511 7512Fri May 8 00:23:51 1998 Ian Lance Taylor <ian@cygnus.com> 7513 7514 * configure.in: Set libiberty_topdir correctly when srcdir is 7515 "." and with_target_subdir is not set. 7516 * configure: Rebuild. 7517 7518Thu May 7 13:01:44 1998 Ian Lance Taylor <ian@cygnus.com> 7519 7520 * configure.in: Add *-*-mingw32* case. 7521 * configure: Rebuild. 7522 7523Wed May 6 11:33:51 1998 Ian Lance Taylor <ian@cygnus.com> 7524 7525 * config.table: Never use a PIC file for *-*-cygwin32*. 7526 7527 * Makefile.in (config.status): Depend upon config.table. 7528 7529 * configure.in: On a cygwin32 host, always compile random, and 7530 don't test for sys_siglist, strsignal, or psignal. 7531 * configure: Rebuild. 7532 7533 * clock.c: Check HAVE_SYS_PARAM_H rather than NO_SYS_PARAM_H. 7534 * getcwd.c: Likewise. 7535 * getpagesize.c: Likewise. 7536 * getruntime.c: Likewise. 7537 7538Tue May 5 18:08:32 1998 Ian Lance Taylor <ian@cygnus.com> 7539 7540 Use autoconf tests rather than the old dummy.c test: 7541 * configure.in: Add AC_ARG_WITH calls for --with-target-subdir and 7542 --with-newlib. Add AC_CONFIG_HEADER. Use AC_REPLACE_FUNCS for 7543 most functions. Add special cases to handle newlib and VxWorks. 7544 Remove target_makefile_frag. Create stamp-h in AC_OUTPUT if 7545 CONFIG_HEADERS is set. Only call config-ml.in in AC_OUTPUT if 7546 CONFIG_FILES is set; set ac_file before calling it. 7547 * config.table (arm-*-riscix*, *-*-cygwin32): Remove. 7548 (*-*-hpux*, *-*-hiux*, *-*-irix4*, *-*-solaris2*): Remove. 7549 (*-*-sysv4*, *-*-go32, *-*-vxworks5*, *-*-vxworks): Remove 7550 (i[3456]-*-mingw32*): Remove. 7551 * Makefile.in (ERRORS_CC, CONFIG_H, NEEDED_LIST): Remove. 7552 (LIBOBJS): New variable. 7553 (HOST_OFILES, DO_ALSO, STAGESTUFF): Remove. 7554 (all): Depend upon needed-list. Don't check RULE1. 7555 (@target_makefile_frag@): Remove. 7556 (COMPILE.c): Include @DEFS@. 7557 (HFILES): Add alloca-conf.h. 7558 (REQUIRED_OFILES): Remove basename.o. 7559 ($(TARGETLIB)): New target. 7560 (stamp-needed, lneeded-list, needed.awk, stamp-config): Remove. 7561 (lconfig.h, needed2.awk, dummy.o, errors): Remove. 7562 (needed-list, config.h): Rewrite. 7563 (RULE1, $(RULE1), RULE2, $(RULE2)): Remove. 7564 (.always.): Remove. 7565 (Makefile): Set CONFIG_FILES and CONFIG_HEADERS. 7566 (stamp-h): New target. 7567 (atexit.o, clock.o, getcwd.o, getpagesize.o): New targets. 7568 (basename.o): Don't depend upon config.h. 7569 (getruntime.o): Depend upon config.h. 7570 * atexit.c: Include config.h. Check HAVE_ON_EXIT rather than 7571 NEED_on_exit. 7572 * basename.c: Don't include config.h. Don't check NEED_basename. 7573 * clock.c: Include config.h. 7574 * getcwd.c: Likewise. 7575 * getpagesize.c: Likewise. 7576 * getruntime.c: Likewise. Fix checks which set HAVE_GETRUSAGE and 7577 HAVE_TIMES. 7578 * strerror.c: Change uses of NEED_sys_errlist to 7579 HAVE_SYS_ERRLIST. Likewise for NEED_strerror and HAVE_STRERROR. 7580 * strsignal.c: Likewise for NEED_sys_siglist and HAVE_SYS_SIGLIST, 7581 and for NEED_strsignal and HAVE_STRSIGNAL and for NEED_psignal and 7582 HAVE_PSIGNAL. 7583 * acconfig.h: New file. 7584 * dummy.c: Remove. 7585 * functions.def: Remove. 7586 * config/mh-cxux7 (HDEFINES): Remove -DHAVE_SYSCONF. 7587 * config/mh-windows (HDEFINES): Remove. 7588 * config/mh-cygwin32: Remove. 7589 * config/mh-go32: Remove. 7590 * config/mh-irix4: Remove. 7591 * config/mh-riscix: Remove. 7592 * config/mh-sysv4: Remove. 7593 * config/mt-mingw32: Remove. 7594 * config/mt-vxworks5: Remove. 7595 * config.in: New file, generated using autoheader. 7596 * configure: Rebuild. 7597 7598Mon May 4 13:00:28 1998 Ian Lance Taylor <ian@cygnus.com> 7599 7600 * configure.in: Rewrite to use autoconf. 7601 * configure: Generate using autoconf. 7602 * config/mh-a68bsd: Remove. 7603 * config/mh-apollo68: Remove. 7604 * config/mh-hpbsd: Remove. 7605 * config/mh-ncr3000: Remove. 7606 * config/mh-sysv: Remove. 7607 * config/mh-aix (RANLIB, INSTALL): Don't define. 7608 * config/mh-cxux7 (RANLIB, INSTALL): Don't define. 7609 * config/mh-irix4 (CC, RANLIB, INSTALL): Don't define. 7610 * config/mh-sysv4 (RANLIB, INSTALL): Don't define. 7611 * config.table: Change config_shell to CONFIG_SHELL, and use 7612 libiberty_topdir to find move-if-change. 7613 (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove. 7614 (i[3456]86-ncr-sysv4*, *-*-dgux*, hppa*-hp-bsd*): Remove. 7615 (*-*-irix*, *-*-m88kbcs*, *-*-sysv*): Remove. 7616 * Makefile.in (srcdir): Set to @srcdir@. 7617 (VPATH): Likewise. 7618 (prefix, exec_prefix, bindir, libdir): Set to autoconf variables. 7619 (SHELL, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Likewise. 7620 (CC, CFLAGS, RANLIB)): Likewise. 7621 (datadir, man*dir, infodir, includedir, MAKEINFO): Remove. 7622 (target_makefile_frag, host_makefile_frag): Add substitutions. 7623 (INSTALL_DEST): Set to @INSTALL_DEST@. 7624 (Makefile): Depend upon config.status. Don't depend upon 7625 $(host_makefile_frag) or $(target_makefile_frag). 7626 (config.status): New target. 7627 7628Sun May 3 17:58:49 1998 Ian Lance Taylor <ian@cygnus.com> 7629 7630 * config/mt-sunos4: Remove. Should be handled by --with-headers 7631 and --with-libraries options at top level. 7632 * config.table: Never use mt-sunos4. 7633 7634 * alloca-conf.h: New file, combining alloca-norm.h and 7635 alloca-botch.h. 7636 * alloca-norm.h: Remove. 7637 * alloca-botch.h: Remove. 7638 * configure.in: Set shell variables files and links to empty. 7639 * config.table: Don't set shell variable files. 7640 * configure.bat: Don't create alloca-conf.h. 7641 * makefile.vms: Likewise. 7642 * mpw-config.in: Likewise. 7643 * vmsbuild.com: Likewise. 7644 7645Fri May 1 11:41:42 1998 Ian Lance Taylor <ian@cygnus.com> 7646 7647 * Makefile.in ($(HOST_OFILES) $(REQUIRED_OFILES)): Remove old 7648 target depending upon config.h. 7649 (alloca.o): Add target depending upon config.h 7650 (basename.o, choose-temp.o, fnmatch.o): Likewise. 7651 (getopt.o, getopt1.o, pexecute.o, strerror.o): Likewise. 7652 (strsignal.o, xstrerror.o): Likewise. 7653 7654Fri May 1 04:26:25 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 7655 7656 * cplus-dem.c (cplus_demangle_opname): Initialize work. 7657 7658Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com> 7659 7660 * cplus-dem.c (demangle_qualified): Replace missing else. 7661 7662Sun Apr 26 15:38:50 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 7663 7664 * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the 7665 length in the name of a virtual table. 7666 7667Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod <amacleod@cygnus.com> 7668 7669 * cplus-dem.c (struct work stuff): Add field for B and K mangle codes. 7670 (cplus_demangle_opname): Call mop_up_squangle. 7671 (cplus_demangle): Initialize squangle info, then call 7672 internal_cplus_demangle. (Most code moved there as well) 7673 (internal_cplus_demangle): New function, performs most of what use 7674 to be done in cplus_demangle, but is only called with this file. 7675 (squangle_mop_up): New function to clean up B and K code data. 7676 (mop_up): set pointers to NULL after freeing. 7677 (demangle_signature, demangle_template, demangle_class): Add 7678 switch elements to handle K and B codes. 7679 (demangle_prefix, gnu_special, demangle_qualified): Add 7680 code to handle K and B codes. 7681 (do_type, demangle_fund_type): Handle B and K codes. 7682 (remember_Ktype): New function to store K info. 7683 (register_Btype, remember_Btype): New functions for B codes. 7684 (forget_B_and_K_types): New function to destroy B and K info. 7685 7686Fri Apr 10 01:49:10 1998 Jeffrey A Law (law@cygnus.com) 7687 7688 * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc. 7689 7690Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de> 7691 7692 * config.table: Make locating frag files failsafe even for the 7693 special case if configuring and building in srcdir. 7694 7695Mon Feb 23 14:33:15 1998 Ian Lance Taylor <ian@cygnus.com> 7696 7697 * choose-temp.c: Fix handling of sys/file.h to work in libiberty. 7698 7699Sun Feb 22 18:03:23 1998 Jeffrey A Law (law@cygnus.com) 7700 7701 * choose-temp.c: Sync with copy in gcc. 7702 7703Thu Feb 12 16:29:49 1998 Ian Lance Taylor <ian@cygnus.com> 7704 7705 * getopt.c: Update to latest FSF version. 7706 * getopt1.c: Likewise. 7707 7708Tue Feb 10 16:58:33 1998 Stan Shebs <shebs@andros.cygnus.com> 7709 7710 * cplus-dem.c (gnu_special): Don't get confused by .<digits> 7711 strings that are not actually lengths. 7712 7713Fri Feb 6 01:35:17 1998 Manfred Hollstein <manfred@s-direktnet.de> 7714 7715 * Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG. 7716 (.c.o): Check value of enable_shared, not PICFLAG. 7717 (stamp-picdir): Dito. 7718 7719Thu Feb 5 18:48:56 1998 Geoffrey Noer <noer@cygnus.com> 7720 7721 * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES 7722 since it gets built automatically 7723 7724Sun Feb 1 02:52:32 1998 Mike Stump <mrs@wrs.com> 7725 7726 * config.table (vxworks configs): Default to VxWorks 5.x, as that is 7727 the currently shipping OS. 7728 7729Tue Jan 27 16:08:20 1998 Pat Rankin <rankin@eql.caltech.edu> 7730 7731 * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in: 7732 Add fnmatch.o and objalloc.o; remove vasprintf.o. 7733 [config.h]: Define NEED_strsignal. 7734 7735Mon Jan 19 12:20:01 1998 Ian Lance Taylor <ian@cygnus.com> 7736 7737 * functions.def: Correct argument types for strerror and 7738 strsignal. Reported by Alex Gutman <agutman@emc.com>. 7739 7740Sun Jan 18 15:57:28 1998 Michael Snyder <msnyder@cleaver.cygnus.com> 7741 7742 * vasprintf.c (int_vasprintf): Increase buffer size for float/double 7743 values. 7744 7745Sat Jan 17 22:28:38 1998 Mumit Khan <khan@xraylith.wisc.edu> 7746 J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl> 7747 7748 Add mingw32 support. 7749 * pexecute.c (pexecute): New function for mingw32. Supports pipes. 7750 (pwait): New function for mingw32. 7751 7752 * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32. 7753 * config/mt-mingw32: New file. 7754 * xmalloc.c (first_break): Not used for mingw32. 7755 (xmalloc_set_program_name): Don't use sbrk on mingw32. 7756 (xmalloc): Likewise. 7757 (xrealloc): Likewise. 7758 7759Sat Jan 17 22:28:05 1998 Jeffrey A Law (law@cygnus.com) 7760 7761 * choose-temp.c: Sync with gcc version. 7762 7763Tue Jan 13 18:34:39 1998 Jim Wilson <wilson@cygnus.com> 7764 7765 * Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR 7766 to all filenames in libdir and tooldir. 7767 (distclean): Do MULTICLEAN before deleting Makefile. 7768 (stamp-needed, stamp-config): Add MULTISRCTOP to 7769 pathname for move-if-change. 7770 7771Thu Dec 4 17:25:19 1997 Jeffrey A Law (law@cygnus.com) 7772 7773 * strsignal.c (sys_nsig): Try NSIG and _NSIG. 7774 7775Wed Nov 19 13:37:06 1997 Michael Meissner <meissner@cygnus.com> 7776 7777 * alloca-norm.h (alloca, GCC case): Don't redefine alloca if it 7778 was already defined previously. 7779 7780Mon Nov 10 12:48:03 1997 Philippe De Muyter <phdm@macqel.be> 7781 7782 * Makefile.in (INSTALL): Use ../install-sh, not install. 7783 7784Tue Oct 28 23:41:15 1997 Judy Goldberg <jodyg@idt.net> 7785 7786 * Makefile.in (CFILES): Add pexecute.c. 7787 7788Wed Oct 15 19:13:48 1997 Ian Lance Taylor <ian@cygnus.com> 7789 7790 * asprintf.c: Consistently use either stdarg or varargs. 7791 7792Tue Oct 14 12:01:00 1997 Mark Mitchell <mmitchell@usa.net> 7793 7794 * cplus-dem.c (demangle_signature): Don't look for return types on 7795 constructors. Handle member template constructors. 7796 7797Fri Oct 3 17:53:30 1997 Ian Lance Taylor <ian@cygnus.com> 7798 7799 * README: Fix configuration instructions. 7800 7801Mon Sep 29 12:28:41 1997 Ian Lance Taylor <ian@cygnus.com> 7802 7803 * pexecute.c: Update to current version from /gd/gnu/lib: 7804 7805 Mon Sep 29 12:27:59 1997 Ian Lance Taylor <ian@cygnus.com> 7806 7807 * pexecute.c: Use spawn if __CYGWIN32__. 7808 7809 1997-08-08 Paul Eggert <eggert@twinsun.com> 7810 7811 * pexecute.c: Include "config.h" first, as per autoconf manual. 7812 7813 Fri Jun 27 15:20:29 1997 Scott Christley <scottc@net-community.com> 7814 7815 * pexecute.c (fix_argv): New function. 7816 (pexecute): Win32 but not Cygwin32 needs its arguments fixed. 7817 Add underscore to cwait function call. 7818 7819Sun Sep 28 12:00:52 1997 Mark Mitchell <mmitchell@usa.net> 7820 7821 * cplus-dem.c (demangle_template): Add new parameter. Handle new 7822 template-function mangling. 7823 (consume_count_with_underscores): New function. 7824 (demangle_signature): Handle new name-mangling scheme. 7825 7826Wed Sep 24 00:31:59 1997 Felix Lee <flee@yin.cygnus.com> 7827 7828 * asprintf.c: stdarg.h when ALMOST_STDC 7829 * config/mh-windows (EXTRA_OFILES): add asprintf.o and 7830 strncasecmp.o. 7831 7832Thu Aug 28 14:27:15 1997 Andrew Cagney <cagney@b1.cygnus.com> 7833 7834 * vasprintf.c (vasprintf): Allow for _BSD_VA_LIST_. 7835 7836 * config.table: Add case for FreeBSD 2.1 and 2.2, needs mh-fbsd21. 7837 7838 * config/mh-fbsd21 (EXTRA_OFILES): Force vasprintf.o 7839 7840Wed Sep 10 12:43:10 1997 Jason Merrill <jason@yorick.cygnus.com> 7841 7842 * cplus-dem.c (demangle_fund_type): Change "complex" to "__complex". 7843 7844Fri Sep 5 16:34:42 1997 Andrew Cagney <cagney@b1.cygnus.com> 7845 7846 * asprintf.c (asprintf): New file. 7847 * Makefile.in (CFILES): Add asprintf.c 7848 * functions.def: Ditto. 7849 7850Thu Aug 28 18:53:34 1997 Andrew Cagney <cagney@b1.cygnus.com> 7851 7852 * argv.c (dupargv): New function, duplicate an argument vector. 7853 7854Tue Aug 19 20:28:45 1997 Geoffrey Noer <noer@cygnus.com> 7855 7856 * config/mh-cygwin32: also build random.o 7857 7858Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com> 7859 7860 * cplus-dem.c: Add 'extern' to prepends_underscore. 7861 7862Wed Jul 30 11:42:19 1997 Per Bothner <bothner@cygnus.com> 7863 7864 * cplus-dem.c: Various changes to produce Java output when passed 7865 DMGL_JAVA. Thus "::" becomes "." and "JArray<Foo>" becomes "Foo[]". 7866 (main): Support --java and -j flags to set DMGL_JAVA. 7867 7868Tue Jul 22 19:05:23 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE> 7869 7870 * config/mh-go32 (CC, AR, RANLIB): Don't define. 7871 7872Tue Jul 22 17:49:54 1997 Ian Lance Taylor <ian@cygnus.com> 7873 7874 * Makefile.in (REQUIRED_OFILES): Add pexecute.o. 7875 (pexecute.o): New target. 7876 7877 * Makefile.in (stamp-needed): New target, replacing needed-list. 7878 (needed-list): Just depend upon stamp-needed. 7879 (stamp-config): New target, replacing config.h. 7880 (config.h): Just depend upon stamp-config. 7881 (mostlyclean): Remove stamp-*. 7882 7883Thu Jun 12 11:00:18 1997 Angela Marie Thomas (angela@cygnus.com) 7884 7885 * Makefile.in (FLAGS_TO_PASS): pass INSTALL, INSTALL_PROGRAM and 7886 INSTALL_DATA for multilibbed installs 7887 7888Tue Jun 3 13:21:05 1997 Doug Evans <dje@canuck.cygnus.com> 7889 7890 Tue Dec 10 09:44:57 1996 Paul Eggert <eggert@twinsun.com> 7891 7892 * choose-temp.c (choose_temp_base): Don't dump core if TMPDIR is empty. 7893 7894 * choose-temp.c (try): Insist that temp dir be searchable. 7895 7896 Wed Oct 23 17:36:39 1996 Doug Rupp (rupp@gnat.com) 7897 7898 * choose-temp.c (choose_temp_base): On VMS, use proper syntax 7899 for current directory. 7900 7901 Sat Feb 15 19:03:48 1997 Geoffrey Noer (noer@cygnus.com) 7902 7903 * pexecute.c: Remove special cases for cygwin32. 7904 (pwait): Remove local definition of `pid'. 7905 7906 Tue Nov 12 18:26:15 1996 Doug Rupp (rupp@gnat.com) 7907 7908 * pexecute.c (vfork): Supply new definition for VMS. 7909 (pwait): Use waitpid instead of wait for VMS. 7910 7911Tue May 20 14:02:20 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 7912 7913 * cplus-dem.c (do_type): Handle `J'. 7914 (demangle_fund_type): Print "complex" for it. 7915 7916Wed Apr 30 12:15:45 1997 Jason Merrill <jason@yorick.cygnus.com> 7917 7918 * configure.in: Don't turn on multilib here. 7919 7920Mon Apr 28 19:04:31 1997 Michael Snyder <msnyder@cleaver.cygnus.com> 7921 7922 * obstack.c: move _obstack_memory_used outside of ifdef. Cannot be 7923 elided; needed by gdb and not present in libc. 7924 7925Thu Apr 24 19:33:47 1997 Ian Lance Taylor <ian@cygnus.com> 7926 7927 * Makefile.in (clean): Remove tmpmulti.out. 7928 7929Tue Apr 22 10:25:15 1997 Fred Fish <fnf@cygnus.com> 7930 7931 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): 7932 Add new floatformat, mainly for ARM doubles. 7933 7934Mon Apr 14 12:11:16 1997 Ian Lance Taylor <ian@cygnus.com> 7935 7936 * config.table: Use ${config_shell} with ${moveifchange}. From 7937 Thomas Graichen <graichen@rzpd.de>. 7938 7939Fri Apr 4 03:09:24 1997 Ulrich Drepper <drepper@cygnus.com> 7940 7941 * configure.in: Enable multilibing by default. 7942 Update multilib template to read config-ml.in. 7943 7944Tue Apr 1 16:26:39 1997 Klaus Kaempf <kkaempf@progis.de> 7945 7946 * makefile.vms: Add objalloc. 7947 7948Mon Mar 31 23:57:51 1997 H.J. Lu <hjl@gnu.ai.mit.edu> 7949 7950 * cplus-dem.c (demangle_it): Add prototype declaration. 7951 (usage, fatal): Likewise. 7952 7953 * xexit.c (_xexit_cleanup): Add prototype. 7954 7955 * strerror.c (init_error_tables): Declare. 7956 7957Fri Mar 28 11:43:20 1997 H.J. Lu <hjl@lucon.org> 7958 7959 * functions.def: Add DEF of vasprintf, and DEFFUNC of strsignal. 7960 * strsignal.c: Only define strsignal if NEED_strsignal. 7961 * Makefile.in (REQUIRED_OFILES): Remove vasprintf.o. 7962 * configure.in: Add NEED_strsignal to xconfig.h. Add vasprintf.o 7963 to xneeded-list. 7964 * config/mh-cygwin32 (HDEFINES): Add -DNEED_strsignal. 7965 (EXTRA_OFILES): Define to vasprintf.o. 7966 * config/mh-windows (HDEFINES): Add -DNEED_strsignal. 7967 (EXTRA_OFILES): Add vasprintf.o. 7968 * config/mt-vxworks5 (vxconfig.h): Define NEED_strsignal. 7969 (vxneeded-list): Add vasprintf.o. 7970 7971Thu Mar 20 17:02:09 1997 Ian Lance Taylor <ian@cygnus.com> 7972 7973 * objalloc.c: Include <stdio.h>. 7974 7975Mon Mar 17 19:23:11 1997 Ian Lance Taylor <ian@cygnus.com> 7976 7977 * objalloc.c: New file. 7978 * Makefile.in (CFILES): Add objalloc.c 7979 (REQUIRED_OFILES): Add objalloc.o. 7980 (objalloc.o): New target. 7981 7982Sat Mar 15 18:49:41 1997 Ian Lance Taylor <ian@cygnus.com> 7983 7984 * obstack.c: Update to current FSF version. 7985 7986Fri Mar 14 14:18:47 1997 Ian Lance Taylor <ian@cygnus.com> 7987 7988 * cplus-dem.c: Add prototypes for all static functions. 7989 (mystrstr): Make static. Make arguments and result const. 7990 (cplus_match): Remove; not used. 7991 7992Tue Mar 11 14:20:31 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 7993 7994 * cplus-dem.c (gnu_special): Call demangled_fund_type for other 7995 __t* symbols. 7996 7997Tue Mar 11 15:41:21 1997 H.J. Lu <hjl@lucon.org> 7998 7999 * spaces.c: Declare malloc and free properly. 8000 * strsignal.c (init_signal_tables): Add prototype. 8001 * xatexit.c (_xexit_cleanup): Add parameter declarations. 8002 8003Wed Feb 19 15:43:24 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 8004 8005 * Makefile.in (lneeded-list): If alloca.o is needed, xexit.o is 8006 also required because of xmalloc.o. 8007 8008Fri Feb 14 13:43:38 1997 Ian Lance Taylor <ian@cygnus.com> 8009 8010 * strsignal.c: Unconditionally redefine sys_siglist around the 8011 inclusion of the system header files. 8012 8013Thu Feb 13 22:01:04 1997 Klaus Kaempf <kkaempf@progis.de> 8014 8015 * makefile.vms: Remove 8 bit characters. Update to latest 8016 gcc release. 8017 8018Tue Feb 4 11:52:19 1997 Ian Lance Taylor <ian@cygnus.com> 8019 8020 * strsignal.c: Use NEED_sys_siglist instead of 8021 LOSING_SYS_SIGLIST. 8022 * config.table: Don't use mh-lynxos. 8023 * config/mh-lynxos: Remove. 8024 8025Thu Jan 16 14:51:03 1997 Bob Manson <manson@charmed.cygnus.com> 8026 8027 * cplus-dem.c: Fix indenting; make identical to the copy 8028 in GCC. 8029 (do_type, case 'M'): Check for a template as well as a class. 8030 8031Thu Dec 19 13:51:33 1996 Brendan Kehoe <brendan@lisa.cygnus.com> 8032 8033 * config/mt-vxworks5 (vxneeded-list): Remove sigsetmask.o, since 8034 vxworks 5.[0-3] all have sigsetmask in them; the one provided by 8035 libiberty is incorrect, as well. 8036 8037Mon Dec 2 15:03:42 1996 Michael Meissner <meissner@tiktok.cygnus.com> 8038 8039 * alloca.c (alloca): When compiled with an ANSI/ISO compiler, 8040 alloca takes a size_t argument, not just unsigned. 8041 8042Mon Nov 18 15:42:08 1996 Jason Merrill <jason@yorick.cygnus.com> 8043 8044 * cplus-dem.c: Note that this file also lives in GCC. 8045 8046Mon Nov 18 15:19:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 8047 8048 * alloca.c: Remove include of libiberty.h for hpux. 8049 * argv.c: Replace defs from libiberty.h. 8050 * spaces.c: Put back externs from removed from libiberty.h. 8051 * vasprintf.c: Remove include of libiberty.h for hpux. 8052 8053Mon Nov 18 14:08:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 8054 8055 * cplus-dem.c: Checking in again; last checkin filed due to sticky tag. 8056 8057Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 8058 8059 * cplus-dem.c: Revert last two commits due to conflicts with 8060 hpux system headers. 8061 8062Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 8063 8064 * alloca.c, argv.c, spaces.c, strcasecmp.c, vasprintf.c, vprintf.c: 8065 Revert last commit due to conflicts with hpux system headers. 8066 8067Wed Nov 13 10:36:50 1996 Michael Meissner <meissner@tiktok.cygnus.com> 8068 8069 * cplus-dem.c (x{m,re}alloc): Make declarations compatibile with 8070 libiberty.h when compiled with a standard compiler. 8071 8072Tue Nov 12 16:31:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 8073 8074 * alloca.c: Include libiberty.h for definition of xmalloc. 8075 Don't redefine NULL. 8076 * argv.c: Move prototypes to libiberty.h. 8077 * cplus-dem.c: Include libiberty.h for definition of xmalloc. 8078 Don't redefine NULL. 8079 Use casts to eliminate compiler warnings. 8080 * spaces.c: Remove prototypes for malloc and free which are 8081 already in libibrty.h. 8082 * strcasecmp.c: Use casts to eliminate compiler warnings. 8083 * vasprintf.c: Include libiberty.h for definition of malloc. 8084 Don't redefine NULL. 8085 * vprintf.c: Include stdarg.h if __STDC__. 8086 8087Fri Oct 11 15:42:12 1996 Stu Grossman (grossman@critters.cygnus.com) 8088 8089 * config/mh-windows: Add strcasecmp.o to EXTRA_OFILES. 8090 8091Fri Oct 11 11:16:31 1996 Stan Shebs <shebs@andros.cygnus.com> 8092 8093 * mpw.c (mpwify_filename): Rewrite to simplify, and to handle 8094 upward components correctly. 8095 8096Tue Oct 8 08:55:34 1996 Stu Grossman (grossman@critters.cygnus.com) 8097 8098 * config.table, config/mh-windows: Add support for building under 8099 MSVC (the Microsoft build environment). 8100 8101Mon Oct 7 10:50:27 1996 Ian Lance Taylor <ian@cygnus.com> 8102 8103 * fnmatch.c: Undef const if not __STDC__. 8104 8105Thu Oct 3 13:46:39 1996 Ian Lance Taylor <ian@cygnus.com> 8106 8107 * fnmatch.c: New file. 8108 * Makefile.in (CFILES): Add fnmatch.c. 8109 (REQUIRED_OFILES): Add fnmatch.o. 8110 (fnmatch.o): New target. 8111 8112Wed Sep 18 14:49:13 1996 Jason Merrill <jason@yorick.cygnus.com> 8113 8114 * cplus-dem.c (demangle_template): Fix handling of address args. 8115 (gnu_special): Handle type_info stuff. 8116 8117Fri Sep 13 17:52:55 1996 Stan Shebs <shebs@andros.cygnus.com> 8118 8119 * mpw.c (DebugPI): Make settable from the env var DEBUG_PATHNAMES. 8120 (mpwify_filename): Handle "::/" case. 8121 8122Thu Sep 12 13:30:40 1996 Geoffrey Noer <noer@cygnus.com> 8123 8124 * config/mh-cygwin32: new file (need -DNEED_basename and 8125 -DNEED_sys_siglist for native NT rebuilding) 8126 * config.table (*-*-cygwin32): new entry 8127 * choose-temp.c: bring in sync with gcc (revert Aug 17 change) 8128 8129Thu Aug 29 16:48:45 1996 Michael Meissner <meissner@tiktok.cygnus.com> 8130 8131 * config.table (i[345]86-*-*): Recognize i686 for pentium pro. 8132 8133Tue Aug 27 13:47:58 1996 Stan Shebs <shebs@andros.cygnus.com> 8134 8135 * pexecute.c (pexecute) [MPW]: Remove old bogus code that 8136 messed with arguments that included a '/', add escape chars 8137 to double quotes, remove const decl from arg that Mac 8138 compilers don't seem to like. 8139 8140Sat Aug 17 04:44:27 1996 Geoffrey Noer <noer@cygnus.com> 8141 8142 * pexecute.c: Update test for win32 (&& ! cygwin32). 8143 * choose-temp.c: fix WIN32 preprocessor defines 8144 8145Thu Aug 15 12:26:48 1996 Stan Shebs <shebs@andros.cygnus.com> 8146 8147 * mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG({Default})@ 8148 to editing of default makefile rule. 8149 8150Sun Aug 11 21:03:27 1996 Stu Grossman (grossman@critters.cygnus.com) 8151 8152 * alloca-norm.h: Include <malloc.h> if _WIN32. 8153 * argv.c: Include non-prototyped decls for malloc and string 8154 functions if ! _WIN32 or if __GNUC__. 8155 8156Thu Aug 8 12:42:40 1996 Klaus Kaempf <kkaempf@progis.de> 8157 8158 * config.h-vms: New file. 8159 * makefile.vms: Use it. 8160 8161Wed Aug 7 17:16:12 1996 Stu Grossman (grossman@critters.cygnus.com) 8162 8163 * getopt.c (_getopt_internal): If argc is 0, just return (before 8164 we reference *argv and segfault). 8165 8166Mon Aug 5 01:29:08 1996 Jason Merrill <jason@yorick.cygnus.com> 8167 8168 * Makefile.in (distclean): Add multilib.out. 8169 8170Thu Jul 18 17:40:55 1996 Ian Lance Taylor <ian@cygnus.com> 8171 8172 * alloca-norm.h: Change #ifdef sparc to #if defined (sparc) && 8173 defined (sun). From Andrew Gierth <ANDREWG@microlise.co.uk>. 8174 8175Mon Jul 1 13:40:44 1996 Ken Raeburn <raeburn@cygnus.com> 8176 8177 Tue May 28 15:29:03 1996 Pat Rankin <rankin@eql.caltech.edu> 8178 8179 * vmsbuild.com (REQUIRD_OFILES): Add choose-temp.o and xstrdup.o. 8180 8181 Thu Jan 25 18:20:04 1996 Pat Rankin <rankin@eql.caltech.edu> 8182 8183 * vmsbuild.com: Changes to handle DEFFUNC(on_exit). 8184 (do_ofiles): Allow nonexistent source file in pass 3. 8185 (chk_deffunc): New routine. 8186 8187Tue Jun 25 19:24:43 1996 Doug Evans <dje@canuck.cygnus.com> 8188 8189 * pexecute.c (PEXECUTE_VERBOSE): Define. 8190 (MPW pexecute): Check flags & PEXECUTE_VERBOSE instead of verbose_flag. 8191 8192Tue Jun 25 23:11:48 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) 8193 8194 * Makefile.in (docdir): Removed. 8195 8196Tue Jun 25 23:01:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) 8197 8198 * Makefile.in (oldincludedir): Removed. 8199 8200Tue Jun 25 22:50:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) 8201 8202 * Makefile.in (datadir): Set to $(prefix)/share. 8203 8204Thu Jun 20 21:17:52 1996 Ian Lance Taylor <ian@cygnus.com> 8205 8206 * cplus-dem.c (demangle_arm_pt): Reindent. Avoid endless loop by 8207 checking for errors from do_type. 8208 8209Tue Jun 18 14:36:19 1996 Klaus Kaempf <kkaempf@progis.de> 8210 8211 * makefile.vms: New file. 8212 * xmalloc.c: If VMS, include <stdlib.h> and <unixlib.h> rather 8213 than declaring malloc, realloc, and sbrk. 8214 8215Mon Jun 10 13:17:17 1996 Doug Evans <dje@canuck.cygnus.com> 8216 8217 * pexecute.c: New file. 8218 8219Wed Jun 5 16:57:45 1996 Richard Henderson <rth@tamu.edu> 8220 8221 * xmalloc.c: Declare sbrk. 8222 8223Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8224 8225 * alloca-norm.h: Add SPARCworks cc compatible __builtin_alloca 8226 declaration. 8227 8228Mon Apr 22 18:41:49 1996 Ian Lance Taylor <ian@cygnus.com> 8229 8230 * xstrerror.c: Include <stdio.h>. 8231 8232Sun Apr 21 11:55:12 1996 Doug Evans <dje@canuck.cygnus.com> 8233 8234 * Makefile.in (CFILES): Add atexit.c. 8235 8236Sun Apr 21 09:50:09 1996 Stephen L Moshier (moshier@world.std.com) 8237 8238 * choose-temp.c: Include sys/types.h before sys/file.h for sco3.2v5. 8239 8240Wed Apr 17 11:17:55 1996 Doug Evans <dje@canuck.cygnus.com> 8241 8242 * choose-temp.c: Don't #include sys/file.h ifdef NO_SYS_FILE_H. 8243 #include <stdio.h> 8244 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_FILE_H. 8245 8246Tue Apr 16 11:27:16 1996 Jeffrey A Law (law@cygnus.com) 8247 8248 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o. 8249 Reverts Feb 8, 1995 change. 8250 8251Mon Apr 15 12:53:26 1996 Doug Evans <dje@canuck.cygnus.com> 8252 8253 * choose-temp.c: New file. 8254 * Makefile.in (CFILES): Add choose-temp.c. 8255 (REQUIRED_OFILES): Add choose-temp.o. 8256 8257Sat Apr 13 14:19:30 1996 Stu Grossman (grossman@critters.cygnus.com) 8258 8259 * floatformat.c (floatformat_to_double): Don't bias exponent when 8260 handling zero's, denorms or NaNs. 8261 8262Thu Apr 11 13:36:56 1996 Stu Grossman (grossman@critters.cygnus.com) 8263 8264 * floatformat.c (floatformat_to_double): Fix bugs with handling 8265 numbers with fractions < 32 bits. 8266 8267Mon Apr 8 14:48:34 1996 Ian Lance Taylor <ian@cygnus.com> 8268 8269 * config.table: Permit --enable-shared to specify a list of 8270 directories. 8271 8272Tue Mar 19 22:02:07 1996 Jason Merrill <jason@yorick.cygnus.com> 8273 8274 * cplus-dem.c (demangle_template): Fix for non-mangled pointer 8275 arguments. 8276 8277Fri Mar 8 17:24:18 1996 Ian Lance Taylor <ian@cygnus.com> 8278 8279 * configure.in: If srcdir is `.' and with_target_subdir is not 8280 `.', then set MULTISRCTOP before calling config-ml.in. 8281 8282Thu Mar 7 13:37:10 1996 Stan Shebs <shebs@andros.cygnus.com> 8283 8284 * mpw.c (mpw_open): Add debugging output option. 8285 8286Wed Mar 6 17:36:03 1996 Jason Merrill <jason@yorick.cygnus.com> 8287 8288 * cplus-dem.c (demangle_template): Fix for address-of-extern arguments. 8289 8290Tue Feb 27 12:00:50 1996 Raymond Jou <rjou@mexican.cygnus.com> 8291 8292 * mpw.c (mpwify_filename): Change 6 to 5 in 8293 strncmp (unixname, "/tmp/", 5). 8294 8295Tue Feb 20 10:55:53 1996 Ian Lance Taylor <ian@cygnus.com> 8296 8297 * cplus-dem.c (demangle_template): Initialize is_bool. Correctly 8298 handle 0 as a pointer value parameter. 8299 8300Mon Feb 5 16:41:44 1996 Ian Lance Taylor <ian@cygnus.com> 8301 8302 * Makefile.in (all): Depend upon required-list. 8303 (required-list): New target. 8304 (clean): Remove required-list. 8305 8306Wed Jan 31 10:19:41 1996 Steve Chamberlain <sac@slash.cygnus.com> 8307 8308 * win32.c: Deleted. 8309 * config.table (i386-*-win32): Deleted. 8310 * config/mh-i386win32: Deleted. 8311 8312Thu Jan 18 11:34:17 1996 Ian Lance Taylor <ian@cygnus.com> 8313 8314 * cplus-dem.c (cplus_demangle_opname): Change opname parameter to 8315 const char *. 8316 (cplus_mangle_opname): Change return type and opname parameter to 8317 const char *. Don't cast return value. 8318 8319Tue Jan 16 12:13:11 1996 Stan Shebs <shebs@andros.cygnus.com> 8320 8321 * mpw.c: Include Timer.h, in order to get m68k Microseconds trap 8322 definition. 8323 8324Wed Jan 3 13:15:04 1996 Fred Fish <fnf@cygnus.com> 8325 8326 * obstack.c: Update copyright to 1996. 8327 (_obstack_memory_used): Define new function. Called via 8328 obstack_memory_used macro. 8329 8330Thu Dec 28 11:39:40 1995 Ian Lance Taylor <ian@cygnus.com> 8331 8332 * xstrdup.c: New file. 8333 * Makefile.in (CFILES): Add xstrdup.c. 8334 (REQUIRED_OFILES): Add xstrdup.o. 8335 (xstrdup.o): New target. 8336 8337Mon Dec 11 18:18:52 1995 Mike Stump <mrs@cygnus.com> 8338 8339 * atexit.c: New stub to provide atexit on systems that have 8340 on_exit, like SunOS 4.1.x systems. 8341 * functions.def (on_exit, atexit): Ditto. 8342 8343Mon Dec 11 15:42:14 1995 Stan Shebs <shebs@andros.cygnus.com> 8344 8345 * mpw.c (mpw_abort): Remove decl. 8346 (mpw_access): Move debugging printf. 8347 8348Sat Dec 2 01:25:23 1995 Ian Lance Taylor <ian@cygnus.com> 8349 8350 * config.table: Consistently use ${host} rather than ${xhost} or 8351 ${target}. 8352 * configure.in: Don't bother to set ${xhost} before calling 8353 config.table. 8354 8355Tue Nov 28 14:16:57 1995 Brendan Kehoe <brendan@lisa.cygnus.com> 8356 8357 * Makefile.in (.c.o): Use test instead of the left bracket, to 8358 avoid problems with some versions of make. 8359 8360Tue Nov 28 11:45:17 1995 Stan Shebs <shebs@andros.cygnus.com> 8361 8362 * mpw-make.sed: Fix INCDIR edit to work with Nov 14 change. 8363 8364Tue Nov 21 11:26:34 1995 Fred Fish <fnf@rtl.cygnus.com> 8365 8366 * config/mh-hpux: Remove. It was only used to define EXTRA_OFILES, 8367 which was set to just alloca.o, which is now automatically marked 8368 as needed by the autoconfiguration process. 8369 8370Tue Nov 21 14:15:06 1995 Ian Lance Taylor <ian@cygnus.com> 8371 8372 * config.table: Check ${with_cross_host} rather than comparing 8373 ${host} and ${target}. 8374 8375Thu Nov 16 14:34:42 1995 Ian Lance Taylor <ian@cygnus.com> 8376 8377 * configure.in: If with_target_subdir is empty, set xhost to 8378 ${host} rather than ${target} before calling config.table. 8379 8380Tue Nov 14 01:38:30 1995 Doug Evans <dje@canuck.cygnus.com> 8381 8382 * Makefile.in (MULTITOP): Deleted. 8383 (MULTISRCTOP, MULTIBUILDTOP): New. 8384 (FLAGS_TO_PASS): Delete INCDIR. 8385 (INCDIR): Add $(MULTISRCTOP). 8386 (install_to_libdir): Add $(MULTISUBDIR). Call $(MULTIDO). 8387 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in 8388 instead of cfg-ml-pos.in. 8389 (cross-compile check): Change to test for with_target_subdir. 8390 (EXTRA_LINKS): Delete. 8391 8392Sun Nov 12 12:13:04 1995 Stan Shebs <shebs@andros.cygnus.com> 8393 8394 * mpw-make.sed: Add getpagesize.c.o to needed-list. 8395 * mpw.c [USE_MW_HEADERS]: Conditionalize compiling of 8396 functions that are supplied by Metrowerks libraries. 8397 (fstat): Clean up descriptor->pointer conversion code. 8398 (InstallConsole, etc): Empty definitions, for when linking 8399 with SIOUX. 8400 8401Sun Nov 5 19:25:27 1995 Per Bothner <bothner@kalessin.cygnus.com> 8402 8403 * Makefile.in (FLAGS_TO_PASS): Also pass PICFLAGS. 8404 (.c.o): Stylistic change. 8405 8406Thu Nov 2 12:06:29 1995 Ian Lance Taylor <ian@cygnus.com> 8407 8408 * strtol.c, strtoul.c: Don't include <stdlib.h>. From 8409 phdm@info.ucl.ac.be (Philippe De Muyter). 8410 8411Wed Nov 1 11:59:36 1995 Ian Lance Taylor <ian@cygnus.com> 8412 8413 * configure.in: Correct sed call. 8414 8415Mon Oct 30 13:03:45 1995 Per Bothner <bothner@kalessin.cygnus.com> 8416 8417 * configure.in: Clean up / simplify for native. 8418 8419 * configure.in: Merge in stuff from ../xiberty/configure.in. 8420 * Makefile.in (CC): Add definition (so it can be overrridden 8421 by ../configure). 8422 8423Tue Oct 24 17:57:27 1995 Stan Shebs <shebs@andros.cygnus.com> 8424 8425 * mpw-make.sed: Leave strerror.c.o in standard list of functions. 8426 * mpw.c (R_OK, ENOENT, EACCESS, ENOSYS): Remove. 8427 (link): Remove useless definition with error return. 8428 (last_microseconds, warn_if_spin_delay, record_for_spin_delay): 8429 Use UnsignedWide type for microsecond counts. 8430 8431Thu Oct 19 10:52:07 1995 Michael Meissner <meissner@wogglebug.tiac.net> 8432 8433 * memcmp.c (memcmp): Argument types are const void *, not void 8434 *const. 8435 8436 * strncasecmp.c (strncasecmp): Include ansidecl.h/stdarg.h, not 8437 sys/types.h. 8438 * strcasecmp.c (strcasecmp): Ditto. 8439 8440Tue Oct 10 11:03:24 1995 Fred Fish <fnf@cygnus.com> 8441 8442 * Makefile.in (BISON): Remove macro. 8443 8444Tue Sep 26 15:06:46 1995 Stan Shebs <shebs@andros.cygnus.com> 8445 8446 * Makefile.in (HFILES): Add default empty definition. 8447 * mpw-config.in (config.h): Only update if changed. 8448 * mpw-make.in: Remove. 8449 * mpw-make.sed: New file, edits Makefile.in into MPW makefile. 8450 * mpw.c: Remove semi-clone of strerror code. 8451 (sys_nerr, sys_errlist): Define here. 8452 (Microseconds): Only define as A-line trap if m68k Mac. 8453 8454Wed Sep 20 12:53:32 1995 Ian Lance Taylor <ian@cygnus.com> 8455 8456 * Makefile.in (maintainer-clean): New synonym for distclean. 8457 8458Mon Aug 28 19:47:52 1995 Per Bothner <bothner@kalessin.cygnus.com> 8459 8460 * config.table: For host, generalize rs6000-ibm-aix* 8461 to *-ibm-aix* so we also include powerpc. 8462 8463Tue Aug 22 03:18:05 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 8464 8465 Fri Jun 16 18:35:40 1995 Pat Rankin (rankin@eql.caltech.edu) 8466 8467 * xstrerror.c: New file. 8468 * Makefile.in, vmsbuild.com: Compile it. 8469 8470Mon Jul 31 12:16:32 1995 steve chamberlain <sac@slash.cygnus.com> 8471 8472 * config.table (i386-*-win32): New. 8473 8474Fri Jul 21 11:35:52 1995 Doug Evans <dje@canuck.cygnus.com> 8475 8476 * Makefile.in (MULTITOP): New variable. 8477 (MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): Likewise. 8478 (all): Add multilib support. 8479 (install_to_tooldir, *clean): Likewise. 8480 8481Mon Jul 10 11:47:27 1995 Ken Raeburn <raeburn@cygnus.com> 8482 8483 * makefile.dos (OBJS): Add hex.o. From DJ Delorie. 8484 8485Fri Jun 30 17:28:59 1995 Pat Rankin (rankin@eql.caltech.edu) 8486 8487 * vmsbuild.com: create "new-lib.olb", build libiberty under that 8488 name, and then make it become "liberty.olb" when done, so that an 8489 incomplete build attempt never leaves behind something which looks 8490 like a complete library. 8491 8492Thu Jun 29 00:22:02 1995 Steve Chamberlain <sac@slash.cygnus.com> 8493 8494 * config/mh-i386pe: New file for PE hosts. 8495 * config.table: Understand PE hosts. 8496 8497Wed Jun 28 19:13:23 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8498 8499 * cplus-dem.c: Update from gcc. 8500 8501 * argv.c, dummy.c: If __STDC__, #include "alloca-conf.h" after 8502 <stddef.h>. 8503 * alloca-norm.h: If __STDC__, declare alloca with its parameter. 8504 8505Thu Jun 22 18:57:47 1995 Stan Shebs <shebs@andros.cygnus.com> 8506 8507 * mpw-make.in (ALL_CFLAGS): Define NEED_basename. 8508 * mpw.c: Only test DebugPI once whenever printing debug info. 8509 (mpwify_filename): If filename is /tmp/foo, change it into :_foo, 8510 also fix to not write on input filename buffer. 8511 (mpw_access): Use stat() instead of open(), works for directories 8512 as well as files. 8513 8514Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8515 8516 * Makefile.in: Massage broken shells that require 'else true'. 8517 8518Sat Jun 17 23:21:58 1995 Fred Fish <fnf@cygnus.com> 8519 8520 * alloca-norm.h: Declare alloca as type "PTR" to match functions.def. 8521 Declare __builtin_alloca in the sparc case, as argv.c did. 8522 * argv.c: Replace inline version of alloca-norm.h at start of file with 8523 a #include of alloca-conf.h. Precede it with an include of ansidecl.h 8524 because alloca-norm.h needs to declare alloca as "PTR". 8525 8526Mon Jun 12 14:24:26 1995 Steve Chamberlain <sac@slash.cygnus.com> 8527 8528 * win32.c: New file. 8529 8530Fri Jun 9 15:16:14 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8531 8532 * dummy.c: #include "alloca-conf.h". 8533 8534Wed Jun 7 11:46:23 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8535 8536 * Makefile.in (mostlyclean): Remove stamp-picdir. 8537 (clean): Don't. 8538 8539Mon Jun 5 18:46:06 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8540 8541 * config.table (frags): Use toplevel pic frags. 8542 8543 * Makefile.in (PICFLAG): New macro. 8544 (all): Depend on stamp-picdir. 8545 (needed-list): Ditto. 8546 (.c.o): Also build pic object. 8547 (stamp-picdir): New rule. 8548 (mostlyclean): Remove pic. 8549 (clean): Remove stamp-picdir. 8550 8551Fri Mar 24 16:55:48 1995 Pat Rankin (rankin@eql.caltech.edu) 8552 8553 * vmsbuild.com (config.h): Add `#define NEED_basename'. 8554 8555Tue May 23 10:12:46 1995 Per Bothner <bothner@kalessin.cygnus.com> 8556 8557 * clock.c, getopt.c, strtod.c, vsprintf.c: Change from using LGPL 8558 to libio-style copyright. 8559 * getpagesize.c: Remove FSF copyright. 8560 8561Sat May 20 12:30:23 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 8562 8563 Added improved VMS support from Pat Rankin: 8564 8565 Fri Mar 17 18:40:36 1995 Pat Rankin (rankin@eql.caltech.edu) 8566 8567 * vmsbuild.com: new file. 8568 8569 * getpagesize.c (getpagesize): implement for VMS; 8570 * strerror.c (strerror, strerrno, strtoerrno): add rudimentary 8571 support for EVMSERR. 8572 8573Thu May 18 17:01:42 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 8574 8575 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk) 8576 8577 * floatformat.c (floatformat_arm_ext): Define. 8578 8579Tue May 16 13:30:59 1995 Per Bothner <bothner@kalessin.cygnus.com> 8580 8581 * basename.c, bcmp.c, getcwd.c, insque.c, rename.c, sigsetmask.c, 8582 strerror.c, strsignal.c: Remove FSF copyright. 8583 * sigsetmask.c: #include <sys/types.h> - seems to be needed by ISC. 8584 8585Mon May 15 19:53:17 1995 Per Bothner <bothner@kalessin.cygnus.com> 8586 8587 * bcopy.c, bzero.c, memcmp.c, memcpy.c, memset.c, strchr.c, 8588 strrchr.c, strstr.c, vfork.c: Remove FSF Copyright, because this 8589 might contaminate libstdc++ with the LGPL. (OK'd by RMS 11 Oct 94.) 8590 * strchr.c, strrchr.c: Add cast to suppress const warning. 8591 8592Thu May 4 14:36:42 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8593 8594 * cplus-dem.c: Use const instead of CONST. Don't include 8595 ansidecl.h directly. 8596 8597Wed Apr 19 01:30:27 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8598 8599 * cplus-dem.c: Don't include libiberty.h. Do declare xmalloc and 8600 xrealloc. 8601 (-DMAIN): Don't rely on an externally-defined version number; 8602 instead, require the version number to be defined as a 8603 preprocessor macro. Handle the RS/6000 leading dot. Define 8604 xmalloc, xrealloc and fatal. Don't strip a leading underscore 8605 if we couldn't demangle the word. 8606 8607Tue Apr 4 13:03:51 1995 Stan Shebs <shebs@andros.cygnus.com> 8608 8609 (Old mpw.c change descriptions retained for informational value.) 8610 * mpw.c (warning_threshold): Default to .4 sec. 8611 (overflow_count, current_progress): New globals. 8612 (warn_if_spin_delay): Include current progress type, 8613 such as program name, in message. 8614 (mpw_start_progress): Set current_progress variable from arg. 8615 (mpw_end_progress): Report spin delays by power-of-two-size 8616 buckets instead of constant-size buckets. 8617 8618 * mpw.c: Clean up formatting, types, returns, etc. 8619 (ENOSYS): Define. 8620 (mpw_fread, mpw_fwrite): Define. 8621 (sleep): Define correctly. 8622 8623 * mpw.c: New code to implement cursor spinning support. 8624 (umask): New function. 8625 (mpw_fopen, mpw_fseek, stat, fstat): Call PROGRESS. 8626 8627 * mpw.c (mpw_basename, mpw_mixed_basename): New functions, find 8628 basenames for MPW and MPW/Unix filenames. 8629 (mpw_special_init): New function, calls Macsbug if desired. 8630 8631 * mpw.c: Add GPL notice. 8632 (mpwify_filename): Add more transformations. 8633 (mpw_fopen): Call mpwify_filename on file names. 8634 (rename): Remove. 8635 (chdir, getcwd): Add simple definitions. 8636 8637 * mpw.c: Random cleanups, remove unused code bits. 8638 Added copy of strerror.c for gcc's use. 8639 (stat, fstat, _stat): New versions based on Guido van Rossum code. 8640 8641 * mpw.c (mpw_fseek): Make it work correctly when doing SEEK_CUR. 8642 8643 * mpw.c (stat): Remove hack definition, get from sys/stat.h. 8644 (fork, vfork, etc): Print error messages if called. 8645 (getrusage, sbrk, environ, isatty, link, utime, mkdir, rmdir, 8646 rename, chown): Define. 8647 8648 * mpw-config.in: New file, MPW version of configure.in. 8649 * mpw-make.in: New file, MPW version of Makefile.in. 8650 * mpw.c: New file, MPW compatibility routines. 8651 8652Fri Mar 24 14:10:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com) 8653 8654 * basename.c: Include config.h before checking for NEED_basename. 8655 8656Thu Mar 23 19:09:54 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8657 8658 * functions.def: Add DEFFUNC for basename. 8659 8660 * basename.c: Only define basename if NEED_basename. 8661 8662Thu Mar 16 13:36:05 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8663 8664 * config.table: Fix --enable-shared logic for native builds. 8665 8666Mon Mar 13 11:05:11 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8667 8668 * cplus-dem.c (demangle_template): Demangle bool literals properly. 8669 8670Mon Mar 6 23:57:28 1995 Stu Grossman (grossman@cygnus.com) 8671 8672 * strtol.c strtoul.c: Replace these with less buggy versions from 8673 NetBSD. (strtoul in particular couldn't handle base 16.) 8674 8675Wed Mar 1 15:59:01 1995 Ian Lance Taylor <ian@cygnus.com> 8676 8677 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_PARAM_H. 8678 8679 * clock.c: If NO_SYS_PARAM_H is defined, don't include 8680 <sys/param.h>. 8681 * getcwd.c, getpagesize.c, getruntime.c: Likewise. 8682 8683Fri Feb 17 15:40:55 1995 Ian Lance Taylor <ian@cygnus.com> 8684 8685 * getruntime.c (get_run_time): Don't assume that CLOCKS_PER_SEC is 8686 a number; ANSI appears to permit any expression, including a 8687 function call. 8688 8689 * config.table (*-*-vxworks5*): Use mt-vxworks5 when configuring 8690 xiberty. 8691 * config/mt-vxworks5: New file. 8692 8693Thu Feb 9 14:19:45 1995 Ian Lance Taylor <ian@cygnus.com> 8694 8695 * basename.c (basename): Change argument to be const. 8696 8697Wed Feb 8 18:06:52 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8698 8699 * Makefile.in (lneeded-list): Don't worry about xmalloc. 8700 8701Sun Jan 15 00:40:36 1995 Jeff Law (law@snake.cs.utah.edu) 8702 8703 * Makefile.in (distclean): Delete xhost-mkfrag. 8704 8705Thu Jan 12 16:54:18 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8706 8707 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o. 8708 8709Wed Jan 11 22:39:56 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 8710 8711 * hex.c: New file. 8712 * Makefile.in (REQUIRED_OFILES, CFILES): List it. 8713 (hex.o): Add dependencies. 8714 8715 * cplus-dem.c (demangle_prefix): For GNU style constructor and 8716 destructor names, try demangling the remainder of the string. 8717 8718Wed Dec 28 00:49:15 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com> 8719 8720 * vasprintf.c (int_vasprintf): New static function. 8721 (vasprintf): Use int_vasprintf. Removes assumption that va_list 8722 is assignment compatible. 8723 8724Sat Nov 5 19:29:12 1994 Jason Merrill (jason@phydeaux.cygnus.com) 8725 8726 * Makefile.in (LIBCFLAGS): New variable. 8727 (FLAGS_TO_PASS): Pass it. 8728 (.c.o): Use it. 8729 8730Thu Nov 3 19:09:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 8731 8732 * getopt.c, getopt1.c: Do compile these functions under Linux, 8733 since many native versions are based on glibc but are buggy. 8734 8735Mon Oct 24 15:16:46 1994 Per Bothner <bothner@kalessin.cygnus.com> 8736 8737 * vasprintf.c: Make 'format' arg be const, to avoid a mismatch 8738 with prototype in GNU libc. Support stdarg.h as well as varargs.h. 8739 8740Tue Oct 11 17:48:27 1994 Jason Merrill (jason@phydeaux.cygnus.com) 8741 8742 * Makefile.in (REQUIRED_OFILES): Add vasprintf.o. 8743 * functions.def: Remove vasprintf. 8744 8745Wed Sep 14 17:04:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 8746 8747 * xmalloc.c (first_break): New static variable. 8748 (xmalloc_set_program_name): Record sbrk (0) in first_break. 8749 (xmalloc): If memory allocation fails, try to report how much 8750 memory was allocated by the program up to this point. 8751 (xrealloc): Likewise. 8752 8753Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org) 8754 8755 * Makefile.in (ERRORS_CC): New variable, defaulted to $(CC). Use it 8756 when linking dummy. 8757 * config.table: Add host RISCiX Makefile frag. 8758 * config/mh-riscix: New file. 8759 8760Thu Aug 25 17:29:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 8761 8762 * Makefile.in (FLAGS_TO_PASS): Define. 8763 ($(RULE1)): Use $(FLAGS_TO_PASS). 8764 8765Wed Aug 24 17:08:47 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 8766 8767 * vasprintf.c: Include <string.h>. 8768 (vasprintf): Add casts to void for va_arg to avoid gcc warnings. 8769 * xatexit.c: Declare malloc. 8770 8771Fri Aug 19 15:29:12 1994 Kung Hsu (kung@mexican.cygnus.com) 8772 8773 * cplus-dem.c (demangle_args): Fix a bug in previous patch (the 8774 one below). 8775 8776Thu Aug 18 14:37:14 1994 Kung Hsu (kung@mexican.cygnus.com) 8777 8778 * cplus-dem.c (demangle args): Handle ARM repeat encoding where 8779 the type index is greater than 9. 8780 8781Wed Aug 17 16:13:49 1994 Kung Hsu (kung@mexican.cygnus.com) 8782 8783 * cplus-dem.c (demangle_qualified): accept optional '_' between 8784 qualified name. This is baecause the template name may end with 8785 numeric and can mixed up with the length of next qualified name. 8786 8787Wed Aug 3 05:52:14 1994 D. V. Henkel-Wallace (gumby@cygnus.com) 8788 8789 * config/mt-sunos4: Use our standard location for cross-includes 8790 and cross-libs when the target is also a "host" environment (ie no 8791 newlib; includes and such don't belong to us). This is specific 8792 to the Cygnus Support environment. 8793 8794Tue Aug 2 15:25:12 1994 Kung Hsu (kung@mexican.cygnus.com) 8795 8796 * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not 8797 xxx<ch=81>. 8798 8799Mon Aug 1 17:02:48 1994 Kung Hsu (kung@mexican.cygnus.com) 8800 8801 * cplus-dem.c (main): flush stdout to make pipe work. 8802 8803Sat Jul 16 12:56:32 1994 Stan Shebs (shebs@andros.cygnus.com) 8804 8805 * config.table (*-*-cxux7*): Recognize. 8806 * floatformat.c (floatformat_m88110_ext) [HARRIS_FLOAT_FORMAT]: 8807 Harris-specific float format. 8808 * config/mh-cxux7: New file. 8809 8810Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8811 8812 * cplus-dem.c (demangle_template): Make sure that the result of 8813 consume_count doesn't index beyond the end of the string. 8814 8815Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8816 8817 * cplus-dem.c (gnu_special): Handle vtable mangling of gcc-2.4.5 and 8818 earlier. Improve test for new vtable mangling. Change output back 8819 to `virtual table'. 8820 8821Mon Jun 20 11:37:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 8822 8823 * obstack.c: Always compile this code, even if using the GNU 8824 library. Avoids problems with relatively recent binary 8825 incompatibility. 8826 8827Thu Jun 16 17:54:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8828 8829 * cplus-dem.c: Include libiberty.h. 8830 (xmalloc, xrealloc, free): Don't declare. 8831 (strstr): Don't declare parameters. 8832 (xmalloc, xrealloc): Don't define. 8833 (long_options): Add no-strip-underscores. 8834 (main): Call xmalloc_set_program_name. Pass n in short options to 8835 getopt_long. Handle option 'n' to not strip underscores. 8836 (usage): Mention -n and --no-strip-underscores. 8837 8838Sun Jun 12 01:37:09 1994 Jason Merrill (jason@deneb.cygnus.com) 8839 8840 * cplus-dem.c (demangle_template): Separate consecutive >'s with a 8841 space. 8842 (gnu_special): Demangle template and qualified names in a vtable name. 8843 8844Fri May 27 12:27:52 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 8845 8846 From gas-2.3 and binutils-2.4 net releases: 8847 8848 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com) 8849 8850 * makefile.dos: [new] Makefile for dos/go32 8851 * configure.bat: update for latest files 8852 * msdos.c: remove some functions now in libc.a 8853 8854Fri May 20 18:53:32 1994 Per Bothner (bothner@kalessin.cygnus.com) 8855 8856 * cplus-dem.c (gnu_special): Recognize thunks, as well as 8857 the new naming style for vtables (when -fvtable-thunks). 8858 8859Wed May 18 13:34:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8860 8861 * Makefile.in (XTRAFLAGS): Don't define. 8862 (.c.o, dummy.o): Don't use XTRAFLAGS. 8863 ($(RULE1)): Don't pass XTRAFLAGS down in recursive call. 8864 8865Fri May 13 16:02:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com) 8866 8867 * vasprintf.c: New file. 8868 * Makefile.in, functions.def: Add it. 8869 8870Fri May 13 16:20:28 1994 Jason Merrill (jason@deneb.cygnus.com) 8871 8872 * cplus-dem.c (demangle_fund_type): Grok bool. 8873 8874Fri May 6 14:44:21 1994 Steve Chamberlain (sac@cygnus.com) 8875 8876 * config.table: Add go32 8877 * config/mh-go32: New template. 8878 8879Fri May 6 11:01:59 1994 D. V. Henkel-Wallace (gumby@rtl.cygnus.com) 8880 8881 * config.table, config/mt-sunos4: config for when sun4 is cross target. 8882 8883Mon Apr 11 00:54:33 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu) 8884 8885 * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]: 8886 Declare strlen to return int. Don't include stddef.h. 8887 8888Fri Apr 1 00:38:17 1994 Jim Wilson (wilson@mole.gnu.ai.mit.edu) 8889 8890 * getopt.c: Delete use of IN_GCC to control whether 8891 stddef.h or gstddef.h is included. 8892 8893Thu Apr 14 14:00:56 1994 Kung Hsu (kung@mexican.cygnus.com) 8894 8895 * cplus-dem.c (demangle_signature): Fix a bug in template function 8896 type numbering. 8897 8898Wed Apr 13 17:23:03 1994 Kung Hsu (kung@mexican.cygnus.com) 8899 8900 * cplus-dem.c (demangle_signature): Fix template function with arm 8901 style argument type number, Tn. 8902 8903Wed Apr 13 17:11:15 1994 Jason Merrill (jason@deneb.cygnus.com) 8904 8905 * cplus-dem.c (optable): Add new[] and delete[]. 8906 8907Fri Apr 8 11:21:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com) 8908 8909 * argv.c (buildargv): Don't produce empty argument just because 8910 there is trailing whitespace. 8911 8912Wed Apr 6 11:42:14 1994 Kung Hsu (kung@mexican.cygnus.com) 8913 8914 * cplus-dem.c (demangle_template): fix 'Q' qualified name bug. 8915 Handle 'p' same as 'P'. 8916 * cplus-dem.c (do_type): Handle 'p' same as 'P'. 8917 8918Sat Mar 26 12:00:13 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8919 8920 * floatformat.c (get_field, put_field): Fix off by one error in 8921 little endian case. 8922 8923Thu Mar 24 10:40:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com) 8924 8925 * floatformat.c (floatformat_from_double): Pass unsigned char *, 8926 not char *, to put_field. 8927 8928Fri Mar 18 12:34:33 1994 Per Bothner (bothner@kalessin.cygnus.com) 8929 8930 * memmove.c: Re-wrote; placed in public domain. 8931 8932Wed Mar 16 10:33:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com) 8933 8934 * cplus-dem.c (demangle_prefix): If ARM demangling, don't treat 8935 __Q* as a constructor. 8936 8937Mon Mar 14 12:26:02 1994 Ian Lance Taylor (ian@cygnus.com) 8938 8939 * ieee-float.c: Removed; no longer used. 8940 * Makefile.in: Changed accordingly. 8941 8942Mon Mar 7 12:28:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8943 8944 * floatformat.c (get_field): Removed unused local variable i. 8945 (put_field): Removed unused local variable i. 8946 8947Sun Feb 27 21:50:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com) 8948 8949 * floatformat.c: New file, intended to replace ieee-float.c. 8950 * Makefile.in: Change accordingly. 8951 8952Thu Feb 24 11:51:12 1994 David J. Mackenzie (djm@rtl.cygnus.com) 8953 8954 * getopt.c: Remove #ifdef GETOPT_COMPAT and #if 0 code. 8955 (_getopt_initialize): New function, broken out of _getopt_internal. 8956 (_getopt_internal): 8957 If long_only and the ARGV-element has the form "-f", where f is 8958 a valid short option, don't consider it an abbreviated form of 8959 a long option that starts with f. Otherwise there would be no 8960 way to give the -f short option. 8961 8962Thu Feb 10 14:44:16 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu) 8963 8964 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]: 8965 Test just __STDC__, not emacs. 8966 8967Wed Feb 9 00:14:00 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu) 8968 8969 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC] 8970 [emacs] [not __STDC__]: Don't include stddef.h. Don't declare strlen. 8971 8972Fri Dec 24 19:43:00 1993 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu) 8973 8974 * getopt.c (_NO_PROTO): Define before config.h is included. 8975 8976Mon Sep 20 15:59:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu) 8977 8978 * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include 8979 <config.h> only under these, else "config.h". 8980 8981Thu Aug 12 18:16:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu) 8982 8983 * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include 8984 <config.h> instead of "config.h". 8985 8986Sun Feb 20 17:17:01 1994 Ian Lance Taylor (ian@lisa.cygnus.com) 8987 8988 * concat.c: Check ANSI_PROTOTYPES rather than __STDC__ to decide 8989 whether to use prototypes or not. 8990 * strerror.c (const): Never undefine; let ansidecl.h handle it. 8991 * strsignal.c (const): Likewise. 8992 8993Thu Feb 17 13:27:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8994 8995 * xatexit.c (_xexit_cleanup): Declare as extern; don't initialize. 8996 Merging common and initialized variables need not be supported by 8997 ANSI C compilers. 8998 (xatexit): Initialize _xexit_cleanup if not already set. 8999 * xexit.c: Comment fix. 9000 9001Wed Feb 16 01:15:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 9002 9003 * xmalloc.c: Don't declare xexit; it's declared in libiberty.h. 9004 (xrealloc): If oldmem is NULL, allocate with malloc, rather than 9005 assuming that realloc works correctly. 9006 9007Tue Feb 15 09:26:16 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 9008 9009 * concat.c, ieee-float.c: Replace inclusion of <string.h> 9010 with explicit function declarations, as recommended by Ian Taylor. 9011 9012Sat Feb 12 10:31:11 1994 David J. Mackenzie (djm@rtl.cygnus.com) 9013 9014 * xmalloc.c (xmalloc, xrealloc): Use PTR and size_t throughout. 9015 (malloc, realloc): Declare. 9016 9017Thu Feb 10 17:08:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 9018 9019 * argv.c, basename.c: Include ansidecl.h and libiberty.h. 9020 * concat.c, fdmatch.c, getruntime.c, spaces.c: Likewise. 9021 * strerror.c, strsignal.c, xatexit.c, xexit.c: Likewise. 9022 * xmalloc.c: Likewise. 9023 * concat.c: Don't declare xmalloc. If __STDC__, use <stdarg.h> 9024 macros, not <varargs.h> macros. 9025 * spaces.c (spaces): Make return type const. Don't crash if 9026 malloc returns NULL. 9027 * strerror.c (struct error_info): Make name and msg fields const. 9028 (error_names): Make const. 9029 (strerrno): Make const. 9030 (strtoerrno): Make argument const. 9031 * strsignal.c (struct signal_info): Make name and msg fields 9032 const. 9033 (signal_names, sys_siglist): Make const. 9034 (strsignal, strsigno): Make const. 9035 (strtosigno): Make argument const. 9036 * xatexit.c: Declare parameter types. 9037 * xmalloc.c (name): Make const. 9038 (xmalloc_set_program_name): Make argument const. 9039 * Makefile.in (INCDIR): Define. 9040 (.c.o): Use $(INCDIR). 9041 (dummy.o): Likewise. 9042 (argv.o, basename.o): New targets; depend on libiberty.h. 9043 (concat.o, fdmatch.o, getruntime.o, spaces.o): Likewise. 9044 (strerror.o, strsignal.o, xatexit.o, xexit.o): Likewise. 9045 (xmalloc.o): Likewise. 9046 (cplus-dem.o): New target; depend on demangle.h. 9047 (getopt.o, getopt1.o): New targets; depend on getopt.h. 9048 (ieee-float.o): New target; depend on ieee-float.h. 9049 (obstack.o): New target; depend on obstack.h. 9050 9051Tue Feb 8 05:29:08 1994 David J. Mackenzie (djm@thepub.cygnus.com) 9052 9053 Handle obstack_chunk_alloc returning NULL. This allows 9054 obstacks to be used by libraries, without forcing them 9055 to call exit or longjmp. 9056 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk): 9057 If CALL_CHUNKFUN returns NULL, set alloc_failed, else clear it. 9058 (_obstack_begin, _obstack_begin_1): Return 1 if successful, 0 if not. 9059 9060Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 9061 9062 * concat.c, ieee-float.c: Include <string.h>. 9063 9064Sun Feb 6 21:28:46 1994 David J. Mackenzie (djm@thepub.cygnus.com) 9065 9066 * xmalloc.c (xmalloc_set_program_name): New function. 9067 (xmalloc, xrealloc): Include the name in the error message, if set. 9068 9069 * Replace atexit.c with xatexit.c. 9070 * Makefile.in (CFILES), functions.def: Change references. 9071 9072Sat Feb 5 14:02:32 1994 Stan Shebs (shebs@andros.cygnus.com) 9073 9074 * getruntime.c (get_run_time): Use getrusage or times if 9075 HAVE_GETRUSAGE or HAVE_TIMES are defined. 9076 9077Fri Feb 4 15:49:38 1994 David J. Mackenzie (djm@thepub.cygnus.com) 9078 9079 * atexit.c: New file. 9080 * Makefile.in (CFILES), functions.def: Add it. 9081 * xexit.c: New file. 9082 * Makefile.in (CFILES, REQUIRED_OFILES): Add it. 9083 * xmalloc.c (xmalloc, xrealloc): Call xexit instead of exit. 9084 Change request for 0 bytes into request for 1 byte. 9085 9086Wed Feb 2 11:36:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 9087 9088 * xmalloc.c (xmalloc, xrealloc): Print size using %lu, and cast to 9089 unsigned long, to avoid warnings. 9090 9091Fri Jan 28 17:49:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 9092 9093 * dummy.c: Don't include time.h ever; always define clock_t as 9094 "unsigned long". Until gcc/fixincludes ensures that clock_t 9095 exists, __STDC__ isn't a sufficient test. And if clock() doesn't 9096 exist, clock_t probably doesn't either. 9097 9098Mon Jan 24 11:52:31 1994 Stan Shebs (shebs@andros.cygnus.com) 9099 9100 * clock.c, getruntime.c: New files. 9101 * Makefile.in: Add to file lists. 9102 * functions.def (clock): Add to list. 9103 * dummy.c (time.h): Add if __STDC__. 9104 (clock_t): #define as "unsigned long" if not __STDC__. 9105 9106Tue Jan 11 11:27:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 9107 9108 * strtod.c: Declare atof. From edler@jan.ultra.nyu.edu (Jan 9109 Edler). 9110 9111Tue Dec 28 14:17:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 9112 9113 * Makefile.in (errors): Use CFLAGS as well as LDFLAGS when 9114 linking. 9115 9116Fri Dec 17 12:26:07 1993 Kung Hsu (kung@cirdan.cygnus.com) 9117 9118 * cplus-dem.c (demangle_arm_pt): New function. Common code 9119 for ARM template demangling. 9120 * cplus-dem.c (demangle_class_name): Use demangle_arm_pt. 9121 * cplus-dem.c (demangle_prefix): Likewise. 9122 9123Tue Nov 30 15:47:48 1993 Jason Merrill (jason@deneb.cygnus.com) 9124 9125 * cplus-dem.c (cplus_demangle_opname): Add CONST to please gcc. 9126 9127Sat Nov 27 11:05:50 1993 Fred Fish (fnf@cygnus.com) 9128 9129 Merge changes from tom@basil.icce.rug.nl (Tom R.Hageman) 9130 * strerror.c, strsignal.c: As a small space optimization, don't 9131 include messages when they aren't actually used. 9132 9133 Merge changes from takefive.co.at!joe (Josef Leherbauer) 9134 * cplus-dem.c (demangle_prefix, demangle_function_name, 9135 cplus_demangle_opname): Fixes for systems where cplus_marker 9136 is something other than '$'. 9137 9138Fri Nov 26 13:51:11 1993 Per Bothner (bothner@kalessin.cygnus.com) 9139 9140 * waitpid.c: Simple-minded approcimation to waitpid 9141 using vanilla wait. 9142 * functions.def, Makefile.in: Update accordingly, 9143 9144Thu Nov 18 18:01:15 1993 Kung Hsu (kung@cirdan.cygnus.com) 9145 9146 * cplus-dem.c(demangle_template): fix bug template instantiation 9147 with value of user defined type. 9148 9149Wed Nov 17 18:30:21 1993 Kung Hsu (kung@cirdan.cygnus.com) 9150 9151 * cplus-dem.c(cplus_demangle_opname): add the subject new function 9152 to support unified search of operator in class. 9153 9154Wed Nov 10 09:47:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9155 9156 gcc -Wall lint: 9157 * strtoul.c (strtoul): use "(digit = *s) != '\0'" not just 9158 "digit = *s" as condition in while loop. 9159 9160Tue Nov 9 15:52:22 1993 Mark Eichin (eichin@cygnus.com) 9161 9162 * Makefile.in: pass SHELL to recursive make 9163 9164Thu Nov 4 12:09:26 1993 Per Bothner (bothner@kalessin.cygnus.com) 9165 9166 * vfprintf.c, vprintf.c, vsprintf.c: Make format arg 9167 be (const char*), for ANSI (and gcc w/fixproto) consistency. 9168 9169Thu Nov 4 08:29:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9170 9171 * config.table: Make *-*-hiux* use mh-hpux. 9172 9173Fri Oct 22 07:53:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9174 9175 * config.table: Add * to end of all OS names. 9176 9177Tue Oct 19 17:12:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 9178 9179 * Makefile.in (lneeded-list): ensure that object file names are 9180 not duplicated, as multiple instances of the same object file in 9181 a library causes problems on some machines 9182 9183Mon Oct 18 21:59:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9184 9185 * strcasecmp.c, strncasecmp.c: Change u_char to unsigned char. 9186 9187Fri Oct 15 22:17:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 9188 9189 * strncasecmp.c: new file, implements strncasecmp 9190 * strcasecmp.c: new file, implement strcasecmp 9191 9192 * Makefile.in (CFILES): list these two new source files 9193 9194 * functions.def: add strcasecmp and strncasecmp entries 9195 9196Fri Oct 15 14:53:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 9197 9198 * strtoul.c (strtoul), strtol.c (strtol): Handle overflow 9199 according to ANSI C. 9200 9201Thu Oct 14 16:34:19 1993 Kung Hsu (kung@cirdan.cygnus.com) 9202 9203 * cplus-dem.c: add support of ARM global constructor/destructor, 9204 and 'G' for passing record or union in parameter. 9205 9206Wed Oct 13 13:36:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9207 9208 * Makefile.in: Fix comment to clarify that stuff in REQUIRED_OFILES 9209 should not be in functions.def. 9210 9211Wed Oct 13 13:13:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 9212 9213 * functions.def: Removed xmalloc. Stuff in REQUIRED_OFILES should 9214 not be in functions.def. 9215 9216Mon Oct 4 18:26:39 1993 Kung Hsu (kung@cirdan.cygnus.com) 9217 9218 * cplus-dem.c: change globl constructor/destructor to proper name 9219 9220Tue Sep 28 18:11:07 1993 Kung Hsu (kung@cirdan.cygnus.com) 9221 9222 * cplus-dem.c: fix bug in constructor/destructor 9223 9224Tue Sep 28 16:20:49 1993 Kung Hsu (kung@cirdan.cygnus.com) 9225 9226 * cplus-dem.c: support both old and new _vt$... vtbl mangled names 9227 9228Fri Sep 24 19:07:16 1993 Jason Merrill (jason@deneb.cygnus.com) 9229 9230 * cplus-dem.c: Fix demangle_template prototype 9231 9232Fri Sep 24 17:32:55 1993 Kung Hsu (kung@cirdan.cygnus.com) 9233 9234 * cplus-dem.c: fix template demangling 9235 * cplus-dem.c: fix const type demangling 9236 * cplus-dem.c: fix constructor/destructor, virtual table, 9237 qualifier, global constructor/destructor demangling 9238 9239Wed Sep 1 23:13:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9240 9241 * strsignal.c, strerror.c: Use fully-bracketed initializer to 9242 keep gcc -Wall happy. 9243 9244Fri Aug 27 10:30:09 1993 Jason Merrill (jason@deneb.cygnus.com) 9245 9246 * cplus-dem.c (do_type): Add CONSTS to make gcc happy with last 9247 patch. 9248 9249Fri Aug 27 11:24:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9250 9251 Patch from Paul Flinders: 9252 * cplus-dem.c (do_type): Deal with arrays. 9253 9254Tue Aug 24 14:23:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9255 9256 * cplus-dem.c (demangle_qualified: Deal with GNU format for more 9257 than 9 classes. 9258 9259Wed Aug 18 19:50:29 1993 Jason Merrill (jason@deneb.cygnus.com) 9260 9261 * Makefile.in (dummy.o): Redirect to /dev/null to avoid "variable 9262 not initialized" warnings under HP/UX 9263 9264Sun Aug 15 20:42:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9265 9266 * strerror.c: Move include of stdio.h after sys_errlist #define. 9267 Also remove NULL definition (stdio.h always defines NULL, so it 9268 never did anything but clutter up the code). 9269 9270Sat Aug 14 14:21:49 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 9271 9272 * Makefile.in, functions.def: handle xmalloc.c 9273 9274 * xmalloc.c: provide xmalloc and xrealloc functions 9275 9276Thu Aug 12 17:38:57 1993 David J. Mackenzie (djm@thepub.cygnus.com) 9277 9278 * cplus-dem.c: Fix a comment. 9279 9280Sat Aug 7 13:56:35 1993 David J. Mackenzie (djm@thepub.cygnus.com) 9281 9282 * getopt1.c: Declare const the way getopt.c does. 9283 9284Fri Aug 6 17:03:13 1993 David J. Mackenzie (djm@thepub.cygnus.com) 9285 9286 * obstack.c, alloca.c: Update from FSF. 9287 * getopt.c, getopt1.c: Update to current FSF version, which 9288 doesn't use alloca. 9289 9290Tue Jul 27 14:03:57 1993 Brendan Kehoe (brendan@lisa.cygnus.com) 9291 9292 * Makefile.in (demangle): Add the target with a message saying 9293 where demangle went. 9294 9295Mon Jul 26 15:49:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9296 9297 * Makefile.in: Remove obsolete `demangle' target. 9298 9299Thu Jul 22 08:31:01 1993 Fred Fish (fnf@deneb.cygnus.com) 9300 9301 * cplus-dem.c (arm_special): Apply patch from arg@lucid.com to 9302 avoid infinite loop on vtbl symbols with disambiguating "junk" 9303 tacked on the end. 9304 9305Mon Jul 19 14:10:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 9306 9307 * strsignal.c: work around some systems losing definitions of 9308 sys_siglist 9309 9310 * config/mh-lynxos: this system has a losing definition of 9311 sys_siglist 9312 9313 * config.table: use mh-lynxos for *-*-lynxos 9314 9315Mon Jul 19 17:08:52 1993 Ken Raeburn (raeburn@rtl.cygnus.com) 9316 9317 * config.table: Add support for HPPA BSD hosts. 9318 9319 * config/mh-hpbsd: New file. 9320 9321Mon Jul 12 18:00:40 1993 K. Richard Pixley (rich@cygnus.com) 9322 9323 * Makefile.in (TAGS): make work when srcdir != objdir. 9324 9325Sun Jun 27 15:35:31 1993 David J. Mackenzie (djm@thepub.cygnus.com) 9326 9327 * cplus-dem.c (main): Add long options, including --help and 9328 --version. 9329 (usage): New function from code in main. 9330 9331Tue Jun 22 11:37:38 1993 Per Bothner (bothner@deneb.cygnus.com) 9332 9333 * config.table: New shell scipt, sourced by both ./configure,in 9334 and ../xiberty/configure.in, to avoid maintainance lossages. 9335 * configure.in and ../xiberty/configure.in: Use config.table. 9336 9337 * configure.in: Don't use mh-aix for AIX 3.2, only for 3.1. 9338 * configure.in: Map *-*-irix* (except irix4) to mh-sysv. 9339 * ../xiberty/configure.in: Update from ./configure.in. 9340 9341Tue Jun 15 17:05:31 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 9342 9343 * Makefile.in: remove parentdir support 9344 9345Wed May 26 12:59:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 9346 9347 * cplus-dem.c (xrealloc): Match definition with prototype. 9348 9349Tue May 25 14:27:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 9350 9351 * cplus-dem.c (demangle_prefix): Demangle cfront 9352 local variables as an extension to ARM demangling. 9353 9354Fri May 21 09:53:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9355 9356 * ieee-float.c: Don't require pointers to double to be aligned. 9357 9358Tue May 18 17:12:10 1993 Fred Fish (fnf@cygnus.com) 9359 9360 (merge changes from dlong@cse.ucsc.edu) 9361 * cplus-dem.c (consume_count): Simplify. 9362 * cplus-dem.c (arm_pt, demangle_class_name): New functions. 9363 * cplus-dem.c (various): Calls to arm_pt, demangle_class_name. 9364 9365 * cplus-dem.c (xmalloc, xrealloc, strstr): Make extern decls into 9366 full prototypes. 9367 * cplus-dem.c (free): Add prototype. 9368 * cplus-dem.c (optable): Fully bracketize initializer. 9369 9370Fri May 14 17:13:05 1993 Per Bothner (bothner@cygnus.com) 9371 9372 * cplus-dem.c: Whether initial underscores are stripped 9373 depends on the external variable prepends_underscore 9374 (which is generated by the binutils Makefile). 9375 9376Fri May 14 07:32:20 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 9377 9378 * cplus-dem.c (mop_up, arm_special): Remove some unused variables. 9379 9380Tue May 4 20:31:59 1993 Fred Fish (fnf@cygnus.com) 9381 9382 * cplus-dem.c (consume_count): Return zero if arg does not 9383 start with digit, and don't consume any input. 9384 9385Tue May 4 08:10:28 1993 Jim Kingdon (kingdon@cygnus.com) 9386 9387 * Makefile.in (demangle): Use ${srcdir} not $^. 9388 9389 * strtod.c: New file, needed at least for BSD 4.3. 9390 9391Sun May 2 11:30:42 1993 Fred Fish (fnf@cygnus.com) 9392 9393 * strsignal.c (sys_siglist): For ANSI compilations, type is 9394 "const char *const". Also remove conditionalization on __STDC__ 9395 since const is defined away for non-ANSI. 9396 9397Wed Apr 28 19:29:55 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 9398 9399 * configure.in: Recognize *-*-hpux. 9400 * config/mh-hpux: New file. 9401 9402Tue Apr 27 15:22:19 1993 Per Bothner (bothner@cygnus.com) 9403 9404 * tmpnam.c: Added ANSI tmpnam() function. 9405 * functions.def, Makefile.in: Update accordingly. 9406 9407Tue Apr 27 13:38:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 9408 9409 * cplus-dem.c (demangle_function_name): Get the demangling of 9410 stop__1A right. 9411 9412Fri Apr 16 23:48:24 1993 Jim Kingdon (kingdon at calvin) 9413 9414 * cplus-dem.c: Declare strstr return type. 9415 9416Fri Mar 26 12:01:26 1993 Jim Kingdon (kingdon@cygnus.com) 9417 9418 * strsignal.c: Add some AIX signals. 9419 9420Thu Mar 25 15:17:23 1993 Ian Lance Taylor (ian@cygnus.com) 9421 9422 * Makefile.in (MAKEOVERRIDES): Define to be empty. 9423 9424Wed Mar 24 01:59:25 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com) 9425 9426 * Makefile.in: add installcheck & dvi targets 9427 9428Thu Mar 18 14:05:44 1993 Per Bothner (bothner@rtl.cygnus.com) 9429 9430 * ieee-float.c: New file, moved from ../gdb (since it is 9431 needed by ../opcode/m68k-dis.c). 9432 9433Tue Mar 2 17:47:31 1993 Fred Fish (fnf@cygnus.com) 9434 9435 * cplus-dem.c: Replace all references to cfront with ARM. 9436 9437Fri Feb 26 00:17:07 1993 Per Bothner (bothner@rtl.cygnus.com) 9438 9439 * cplus-dem.c: Fix main program (when compiled with -DMAIN) 9440 to be more useful as a filter. 9441 9442Sat Feb 20 21:41:39 1993 Brendan Kehoe (brendan@lisa.cygnus.com) 9443 9444 * Makefile.in (install_to_libdir, install_to_tooldir): Go into the 9445 destination directory before running $(RANLIB), in case that 9446 program tries to create a file in the current directory as part of 9447 its work. 9448 9449Thu Feb 18 23:00:19 1993 John Gilmore (gnu@cygnus.com) 9450 9451 * strsignal.c (sys_siglist): Remove yet another *%^&%&$# "const" 9452 because BSD 4.4 lacks one. Isn't this fun? 9453 9454Thu Feb 18 11:24:25 1993 Fred Fish (fnf@cygnus.com) 9455 9456 * cplus-dem.c (demangle_signature): Set func_done after 9457 demangling a template. 9458 * cplus-dem.c (demangle_template): Fix several small bugs 9459 in demangling GNU style templates. 9460 * cplus-dem.c (demangle_prefix): Fix for templates in GNU 9461 style constructors. 9462 * cplus-dem.c (gnu_special): Fix for templates in GNU style 9463 static data members. 9464 9465Tue Feb 16 17:28:35 1993 Fred Fish (fnf@cygnus.com) 9466 9467 * cplus-dem.c (demangle_signature): Modify to include type 9468 modifiers like static and const in remembered types. 9469 9470Thu Feb 11 22:20:47 1993 Fred Fish (fnf@cygnus.com) 9471 9472 * cplus-dem.c (demangled_qualified): Add new parameter that tells 9473 whether to prepend or append the qualifiers. 9474 * cplus-dem.c (string_prepends): Used now, remove #if 0. 9475 * cplus-dem.c (demangle_signature): Call demangle_qualified 9476 with prepending. 9477 * cplus-dem.c (gnu_special): Recognize static data members that 9478 use qualified names. 9479 * cplus-dem.c (demangle_qualified): Accumulate qualifiers in a 9480 temporary buffer and the prepend or append them to the result, 9481 as specified by the new "append" flag. 9482 * cplus-dem.c (do_type): Call demangled_qualified with 9483 appending. 9484 9485Mon Dec 28 10:47:19 1992 Ken Raeburn (raeburn@cygnus.com) 9486 9487 * strsignal.c (signal_table): Now const. 9488 (init_signal_tables): Variable eip now points to const. 9489 9490 * strerror.c (error_table): Now const. 9491 (init_error_tables): Variable eip now points to const. 9492 9493Tue Dec 15 15:36:50 1992 Per Bothner (bothner@cygnus.com) 9494 9495 * memchr.c (memchr): New (ANSI standard) function. 9496 * Makefile.in, functions.def: Added memchr. 9497 * Makefile.in (AR_FLAGS): Use rc instad of non-standard cq. 9498 9499Wed Dec 2 22:49:10 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 9500 9501 * getopt.c: remove use of USG around <alloca.h>, which never meant 9502 anything anyway 9503 9504 * config/mh-{aix,apollo68,ncr3000,sysv,sysv4}: removed definitions 9505 of USG and USGr4 9506 9507Thu Nov 19 03:09:33 1992 Brendan Kehoe (brendan@lisa.cygnus.com) 9508 9509 * cplus-dem.c (demangle_fund_type): Recognize `w', a wide character; 9510 it's now a type according to the ANSI X3J16 working paper; output 9511 "wchar_t" for it. 9512 (demangle_template): Accept `w' as an integral type. 9513 (xmalloc, xrealloc): Use `char *', not `PTR'. Cast calls to their 9514 counterparts malloc and realloc to `char *'. 9515 (main): Exit with a 0 status. 9516 * Makefile.in (demangle): Don't expect the user to define 9517 DEMANGLE, instead force to be cplus-dem.c. Look in $(srcdir)/../include 9518 for demangle.h. Pass it any HDEFINES or XTRAFLAGS. 9519 9520Wed Nov 18 18:56:20 1992 John Gilmore (gnu@cygnus.com) 9521 9522 * Makefile.in (AR_FLAGS): Avoid verbosity. 9523 * config/mh-sysv4: Remove AR_FLAGS override, use INSTALL=cp, 9524 replace USGr4 with HAVE_SYSCONF. 9525 * config/mh-solaris: Remove; mh-sysv4 works now. 9526 * getpagesize.c: Replace USGr4 with HAVE_SYSCONF. 9527 * configure.in: Simplify host matching table, remove separate 9528 solaris config file. 9529 9530Sun Nov 15 09:35:16 1992 Fred Fish (fnf@cygnus.com) 9531 9532 * configure.in (i[34]86-*-solaris2*): Add, use mh-sysv4. 9533 9534Tue Nov 3 21:27:03 1992 Brendan Kehoe (brendan@cygnus.com) 9535 9536 * cplus-dem.c (xmalloc, xrealloc): Add decls. 9537 (remember_type): Don't cast xmalloc. 9538 (string_need): Likewise; don't cast xrealloc either. 9539 9540Fri Oct 23 08:52:01 1992 Ian Lance Taylor (ian@cygnus.com) 9541 9542 * Makefile.in, functions.defs, rename.c: added simple 9543 implementation of rename, since some binutils programs use it. 9544 9545Thu Oct 15 15:18:22 1992 Per Bothner (bothner@cygnus.com) 9546 9547 * strsignal.c: Add appropriate 'const' to sys_siglist 9548 extern declaration (if __STDC__). (Needed for Linux.) 9549 * strsignal.c (strsignal): Add cast to remove const-ness. 9550 9551Fri Oct 9 03:22:55 1992 John Gilmore (gnu@cygnus.com) 9552 9553 * Makefile.in (needed.awk, needed2.awk): Remove erroneous \'s 9554 before "'s, diagnosed by BSD 4.4 awk. 9555 9556Thu Oct 8 15:25:12 1992 Ian Lance Taylor (ian@cygnus.com) 9557 9558 * Makefile.in: create config.h and needed-list through $(CONFIG_H) 9559 and $(NEEDED_LIST), to give some hooks for xiberty. 9560 9561Thu Oct 1 23:31:42 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 9562 9563 * configure.in: use cpu-vendor-triple instead of nested cases 9564 9565Wed Sep 30 11:26:59 1992 Per Bothner (bothner@rtl.cygnus.com) 9566 9567 * Makefile.in, argv.c, basename.c, bcmp.c, bcopy.c, bzero.c, 9568 concat.c, cplus-dem.c, fdmatch.c, getcwd.c, getopt.c, getopt1.c, 9569 getpagesize.c, insque.c, memcmp.c, memcpy.c, memmove.c, memset.c, 9570 obstack.c, sigsetmask.c, spaces.c, strchr.c, strerror.c, 9571 strrchr.c, strsignal.c, strstr.c, vfork.c, vsprintf.c: 9572 Convert from using GPL to LGPL. 9573 9574Sat Sep 26 04:01:30 1992 John Gilmore (gnu@cygnus.com) 9575 9576 * Makefile.in (errors): Leave dummy.o and dummy around so that 9577 we can see how the needed list was generated (it's sometimes wrong). 9578 (mostlyclean): Remove them. 9579 9580Mon Sep 21 14:50:42 1992 Ian Lance Taylor (ian@cygnus.com) 9581 9582 * getcwd.c: supply a default if MAXPATHLEN is not defined. 9583 9584 * config/mh-irix4: set EXTRA_OFILES to alloca.o, from WRS. 9585 9586Wed Sep 9 12:41:48 1992 Ian Lance Taylor (ian@cygnus.com) 9587 9588 * Makefile.in: Use XTRAFLAGS when compiling, so that xiberty works 9589 when cross-compiling. 9590 9591Thu Sep 3 13:29:39 1992 K. Richard Pixley (rich@sendai.cygnus.com) 9592 9593 * cplus-dem.c: (demangle_prefix): reduction in strength of strstr 9594 as a time optimization. 9595 9596 * cplus-dem.c (cplus_demangle): remove strpbrk test. Appears to 9597 be more expensive than simply demangling. 9598 9599 * cplus-dem.c (cplus_match): new function. 9600 9601Tue Sep 1 15:24:04 1992 Per Bothner (bothner@rtl.cygnus.com) 9602 9603 * cplus-dem.c: #include <stdio.h>, to define NULL. 9604 Define current_demangling_style. 9605 9606Sun Aug 30 17:58:19 1992 Per Bothner (bothner@rtl.cygnus.com) 9607 9608 * cplus-dem.c: New file, moved from ../gdb. 9609 * cplus-dem.c (set_cplus_marker_for_demangling): New exported 9610 function, to avoid compiling in target-dependency for CPLUS_MARKER. 9611 * cplus-dem.c (cplus_demangle): Allow demangling style option 9612 to be passed as a parameter, but using the global variable 9613 current_demangling_style as a default. 9614 * Makefile.in: Update for cplus-dem.c 9615 9616Sat Aug 29 10:44:09 1992 Fred Fish (fnf@cygnus.com) 9617 9618 * obstack.c: Merge in comment changes from FSF version. Now 9619 matches the FSF version exactly. 9620 9621Fri Aug 28 18:39:08 1992 John Gilmore (gnu@cygnus.com) 9622 9623 * obstack.c (CALL_FREEFUN): Can't use ?: with void values (at 9624 least on losing DECstations!); use if-then-else instead. 9625 9626Wed Aug 19 14:40:34 1992 Ian Lance Taylor (ian@cygnus.com) 9627 9628 * Makefile.in: always create installation directories. 9629 9630Mon Aug 10 17:33:40 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 9631 9632 * Makefile.in: clean up definition of CFILES, more comments 9633 9634Sat Aug 8 23:10:59 1992 Fred Fish (fnf@cygnus.com) 9635 9636 * getopt.c (my_index): Make first arg const to match strchr, 9637 which it sometimes is remapped to. 9638 9639Sat Aug 1 13:48:50 1992 Fred Fish (fnf@cygnus.com) 9640 9641 * obstack.c (DEFAULT_ALIGNMENT): Update to match FSF version. 9642 * obstack.c (_obstack_begin): Initialize use_extra_arg. 9643 * obstack.c (_obstack_begin_1): New, from FSF version. 9644 9645Mon Jul 20 21:07:58 1992 Fred Fish (fnf@cygnus.com) 9646 9647 * obstack.c (CALL_CHECKFUN, CALL_FREEFUN): Use use_extra_arg and 9648 extra_arg. 9649 * obstack.c (_obstack_begin): Remove area_id and flags arguments 9650 (previously added for mmalloc support, interface has changed). 9651 Also convert flags usage to use use_extra_arg and maybe_empty_object. 9652 9653Fri Jul 10 00:41:53 1992 Fred Fish (fnf@cygnus.com) 9654 9655 * argv.c: Move expandargv inline and eliminate static variables. 9656 Rewrite to always allocate in powers of two. Fix to return an 9657 argv with a single null string arg if passed a null string. 9658 9659Fri Jul 3 20:27:29 1992 Fred Fish (fnf@cygnus.com) 9660 9661 * random.c, sigsetmask.c, strerror.c, strsignal.c: Remove 9662 "(void)" casts from function calls where the return value is 9663 ignored, in accordance with GNU coding standards. 9664 9665Mon Jun 29 10:54:19 1992 Fred Fish (fnf at cygnus.com) 9666 9667 * bcopy.c, strerror.c, strsignal.c: Lint. 9668 9669Thu Jun 25 09:18:41 1992 K. Richard Pixley (rich@rtl.cygnus.com) 9670 9671 * getopt.c: merge changes from make. 9672 9673Thu Jun 25 04:43:22 1992 John Gilmore (gnu at cygnus.com) 9674 9675 * alloca.c: Incorporate fixes from gdb/alloca.c. 9676 FIXME: Eventually move gdb's alloca configuration files here, 9677 and remove gdb/alloca.c and its Makefile.in support. 9678 9679Tue Jun 23 21:56:30 1992 Fred Fish (fnf@cygnus.com) 9680 9681 * dummy.c: Define NOTHING to /*nothing*/, change return type 9682 of main to int and return zero. 9683 * functions.def: Supply NOTHING as the fourth arg to macros 9684 that don't have an explicit arg, to satisfy picky preprocessors. 9685 9686Wed Jun 17 18:13:58 1992 Per Bothner (bothner@rtl.cygnus.com) 9687 9688 * Makefile.in: Clean up *clean rules, as per standards.texi. 9689 9690Tue Jun 16 16:11:59 1992 K. Richard Pixley (rich@rtl.cygnus.com) 9691 9692 * getopt.c, getopt1.c: merged largely gratuitous, mostly 9693 whitespace diffs from other prep distributions. 9694 9695Mon Jun 15 12:25:46 1992 Fred Fish (fnf@cygnus.com) 9696 9697 * config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install, 9698 it is broken on ncr 3000's. 9699 9700Mon Jun 15 01:03:26 1992 John Gilmore (gnu at cygnus.com) 9701 9702 * sigsetmask.c: Rewrite. Old one was very confused about its 9703 arguments and result. New one can't do much, but at least knows 9704 what it can't do, and it's good enough for GDB's use. 9705 9706Sun Jun 14 15:17:40 1992 Stu Grossman (grossman at cygnus.com) 9707 9708 * functions.def: Use proper prototype for strtoul. 9709 9710Fri Jun 12 19:22:40 1992 John Gilmore (gnu at cygnus.com) 9711 9712 * Makefile.in: Add random.c. 9713 * config/mh-*: Use "true" rather than "echo >/dev/null" for ranlib. 9714 * configure.in: update solaris2 config. 9715 9716Wed Jun 10 16:31:29 1992 Fred Fish (fnf@cygnus.com) 9717 9718 * random.c: Add for random() and srandom(). 9719 * functions.def: Add random 9720 9721Tue Jun 9 17:27:18 1992 Fred Fish (fnf@cygnus.com) 9722 9723 * config/{mh-ncr3000, mh-sysv4}: Add definition for INSTALL 9724 using /usr/ucb/install. 9725 9726Mon Jun 1 13:20:17 1992 Per Bothner (bothner@rtl.cygnus.com) 9727 9728 * strerror.c: Kludge to guard against a conflict with 9729 possible declaration of sys_errlist in errno.h. 9730 9731Sun May 31 15:07:47 1992 Mark Eichin (eichin at cygnus.com) 9732 9733 * configure.in, config/mh-solaris: add solaris2 config support. 9734 9735Fri May 29 17:23:23 1992 Per Bothner (bothner@rtl.cygnus.com) 9736 9737 * sigsetmask.c: #ifdef out sigsetmask if SIG_SETMASK 9738 is not defined (should be defined in signal.h, says Posix.). 9739 9740Mon May 18 17:35:04 1992 K. Richard Pixley (rich@cygnus.com) 9741 9742 * getopt.c: merged changes from make-3.62.11. 9743 9744Fri May 8 14:53:07 1992 K. Richard Pixley (rich@cygnus.com) 9745 9746 * getopt.c: merged changes from bison-1.18. 9747 9748Tue May 5 11:51:40 1992 Per Bothner (bothner@rtl.cygnus.com) 9749 9750 * Makefile.in: Don't have $(EXTRA_OFILES) depend on config.h, 9751 since that introduces a circular dependency. 9752 ($(EXTRA_OFILES) are used to build config.h.) 9753 9754 * strtoul.c: Fixes to handle non-decimal bases better. 9755 9756Wed Apr 22 09:27:51 1992 Fred Fish (fnf@cygnus.com) 9757 9758 * config/mh-ncr3000: Replace MINUS_G with CFLAGS. 9759 * Makefile.dos: Finish MINUS_G eradication. 9760 * Makefile.in (CFILES): Add strsignal.c. 9761 * Makefile.in (REQUIRED_OFILES): Add strerror.o strsignal.o 9762 * Makefile.in (needed-list): Split creation of errors file to 9763 separate make target. 9764 * Makefile.in (config.h, needed2.awk, errors): New targets. 9765 * Makefile.in (clean): Split to multiple lines, add needed2.awk 9766 and config.h. 9767 * dummy.c (DEFFUNC, DEFVAR): Add defines and undefs. 9768 * functions.def (strerror): Remove from optional list. 9769 * functions.def (sys_nerr, sys_errlist, sys_siglist): DEFVAR's 9770 * functions.def (strerror, psignal): DEFFUNC's 9771 * strerror.c: Rewrite from scratch to use sys_errlist only if 9772 available, add errno_max(), add strerrno(), add strtoerrno(), 9773 add test driver. 9774 * strsignal.c: New file, signal equivalent to strerror.c. 9775 Uses sys_siglist if available, defines signo_max(), strsignal(), 9776 strsigno(), strtosigno(), psignal(), and test driver. 9777 9778Mon Apr 20 20:49:32 1992 K. Richard Pixley (rich@cygnus.com) 9779 9780 * Makefile.in: do not print recursion line. 9781 9782 * Makefile.in: allow CFLAGS to be passed in from command line. 9783 Removed MINUS_G. Default CFLAGS to -g. 9784 9785Mon Apr 20 12:57:46 1992 Per Bothner (bothner@rtl.cygnus.com) 9786 9787 * config/mh-aix: New. EXTRA_OFILES lists copysign.o, 9788 so libg++ users don't have to be inconvenienced by a 9789 libc.a bug (libc.a needs copysign, but doesn't define it!). 9790 * configure.in: Use config/mh-aix. 9791 * strtoul.c: Handle '-' as required by ANSI. 9792 Clean up radix handling. 9793 * strstr.c: Fix buggy algorithm. 9794 * Makefile.in: Change so that ${EXTRA_OFILES} is 9795 appended to needed-list (which is used by libg++). 9796 9797Fri Apr 10 22:51:41 1992 Fred Fish (fnf@cygnus.com) 9798 9799 * configure.in: Recognize new ncr3000 config. 9800 * config/mh-ncr3000: New config file. 9801 9802Wed Apr 1 23:31:43 1992 John Gilmore (gnu at cygnus.com) 9803 9804 * argv.c, dummy.c: Lint. 9805 9806Tue Mar 31 18:46:44 1992 Fred Fish (fnf@cygnus.com) 9807 9808 * config/mh-sysv4: New config file. 9809 * configure.in (host_makefile_frag): Set to config/mh-sysv4 for 9810 host_os == sysv4. 9811 * getpagesize.c: For SVR4, use sysconf(_SC_PAGESIZE) to get 9812 pagesize. 9813 9814Sun Mar 29 12:26:42 1992 John Gilmore (gnu at cygnus.com) 9815 9816 * getopt.c: Lint. 9817 9818Fri Mar 27 08:32:55 1992 Fred Fish (fnf@cygnus.com) 9819 9820 * functions.def (alloca): Fix return type and args to avoid 9821 type clash with gcc's builtin alloca. 9822 9823Tue Mar 24 23:33:42 1992 K. Richard Pixley (rich@cygnus.com) 9824 9825 * configure.in, config/mh-irix4: irix4 support. 9826 9827 * Makefile.in, functions.def, alloca.c: added alloca. 9828 9829Tue Mar 24 17:34:46 1992 Stu Grossman (grossman at cygnus.com) 9830 9831 * obstack.c (CALL_FREEFUN): Make it compile on DECstations. 9832 9833Thu Mar 19 13:57:42 1992 Fred Fish (fnf@cygnus.com) 9834 9835 * argv.c: Fix various external function definitions to be 9836 correct in an ANSI compilation environment. 9837 9838Sat Mar 14 17:28:17 1992 Fred Fish (fnf@cygnus.com) 9839 9840 * obstack.c: Changes to support calling mmalloc functions, 9841 which take an additional argument over malloc functions. 9842 9843Fri Mar 6 22:01:10 1992 K. Richard Pixley (rich@cygnus.com) 9844 9845 * added check target. 9846 9847Thu Feb 27 22:19:39 1992 Per Bothner (bothner@cygnus.com) 9848 9849 * argv.c: #include alloca-conf.h (needed by AIX). 9850 9851Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com) 9852 9853 * Makefile.in, configure.in: removed traces of namesubdir, 9854 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced 9855 copyrights to '92, changed some from Cygnus to FSF. 9856 9857Sat Feb 22 01:09:21 1992 Stu Grossman (grossman at cygnus.com) 9858 9859 * argv.c: Check in Fred's version which fixes problems with 9860 alloca(). 9861 9862Fri Feb 7 21:46:08 1992 Stu Grossman (grossman at cygnus.com) 9863 9864 * makefile.dos: Remove NUL to keep patch from failing. 9865 9866Thu Jan 30 22:48:41 1992 Stu Grossman (grossman at cygnus.com) 9867 9868 * getopt.c (_getopt_internal): Fix usage of enum has_arg. 9869 9870Mon Jan 20 18:53:23 1992 Stu Grossman (grossman at cygnus.com) 9871 9872 * getopt.c, getopt1.c, ../include/getopt.h: Get latest versions. 9873 9874Sat Jan 18 16:53:01 1992 Fred Fish (fnf at cygnus.com) 9875 9876 * argv.c: New file to build and destroy standard argument 9877 vectors from a command string. 9878 9879 * Makefile.in: Add argv.c and argv.o to appropriate macros. 9880 9881Fri Dec 20 12:12:57 1991 Fred Fish (fnf at cygnus.com) 9882 9883 * configure.in: Change svr4 references to sysv4. 9884 9885 * rindex.c: Declare return type of externally used function 9886 strrchr(). 9887 9888Thu Dec 19 18:35:03 1991 John Gilmore (gnu at cygnus.com) 9889 9890 * Makefile.in: Remove "***" in normal output, since Make produces 9891 this on errors, and it's convenient to search for. 9892 9893Tue Dec 17 23:21:30 1991 Per Bothner (bothner at cygnus.com) 9894 9895 * memcmp.c, memcpy.c, memmove.c, memset.c, strchr.c, strrchr.c: 9896 New ANSI functions. The old non-ANSI functions (such as bcopy) 9897 should be avoided. 9898 * bcopy.c: Fix to correctly handle overlapping regions. 9899 * index.c, rindex.c: Re-write in terms of strchr() and strrchr(). 9900 * functions.def: Add the new functions. 9901 * functions.def: Add 4th parameter to DEF macro, 9902 an ansidecl.h-style prototype. 9903 * dummy.c: Use expanded DEF macro to create a dummy function 9904 call, with correct parameter types. (This avoids some 9905 complaints from gcc about predefined builtins.) 9906 9907 Move the functionality of config/mh-default into Makefile.in. 9908 This avoid duplication, and simplifies things slightly. 9909 * Makefile.in: Tweak so we don't need config/mh-default. 9910 * README: Update. 9911 * configure.in: No longer need config/mh-default. 9912 * config/mh-default: Deleted. 9913 * config/mh-sysv: Remove lines copied from old mh-default. 9914 9915Tue Dec 17 05:46:46 1991 John Gilmore (gnu at cygnus.com) 9916 9917 * fdmatch.c (fdmatch): Don't compare st_rdev, which is for 9918 'mknod' device numbers. 9919 9920Mon Dec 16 12:25:34 1991 Fred Fish (fnf at cygnus.com) 9921 9922 * fdmatch.c, Makefile.in: Add new function that takes two 9923 open file descriptors and returns nonzero if they refer to 9924 the same file, zero otherwise. (used in gdb) 9925 9926Wed Dec 11 17:40:39 1991 Steve Chamberlain (sac at rtl.cygnus.com) 9927 From DJ: 9928 * msdos.c: stub functions for dos. 9929 * makefile.dos, configdj.bat: new. 9930 * getopt.c: Don't include alloca-conf.h in a GO32 world. 9931 9932 9933Tue Dec 10 04:14:49 1991 K. Richard Pixley (rich at rtl.cygnus.com) 9934 9935 * Makefile.in: infodir belongs in datadir. 9936 9937Fri Dec 6 23:26:45 1991 K. Richard Pixley (rich at rtl.cygnus.com) 9938 9939 * Makefile.in: remove spaces following hyphens because bsd make 9940 can't cope. added standards.text support. install using 9941 INSTALL_DATA. 9942 9943 * configure.in: remove commontargets as it is no longer a 9944 recognized hook. 9945 9946Thu Dec 5 22:46:46 1991 K. Richard Pixley (rich at rtl.cygnus.com) 9947 9948 * Makefile.in: idestdir and ddestdir go away. Added copyrights 9949 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir 9950 and mandir now keyed off datadir by default. 9951 9952Fri Nov 22 19:15:29 1991 John Gilmore (gnu at cygnus.com) 9953 9954 * Makefile.in: find-needed.awk does not fit in 14 chars. 9955 9956 * Makefile.in: Suppress error checking when compiling the test 9957 program, because Ultrix make/sh aborts there due to a bug. 9958 9959Fri Nov 22 12:23:17 1991 Per Bothner (bothner at cygnus.com) 9960 9961 * Makefile.in: Re-did how EXTRA_OFILES is used to be more useful. 9962 * README: Explained how the auto-configuration works, 9963 and how to add new files and/or configurations. 9964 9965Fri Nov 22 09:45:23 1991 John Gilmore (gnu at cygnus.com) 9966 9967 * strtoul.c: Avoid defining ULONG_MAX if already defined; 9968 cast a const char * to char * for pedants. 9969 9970 * getopt.c: Only define "const" after local include files get to, 9971 and only if they haven't defined it. 9972 9973Thu Nov 21 16:58:53 1991 John Gilmore (gnu at cygnus.com) 9974 9975 * getcwd.c (remove getwd.c): GNU code should call getcwd(). We 9976 emulate it with getwd() if available. This avoids callers having 9977 to find a MAXPATHLEN or PATH_MAX value from somewhere. 9978 * Makefile.in, functions.def: getwd->getcwd. 9979 * configure.in: Use generic case for every system. 9980 * config/mh-{delta88,mach,rs6000,svr4}: Remove. 9981 * config/mh-sysv: Use default handling, just add -DUSG. 9982 9983Thu Nov 14 10:58:05 1991 Per Bothner (bothner at cygnus.com) 9984 9985 * Makefile.in, config/mh-default: Re-do make magic 9986 so that for the default ("automatic") mode we only 9987 compile the files we actually need. Do this using 9988 a recursive make: The top-level generates the list 9989 of needed files (loosely, the ones missing in libc), 9990 and then passes that list to the recursive make. 9991 * config/mh-mach: Remove obsolete STRERROR-{C,O} macros. 9992 9993Tue Nov 12 19:10:57 1991 John Gilmore (gnu at cygnus.com) 9994 9995 RS/6000 host support (grumble). 9996 9997 * configure.in: Build alloca-conf.h file from alloca-norm.h 9998 (everything else) or alloca-botch.h (rs/6000). 9999 * Makefile.in: Include . on the include path. 10000 * getopt.c: Use alloca-conf.h. 10001 * alloca-norm.h: How to declare alloca on reasonable machines. 10002 * alloca-botch.h: How to declare alloca on braindead machines. 10003 10004Tue Nov 12 09:21:48 1991 Fred Fish (fnf at cygnus.com) 10005 10006 * concat.c : New file, like concat() in gdb but can take a 10007 variable number of arguments rather than fixed at 3 args. For 10008 now, client applications must supply an xmalloc(), which is a 10009 front end function to malloc() that deals with out-of-memory 10010 conditions. 10011 10012 * Makefile.in: Add concat.c and concat.o to appropriate macros. 10013 10014Sat Nov 9 13:29:59 1991 Fred Fish (fnf at cygnus.com) 10015 10016 * config/mh-svr4: Add sigsetmask to list of required functions. 10017 10018Sun Nov 3 11:57:56 1991 Per Bothner (bothner at cygnus.com) 10019 10020 * vsprintf.c: New file. 10021 * functions.def, Makefile.in: Add vsprintf. 10022 10023Sun Oct 27 16:31:22 1991 John Gilmore (gnu at cygnus.com) 10024 10025 * configure.in, config/mh-rs6000: Add rs/6000 host support. 10026 * Makefile.in: Compile with debug info. 10027 10028Fri Oct 25 17:01:12 1991 Per Bothner (bothner at cygnus.com) 10029 10030 * Makefile.in, configure.in, and new files: dummy.c, functions.def, 10031 config/mf-default: Added a default configuration mode, 10032 which includes into libiberty.a functions that are "missing" in libc. 10033 * strdup.c, vprintf.c, vfprintf.c: New files. 10034 10035Thu Oct 24 02:29:26 1991 Fred Fish (fnf at cygnus.com) 10036 10037 * config/hmake-svr4: New file. 10038 10039 * config/hmake-sysv: Add HOST_CFILES and HOST_OFILES. 10040 10041 * basename.c, bcmp.c, bcopy.c, bzero.c, getpagesize.c getwd.c, 10042 index.c, insque.c, rindex.c, spaces.c, strstr.c, vfork.c: New 10043 files containing either portable C versions or emulations using 10044 native library calls. 10045 10046 * strerror.c: Add copyright, internal documentation, etc. 10047 10048 * strtol.c: Replace hardwired hex constants with some more 10049 portable macros. Remove illegal (according to gcc) cast. 10050 10051 * strtoul.c: Replace hardwired hex constant with more portable 10052 macro. 10053 10054 * Makefile.in: Move TARGETLIB and CFLAGS where makefile fragments 10055 can override them. Add new source and object file names to CFILES 10056 and OFILES respectively. 10057 10058 * configure.in: Add support for SVR4 makefile fragments. 10059 10060Tue Oct 22 19:00:23 1991 Steve Chamberlain (steve at cygnus.com) 10061 10062 * Makefile.in: Move RANLIB, AR and AR_FLAGS to where they can be 10063 over-ridden by config/hmake-* 10064 * configure.in: added m88kcvs to sysv list 10065 10066Fri Oct 4 01:29:08 1991 John Gilmore (gnu at cygnus.com) 10067 10068 * Makefile.in: Most hosts need strerror, but one or two don't, 10069 and they override these definitions in the host-dependent makefile 10070 fragment. 10071 * config/hmake-mach: The odd man out on strerror -- it's supplied. 10072 * strerror.c: New file. 10073 10074 * strtol.c, strtoul.c: Add strtol to libiberty, since Mach lacks 10075 it and bfd uses it. 10076 * configure.in, Makefile.in, config/hmake-mach: Only configure 10077 strtol & strotoul in on Mach. 10078 10079Tue Sep 3 06:36:23 1991 John Gilmore (gnu at cygint.cygnus.com) 10080 10081 * obstack.c: Merge with latest FSF version. 10082 10083 10084Local Variables: 10085version-control: never 10086End: 10087