ChangeLog revision 1.1.1.7
12018-06-19 Simon Marchi <simon.marchi@ericsson.com> 2 3 * configure.ac: Remove AC_PREREQ. 4 * configure: Re-generate. 5 * config.in: Re-generate. 6 72018-05-30 Jan Hubicka <hubicka@ucw.cz> 8 9 * simple-object.c (handle_lto_debug_sections): Add rename parameter. 10 (handle_lto_debug_sections_rename): New function. 11 (handle_lto_debug_sections_norename): New function. 12 (simple_object_copy_lto_debug_sections): Add rename parameter. 13 142018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de> 15 16 * splay-tree.c (splay_tree_compare_strings, 17 splay_tree_delete_pointers): New utility functions. 18 192018-05-10 Martin Liska <mliska@suse.cz> 20 21 PR bootstrap/64914 22 * md5.c: Use strict alignment with UBSAN_BOOTSTRAP. 23 242018-04-30 Daniel van Gerpen <daniel@vangerpen.de> 25 26 * argv.c (expandargv): Fix memory leak for copied argv. 27 282018-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 29 30 PR lto/81968 31 * simple-object.c (handle_lto_debug_sections): Keep .comment 32 section. 33 342018-03-02 David Malcolm <dmalcolm@redhat.com> 35 36 * cp-demangle.c: Update URL for g++ V3 ABI. 37 382018-01-20 Eli Zaretskii <eliz@gnu.org> 39 40 * simple-object-xcoff.c (simple_object_xcoff_find_sections): Use 41 ulong_type to avoid warning about 32-bit shift. 42 432018-01-11 Richard Biener <rguenther@suse.de> 44 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 45 46 PR lto/81968 47 * simple-object-common.h (struct simple_object_functions): 48 Change copy_lto_debug_sections callback signature. 49 * simple-object-elf.c (SHN_HIRESERVE, SHT_SYMTAB_SHNDX, 50 SHF_INFO_LINK): Add defines. 51 (simple_object_elf_copy_lto_debug_sections): Instead of 52 leaving not to be copied sections empty unnamed SHT_NULL 53 remove them from the target section headers and adjust section 54 reference everywhere. Handle SHN_XINDEX in the symbol table 55 processing properly. 56 * simple-object.c (handle_lto_debug_sections): Change 57 interface to return a modified string and handle renaming 58 of relocation sections. 59 602018-01-10 Daniel van Gerpen <daniel@vangerpen.de> 61 62 * argv.c (expandargv): Correct check for dynamically 63 allocated argv. 64 652018-01-03 Jakub Jelinek <jakub@redhat.com> 66 67 Update copyright years. 68 692017-01-02 Richard Biener <rguenther@suse.de> 70 71 PR lto/83452 72 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section): 73 Do not use UNDEF locals for removed symbols but instead just 74 define them in the first prevailing section and with no name. 75 Use the same gnu_lto_v1 name for all removed globals we promote to 76 WEAK UNDEFs so hpux can use a stub to provide this symbol. Clear 77 sh_info and sh_link in removed sections. 78 792017-10-30 Richard Biener <rguenther@suse.de> 80 81 PR lto/82757 82 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): 83 Strip two leading _s from the __gnu_lto_* symbols. 84 852017-10-24 Alan Modra <amodra@gmail.com> 86 87 PR lto/82687 88 PR lto/82575 89 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): 90 Only make __gnu_lto symbols hidden. 91 922017-10-20 Alan Modra <amodra@gmail.com> 93 94 PR lto/82575 95 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): 96 Make discarded non-local symbols weak and hidden. 97 982017-10-18 Jakub Jelinek <jakub@redhat.com> 99 100 PR lto/82598 101 * simple-object.c (handle_lto_debug_sections): Copy over also 102 .note.GNU-stack section with unchanged name. 103 * simple-object-elf.c (SHF_EXECINSTR): Define. 104 (simple_object_elf_copy_lto_debug_section): Drop SHF_EXECINSTR bit 105 on .note.GNU-stack section. 106 1072017-09-25 Nathan Sidwell <nathan@acm.org> 108 109 PR demangler/82195 110 * cp-demangle.c (d_encoding): Strip return type when name is a 111 LOCAL_NAME. 112 (d_local_name): Strip return type of enclosing TYPED_NAME. 113 * testsuite/demangle-expected: Add and adjust tests. 114 1152017-09-21 Nathan Sidwell <nathan@acm.org> 116 117 PR demangler/82195 118 * cp-demangle.c (d_name): Revert addition of 'toplevel' parm. 119 (has_return_type): Recurse for DEMANGLE_COMPONENT_LOCAL_NAME. 120 (d_encoding): Revert d_name change. Use is_fnqual_component_type 121 to strip modifiers that do not belong. 122 (d_special_name, d_class_enum_type): Revert d_name call change. 123 (d_expresion_1): Commonize DEMANGLE_COMPONENT_UNARY building. 124 (d_local_name): Revert parsing of a function type. 125 (d_print_comp_inner): An inner LOCAL_NAME might contain a 126 TEMPLATE. 127 * testsuite/demangle-expected: Add & adjust tests 128 1292017-09-15 Nathan Sidwell <nathan@acm.org> 130 131 PR demangler/82195 132 * cp-demangle.c (d_name): Add 'toplevel' parm. Pass to ... 133 (d_local_name): ... here. Parse trailing function args on nested 134 local_name. 135 (d_encoding, d_special_name, d_class_enum_type): Adjust d_name calls. 136 * testsuite/demangle-expected: Add tests. 137 1382017-09-15 Richard Biener <rguenther@suse.de> 139 140 PR lto/81968 141 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): 142 Iterate marking dependent sections necessary. 143 1442017-09-15 Nathan Sidwell <nathan@acm.org> 145 146 * cp-demangle.c (is_fnqual_component_type): Reimplement using 147 FNQUAL_COMPONENT_CASE. 148 (d_encoding): Hold bare_function_type in local var. 149 (d_local_name): Build name in both cases and build result once. 150 Collapse switch-if to single conditional. 151 (d_local_name): 152 153 * testsuite/demangle-expected: Realign blank lines with tests. 154 1552017-09-12 Jiong Wang <jiong.wang@arm.com> 156 157 * dwarfnames.c (DW_CFA_DUP): New define. 158 1592017-09-01 Martin Liska <mliska@suse.cz> 160 161 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): 162 Remove duplicite declaration. 163 1642017-08-31 Richard Biener <rguenther@suse.de> 165 166 PR lto/81968 167 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section): 168 Keep names of removed global symbols. 169 1702017-08-29 Tony Reix <tony.reix@atos.net> 171 172 * simple-object-xcoff.c (simple_object_xcoff_find_sections): 173 Improve .go_export csect handling. Don't make assumptions 174 on containing section or number of auxiliary entries. 175 1762017-08-28 Richard Biener <rguenther@suse.de> 177 178 PR lto/81968 179 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section): 180 Adjust field with for sh_type write, set SHF_EXCLUDE only for 181 removed sections. 182 1832017-08-22 Richard Biener <rguenther@suse.de> 184 185 PR lto/81925 186 * simple-object-elf.c (simple_object_elf_write_shdr): Adjust 187 type of sh_addralign and sh_entsize and properly write 188 sh_entsize as Elf_Addr. 189 (simple_object_elf_write_to_file): Read sh_entsize as Elf_Addr. 190 1912017-08-21 Richard Biener <rguenther@suse.de> 192 193 * simple-object-common.h (struct simple_object_functions): Add 194 copy_lto_debug_sections hook. 195 * simple-object.c: Include fcntl.h. 196 (handle_lto_debug_sections): New helper function. 197 (simple_object_copy_lto_debug_sections): New function copying 198 early LTO debug sections to regular debug sections in a new file. 199 (simple_object_start_write): Handle NULL segment_name. 200 * simple-object-coff.c (simple_object_coff_functions): Adjust 201 for not implemented copy_lto_debug_sections hook. 202 * simple-object-mach-o.c (simple_object_mach_o_functions): Likewise. 203 * simple-object-xcoff.c (simple_object_xcoff_functions): Likewise. 204 * simple-object-elf.c (SHT_NULL, SHT_SYMTAB, SHT_RELA, SHT_REL, 205 SHT_GROUP): Add various sectopn header types. 206 (SHF_EXCLUDE): Add flag. 207 (Elf32_External_Sym, Elf64_External_Sym): Add symbol struct. 208 (ELF_ST_BIND, ELF_ST_TYPE, ELF_ST_INFO): Add accessors. 209 (STT_OBJECT, STT_FUNC, STT_TLS, STT_GNU_IFUNC): Add Symbol types. 210 (STV_DEFAULT): Add symbol visibility. 211 (SHN_COMMON): Add special section index name. 212 (struct simple_object_elf_write): New. 213 (simple_object_elf_start_write): Adjust for new private data. 214 (simple_object_elf_write_shdr): Pass in values for all fields 215 we write. 216 (simple_object_elf_write_to_file): Adjust. Copy from recorded 217 section headers if requested. 218 (simple_object_elf_release_write): Release private data. 219 (simple_object_elf_copy_lto_debug_sections): Copy and rename sections 220 as denoted by PFN and all their dependences, symbols and relocations 221 to the empty destination file. 222 (simple_object_elf_functions): Adjust for copy_lto_debug_sections hook. 223 2242017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com> 225 226 * dwarfnames.c (DW_FIRST_IDX, DW_END_IDX, DW_IDX, DW_IDX_DUP): New. 227 2282017-06-07 Tony Reix <tony.reix@atos.net> 229 Matthieu Sarter <matthieu.sarter.external@atos.net> 230 David Edelsohn <dje.gcc@gmail.com> 231 232 * simple-object-xcoff.c (simple_object_xcoff_find_sections): 233 Search symbol table for .go_export symbol and apply pfn if found. 234 2352017-05-31 DJ Delorie <dj@redhat.com> 236 237 * configure.ac (strnlen): Add to AC_CHECK_DECLS. 238 * configure: Likewise. 239 * config.in: Add HACE_DECL_STRNLEN. 240 2412017-05-27 Iain Buclaw <ibuclaw@gdcproject.org> 242 243 * d-demangle.c (dlang_identifier): Prefix mangled init symbols 244 with `initializer for'. 245 * testsuite/demangle-expected: Update tests. 246 2472017-05-27 Iain Buclaw <ibuclaw@gdcproject.org> 248 249 * d-demangle.c (dlang_call_convention_p): Move declaration 250 before dlang_type. 251 (dlang_type): Handle function types. 252 * testsuite/d-demangle-expected: Add tests. 253 2542017-05-27 Iain Buclaw <ibuclaw@gdcproject.org> 255 256 * d-demangle.c (dlang_parse_real): Remove stack buffer, write 257 the demangled hexadecimal directly to string. 258 * testsuite/d-demangle-expected: Add tests. 259 2602017-05-24 Eli Zaretskii <eliz@gnu.org> 261 262 * waitpid.c (wait) [__MINGW32__]: Define as a macro 263 that calls _cwait, so that this function works on MinGW. 264 2652017-05-02 Iain Buclaw <ibuclaw@gdcproject.org> 266 267 * d-demangle.c (dlang_hexdigit): New function. 268 (ascii2hex): Remove function. 269 (dlang_parse_string): Update to call dlang_hexdigit. 270 * testsuite/d-demangle-expected: Add tests. 271 2722017-05-02 Iain Buclaw <ibuclaw@gdcproject.org> 273 274 * d-demangle.c (strtol): Remove declaration. 275 Updated all callers to use dlang_number. 276 (dlang_number): New function. 277 (dlang_value): Moved check for ISDIGIT into dlang_parse_integer. 278 * testsuite/d-demangle-expected: Add tests. 279 2802017-05-02 Iain Buclaw <ibuclaw@gdcproject.org> 281 282 * d-demangle.c (dlang_parse_symbol): Remove function. 283 (dlang_parse_qualified): New function. 284 (dlang_parse_mangle): New function. 285 (dlang_type): Update to call dlang_parse_qualified. 286 (dlang_identifier): Update to call either dlang_parse_qualified or 287 dlang_parse_mangle. 288 (dlang_type_modifier_p): Remove function. 289 (dlang_call_convention_p): Don't allow type modifiers in mangle. 290 (dlang_template_args): Update to call dlang_identifier. 291 (dlang_demangle): Update to call dlang_parse_mangle. 292 * testsuite/d-demangle-expected: Add tests. 293 2942017-05-01 Iain Buclaw <ibuclaw@gdcproject.org> 295 296 * d-demangle.c (dlang_value): Add comment explaining why cases for 297 digits are required. 298 * testsuite/d-demangle-expected: Update integer value tests. 299 3002017-05-01 Iain Buclaw <ibuclaw@gdcproject.org> 301 302 * d-demangle.c (dlang_parse_symbol): Skip over anonymous symbols. 303 * testsuite/d-demangle-expected: Add tests. 304 3052017-05-01 Iain Buclaw <ibuclaw@gdcproject.org> 306 307 * d-demangle.c (dlang_identifier): Handle template constraint symbols. 308 (dlang_parse_template): Only advance if template symbol prefix is 309 followed by a digit. 310 * testsuite/d-demangle-expected: Add tests. 311 3122017-05-01 Iain Buclaw <ibuclaw@gdcproject.org> 313 314 * d-demangle.c (dlang_attributes): Handle scope attributes. 315 * testsuite/d-demangle-expected: Add tests. 316 3172017-04-27 Jonathan Wakely <jwakely@redhat.com> 318 319 PR demangler/80513 320 * cp-demangle.c (d_number): Check for overflow. 321 * cplus-dem.c (consume_count): Fix overflow check. 322 (gnu_special): Check for underscore after thunk delta. 323 * testsuite/demangle-expected: Add tests for overflows and invalid 324 characters in thunks. 325 3262017-04-21 Mark Wielaard <mark@klomp.org> 327 328 * cp-demangle.c (MAX_RECURSION_COUNT): New constant. 329 (struct d_print_info): Add recursion field. 330 (d_print_init): Initialize recursion. 331 (d_print_comp): Check and update d_print_info recursion depth. 332 3332017-04-21 Mark Wielaard <mark@klomp.org> 334 335 * cp-demangle.c (d_substitution): Return NULL if d_add_substitution 336 fails. 337 3382017-04-21 Mark Wielaard <mark@klomp.org> 339 340 * cp-demangle.h (struct d_info): Remove did_subs field. 341 * cp-demangle.c (struct d_info_checkpoint): Likewise. 342 (d_template_param): Don't update did_subs. 343 (d_substitution): Likewise. 344 (d_checkpoint): Don't assign did_subs. 345 (d_backtrack): Likewise. 346 (cplus_demangle_init_info): Don't initialize did_subs. 347 3482017-03-27 Pedro Alves <palves@redhat.com> 349 350 * cp-demint.c (cplus_demangle_fill_component): Handle 351 DEMANGLE_COMPONENT_RVALUE_REFERENCE. 352 3532017-03-12 Mark Wielaard <mark@klomp.org> 354 355 * cp-demangle.c (cplus_demangle_fill_name): Initialize 356 demangle_component d_printing. 357 (cplus_demangle_fill_extended_operator): Likewise. 358 (cplus_demangle_fill_ctor): Likewise. 359 (cplus_demangle_fill_dtor): Likewise. 360 3612017-03-08 Mark Wielaard <mark@klomp.org> 362 363 PR demangler/70909 364 PR demangler/67264 365 * cp-demangle.c: Fix endless recursion. Pass 366 struct demangle_component as non const. 367 (d_make_empty): Initialize variable. 368 (d_print_comp_inner): Limit recursion. 369 (d_print_comp): Decrement variable. 370 * cp-demint.c (cplus_demangle_fill_component): Initialize 371 variable. 372 (cplus_demangle_fill_builtin_type): Likewise. 373 (cplus_demangle_fill_operator): Likewise. 374 * testsuite/demangle-expected: Add tests. 375 3762017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de> 377 378 PR PR c++/70182 379 * cp-demangle.c (d_unqualified_name): Handle "on" for 380 operator names. 381 * testsuite/demangle-expected: Add tests. 382 3832017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de> 384 385 PR c++/77489 386 * cp-demangle.c (d_discriminator): Handle discriminator >= 10. 387 * testsuite/demangle-expected: Add tests for discriminator. 388 3892017-01-04 Jakub Jelinek <jakub@redhat.com> 390 391 Update copyright years. 392 3932017-01-04 Alan Modra <amodra@gmail.com> 394 395 * Makefile.in (configure_deps): Update. 396 * configure: Regenerate. 397 3982016-12-13 Jakub Jelinek <jakub@redhat.com> 399 400 PR c++/78761 401 * cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto). 402 * testsuite/demangle-expected: Add test for decltype(auto). 403 4042016-12-12 Nathan Sidwell <nathan@acm.org> 405 406 PR c++/78252 407 * cp-demangle.c (struct d_print_info): Add is_lambda_arg field. 408 (d_print_init): Initialize it. 409 (d_print_comp_inner) <DEMANGLE_COMPONENT_TEMPLATE_PARAM>: Check 410 is_lambda_arg for auto. 411 <DEMANGLE_COMPONENT_REFERENCE, 412 DEMANGLE_COMPONENT_RVALUE_REFERENCE>: Skip smashing check when 413 is_lambda_arg. 414 <DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg 415 printing. 416 * testsuite/demangle-expected: Add lambda auto mangling cases. 417 4182016-12-06 DJ Delorie <dj@redhat.com> 419 420 * argv.c (expandargv): Check for directories passed as @-files. 421 4222016-11-30 David Malcolm <dmalcolm@redhat.com> 423 424 PR c/78498 425 * strndup.c (strlen): Delete decl. 426 (strnlen): Add decl. 427 (strndup): Call strnlen rather than strlen. 428 * xstrndup.c (xstrndup): Likewise. 429 4302016-11-29 Nathan Sidwell <nathan@acm.org> 431 432 * cp-demangle.c (d_print_comp_inner): Fix parameter indentation. 433 4342016-11-03 David Tolnay <dtolnay@gmail.com> 435 Mark Wielaard <mark@klomp.org> 436 437 * Makefile.in (CFILES): Add rust-demangle.c. 438 (REQUIRED_OFILES): Add rust-demangle.o. 439 * cplus-dem.c (libiberty_demanglers): Add rust_demangling case. 440 (cplus_demangle): Handle RUST_DEMANGLING. 441 (rust_demangle): New function. 442 * rust-demangle.c: New file. 443 * testsuite/Makefile.in (really-check): Add check-rust-demangle. 444 (check-rust-demangle): New rule. 445 * testsuite/rust-demangle-expected: New file. 446 4472016-11-15 Mark Wielaard <mark@klomp.org> 448 449 * cp-demangle.c (d_expression_1): Make sure third expression 450 exists for ?: and fold expressions. 451 * testsuite/demangle-expected: Add examples of strings that could 452 crash the demangler because of missing expression. 453 4542016-11-14 Mark Wielaard <mark@klomp.org> 455 456 * cplus-dem.c (demangle_signature): After 'H', template function, 457 no success and don't advance position if end of string reached. 458 (demangle_template): After 'z', template name, return zero on 459 premature end of string. 460 (gnu_special): Guard strchr against searching for zero characters. 461 (do_type): If member, only advance mangled string when 'F' found. 462 * testsuite/demangle-expected: Add examples of strings that could 463 crash the demangler by reading past end of input. 464 4652016-11-06 Mark Wielaard <mark@klomp.org> 466 467 * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local. 468 * configure: Regenerated. 469 4702016-11-07 Jason Merrill <jason@redhat.com> 471 472 * cp-demangle.c (is_fnqual_component_type): New. 473 (d_encoding, d_print_comp_inner, d_print_mod_list): Use it. 474 (FNQUAL_COMPONENT_CASE): New. 475 (d_make_comp, has_return_type, d_print_comp_inner) 476 (d_print_function_type): Use it. 477 (next_is_type_qual): New. 478 (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec. 479 4802016-11-02 Mark Wielaard <mjw@redhat.com> 481 482 * cplus-dem.c (demangle_signature): Move fall through comment. 483 (demangle_fund_type): Add fall through comment between 'G' and 'I'. 484 * hashtab.c (iterative_hash): Add fall through comments. 485 * regex.c (regex_compile): Add Fall through comment after '+'/'?'. 486 (byte_re_match_2_internal): Add Fall through comment after jump_n. 487 Change "Note fall through" to "Fall through". 488 (common_op_match_null_string_p): Return false after set_number_at 489 instead of fall through. 490 4912016-11-01 Jason Merrill <jason@redhat.com> 492 493 * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor. 494 4952016-10-31 Mark Wielaard <mjw@redhat.com> 496 497 * cplus-dem.c (ada_demangle): Initialize demangled to NULL and 498 XDELETEVEC demangled when unknown. 499 5002016-09-19 Andrew Stubbs <ams@codesourcery.com> 501 502 * pex-win32.c (argv_to_cmdline): Quote zero-length parameters. 503 * testsuite/test-pexecute.c (main): Insert check for zero-length parameters. 504 5052016-09-10 Mark Wielaard <mjw@redhat.com> 506 507 * cp-demangle.c (d_substitution): Change struct demangle_component 508 variable name from c to dc. 509 5102016-08-12 Marek Polacek <polacek@redhat.com> 511 512 PR c/7652 513 * cp-demangle.c (d_print_mod): Add FALLTHRU. 514 5152016-08-04 Marcel B��hme <boehme.marcel@gmail.com> 516 517 PR c++/71696 518 * cplus-dem.c: Prevent infinite recursion when there is a cycle 519 in the referencing of remembered mangled types. 520 (work_stuff): New stack to keep track of the remembered mangled 521 types that are currently being processed. 522 (push_processed_type): New method to push currently processed 523 remembered type onto the stack. 524 (pop_processed_type): New method to pop currently processed 525 remembered type from the stack. 526 (work_stuff_copy_to_from): Copy values of new variables. 527 (delete_non_B_K_work_stuff): Free stack memory. 528 (demangle_args): Push/Pop currently processed remembered type. 529 (do_type): Do not demangle a cyclic reference and push/pop 530 referenced remembered type. 531 5322016-07-29 Aldy Hernandez <aldyh@redhat.com> 533 534 * make-relative-prefix.c (make_relative_prefix_1): Fall back to 535 malloc if alloca argument is greater than MAX_ALLOCA_SIZE. 536 5372016-07-15 Jason Merrill <jason@redhat.com> 538 539 * cp-demangle.c (cplus_demangle_operators): Add f[lrLR]. 540 (d_expression_1): Handle them. 541 (d_maybe_print_fold_expression): New. 542 (d_print_comp_inner): Use it. 543 (d_index_template_argument): Handle negative index. 544 545 * cp-demangle.c (cplus_demangle_operators): Add sP and sZ. 546 (d_print_comp_inner): Handle them. 547 (d_template_args_1): Split out from d_template_args. 548 (d_args_length): New. 549 5502016-07-13 Marcel B��hme <boehme.marcel@gmail.com> 551 552 PR c++/70926 553 * cplus-dem.c: Handle large values and overflow when demangling 554 length variables. 555 (demangle_template_value_parm): Read only until end of mangled string. 556 (do_hpacc_template_literal): Likewise. 557 (do_type): Handle overflow when demangling array indices. 558 5592016-06-12 Brooks Moses <bmoses@google.com> 560 561 * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length 562 VLAs. 563 5642016-05-31 Alan Modra <amodra@gmail.com> 565 566 * xmemdup.c (xmemdup): Use xmalloc rather than xcalloc. 567 5682016-05-19 Jakub Jelinek <jakub@redhat.com> 569 570 PR c++/70498 571 * cp-demangle.c (d_expression_1): Formatting fix. 572 5732016-05-18 Artemiy Volkov <artemiyv@acm.org> 574 575 * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference 576 constant. 577 (demangle_template_value_parm): Handle tk_rvalue_reference 578 type kind. 579 (do_type): Support 'O' type id (rvalue references). 580 581 * testsuite/demangle-expected: Add tests. 582 5832016-05-02 Marcel B��hme <boehme.marcel@gmail.com> 584 585 PR c++/70498 586 * cp-demangle.c: Parse numbers as integer instead of long to avoid 587 overflow after sanity checks. Include <limits.h> if available. 588 (INT_MAX): Define if necessary. 589 (d_make_template_param): Takes integer argument instead of long. 590 (d_make_function_param): Likewise. 591 (d_append_num): Likewise. 592 (d_identifier): Likewise. 593 (d_number): Parse as and return integer. 594 (d_compact_number): Handle overflow. 595 (d_source_name): Change variable type to integer for parsed number. 596 (d_java_resource): Likewise. 597 (d_special_name): Likewise. 598 (d_discriminator): Likewise. 599 (d_unnamed_type): Likewise. 600 * testsuite/demangle-expected: Add regression test cases. 601 6022016-04-30 Oleg Endo <olegendo@gcc.gnu.org> 603 604 * configure: Remove SH5 support. 605 6062016-04-08 Marcel B��hme <boehme.marcel@gmail.com> 607 608 PR c++/69687 609 * cplus-dem.c: Include <limits.h> if available. 610 (INT_MAX): Define if necessary. 611 (remember_type, remember_Ktype, register_Btype, string_need): 612 Abort if we detect cases where we the size of the allocation would 613 overflow. 614 615 PR c++/70492 616 * cplus-dem.c (gnu_special): Handle case where consume_count returns 617 -1. 618 6192016-03-31 Mikhail Maltsev <maltsevm@gmail.com> 620 Marcel Bohme <boehme.marcel@gmail.com> 621 622 PR c++/67394 623 PR c++/70481 624 * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing 625 btypevec/ktypevec. 626 * testsuite/demangle-expected: Add coverage tests. 627 6282016-01-27 Iain Buclaw <ibuclaw@gdcproject.org> 629 630 * d-demangle.c (dlang_call_convention): Handle extern Objective-C 631 function calling convention. 632 (dlang_call_convention_p): Likewise. 633 (dlang_type): Likewise. 634 * testsuite/d-demangle-expected: Add coverage tests. 635 6362016-01-27 Iain Buclaw <ibuclaw@gdcproject.org> 637 638 * d-demangle.c (dlang_function_args): Append ',' for variadic functions 639 only if parameters were seen before the elipsis symbol. 640 * testsuite/d-demangle-expected: Add coverage test for parameter-less 641 variadic functions. 642 6432016-01-27 Iain Buclaw <ibuclaw@gdcproject.org> 644 645 * d-demangle.c (dlang_type): Handle function types only in the context 646 of seeing a pointer type symbol. 647 * testsuite/d-demangle-expected: Update function pointer tests. 648 6492016-01-05 Mike Frysinger <vapier@gentoo.org> 650 651 * argv.c (dupargv): Change arg to char * const *. Update comment. 652 (writeargv, countargv): Likewise. 653 * functions.texi (dupargv, writeargv, countargv): Likewise. 654 6552016-01-05 Mike Frysinger <vapier@gentoo.org> 656 657 * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup. 658 6592015-12-28 Patrick Palka <ppalka@gcc.gnu.org> 660 661 * crc32.c: In the documentation, don't refer to GDB's 662 now-nonexistent crc32 implementation. In the table-generation 663 program embedded within the documentation, change the type of 664 the induction variables i and j from int to unsigned int, to 665 avoid undefined behavior. 666 6672015-12-21 Nick Clifton <nickc@redhat.com> 668 669 PR 66827 670 * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left 671 shifting. 672 6732015-11-27 Pedro Alves <palves@redhat.com> 674 675 PR other/61321 676 PR other/61233 677 * cp-demangle.c (d_demangle_callback, d_make_comp): Handle 678 DEMANGLE_COMPONENT_CONVERSION. 679 (is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION 680 instead of DEMANGLE_COMPONENT_CAST. 681 (d_operator_name): Return a DEMANGLE_COMPONENT_CONVERSION 682 component if handling a conversion. 683 (d_count_templates_scopes, d_print_comp_inner): Handle 684 DEMANGLE_COMPONENT_CONVERSION. 685 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_CONVERSION instead 686 of DEMANGLE_COMPONENT_CAST. 687 (d_print_cast): Rename as ... 688 (d_print_conversion): ... this. Adjust comments. 689 (d_print_cast): Rewrite - simply print the left subcomponent. 690 * cp-demint.c (cplus_demangle_fill_component): Handle 691 DEMANGLE_COMPONENT_CONVERSION. 692 693 * testsuite/demangle-expected: Add tests. 694 6952015-11-12 Mike Stump <mikestump@comcast.net> 696 697 * Makefile.in (etags tags TAGS): Use && instead of ;. 698 6992015-11-09 Alan Modra <amodra@gmail.com> 700 701 * configure.ac: Check size of size_t. 702 * configure: Regenerate. 703 * config.in: Regenerate. 704 7052015-11-09 Alan Modra <amodra@gmail.com> 706 707 * obstack.c (_obstack_newchunk): Silence -Wc++compat warning. 708 (_obstack_begin_worker): Likewise. Move assignment to h->chunk 709 after alloc failure check. 710 7112015-11-09 Alan Modra <amodra@gmail.com> 712 713 PR gdb/17133 714 * obstack.c (__alignof__): Expand alignof_type from alignof.h. 715 (obstack_exit_failure): Don't use exitfail.h. 716 (_): Include libintl.h when HAVE_LIBINTL_H and nls enabled. 717 Provide default. Don't include gettext.h. 718 (_Noreturn): Define. 719 * obstacks.texi: Adjust node references to external libc info files. 720 7212015-11-09 Alan Modra <amodra@gmail.com> 722 723 PR gdb/17133 724 * obstack.c: Import current gnulib file. 725 * obstacks.texi: Updated doc, from glibc's manual/memory.texi. 726 7272015-11-06 Joel Brobecker <brobecker@adacore.com> 728 729 * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on 730 Android hosts. 731 * configure: Regenerate. 732 7332015-10-28 Jason Merrill <jason@redhat.com> 734 735 * Makefile.in (TAGS): Fix for separate build directory. 736 7372015-10-18 Roland McGrath <roland@gnu.org> 738 Iain Sandoe <iain@codesourcery.com> 739 740 PR other/63758 741 * pex-unix.c: Obtain the environment interface from settings in 742 environ.h rather than in-line code. Update copyright date. 743 * setenv.c: Likewise. 744 * xmalloc.c: Likewise. 745 7462015-09-30 Jason Merrill <jason@redhat.com> 747 748 * cp-demangle.c (d_cv_qualifiers): Dx means transaction_safe. 749 (cplus_demangle_type): Let d_cv_qualifiers handle it. 750 (d_dump, d_make_comp, has_return_type, d_encoding) 751 (d_count_templates_scopes, d_print_comp_inner) 752 (d_print_mod_list, d_print_mod, d_print_function_type) 753 (is_ctor_or_dtor): Handle DEMANGLE_COMPONENT_TRANSACTION_SAFE. 754 7552015-08-15 Ian Lance Taylor <iant@google.com> 756 757 * cp-demangle.c (d_abi_tags): Preserve di->last_name across any 758 ABI tags. 759 7602015-08-11 Iain Buclaw <ibuclaw@gdcproject.org> 761 762 * d-demangle.c (dlang_parse_real): Remove call to strtod. 763 (strtod): Remove declaration. 764 * testsuite/d-demangle-expected: Update float and complex literal 765 tests to check correct hexadecimal demangling. 766 7672015-07-13 Mikhail Maltsev <maltsevm@gmail.com> 768 769 * cp-demangle.c (d_dump): Fix syntax error. 770 (d_identifier): Adjust type of len to match d_source_name. 771 (d_expression_1): Fix out-of-bounds access. Check code variable for 772 NULL before dereferencing it. 773 (d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER. 774 (d_print_comp_inner): Add NULL pointer check. 775 * cp-demangle.h (d_peek_next_char): Define as inline function when 776 CHECK_DEMANGLER is defined. 777 (d_advance): Likewise. 778 * testsuite/demangle-expected: Add new testcases. 779 7802015-07-09 Uros Bizjak <ubizjak@gmail.com> 781 782 * getruntime.c (RUSAGE_SELF): Define if not already defined. 783 (get_runtime): Use RUSAGE_SELF as argument 1 of getrusage call. 784 7852015-06-01 Jason Merrill <jason@redhat.com> 786 787 * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor 788 extended qualifier. 789 7902015-05-22 Yunlian Jiang <yunlian@google.com> 791 792 * configure.ac: Add AC_GNU_SOURCE. 793 * Makefile.in (COMPILE.c): Add -D_GNU_SOURCE. 794 * configure, config.in: Rebuild. 795 * floatformat.c (_GNU_SOURCE): Don't define if already defined. 796 7972015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 798 799 * d-demangle.c (dlang_symbol_kinds): New enum. 800 (dlang_parse_symbol): Update signature. Handle an ambiguity between 801 pascal functions and template value arguments. Only check for a type 802 if parsing a function, or at the top level. Return failure if the 803 entire symbol was not successfully demangled. 804 (dlang_identifier): Update signature. Handle an ambiguity between two 805 adjacent digits in a mangled symbol string. 806 (dlang_type): Update call to dlang_parse_symbol. 807 (dlang_template_args): Likewise. 808 (dlang_parse_template): Likewise. 809 (dlang_demangle): Likewise. 810 * testsuite/d-demangle-expected: Fix bad tests found, and add problematic 811 examples to the unittests. 812 8132015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 814 815 * d-demangle.c (dlang_template_args): Skip over specialized template 816 parameters in mangled symbol. 817 * testsuite/d-demangle-expected: Add coverage and unittest for specialized 818 template parameters. 819 8202015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 821 822 * d-demangle.c (dlang_type): Handle cent and ucent types. 823 * testsuite/d-demangle-expected: Add coverage tests for cent and ucent. 824 8252015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 826 827 * d-demangle.c (dlang_attributes): Handle return attributes, ignoring 828 return parameters in the mangled string. Return NULL if have encountered 829 an unknown attribute. 830 (dlang_function_args): Handle return parameters in the mangled string. 831 * testsuite/d-demangle-expected: Add coverage tests for functions with 832 return parameters and return attributes. 833 8342015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 835 836 * d-demangle.c (dlang_identifier): Check encoded length of identifier 837 to verify strncmp matches entire string. 838 * testsuite/d-demangle-expected: Fix wrong test for postblit symbol. 839 8402015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 841 842 * d-demangle.c (dlang_type_modifiers): New function. 843 (dlang_type_modifier_p): New function. 844 (dlang_call_convention_p): Ignore any kind of type modifier. 845 (dlang_type): Handle and emit the type modifier after delegate types. 846 (dlang_parse_symbol): Handle and emit the type modifier after the symbol. 847 * testsuite/d-demangle-expected: Add coverage tests for all valid 848 usages of function symbols with type modifiers. 849 8502015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 851 852 * d-demangle.c (dlang_call_convention): Return NULL if have reached the 853 end of the symbol, but expected something to read. 854 (dlang_attributes): Likewise. 855 (dlang_function_type): Likewise. 856 (dlang_type): Likewise. 857 (dlang_identifier): Likewise. 858 (dlang_value): Likewise. 859 8602015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 861 862 * d-demangle.c (dlang_parse_string): Represent embedded whitespace or 863 non-printable characters as hex or escape sequences. 864 * testsuite/d-demangle-expected: Add test for templates with tabs and 865 newlines embedded into the signature. 866 8672015-05-08 Joel Brobecker <brobecker@adacore.com> 868 869 * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined 870 but not HAVE_SYS_TIME_H. 871 8722015-04-22 Eli Zaretskii <eliz@gnu.org> 873 874 * setenv.c <environ>: Declare only if not a macro. 875 8762015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com> 877 878 * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS. 879 8802015-04-10 Jakub Jelinek <jakub@redhat.com> 881 Iain Sandoe <iain@codesourcery.com> 882 883 PR target/65351 884 * configure: Regenerate. 885 8862015-04-07 Jakub Jelinek <jakub@redhat.com> 887 Iain Sandoe <iain@codesourcery.com> 888 889 PR target/65351 890 * configure: Regenerate. 891 8922015-01-19 Eli Zaretskii <eliz@gnu.org> 893 894 * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't 895 macros. 896 8972014-12-24 Uros Bizjak <ubizjak@gmail.com> 898 Ben Elliston <bje@au.ibm.com> 899 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 900 901 * xasprintf.c: New file. 902 * Makefile.in (CFILES): Add xasprintf.c. 903 (REQUIRED_OFILES): Add xasprintf.$(objext). 904 (xasprintf.$(objext)): New target. 905 * functions.texi: Regenerate. 906 9072014-12-11 Uros Bizjak <ubizjak@gmail.com> 908 Ben Elliston <bje@au.ibm.com> 909 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 910 911 * xvasprintf.c: New file. 912 * vprintf-support.h: Likewise. 913 * vprintf-support.c: Likewise. 914 * Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c. 915 (REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext). 916 (vprintf-support.$(objext), xvasprintf.$(objext)): New targets. 917 (vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h. 918 * functions.texi: Regenerate. 919 * vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size. 920 9212014-11-22 John David Anglin <danglin@gcc.gnu.org> 922 923 PR other/63694 924 * configure.ac: Check for strtol, strtoul, strtoll and strtoull 925 declarations. 926 * configure: Regenerated. 927 9282014-11-12 Kirill Yukhin <kirill.yukhin@intel.com> 929 930 * testsuite/test-strtol.c (run_tests): Cast strtol return to 931 unsigned long. 932 9332014-11-11 Anthony Brandon <anthony.brandon@gmail.com> 934 Manuel L��pez-Ib����ez <manu@gcc.gnu.org> 935 936 PR driver/36312 937 * filename_cmp.c (canonical_filename_eq): New function to check if 938 file names are the same. 939 * functions.texi: Updated with documentation for new function. 940 9412014-11-11 David Malcolm <dmalcolm@redhat.com> 942 943 * ChangeLog.jit: New. 944 9452014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 946 947 * sigsetmask.c (_POSIX_SOURCE): Remove. 948 9492014-10-28 Yury Gribov <y.gribov@samsung.com> 950 951 * strtoll.c: New file. 952 * strtoull.c: New file. 953 * configure.ac: Add long long checks. Add harness for strtoll and 954 strtoull. Check decls for strtol, strtoul, strtoll, strtoull. 955 * Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull. 956 * config.in: Regenerate. 957 * configure: Regenerate. 958 * functions.texi: Regenerate. 959 * testsuite/Makefile.in (check-strtol): New rule. 960 (test-strtol): Likewise. 961 (mostlyclean): Clean up strtol test. 962 * testsuite/test-strtol.c: New test. 963 9642014-10-15 David Malcolm <dmalcolm@redhat.com> 965 966 * choose-temp.c (choose_tmpdir): Remove now-redundant local 967 copy of prototype. 968 * functions.texi: Regenerate. 969 * make-temp-file.c (choose_tmpdir): Convert return type from 970 char * to const char * - given that this returns a pointer to 971 a memoized allocation, the caller must not touch it. 972 9732014-10-14 Joel Brobecker <brobecker@adacore.com> 974 975 * d-demangle.c: Replace strtold with strtod in global comment. 976 (strtold): Remove declaration. 977 (strtod): New declaration. 978 (dlang_parse_real): Declare value as double instead of long 979 double. Replace call to strtold by call to strtod. 980 Update format in call to snprintf. 981 9822014-09-26 Jason Merrill <jason@redhat.com> 983 984 * cp-demangle.c (d_substitution): Handle abi tags on abbreviation. 985 9862014-09-26 Max Ostapenko <m.ostapenko@partner.samsung.com> 987 988 * pex-common.h (struct pex_funcs): Add new parameter for open_write field. 989 * pex-unix.c (pex_unix_open_write): Add support for new parameter. 990 * pex-djgpp.c (pex_djgpp_open_write): Likewise. 991 * pex-win32.c (pex_win32_open_write): Likewise. 992 * pex-common.c (pex_run_in_environment): Likewise. 993 9942014-09-23 Iain Buclaw <ibuclaw@gdcproject.org> 995 996 * Makefile.in (CFILES): Add d-demangle.c. 997 (REQUIRED_OFILES): Add d-demangle.o. 998 * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case. 999 (cplus_demangle): Likewise. 1000 * d-demangle.c: New file. 1001 * testsuite/Makefile.in (really-check): Add check-d-demangle. 1002 * testsuite/d-demangle-expected: New file. 1003 10042014-09-19 Ian Lance Taylor <iant@google.com> 1005 1006 * simple-object-elf.c (simple_object_elf_write_ehdr): Correctly 1007 handle objects with more than SHN_LORESERVE sections. 1008 (simple_object_elf_write_shdr): Add sh_link parameter. 1009 (simple_object_elf_write_to_file): Correctly handle objects with 1010 more than SHN_LORESERVE sections. 1011 10122014-08-29 Andrew Burgess <aburgess@broadcom.com> 1013 1014 * cp-demangle.c (d_dump): Only access field from s_fixed part of 1015 the union for DEMANGLE_COMPONENT_FIXED_TYPE. 1016 (d_count_templates_scopes): Likewise. 1017 10182014-08-13 Gary Benson <gbenson@redhat.com> 1019 1020 * testsuite/demangler-fuzzer.c: New file. 1021 * testsuite/Makefile.in (fuzz-demangler): New rule. 1022 (demangler-fuzzer): Likewise. 1023 (mostlyclean): Clean up demangler fuzzer. 1024 10252014-06-11 Andrew Burgess <aburgess@broadcom.com> 1026 1027 * cplus-dem.c (do_type): Call string_delete even if the call to 1028 demangle_template fails. 1029 10302014-06-01 Ray Donnelly <mingw.android@gmail.com> 1031 1032 * pex-win32.c (argv_to_cmdline): Don't quote 1033 args unnecessarily 1034 10352014-05-28 Pedro Alves <palves@redhat.com> 1036 1037 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM 1038 and DEMANGLE_COMPONENT_NUMBER. 1039 10402014-05-22 Thomas Schwinge <thomas@codesourcery.com> 1041 1042 * testsuite/demangle-expected: Fix last commit. 1043 10442014-05-14 Andrew Burgess <aburgess@broadcom.com> 1045 1046 * cplus-dmem.c (internal_cplus_demangle): Free any resources 1047 allocated by possible previous call to gnu_special. 1048 (squangle_mop_up): Reset pointers to NULL after calling free. 1049 * testsuite/demangle-expected: New test case. 1050 10512014-05-08 Gary Benson <gbenson@redhat.com> 1052 1053 * cp-demangle.c (struct d_component_stack): New structure. 1054 (struct d_print_info): New field component_stack. 1055 (d_print_init): Initialize the above. 1056 (d_print_comp_inner): Renamed from d_print_comp. 1057 Do not restore template stack if it would cause a loop. 1058 (d_print_comp): New function. 1059 * testsuite/demangle-expected: New test cases. 1060 10612014-04-17 Jakub Jelinek <jakub@redhat.com> 1062 1063 PR sanitizer/56781 1064 * maint-tool: Also emit rule for noasan/ subdirectory. 1065 * configure.ac (NOASANFLAG): Set and substitute. 1066 * Makefile.in: Regenerated. 1067 (NOASANFLAG): Set. 1068 (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic 1069 subdir. 1070 (stamp-noasandir): New goal. 1071 * configure: Regenerated. 1072 10732014-04-01 Richard Biener <rguenther@suse.de> 1074 1075 * simple-object.c (simple_object_internal_write): Handle 1076 EINTR and short writes. 1077 10782014-03-28 Richard Biener <rguenther@suse.de> 1079 1080 * simple-object.c (simple_object_internal_read): Handle 1081 EINTR and short reads. 1082 10832014-03-13 Uros Bizjak <ubizjak@gmail.com> 1084 1085 * regex.c (bzero) [!_LIBC]: Define without coma expression. 1086 (regerror): Cast the call to memcpy to (void) to avoid unused 1087 value warnings. 1088 10892014-01-28 Thomas Schwinge <thomas@codesourcery.com> 1090 1091 * cp-demangle.c (d_demangle_callback): Put an abort call in place, 1092 to help the compiler. 1093 10942014-01-21 Tom Tromey <tromey@redhat.com> 1095 1096 * _doprint.c (checkit): Use stdarg, not VA_* macros. 1097 * asprintf.c (asprintf): Use stdarg, not VA_* macros. 1098 * concat.c (concat_length, concat_copy, concat_copy2, concat) 1099 (reconcat): Use stdarg, not VA_* macros. 1100 * snprintf.c (snprintf): Use stdarg, not VA_* macros. 1101 * vasprintf.c (checkit): Use stdarg, not VA_* macros. 1102 * vsnprintf.c (checkit): Use stdarg, not VA_* macros. 1103 11042014-01-06 Mike Frysinger <vapier@gentoo.org> 1105 1106 PR other/56780 1107 * configure.ac: Delete target_header_dir assignment. 1108 * configure: Regenerated. 1109 11102014-01-06 Gary Benson <gbenson@redhat.com> 1111 1112 * cp-demangle.c (struct d_print_info): New fields 1113 next_saved_scope, copy_templates, next_copy_template and 1114 num_copy_templates. 1115 (d_count_templates): New function. 1116 (d_print_init): New parameter "dc". 1117 Estimate numbers of templates and scopes required. 1118 (d_print_free): Removed function. 1119 (cplus_demangle_print_callback): Allocate stack for 1120 templates and scopes. Removed call to d_print_free. 1121 (d_copy_templates): Removed function. 1122 (d_save_scope): New function. 1123 (d_get_saved_scope): Likewise. 1124 (d_print_comp): Replace state saving/restoring code with 1125 calls to d_save_scope and d_get_saved_scope. 1126 11272013-12-23 Bill Maddox <maddox@google.com> 1128 1129 * cp-demangle.c (cplus_demangle_fill_ctor,cplus_demangle_fill_dtor): 1130 Handle unified ctor/dtor. 1131 (d_ctor_dtor_name): Handle unified ctor/dtor. 1132 11332013-11-22 Cary Coutant <ccoutant@google.com> 1134 1135 PR other/59195 1136 * cp-demangle.c (struct d_info_checkpoint): New struct. 1137 (struct d_print_info): Add current_template field. 1138 (d_operator_name): Set flag when processing a conversion 1139 operator. 1140 (cplus_demangle_type): When processing <template-args> for 1141 a conversion operator, backtrack if necessary. 1142 (d_expression_1): Renamed from d_expression. 1143 (d_expression): New wrapper around d_expression_1. 1144 (d_checkpoint): New function. 1145 (d_backtrack): New function. 1146 (d_print_init): Initialize current_template. 1147 (d_print_comp): Set current_template. 1148 (d_print_cast): Put current_template in scope for 1149 printing conversion operator name. 1150 (cplus_demangle_init_info): Initialize is_expression and 1151 is_conversion. 1152 * cp-demangle.h (struct d_info): Add is_expression and 1153 is_conversion fields. 1154 * testsuite/demangle-expected: New test cases. 1155 11562013-11-15 Andreas Schwab <schwab@linux-m68k.org> 1157 1158 * configure: Regenerate. 1159 11602013-11-12 Uros Bizjak <ubizjak@gmail.com> 1161 1162 * cp-demangle.c (d_copy_templates): Cast result of malloc 1163 to (struct d_print_template *). 1164 (d_print_comp): Cast result of realloc to (struct d_saved scope *). 1165 11662013-10-29 Marc Glisse <marc.glisse@inria.fr> 1167 1168 PR tree-optimization/58689 1169 * concat.c: Remove note about xmalloc. 1170 11712013-10-27 Gerald Pfeifer <gerald@pfeifer.com> 1172 1173 * testsuite/test-demangle.c: Include unistd.h. 1174 11752013-10-25 Gary Benson <gbenson@redhat.com> 1176 1177 * cp-demangle.c (struct d_saved_scope): New structure. 1178 (struct d_print_info): New fields saved_scopes and 1179 num_saved_scopes. 1180 (d_print_init): Initialize the above. 1181 (d_print_free): New function. 1182 (cplus_demangle_print_callback): Call the above. 1183 (d_copy_templates): New function. 1184 (d_print_comp): New variables saved_templates and 1185 need_template_restore. 1186 [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]: 1187 Capture scope the first time the component is traversed, and use the 1188 captured scope for subsequent traversals. 1189 * testsuite/demangle-expected: Add regression test. 1190 11912013-10-23 Gerald Pfeifer <gerald@pfeifer.com> 1192 1193 * testsuite/test-expandargv.c: Include unistd.h. 1194 11952013-10-15 David Malcolm <dmalcolm@redhat.com> 1196 1197 * configure.ac: If --enable-host-shared, use -fPIC. 1198 * configure: Regenerate. 1199 12002013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com> 1201 1202 * cp-demangle.c (d_name): Demangle local-source-names. 1203 * testsuite/demangle-expected: New test. 1204 12052013-09-10 Paolo Carlini <paolo.carlini@oracle.com> 1206 1207 PR bootstrap/58386 1208 Revert: 1209 1210 2013-09-10 Gary Benson <gbenson@redhat.com> 1211 1212 * cp-demangle.c: Include hashtab.h. 1213 (struct d_print_info): New field saved_scopes. 1214 (d_print_init): Initialize the above. 1215 (d_print_free): New function. 1216 (cplus_demangle_print_callback): Call the above. 1217 (struct d_saved_scope): New structure. 1218 (d_store_scope): New function. 1219 (d_free_scope) Likewise. 1220 (d_restore_scope) Likewise. 1221 (d_hash_saved_scope) Likewise. 1222 (d_equal_saved_scope) Likewise. 1223 (d_print_comp): New variable saved_scope. 1224 [DEMANGLE_COMPONENT_REFERENCE, 1225 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first 1226 time the component is traversed, and use the captured scope for 1227 subsequent traversals. 1228 * testsuite/demangle-expected: Add regression test. 1229 12302013-09-10 Gary Benson <gbenson@redhat.com> 1231 1232 * cp-demangle.c: Include hashtab.h. 1233 (struct d_print_info): New field saved_scopes. 1234 (d_print_init): Initialize the above. 1235 (d_print_free): New function. 1236 (cplus_demangle_print_callback): Call the above. 1237 (struct d_saved_scope): New structure. 1238 (d_store_scope): New function. 1239 (d_free_scope) Likewise. 1240 (d_restore_scope) Likewise. 1241 (d_hash_saved_scope) Likewise. 1242 (d_equal_saved_scope) Likewise. 1243 (d_print_comp): New variable saved_scope. 1244 [DEMANGLE_COMPONENT_REFERENCE, 1245 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first 1246 time the component is traversed, and use the captured scope for 1247 subsequent traversals. 1248 * testsuite/demangle-expected: Add regression test. 1249 12502013-08-20 Alan Modra <amodra@gmail.com> 1251 1252 * floatformat.c (floatformat_ibm_long_double): Rename to.. 1253 (floatformat_ibm_long_double_big): ..this. 1254 (floatformat_ibm_long_double_little): New. 1255 12562013-07-09 Tristan Gingold <gingold@adacore.com> 1257 1258 * makefile.vms (OBJS): Add dwarfnames.obj 1259 12602013-05-31 Matt Burgess <matthew@linuxfromscratch.org> 1261 1262 PR other/56780 1263 * configure.ac: Move test for --enable-install-libiberty 1264 outside of the 'with_target_subdir' test so that it actually gets 1265 run. Add output messages to show the test result. 1266 * configure: Regenerate. 1267 * Makefile.in (install_to_libdir): Place the 1268 installation of the libiberty library in the same guard as that 1269 used for the headers to prevent it being installed unless 1270 requested via --enable-install-libiberty. 1271 12722013-05-06 David Edelsohn <dje.gcc@gmail.com> 1273 Peter Bergner <bergner@vnet.ibm.com> 1274 Segher Boessenkool <segher@kernel.crashing.org> 1275 Jakub Jelinek <jakub@redhat.com> 1276 1277 * hashtab.c (hash_pointer): Remove conditional and avoid 1278 unexecuted shift equal to wordsize. 1279 12802013-04-22 Andi Kleen <ak@linux.intel.com> 1281 1282 * hashtab.c (hash_pointer): Move to end of file and reimplement. 1283 12842013-04-03 Jason Merrill <jason@redhat.com> 1285 1286 * cp-demangle.c (cplus_demangle_type): Fix function quals. 1287 (d_pointer_to_member_type): Simplify. 1288 1289 Demangle C++11 ref-qualifier. 1290 * cp-demangle.c (d_ref_qualifier): New. 1291 (d_nested_name, d_function_type): Use it. 1292 (d_parmlist): Don't get confused by a ref-qualifier. 1293 (cplus_demangle_type): Reorder ref-qualifier. 1294 (d_pointer_to_member_type): Likewise. 1295 (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and 1296 DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS. 1297 (d_make_comp, has_return_type, d_encoding): Likewise. 1298 (d_print_comp, d_print_mod_list, d_print_mod): Likewise. 1299 (d_print_function_type, is_ctor_or_dtor): Likewise. 1300 13012013-03-27 Kai Tietz <ktietz@redhat.com> 1302 1303 * configure: Regenerated. 1304 13052013-03-06 Tobias Burnus <burnus@net-b.de> 1306 1307 * libiberty.texi: Update comment, remove lowersections. 1308 * obstacks.texi: Regenerate. 1309 13102013-03-05 Jakub Jelinek <jakub@redhat.com> 1311 1312 PR middle-end/56526 1313 * simple-object-mach-o.c (simple_object_mach_o_segment): Initialize 1314 wrapper_sect_offset to avoid a warning. 1315 13162013-03-01 Andreas Schwab <schwab@linux-m68k.org> 1317 1318 * obstacks.texi (Obstacks): Trim @node to only contain the 1319 node name. 1320 * libiberty.texi (Obstacks): Lower section. 1321 13222013-02-14 Jason Merrill <jason@redhat.com> 1323 1324 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG. 1325 (d_print_comp): Likewise. 1326 13272013-02-09 Jakub Jelinek <jakub@redhat.com> 1328 1329 PR other/56245 1330 * regex.c (PTR_INT_TYPE): Define. 1331 (EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE. 1332 13332013-01-31 Kai Tietz <ktietz@redhat.com> 1334 1335 PR other/54620 1336 * sha1.c (sha1_process_block): Handle case that size_t is 1337 a wider-integer-scalar as a 32-bit unsigned integer. 1338 1339 PR other/53413 1340 * md5.c (md5_process_block): Handle case that size_t is 1341 a wider-integer-scalar a 32-bit unsigned integer. 1342 13432013-01-04 Ian Lance Taylor <iant@google.com> 1344 1345 PR other/54800 1346 * simple-object-mach-o.c (simple_object_mach_o_segment): Don't 1347 bother to zero out a buffer we are about to set anyhow. 1348 13492013-01-01 David Edelsohn <dje.gcc@gmail.com> 1350 1351 * simple-object-xcoff.c: New file. 1352 * Makefile.in: Add it to build machinery. 1353 * simple-object-common.h (simple_object_xcoff_functions): Declare. 1354 * simple-object.c (format_functions): Add 1355 simple_object_xcoff_functions. 1356 13572012-11-10 Jason Merrill <jason@redhat.com> 1358 1359 * cp-demangle.c (d_unqualified_name): Handle abi tags here. 1360 (d_name): Not here. 1361 13622012-11-09 Jason Merrill <jason@redhat.com> 1363 1364 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_TAGGED_NAME. 1365 (d_make_comp, d_find_pack, d_print_comp): Likewise. 1366 (d_abi_tags): New. 1367 (d_name): Call it. 1368 13692012-10-08 Jason Merrill <jason@redhat.com> 1370 1371 * cp-demangle.c (d_special_name, d_dump): Handle TH and TW. 1372 (d_make_comp, d_print_comp): Likewise. 1373 13742012-09-18 Ian Lance Taylor <iant@google.com> 1375 1376 * strnlen.c: New file. 1377 * configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not 1378 present. 1379 * Makefile.in: Rebuild dependencies. 1380 (CFILES): Add strnlen.c. 1381 (CONFIGURED_OFILES): Add ./strnlen.$(objext). 1382 * configure, config.in, functions.texi: Rebuild. 1383 1384 * maint-tool: Accept .def files in the include directory. 1385 13862012-09-18 Florian Weimer <fweimer@redhat.com> 1387 1388 PR other/54411 1389 * objalloc.c (_objalloc_alloc): Add overflow check covering 1390 alignment and CHUNK_HEADER_SIZE addition. 1391 13922011-08-28 H.J. Lu <hongjiu.lu@intel.com> 1393 1394 * argv.c (dupargv): Replace malloc with xmalloc. Don't check 1395 xmalloc return. 1396 (buildargv): Likewise. Also replace strdup with xstrdup. 1397 (expandargv): Don't check dupargv return. 1398 13992011-08-28 H.J. Lu <hongjiu.lu@intel.com> 1400 1401 PR binutils/14526 1402 * argv.c (buildargv): Replace alloca with xmalloc/free. 1403 14042012-08-17 Andreas Schwab <schwab@linux-m68k.org> 1405 1406 * floatformat.c (floatformat_to_double): Correctly handle numbers 1407 between 1 and 2. Simplify handling of denormal number. 1408 (main): Test with 1.1. 1409 14102012-07-31 Mike Frysinger <vapier@gentoo.org> 1411 1412 * md5.c (md5_finish_ctx): Declare swap_bytes. Assign SWAP() output 1413 to swap_bytes, and then call memcpy to move it to ctx->buffer. 1414 14152012-07-26 Kazu Hirata <kazu@codesourcery.com> 1416 Sandra Loosemore <sandra@codesourcery.com> 1417 1418 * pex-win32.c (pex_win32_exec_child): Only close original file 1419 descriptors if child is launched successfully. 1420 14212012-07-18 Jason Merrill <jason@redhat.com> 1422 1423 * cp-demangle.c (cplus_demangle_operators): Add *_cast. 1424 (op_is_new_cast): New. 1425 (d_expression, d_print_comp): Check it. 1426 14272012-07-13 Doug Evans <dje@google.com> 1428 1429 * filename_cmp.c (filename_hash, filename_eq): New functions. 1430 14312012-06-29 Andreas Schwab <schwab@linux-m68k.org> 1432 1433 * copying-lib.texi (Library Copying): Don't use @heading inside 1434 @enumerate. 1435 14362012-05-22 Tom Tromey <tromey@redhat.com> 1437 1438 http://sourceware.org/bugzilla/show_bug.cgi?id=14065 1439 * testsuite/demangle-expected: Add regression test. 1440 * cp-demangle.c (d_find_pack): Return NULL for 1441 DEMANGLE_COMPONENT_UNNAMED_TYPE. 1442 14432012-04-27 Tom Tromey <tromey@redhat.com> 1444 1445 * dwarfnames.c: New file. 1446 * Makefile.in (CFILES): Add dwarfnames. 1447 (REQUIRED_OFILES): Add dwarfnames. 1448 (./dwarfnames.$(objext)): New target. 1449 14502012-04-04 Tristan Gingold <gingold@adacore.com> 1451 1452 * pex-unix.c (to_ptr32): Fix style. 1453 14542012-04-02 Tristan Gingold <gingold@adacore.com> 1455 1456 * stack-limit.c: Includes ansidecl.h. 1457 (stack_limit_increase): Add ATTRIBUTE_UNUSED 1458 14592012-03-20 Jason Merrill <jason@redhat.com> 1460 1461 * cp-demangle.c (cplus_demangle_type): Handle 'auto'. 1462 14632012-03-07 Jason Merrill <jason@redhat.com> 1464 1465 * cp-demangle.c (cplus_demangle_operators): Add li. 1466 (d_unqualified_name): Handle it specially. 1467 14682012-01-26 Jakub Jelinek <jakub@redhat.com> 1469 1470 * make-relative-prefix.c (make_relative_prefix_1): Avoid warning 1471 about using preprocessor directives inside of macro arguments. 1472 14732012-01-22 Douglas B Rupp <rupp@gnat.com> 1474 1475 * configure: Regenerate. 1476 14772012-01-10 Jason Merrill <jason@redhat.com> 1478 1479 * cp-demangle.c (d_print_comp) [DEMANGLE_COMPONENT_OPERATOR]: 1480 Omit a trailing space in the operator name. 1481 14822012-01-06 Jason Merrill <jason@redhat.com> 1483 1484 PR c++/6057 1485 PR c++/48051 1486 PR c++/50855 1487 PR c++/51322 1488 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and 1489 DEMANGLE_COMPONENT_INITIALIZER_LIST. 1490 (d_make_comp): Likewise. Allow null right arg for 1491 DEMANGLE_COMPONENT_TRINARY_ARG2. 1492 (cplus_demangle_operators): Adjust new/delete; add .*, :: and throw. 1493 (d_template_args, d_template_arg): Handle 'J' for argument packs. 1494 (d_exprlist): Add terminator parm. 1495 (d_expression, d_print_comp): Handle initializer lists, nullary 1496 expressions, prefix/suffix operators, and new. 1497 (d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME 1498 and DEMANGLE_COMPONENT_INITIALIZER_LIST. 1499 * testsuite/demangle-expected: Add tests. 1500 1501 * cp-demangle.c (cplus_demangle_type): decltype, pack expansion 1502 and vector are substitutable. 1503 (cplus_demangle_operators): Sort. 1504 15052012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 1506 1507 * configure: Regenerate. 1508 15092012-01-02 Jakub Jelinek <jakub@redhat.com> 1510 1511 * make-relative-prefix.c (make_relative_prefix_1): Avoid 1512 stack overflow if PATH contains just a single entry and 1513 HOST_EXECUTABLE_SUFFIX needs to be used. 1514 1515 PR driver/48306 1516 * make-relative-prefix.c: Include sys/stat.h. 1517 (make_relative_prefix_1): If access succeeds, check also stat 1518 if nstore is a regular file. 1519 15202011-12-20 Andreas Schwab <schwab@linux-m68k.org> 1521 1522 * configure: Regenerate. 1523 15242011-12-20 Tristan Gingold <gingold@adacore.com> 1525 1526 * aclocal.m4: Assume strncmp works in cross case. 1527 * configure: Regenerate 1528 15292011-12-19 Andreas Schwab <schwab@linux-m68k.org> 1530 1531 * configure: Regenerate. 1532 15332011-11-07 Richard Henderson <rth@redhat.com> 1534 1535 Merged from transactional-memory. 1536 1537 * cp-demangle.c (cplus_demangle_fill_ctor): Accept 1538 gnu_v3_object_ctor_group. 1539 (cplus_demangle_fill_dtor): Accept gnu_v3_object_dtor_group. 1540 (d_ctor_dtor_name): Recognize gnu_v3_object_ctor_group 1541 and gnu_v3_object_dtor_group. 1542 (d_dump): Handle DEMANGLE_COMPONENT_TRANSACTION_CLONE 1543 and DEMANGLE_COMPONENT_NONTRANSACTION_CLONE. 1544 (d_make_comp, d_print_comp): Likewise. 1545 (d_special_name): Generate them. 1546 15472011-11-04 Jason Merrill <jason@redhat.com> 1548 1549 PR c++/48370 1550 * cp-demangle.c (d_special_name, d_print_comp): Handle a 1551 discriminator number on DEMANGLE_COMPONENT_REFTEMP. 1552 15532011-11-02 Doug Evans <dje@google.com> 1554 1555 * Makefile.in (CFILES): Add timeval-utils.c. 1556 (REQUIRED_OFILES): Add timeval-utils.$(objext). 1557 (INSTALLED_HEADERS): Add timeval-utils.h. 1558 (timeval-utils.$(objext)): Add rule. 1559 15602011-10-28 Ian Lance Taylor <iant@google.com> 1561 1562 * setproctitle.c (setproctitle): Use "GNU/Linux" in comment. 1563 15642011-10-26 Iain Sandoe <iains@gcc.gnu.org> 1565 1566 PR target/48108 1567 * simple-object-mach-o.c (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX, 1568 GNU_WRAPPER_NAMES): New macros. 1569 (simple_object_mach_o_segment): Handle wrapper scheme. 1570 (simple_object_mach_o_write_section_header): Allow the segment name 1571 to be supplied. 1572 (simple_object_mach_o_write_segment): Handle wrapper scheme. Ensure 1573 that the top-level segment name in the load command is empty. 1574 (simple_object_mach_o_write_to_file): Determine the number of 1575 sections during segment output, use that in writing the header. 1576 15772011-10-10 Ian Lance Taylor <iant@google.com> 1578 1579 PR c++/48665 1580 * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a 1581 function type, change them to apply to the "this" parameter. 1582 * testsuite/demangle-expected: Add test case. 1583 15842011-09-28 Doug Evans <dje@google.com> 1585 1586 * timeval-utils.c: New file. 1587 1588 * argv.c (countargv): New function. 1589 15902011-09-23 Cary Coutant <ccoutant@google.com> 1591 1592 PR 40831 1593 * cp-demangle.c (d_make_comp): Add new component type. 1594 (cplus_demangle_mangled_name): Check for clone suffixes. 1595 (d_parmlist): Don't error out if we see '.'. 1596 (d_clone_suffix): New function. 1597 (d_print_comp): Print info for clone suffixes. 1598 * testsuite/demangle-expected: Add new testcases. 1599 16002011-09-23 Ian Lance Taylor <iant@google.com> 1601 Pierre Vittet <piervit@pvittet.com> 1602 1603 * md5.c (md5_process_bytes): Correct handling of unaligned 1604 buffer. 1605 16062011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 1607 1608 * aclocal.m4: Include ../config/picflag.m4. 1609 * configure.ac (GCC_PICFLAG): Call it. 1610 (enable_shared): Clear PICFLAG unless shared. 1611 * configure: Regenerate. 1612 16132011-08-12 Steve Ellcey <sje@cup.hp.com> 1614 1615 * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer. 1616 16172011-08-06 Uros Bizjak <ubizjak@gmail.com> 1618 1619 * testsuite/test-expandargv.c (writeout_test): Check result of fwrite. 1620 16212011-08-01 Jason Merrill <jason@redhat.com> 1622 1623 PR c++/49932 1624 * cp-demangle.c (d_prefix): Handle decltype. 1625 * testsuite/demangle-expected: Test it. 1626 16272011-07-26 H.J. Lu <hongjiu.lu@intel.com> 1628 1629 * testsuite/demangle-expected: Remove an extra line. 1630 16312011-07-26 Ian Lance Taylor <iant@google.com> 1632 1633 * cp-demangle.c (d_print_init): Initialize pack_index field. 1634 (d_print_comp): Check for NULL template argument. 1635 * testsuite/demangle-expected: Add test case. 1636 16372011-07-22 Gerald Pfeifer <gerald@pfeifer.com> 1638 1639 PR target/49817 1640 * stack-limit.c: Include <stdint.h>. 1641 16422011-07-22 Jakub Jelinek <jakub@redhat.com> 1643 1644 PR c++/49756 1645 * stack-limit.c: New file. 1646 * Makefile.in: Regenerate deps. 1647 (CFILES): Add stack-limit.c. 1648 (REQUIRED_OFILES): Add ./stack-limit.$(objext). 1649 * configure.ac (checkfuncs): Add getrlimit and setrlimit. 1650 (AC_CHECK_FUNCS): Likewise. 1651 * configure: Regenerated. 1652 * config.in: Regenerated. 1653 16542011-07-04 Jason Merrill <jason@redhat.com> 1655 1656 * cp-demangle.c (d_expression): Handle 'this'. 1657 (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise. 1658 16592011-07-01 Joel Brobecker <brobecker@adacore.com> 1660 1661 * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of 1662 HAVE_CASE_INSENSITIVE_FILE_SYSTEM. 1663 16642011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> 1665 1666 PR debug/49408 1667 * cp-demangle.c (d_print_comp): Suppress argument list for function 1668 references by the '&' unary operator. Keep also already processed 1669 variant without the argument list. Suppress argument list types for 1670 function call used in an expression. 1671 * testsuite/demangle-expected: Fix excessive argument list types in 1672 `test for typed function in decltype'. New testcase for no argument 1673 list types printed. 3 new testcases for function references by the 1674 '&' unary operator.. 1675 16762011-06-20 Jason Merrill <jason@redhat.com> 1677 1678 PR c++/37089 1679 * cp-demangle.c (d_print_comp): Handle reference smashing. 1680 * testsuite/demangle-expected: Test it. 1681 16822011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com> 1683 1684 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: 1685 Suppress d_print_mod for DMGL_RET_POSTFIX. 1686 * testsuite/demangle-expected: New testcases for --ret-postfix. 1687 16882011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com> 1689 1690 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do 1691 not pass DMGL_RET_POSTFIX or DMGL_RET_DROP. Support DMGL_RET_DROP. 1692 * testsuite/demangle-expected: New testcases for --ret-drop. 1693 * testsuite/test-demangle.c: Document --ret-drop in a comment. 1694 (main): New variable ret_drop, fill it, call cplus_demangle with it. 1695 16962011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com> 1697 1698 * cp-demangle.c (struct d_print_info): Remove field options. 1699 (d_print_init): Remove parameter options. 1700 (cplus_demangle_print_callback): Update all the callers. 1701 (d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type) 1702 (d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr): 1703 Add parameter options, update all the callers. 1704 17052011-04-20 Jim Meyering <meyering@redhat.com> 1706 1707 * cp-demint.c (cplus_demangle_v3_components): Remove useless 1708 if-before-free. 1709 * cplus-dem.c (squangle_mop_up): Likewise. 1710 (delete_non_B_K_work_stuff): Likewise. 1711 * pex-common.c (pex_free): Likewise. 1712 * pex-msdos.c (pex_msdos_cleanup): Likewise. 1713 * pex-win32.c (mingw_rootify, msys_rootify): Likewise. 1714 (win32_spawn): Likewise. 1715 * regex.c (FREE_VAR, weak_alias): Likewise. 1716 * spaces.c (spaces): Likewise. 1717 17182011-04-10 Jim Meyering <meyering@redhat.com> 1719 1720 Avoid memory overrun in a test leading to potential double-free. 1721 * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error: 1722 i.e., do copy the trailing NUL byte. 1723 17242011-03-31 Tristan Gingold <gingold@adacore.com> 1725 1726 * makefile.vms (OBJS): Add filename_cmp.obj 1727 17282011-02-28 Kai Tietz <kai.tietz@onevision.com> 1729 1730 * filename_cmp.c (filename_ncmp): New function. 1731 * functions.texi: Regenerated. 1732 17332011-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1734 1735 * splay-tree.c: Escape wrapping newlines in texinfo markup 1736 with '@', to fix function declaration output rendering. 1737 * gather-docs: Relax and improve macro name matching to actually 1738 match all current names and to allow input line wrapping. 1739 * bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c, 1740 hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c, 1741 memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c, 1742 pexecute.txh, random.c, setenv.c, setproctitle.c, 1743 simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c, 1744 strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c: 1745 Wrap long texinfo input lines. 1746 * functions.texi: Regenerate. 1747 17482011-01-18 Mike Frysinger <vapier@gentoo.org> 1749 1750 * .gitignore: New file. 1751 17522010-12-08 Doug Evans <dje@google.com> 1753 1754 * splay-tree.c (splay_tree_foreach_helper): Remove arg `sp', 1755 all callers updated. Rewrite to be non-recursive. 1756 17572010-11-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 1758 1759 * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>. 1760 17612010-11-20 Anthony Green <green@moxielogic.com> 1762 1763 * configure.ac: Turn PR_SET_NAME link test into a test for 1764 sys/prctl.h. 1765 * configure, config.in: Rebuilt. 1766 * setproctitle.c: Test for HAVE_SYS_PRCTL_H. 1767 (setproctitle) Test for PR_SET_NAME definition. 1768 17692010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1770 1771 PR other/46202 1772 * Makefile.in (install-strip): New phony target. 1773 (install): Also mark as phony. 1774 17752010-11-16 Ian Lance Taylor <iant@google.com> 1776 1777 * simple-object.c (simple_object_attributes_merge): Rename from 1778 simple_object_attributes_compare. Call merge field. 1779 * simple-object-common.h (struct simple_object_functions): Rename 1780 attributes_compare field to attribute_merge. 1781 * simple-object-elf.c (EM_SPARC): Define. 1782 (EM_SPARC32PLUS): Define. 1783 (simple_object_elf_attributes_merge): Renamed from 1784 simple_object_elf_attributes_compare. Permit EM_SPARC and 1785 EM_SPARC32PLUS objects to be merged. 1786 (simple_object_elf_functions): Update function name. 1787 * simple-object-coff.c (simple_object_coff_attributes_merge): 1788 Rename from simple_object_coff_attributes_compare. 1789 (simple_object_coff_functions): Update function name. 1790 * simple-object-mach-o.c (simple_object_mach_o_attributes_merge): 1791 Renamed from simple_object_mach_o_attributes_compare. 1792 (simple_object_mach_o_functions): Update function name. 1793 17942010-11-16 H.J. Lu <hongjiu.lu@intel.com> 1795 1796 PR other/42670 1797 PR binutils/11137 1798 * cp-demangle.c (d_make_demangle_mangled_name): New. 1799 (d_demangle_callback): Use it on DCT_GLOBAL_XTORS. 1800 1801 * testsuite/demangle-expected: Updated. 1802 18032010-11-14 Kai Tietz <kai.tietz@onevision.com> 1804 1805 * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading 1806 offset. 1807 18082010-11-12 Ian Lance Taylor <iant@google.com> 1809 1810 PR other/46332 1811 * cp-demangle.c (d_print_function_type): Don't print parentheses 1812 if there are no modifiers to print. 1813 * testsuite/demangle-expected: Tweak one test case, add another. 1814 18152010-11-04 Richard Henderson <rth@redhat.com> 1816 1817 * configure.ac (AC_CHECK_HEADERS): Add process.h. 1818 (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list. 1819 (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe. 1820 * configure, config.in: Rebuild. 1821 * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function. 1822 [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions. 1823 18242010-11-02 Ian Lance Taylor <iant@google.com> 1825 Dave Korn <dave.korn.cygwin@gmail.com> 1826 Iain Sandoe <iains@gcc.gnu.org> 1827 1828 * simple-object.c: New file. 1829 * simple-object-common.h: New file. 1830 * simple-object-elf.c: New file. 1831 * simple-object-mach-o.c: New file. 1832 * simple-object-coff.c: New file. 1833 * simple-object.txh: New file. 1834 * configure.ac: Add AC_TYPE_SSIZE_T. 1835 * Makefile.in: Rebuild dependencies. 1836 (CFILES): Add simple-object.c, simple-object-coff, 1837 simple-object-elf.c, and simple-object-mach-o.c. 1838 (REQUIRED_OFILES): Add corresponding object files. 1839 * configure: Rebuild. 1840 * config.in: Rebuild. 1841 * functions.texi: Rebuild. 1842 18432010-10-29 Ian Lance Taylor <iant@google.com> 1844 1845 * setproctitle.c: Add space after function name in @deftypefn 1846 comment. 1847 * functions.texi: Rebuild. 1848 18492010-10-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1850 1851 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete. 1852 * configure: Regenerate. 1853 18542010-10-07 Andi Kleen <ak@linux.intel.com> 1855 1856 * configure: Regenerate. 1857 * configure.ac: Turn PR_SET_NAME check into link check. 1858 18592010-10-06 Andi Kleen <ak@linux.intel.com> 1860 1861 * Makefile.in (CFILES): Add setproctitle. 1862 (CONFIGURED_OFILES): Add setproctitle. 1863 (setproctitle): Add rule. 1864 * config.in: Regenerate. 1865 * configure: Regenerate. 1866 * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle. 1867 * setproctitle.c: Add file. 1868 * functions.texi: Regenerate. 1869 18702010-09-22 Tristan Gingold <gingold@adacore.com> 1871 1872 * cplus-dem.c (ada_demangle): Add comments. 1873 Handle stream and controlled type operations. 1874 Decoding of some uppercase letters moved before separators. 1875 * testsuite/demangle-expected: Add tests. 1876 18772010-09-10 James Lyon <jameslyon0@googlemail.com> 1878 1879 http://sourceware.org/bugzilla/show_bug.cgi?id=11572 1880 * cp-demangle.c (d_find_pack): Add case for 1881 DEMANGLE_COMPONENT_LAMBDA. 1882 * testsuite/demangle-expected: Add regression test. 1883 18842010-09-08 Tristan Gingold <gingold@adacore.com> 1885 1886 PR 44001 1887 * maint-tool (missing): Fix pattern for object file. 1888 (deps): Use $(objext) for object extension. 1889 * Makefile.in (objext): New variable. 1890 Replace all occurences of .o with .$(objext) 1891 Regenerate with maint-deps 1892 * configure.ac (pexecute): Set to the basename. 1893 * configure: Regenerate. 1894 18952010-08-20 Maciej W. Rozycki <macro@codesourcery.com> 1896 1897 * pex-common.c (pex_read_err): Set stderr_pipe to -1 if a 1898 corresponding stream has been opened. 1899 (pex_free): Close pipe file descriptors corresponding to child's 1900 stdout and stderr before waiting. 1901 19022010-08-13 Nick Clifton <nickc@redhat.com> 1903 1904 * argv.c (expandargv): Limit the number of times that response 1905 files are opened in order to prevent infinite recursion. 1906 19072010-07-21 Pascal Obry <obry@adacore.com> 1908 1909 * make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed. 1910 19112010-07-06 Ken Werner <ken.werner@de.ibm.com> 1912 1913 * floatformat.c (floatformat_ieee_half_big): New variable. 1914 (floatformat_ieee_half_little): Likewise. 1915 19162010-06-14 Gerald Pfeifer <gerald@pfeifer.com> 1917 1918 * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice). 1919 Update copyright years. 1920 Move to GFDL 1.3. 1921 19222010-06-10 Jakub Jelinek <jakub@redhat.com> 1923 1924 PR other/43838 1925 * cp-demangle.c (struct d_print_info): Add flush_count field. 1926 (d_print_init): Initialize it to 0. 1927 (d_print_flush): Increment it. 1928 (d_print_comp): If needed flush before appending ", ". Only 1929 decrement dpi->len if no flushes happened during the recursive 1930 call. 1931 * testsuite/demangle-expected: Add a test for this. 1932 19332010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> 1934 1935 * splay-tree.c: Update copyright years. 1936 (splay_tree_new_typed_alloc): New. 1937 (splay_tree_new_with_allocator): Use it. 1938 1939 * hashtab.c: Update copyright years. 1940 (htab_create_typed_alloc): New. 1941 (htab_create_alloc): Use it. 1942 1943 * functions.texi: Regenerate. 1944 19452010-06-03 Joern Rennecke <joern.rennecke@embecosm.com> 1946 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1947 1948 PR bootstrap/42798 1949 * configure.ac: Check for declaration of 'basename(char *)'. 1950 * configure: Regenerate. 1951 19522010-05-26 Kai Tietz <kai.tietz@onevision.com> 1953 1954 * testsuite/demangle-expected: Add tests for __int128 1955 and unsigned __int128 types. 1956 19572010-05-06 Magnus Fromreide <magfr@lysator.liu.se> 1958 Jason Merrill <jason@redhat.com> 1959 1960 * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr. 1961 (cplus_demangle_type): Handle nullptr. 1962 * testsuite/demangle-expected: Test it. 1963 19642010-04-23 Pedro Alves <pedro@codesourcery.com> 1965 1966 * lbasename.c (lbasename): Split into ... 1967 (unix_lbasename, dos_basename): ... these. 1968 (lbasename): ... and reimplement on top of them. 1969 * Makefile.in (lbasename.o): Add dependency on 1970 $(INCDIR)/filenames.h. 1971 19722010-04-07 Jakub Jelinek <jakub@redhat.com> 1973 1974 * regex.c (byte_re_match_2_internal): Avoid set but not used 1975 warning. 1976 19772010-03-22 Jason Merrill <jason@redhat.com> 1978 1979 * cp-demangle.c (d_print_mod): Use () rather than [] for vectors. 1980 19812010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1982 1983 * Makefile.in (all): Do not use exec. 1984 19852010-02-04 Tom Tromey <tromey@redhat.com> 1986 1987 * testsuite/demangle-expected: Add missing --format=gnu-v3. 1988 19892010-02-03 Jason Merrill <jason@redhat.com> 1990 1991 * cp-demangle.c (d_expression): Handle dependent operator name. 1992 1993 PR c++/12909 1994 * cp-demangle.c (d_number_component, d_vector_type): New. 1995 (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors. 1996 19972010-01-25 Ian Lance Taylor <iant@google.com> 1998 1999 * cp-demangle.c (cplus_demangle_type): Check for invalid type 2000 after "DF". 2001 * testsuite/demangle-expected: Add test. 2002 20032010-01-20 Jason Merrill <jason@redhat.com> 2004 2005 PR c++/42338 2006 * cp-demangle.c (d_print_comp): Fix array index printing. 2007 20082010-01-11 Tristan Gingold <gingold@adacore.com> 2009 2010 * cplus-dem.c (ada_demangle): Remove prototype. 2011 (grow_vect): Removed. 2012 (ada_demangle): Rewritten. 2013 (cplus_demangle): Fix indentation. 2014 * testsuite/demangle-expected: Add tests for Ada. 2015 20162010-01-09 Ian Lance Taylor <iant@google.com> 2017 2018 PR other/42230 2019 * cp-demangle.c (d_demangle): Return dgs.alc on success. 2020 20212010-01-04 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> 2022 2023 PR target/42316 2024 * configure.ac (PICFLAG): Use -fPIC on SH hosts. 2025 * configure: Regenerate. 2026 20272009-12-07 Doug Evans <dje@google.com> 2028 2029 * pex-unix.c (pex_unix_exec_child): Save/restore environ. 2030 20312009-11-26 Ben Elliston <bje@au.ibm.com> 2032 2033 * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order. 2034 * configure: Regenerate. 2035 20362009-11-25 Ben Elliston <bje@au.ibm.com> 2037 2038 * functions.texi: Rebuild. 2039 20402009-11-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 2041 Ben Elliston <bje@au.ibm.com> 2042 2043 * README: Mention changes to Makefile.in and functions.texi. 2044 * gather-docs: Mention 'make stamp-functions' in the header. 2045 20462009-11-23 Ben Elliston <bje@au.ibm.com> 2047 Ian Lance Taylor <iant@google.com> 2048 2049 * pex-unix.c (pex_child_error): Improve warning avoidance by 2050 checking the results of write(3) and exiting with -2 if any write 2051 returns a negative value. 2052 20532009-11-22 Steve Ward <planet36@gmail.com> 2054 2055 * dyn-string.c (dyn_string_append_char): Fix typo in comment. 2056 20572009-11-20 Ben Elliston <bje@au.ibm.com> 2058 2059 * pex-unix.c (pex_child_error): Define writeerr macro to avoid 2060 unused result warnings from write(3) calls. Undefine writeerr 2061 after all uses. 2062 20632009-10-08 Daniel Gutson <dgutson@codesourcery.com> 2064 Daniel Jacobowitz <dan@codesourcery.com> 2065 Pedro Alves <pedro@codesourcery.com> 2066 2067 * argv.c (consume_whitespace): New function. 2068 (only_whitespace): New function. 2069 (buildargv): Always use ISSPACE by calling consume_whitespace. 2070 (expandargv): Skip empty files. Do not stop at the first empty 2071 argument (calling only_whitespace).. 2072 * testsuite/test-expandargv.c: (test_data): Test empty lines 2073 and empty arguments. 2074 (run_tests): Fix false positives due to shorter arguments. 2075 20762009-09-30 Martin Thuresson <martint@google.com> 2077 2078 * regex.c (byte_re_match_2_internal): Split declaration and 2079 assignment to avoid -Wc++-compat warning due to goto. 2080 20812009-09-29 Jason Merrill <jason@redhat.com> 2082 2083 * Makefile.in: Enable demangle target. 2084 * cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New. 2085 (d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas. 2086 (d_parmlist): Factor out from d_bare_function_type. 2087 (d_compact_number): Factor out from d_template_param and d_expression. 2088 (d_append_num): Factor out from d_print_comp. 2089 (d_print_comp, d_print_mod_list): Handle lambdas. 2090 * testsuite/demangle-expected: Add lambda tests. 2091 20922009-09-23 Matthew Gingell <gingell@adacore.com> 2093 2094 * cplus-dem.c (ada_demangle): Ensure demangled is freed. 2095 20962009-09-22 Ozkan Sezer <sezeroz@gmail.com> 2097 2098 * choose-temp.c: Include unistd.h for mingw targets. 2099 21002009-09-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2101 2102 * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>. 2103 21042009-09-15 Tristan Gingold <gingold@adacore.com> 2105 2106 * config.h-vms (intptr_t): Define to compile hashtab.c 2107 21082009-09-04 Ozkan Sezer <sezeroz@gmail.com> 2109 2110 PR target/39065 2111 * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t 2112 with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T. 2113 * config.in: Regenerated. 2114 * configure: Regenerated. 2115 21162009-09-03 Ozkan Sezer <sezeroz@gmail.com> 2117 2118 PR target/39065 2119 * configure.ac: Also check for intptr_t. 2120 * config.h.in: Regenerated. 2121 * configure: Regenerated. 2122 * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t 2123 instead of of long. 2124 21252009-09-02 Tristan Gingold <gingold@adacore.com> 2126 2127 * vmsbuild.com: Removed as unused and superceeded by makefile.vms. 2128 * makefile.vms: Ported to Itanium VMS. Remove useless targets and 2129 dependencies. Remove unused FORMAT variable. 2130 * configure.com: New file to create build.com DCL script for 2131 Itanium VMS or Alpha VMS. 2132 21332009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2134 2135 * configure.ac (AC_PREREQ): Bump to 2.64. 2136 21372009-08-23 H.J. Lu <hongjiu.lu@intel.com> 2138 2139 PR ld/10536 2140 * Makefile.in (install-html-recursive): Removed. 2141 21422009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2143 2144 * config.in: Regenerate. 2145 * configure: Regenerate. 2146 21472009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2148 2149 * Makefile.in (AUTOCONF, configure_deps): New variables. 2150 ($(srcdir)/configure): New rule, active only in maintainer mode. 2151 21522009-07-29 Douglas B Rupp <rupp@gnat.com> 2153 2154 * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS. 2155 21562009-07-27 Douglas B Rupp <rupp@gnat.com> 2157 2158 * pex-unix.c (vfork): Remove VMS specific definition (get from header 2159 file instead). 2160 (to_ptr32): New function. 2161 (pex_unix_exec_child): Use it. 2162 21632009-07-24 Ian Lance Taylor <iant@google.com> 2164 2165 PR bootstrap/40854 2166 * crc32.c (xcrc32): Rename from crc32. 2167 21682009-07-24 Ian Lance Taylor <iant@google.com> 2169 2170 * crc32.c: New file. 2171 * Makefile.in: Rebuild dependencies. 2172 (CFILES): Add crc32.c. 2173 (REQUIRED_OFILES): Add ./crc32.o. 2174 * functions.texi: Rebuild. 2175 21762009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com> 2177 2178 * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>) 2179 (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New. 2180 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>) 2181 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New. 2182 (d_demangle_callback): The variable type is now declared as enum. 2183 Replace parser of _GLOBAL_ symbols by a d_make_comp call. 2184 21852009-06-21 Jakub Jelinek <jakub@redhat.com> 2186 2187 * hashtab.c (htab_traverse): Don't call htab_expand for 2188 nearly empty hashtabs with sizes 7, 13 or 31. 2189 21902009-06-16 Nick Clifton <nickc@redhat.com> 2191 2192 PR 10197 2193 * testsuite/test-demangle.c: Rename getline to get_line to avoid 2194 conflicts with system function of the same name. 2195 21962009-05-30 Eli Zaretskii <eliz@gnu.org> 2197 2198 * snprintf.c: Doc fix. 2199 2200 * vsnprintf.c: Doc fix. 2201 22022009-05-29 Kai Tietz <kai.tietz@onevision.com> 2203 2204 * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false. 2205 22062009-05-29 Michael Matz <matz@suse.de> 2207 2208 * fibheap.c (fibheap_replace_key_data): Make sure we don't early 2209 out when forcing the minimum. 2210 (fibheap_delete_node): Assert that we managed to force the minimum. 2211 22122009-05-25 Tristan Gingold <gingold@adacore.com> 2213 2214 * config.h-vms: Rewritten. Define configure macros. 2215 Use DEC-C builtin alloca. 2216 2217 * makefile.vms (OBJS): Update list. 2218 (OPT): New variable. 2219 (CFLAGS): Update compilation flags. 2220 (libiberty.olb): Do not depend on alloca-conf.h anymore. 2221 22222009-05-19 Ian Lance Taylor <iant@google.com> 2223 Ben Elliston <bje@au.ibm.com> 2224 2225 * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug. 2226 (cplus_demangle_fill_dtor): Likewise. 2227 22282009-05-17 Julian Brown <julian@codesourcery.com> 2229 2230 * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing 2231 standard handles (stdin, stdout, stderr) in parent. 2232 22332009-04-29 Julian Brown <julian@codesourcery.com> 2234 2235 * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT. 2236 (pex_win32_exec_child): Ensure each process has only one handle open 2237 on pipe endpoints. Close standard input after creating child for 2238 symmetry with standard output/standard error. 2239 22402009-04-25 Eli Zaretskii <eliz@gnu.org> 2241 2242 * Makefile.in (needed-list): Target removed (not used in GCC 2243 3.0 and later). All references deleted. 2244 (mostlyclean): Remove references to needed.awk and needed2.awk. 2245 22462009-04-14 Eli Zaretskii <eliz@gnu.org> 2247 2248 * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of 2249 existing and required library functions to with_target_subdir 2250 section, so that the native build does detect them at configure 2251 time. 2252 * configure: Regenerated. 2253 22542009-04-13 Ozkan Sezer <sezeroz@gmail.com> 2255 2256 PR target/39397 2257 * pex-common.h (struct pex_obj): Store pid values as pid_t, 2258 not as long (members *children and (*wait)) 2259 * pex-common.c (pex_run_in_environment): Likewise. 2260 * pex-win32.c (pex_win32_wait): Return pid_t and properly check 2261 returned pid value. 2262 * pex-djgpp.c (pex_djgpp_wait): Return pid_t. 2263 * pex-msdos.c (pex_msdos_wait): Likewise. 2264 22652009-04-07 Arnaud Patard <apatard@mandriva.com> 2266 2267 * configure.ac: Fix Linux/MIPS matching rule. 2268 * configure: Regenerate. 2269 22702009-03-27 Ian Lance Taylor <iant@google.com> 2271 2272 * memmem.c: New file, from gnulib. 2273 * configure.ac: Add memmem to list of functions provided if they 2274 are not available on the host. 2275 * Makefile.in: Rebuild dependencies. 2276 (CFILES): Add memmem.c. 2277 (CONFIGURED_OFILES): Add memmem.o. 2278 * configure, config.in, functions.texi: Rebuild. 2279 22802009-03-23 Jason Merrill <jason@redhat.com> 2281 2282 * cp-demangle.c (d_expression): Handle pack expansion. 2283 (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM. 2284 (d_print_subexpr): Don't wrap function parms in (). 2285 (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle 2286 not finding a pack. 2287 22882009-03-17 Jason Merrill <jason@redhat.com> 2289 2290 * cp-demangle.c (d_make_function_param): new fn. 2291 (cplus_demangle_mangled_name): Work around abi v2 bug. 2292 (d_expr_primary): Likewise. 2293 (cplus_demangle_operators): Add alignof ops. 2294 (d_expression): Handle function parameters and conversions 2295 with other than 1 operand. 2296 (d_print_comp): Handle function parameters. Fix bug with 2297 function used in type of function. 2298 * testsuite/demangle-expected: Update tests. 2299 23002009-02-21 Mark Mitchell <mark@codesourcery.com> 2301 2302 * make-temp-file.c (<windows.h>): Include on Windows. 2303 (choose_tmpdir): On Windows, use GetTempPath. 2304 23052009-01-18 Dave Korn <dave.korn.cygwin@gmail.com> 2306 2307 * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin, 2308 as it no longer shares libiberty object files. 2309 * configure: Regenerated. 2310 23112009-01-07 Jason Merrill <jason@redhat.com> 2312 2313 * cp-demangle.c (d_expression): Remove mangling for zero-op casts. 2314 23152009-01-06 Ben Elliston <bje@au.ibm.com> 2316 2317 * cp-demangle.c (cplus_demangle_type): Return NULL if the 2318 character following a 'D' cannot be recognised. 2319 23202008-12-18 Jason Merrill <jason@redhat.com> 2321 2322 PR c++/38561 2323 * cp-demangle.c (d_expression, d_print_comp): Revert 2324 cast changes. 2325 23262008-12-17 Jason Merrill <jason@redhat.com> 2327 2328 * cp-demangle.c (d_expression): Handle rvalue stubs too. 2329 [DEMANGLE_COMPONENT_CAST]: Update mangling. 2330 (d_print_comp): Avoid extra ", " with empty template argument packs. 2331 Remove handling for obsolete T() mangling. 2332 23332008-12-10 Jason Merrill <jason@redhat.com> 2334 2335 * cp-demangle.c (cplus_demangle_type): Support fixed-point types. 2336 (d_print_comp, d_dump): Likewise. 2337 23382008-10-22 Daniel Jacobowitz <dan@codesourcery.com> 2339 2340 * Makefile.in (CPPFLAGS): Define. 2341 (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS. 2342 23432008-10-15 Paolo Bonzini <bonzini@gnu.org> 2344 2345 PR bootstrap/37137 2346 * Makefile.in (LIBCFLAGS): Remove. 2347 (FLAGS_TO_PASS): Don't mention it. 2348 (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS. 2349 23502008-10-08 David Edelsohn <edelsohn@gnu.org> 2351 2352 * xstrdup.c: Include <sys/types.h> after "config.h" 2353 23542008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com> 2355 2356 * configure.ac: Call AC_SYS_LARGEFILE. 2357 * config.in: Regenerated. 2358 * configure: Likewise. 2359 23602008-10-06 Jason Merrill <jason@redhat.com> 2361 2362 * cp-demangle.c (struct d_print_info): Add pack_index. 2363 (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION. 2364 (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and 2365 DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args. 2366 (cplus_demangle_builtin_types): Add char16/32_t. 2367 (cplus_demangle_type): Recognize them. 2368 (d_template_args): Handle empty argument packs. 2369 (d_template_arg): Handle argument packs. 2370 (d_expression): Handle dependent name. 2371 (d_index_template_argument): New fn. 2372 (d_lookup_template_argument): New fn. 2373 (d_find_pack, d_pack_length): New fn. 2374 (d_print_subexpr): Split out... 2375 (d_print_comp): ...from here. Use d_*_template_argument. 2376 Handle empty arg lists. Support pack expansions. 2377 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32. 2378 23792008-09-09 Jason Merrill <jason@redhat.com> 2380 2381 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE. 2382 (d_make_comp): Likewise. 2383 (cplus_demangle_type): Handle decltype and DFP types. 2384 (cplus_demangle_operators): Call operator takes 2 args. 2385 (cplus_demangle_builtin_types): Add DFP types. 2386 (d_exprlist): New fn. 2387 (d_expression): Handle parm placeholders, T() and calls. 2388 (d_print_comp): Handle decltype, T() and calls. 2389 * testsuite/demangle-expected: Test the above. 2390 23912008-08-07 Aaron W. LaFramboise <aaronavay62@aaronwl.com> 2392 2393 * pex-win32.c (argv_to_argc): New function. 2394 (spawn_script): Duplicate argv before calling win32_spawn. 2395 23962008-07-31 Jakub Jelinek <jakub@redhat.com> 2397 2398 * mkstemps.c (mkstemps): Keep looping even for EISDIR. 2399 24002008-07-31 Denys Vlasenko <dvlasenk@redhat.com> 2401 2402 * mkstemps.c (mkstemps): If open failed with errno other than 2403 EEXIST, return immediately. 2404 * make-temp-file.c: Include errno.h. 2405 (make_temp_file): If mkstemps failed, print an error message 2406 before aborting. 2407 24082008-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2409 2410 * maint-tool (deps): Output config.h instead of stamp-h. 2411 * Makefile.in: Rebuild deps. 2412 (maintainer-clean-subdir): Depend on stamp-h rather than config.h. 2413 Reverts 2007-07-11 change. 2414 24152008-06-19 Eric Blake <ebb9@byu.net> 2416 2417 Adjust strsignal to POSIX 200x prototype. 2418 * strsignal.c (strsignal): Remove const. 2419 24202008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2421 2422 * configure: Regenerate. 2423 24242008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2425 2426 * libiberty.texi: Expand TABs, drop indentation outside examples. 2427 * obstacks.texi: Likewise. 2428 24292008-04-21 Aurelien Jarno <aurelien@aurel32.net> 2430 2431 * configure.ac: use -fPIC on Linux/MIPS hosts. 2432 * configure: Regenerate. 2433 24342008-04-18 Kris Van Hees <kris.van.hees@oracle.com> 2435 2436 * testsuite/demangle-expected: Added tests for char16_t and char32_t. 2437 24382008-04-18 Paolo Bonzini <bonzini@gnu.org> 2439 2440 PR bootstrap/35457 2441 * aclocal.m4: Add override.m4. 2442 * configure: Regenerate. 2443 24442008-03-31 Ian Lance Taylor <iant@google.com> 2445 2446 * cp-demangle.c (d_substitution): Correct overflow check to avoid 2447 -fstrict-overflow optimizations. 2448 24492008-03-27 Paolo Bonzini <bonzini@gnu.org> 2450 2451 * configure.ac (frags): Don't set, use frag instead. 2452 (PICFLAG): Set here and substitute. 2453 * Makefile.in (PICFLAG): Substitute from autoconf. 2454 * configure: Regenerate. 2455 24562008-03-24 Ian Lance Taylor <iant@google.com> 2457 2458 * sha1.c: New file, from gnulib. 2459 * Makefile.in: Rebuild dependencies. 2460 (CFILES): Add sha1.c. 2461 (REQUIRED_OFILES): Add sha1.o. 2462 24632008-03-24 Doug Evans <dje@google.com> 2464 2465 * make-relative-prefix.c (make_relative_prefix_1): Handle NULL 2466 return from strdup. 2467 24682008-03-12 Seongbae Park <seongbae.park@gmail.com> 2469 2470 * cplus-dem.c (malloc, realloc): Use void * instead of char * 2471 as return type. 2472 24732008-03-11 Nick Clifton <nickc@redhat.com> 2474 2475 * md5.c (md5_process_bytes): Do not assume that memcpy will 2476 provide a return value. 2477 24782008-02-19 Ben Elliston <bje@au.ibm.com> 2479 2480 PR other/12618 2481 * testsuite/Makefile.in (mostlyclean): Remove any core file. 2482 24832008-01-26 David Daney <ddaney@avtrex.com> 2484 2485 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE, 2486 DEMANGLE_COMPONENT_COMPOUND_NAME, and 2487 DEMANGLE_COMPONENT_CHARACTER cases. 2488 (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and 2489 DEMANGLE_COMPONENT_JAVA_RESOURCE cases. 2490 (d_make_character): New function. 2491 (d_java_resource): Same. 2492 (d_special_name): Handle "Gr" case. 2493 (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE, 2494 DEMANGLE_COMPONENT_COMPOUND_NAME, and 2495 DEMANGLE_COMPONENT_CHARACTER cases. 2496 * testsuite/demangle-expected: Add test for java resource name 2497 mangling. 2498 24992008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com> 2500 2501 * cplus-dem.c (demangle_function_name): Changed to return value 2502 indicating if a name was correctly demangled. 2503 (iterate_demangle_function): Use demangle_function_name return 2504 value. 2505 25062008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 2507 2508 PR other/33768 2509 * splay-tree.c (rotate_left): Fix minor typo in comment. 2510 (rotate_right): Likewise. 2511 25122007-11-12 Joseph Myers <joseph@codesourcery.com> 2513 2514 * floatformat.c (floatformat_ibm_long_double_is_valid): Fix 2515 compiler warnings. 2516 (floatformat_ibm_long_double): Use 2517 floatformat_ibm_long_double_is_valid. 2518 25192007-11-07 Joseph Myers <joseph@codesourcery.com> 2520 Daniel Jacobowitz <dan@codesourcery.com> 2521 2522 * floatformat.c (mant_bits_set): New. 2523 (floatformat_to_double): Use it. Note no special handling of 2524 split formats. 2525 (floatformat_from_double): Note no special handing of split 2526 formats. 2527 (floatformat_ibm_long_double_is_valid, 2528 floatformat_ibm_long_double): New. 2529 (floatformat_ieee_single_big, floatformat_ieee_single_little, 2530 floatformat_ieee_double_big, floatformat_ieee_double_little, 2531 floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f, 2532 floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext, 2533 floatformat_m68881_ext, floatformat_i960_ext, 2534 floatformat_m88110_ext, floatformat_m88110_harris_ext, 2535 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword, 2536 floatformat_ia64_spill_big, floatformat_ia64_spill_little, 2537 floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update 2538 for addition of split_half field. 2539 25402007-09-06 Tom Tromey <tromey@redhat.com> 2541 2542 * pexecute.txh (pex_free): Document process killing. 2543 25442007-08-31 Douglas Gregor <doug.gregor@gmail.com> 2545 2546 * cp-demangle.c (d_dump): Handle 2547 DEMANGLE_COMPONENT_RVALUE_REFERENCE. 2548 (d_make_comp): Ditto. 2549 (cplus_demangle_type): Ditto. 2550 (d_print_comp): Ditto. 2551 (d_print_mod): Ditto. 2552 (d_print_function_type): Ditto. 2553 25542007-08-24 Kai Tietz <kai.tietz@onevision.com> 2555 2556 * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t. 2557 * pex-djgpp.c: Likewise. 2558 * pex-msdos.c: Likewise. 2559 * pex-unix.c: Likewise. 2560 * pex-win32.c: Likewise. 2561 25622007-08-17 Michael Snyder <msnyder@access-company.com> 2563 2564 * make-relative-prefix.c (make_relative_prefix_1): Resource leaks. 2565 25662007-08-03 Michael Snyder <msnyder@access-company.com> 2567 2568 * make-relative-prefix.c (make_relative_prefix_1): Fix resource 2569 leak. 2570 25712007-07-31 Michael Snyder <msnyder@access-company.com> 2572 2573 * cp-demangle.c (d_print_comp): Guard against null. 2574 25752007-07-25 Ben Elliston <bje@au.ibm.com> 2576 2577 * Makefile.in (CFILES): Remove ternary.c. 2578 (REQUIRED_OFILES): Remove ./ternary.o. 2579 (INSTALLED_HEADERS): Remove ternary.h. 2580 (ternary.o): Remove. 2581 * ternary.c: Remove. 2582 25832007-07-23 DJ Delorie <dj@redhat.com> 2584 2585 * argv.c (writeargv): Fix typo in inline documentation. 2586 * functions.texi: Regenerate. 2587 25882007-07-17 DJ Delorie <dj@redhat.com> 2589 2590 * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate 2591 gettimeofday entry. 2592 * configure: Likewise. 2593 25942007-07-11 Alexandre Oliva <aoliva@redhat.com> 2595 2596 * maint-tool (deps): Output stamp-h instead of config.h. 2597 * Makefile.in: Rebuild deps. 2598 (maintainer-clean-subdir): Depend on stamp-h rather than config.h. 2599 26002007-07-02 Simon Baldwin <simonb@google.com> 2601 2602 * argv.c (writeargv): Removed declaration of unused variable. 2603 26042007-06-14 Paolo Bonzini <bonzini@gnu.org> 2605 2606 * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too. 2607 * configure: Regenerate. 2608 26092007-06-14 Paolo Bonzini <bonzini@gnu.org> 2610 2611 * aclocal.m4: Include config/warnings.m4. 2612 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS. 2613 * configure: Regenerate. 2614 26152007-06-07 Geoffrey Keating <geoffk@apple.com> 2616 2617 * configure.ac: Non-default multilibs can be cross compilations. 2618 * configure: Regenerate 2619 26202007-05-07 Nathan Froyd <froydnj@codesourcery.com> 2621 2622 * argv.c (writeargv): New function. 2623 26242007-05-05 Geoffrey Keating <geoffk@apple.com> 2625 2626 * cp-demangle.c (d_name): Detect local-source-name. 2627 (d_prefix): Likewise. 2628 (d_unqualified_name): Implement local-source-name. 2629 26302007-05-03 Joel Brobecker <brobecker@adacore.com> 2631 2632 * filename_cmp.c: Replace include of ctype.h by include of 2633 safe-ctype.h. 2634 (filename_cmp): Use TOLOWER instead of tolower for conversions 2635 that are locale-independent. 2636 * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h. 2637 26382007-04-11 Thomas Neumann <tneumann@users.sourceforge.net> 2639 2640 * argv.c: Use ANSI C declarations. 2641 * make-relative-prefix.c: Likewise. 2642 26432007-04-06 Joel Brobecker <brobecker@adacore.com> 2644 2645 * filename_cmp.c (filename_cmp): Improve documentation. 2646 26472007-04-02 Andreas Schwab <schwab@suse.de> 2648 2649 * filename_cmp.c: Include "config.h". 2650 26512007-03-29 Joel Brobecker <brobecker@adacore.com> 2652 2653 * filename_cmp.c: New file. 2654 * Makefile.in (CFILES): Add filename_cmp.c. 2655 (REQUIRED_OFILES): Add filename_cmp.o 2656 (filename_cmp.o): New rule. 2657 * functions.texi: Regenerate. 2658 26592007-03-15 Geoffrey Keating <geoffk@apple.com> 2660 2661 * cp-demangle.c (d_encoding): Exit early on error. 2662 (d_pointer_to_member_type): Exit early if cplus_demangle_type 2663 returns NULL. 2664 (cplus_demangle_type): Likewise. 2665 * testsuite/demangle-expected: New testcase. 2666 26672007-03-01 Brooks Moses <brooks.moses@codesourcery.com> 2668 2669 * Makefile.in: Add install-pdf target as copied from 2670 automake v1.10 rules. 2671 * testsuite/Makefile.in: Add dummy install-pdf target. 2672 26732007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de> 2674 Eric Botcazou <ebotcazou@libertysurf.fr> 2675 2676 PR other/16513 2677 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR). 2678 Install headers in multilib independent location. 2679 26802007-02-26 DJ Delorie <dj@redhat.com> 2681 2682 * configure.ac: add djgpp-specific results, so we don't have to 2683 link during a cross compilation. 2684 * configure: Regenerated. 2685 26862007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2687 2688 * hex.c: Fix typo. 2689 * choose-temp.c: Likewise. 2690 * functions.texi: Regenerate. 2691 26922007-01-31 Vladimir Prus <vladimir@codesourcery.com> 2693 2694 * pex-common.h (struct pex_obj): New fields 2695 stderr_pipe and read_err. 2696 * pex-common.c (pex_init_common): Initialize 2697 stderr_pipe. 2698 (pex_run_in_environment): Add error checking 2699 for PEX_STDERR_TO_PIPE. Create a pipe 2700 for stderr if necessary. 2701 (pex_read_err): New. 2702 (pex_free): Close read_err. 2703 * pexecute.txh: Document changes. 2704 * functions.texi: Regenerated. 2705 27062007-01-31 Ben Elliston <bje@au.ibm.com> 2707 2708 * strsignal.c (psignal): Change type of signo to int. 2709 * functions.texi: Regenerate. 2710 27112007-01-29 Simon Baldwin <simonb@google.com> 2712 2713 * cp-demangle.h (cplus_demangle_operators): External definition 2714 suppressed if not building for libstdc++. 2715 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface 2716 to demangling, provides a malloc-less version of __cxa_demangle. 2717 (cplus_demangle_print_callback): Public callback version of 2718 cplus_demangle_print. 2719 (struct d_growable_string): New growable string structure. 2720 (d_growable_string_init): New function, provides support for 2721 growable strings separate from print info. 2722 (d_growable_string_resize): Likewise. 2723 (d_growable_string_append_buffer): Likewise. 2724 (d_growable_string_callback_adapter):): Likewise. 2725 (d_print_init): New print info initialization function. 2726 (d_print_error): Macro replace by inline function. 2727 (d_print_saw_error): Likewise. 2728 (d_append_char): Likewise. 2729 (d_append_buffer): Likewise. 2730 (d_append_string): New inline function, replaces the 2731 d_append_string_constant macro. 2732 (d_flush_buffer): New function, flushes buffer to callback. 2733 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback 2734 for unsupported dynamic arrays replaced by alloca(). 2735 (d_demangle): Return string length estimating removed. 2736 (d_dump): Moved error case handling from call site into function. 2737 (d_print_resize): Function removed. 2738 (d_print_append_char): Likewise. 2739 (d_print_append_buffer): Likewise. 2740 (d_print_error): Likewise. 2741 (d_print_comp): Added special case handling for Java arrays. 2742 (java_demangle_v3): Removed string post-processing for Java arrays, 2743 now replaced by special case handling in d_print_comp. 2744 (cplus_demangle_v3_callback): Augmented interface to demangling, 2745 provides a malloc-less version of cplus_demangle_v3. 2746 (java_demangle_v3_callback): Augmented interface to demangling, 2747 provides a malloc-less version of java_demangle_v3. 2748 27492007-01-12 Ben Elliston <bje@au.ibm.com> 2750 2751 * pex-unix.c (writeerr): Cast write result to void. 2752 2753 * choose-temp.c (choose_temp_base): Check the result of the call 2754 to mktemp rather than testing the length of the modified string. 2755 27562006-12-20 Geoffrey Keating <geoffk@apple.com> 2757 2758 * cp-demangle.h: Add comment explaining what to do to avoid 2759 overrunning string. 2760 (d_check_char): New. 2761 (d_next_char): Don't advance past trailing '\0'. 2762 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char. 2763 (d_nested_name): Likewise. 2764 (d_special_name): Likewise. 2765 (d_call_offset): Likewise. 2766 (d_function_type): Likewise. 2767 (d_array_type): Likewise. 2768 (d_pointer_to_member_type): Likewise. 2769 (d_template_param): Likewise. 2770 (d_template_args): Likewise. 2771 (d_template_arg): Likewise. 2772 (d_expr_primary): Likewise. 2773 (d_local_name): Likewise. 2774 (d_substitution): Likewise. 2775 (d_ctor_dtor_name): Use d_advance rather than d_next_char. 2776 * testsuite/test-demangle.c: Include sys/mman.h. 2777 (MAP_ANONYMOUS): Define. 2778 (protect_end): New. 2779 (main): Use protect_end. 2780 * testsuite/demangle-expected: Add testcases for overrunning 2781 the end of the string. 2782 27832006-11-30 Andrew Stubbs <andrew.stubbs@st.com> 2784 J"orn Rennecke <joern.rennecke@st.com> 2785 2786 PR driver/29931 2787 * make-relative-prefix.c (make_relative_prefix_1): New function, 2788 broken out of make_relative_prefix. Make link resolution dependent 2789 on new parameter. 2790 (make_relative_prefix): Use make_relative_prefix_1. 2791 (make_relative_prefix_ignore_links): New function. 2792 27932006-11-08 Vladimir Prus <vladimir@codesourcery.com> 2794 2795 * pex-win32.c (no_suffixes): Remove. 2796 (std_suffixes): Add "" as first element. 2797 (find_executable): Remove detection of already-present 2798 extension. Try all suffixes in std_suffixes. 2799 28002006-11-07 Julian Brown <julian@codesourcery.com> 2801 2802 * floatformat.c (get_field): Fix segfault with little-endian word 2803 order on 64-bit hosts. 2804 (put_field): Likewise. 2805 (min): Move definition. 2806 28072006-10-26 Danny Smith <dannysmith@users.sourceforge.net> 2808 2809 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC. 2810 (find_executable): Likewise. 2811 (win32_spawn): Cast alloca return to (char**). 2812 Replace malloc with XNEWVEC. 2813 bcopy.c (bcopy): Add explict casts in assignments. 2814 28152006-10-25 Ben Elliston <bje@au.ibm.com> 2816 2817 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}. 2818 28192006-10-10 Brooks Moses <bmoses@stanford.edu> 2820 2821 * Makefile.in: Added "pdf", "libiberty.pdf" target support. 2822 * testsuite/Makefile.in: Added empty "pdf" target. 2823 28242006-09-22 Ian Lance Taylor <ian@airs.com> 2825 2826 PR other/29176 2827 * cp-demangle.c (d_substitution): Check for overflow when 2828 computing substitution index. 2829 28302006-08-30 Corinna Vinschen <corinna@vinschen.de> 2831 2832 * configure.ac: Add case for Mingw as host. 2833 * configure: Regenerate. 2834 28352006-08-27 Ian Lance Taylor <ian@airs.com> 2836 2837 PR driver/27622 2838 * pex-common.h (struct pex_funcs): Add toclose parameter to 2839 exec_child field. 2840 * pex-common.c (pex_run_in_environment): Pass toclose to 2841 exec_child. 2842 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter. 2843 * pex-unix.c (pex_unix_exec_child): Likewise. 2844 * pex-msdos.c (pex_msdos_exec_child): Likewise. 2845 * pex-win32.c (pex_win32_exec_child): Likewise. 2846 2847 PR other/28797 2848 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution 2849 for a qualified member which is not a function. 2850 * testsuite/demangle-expected: Add test case. 2851 28522006-07-27 Jan Hubicka <jh@suse.cz> 2853 2854 PR rtl-optimization/28071 2855 * hashtab.c (htab_empty): Clear out n_deleted/n_elements; 2856 downsize the hashtable. 2857 28582006-07-04 Peter O'Gorman <peter@pogma.com> 2859 2860 * Makefile.in: chmod 644 before ranlib during install. 2861 28622006-06-02 Mark Shinwell <shinwell@codesourcery.com> 2863 2864 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning 2865 to environ. 2866 28672006-06-01 Mark Shinwell <shinwell@codesourcery.com> 2868 2869 * pex-common.c: New function pex_run_in_environment. 2870 * pex-common.h: Add environment parameter to exec_child. 2871 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child. 2872 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child. 2873 (pex_djgpp_exec_child): Pass environment to child process. 2874 * pex-unix.c: Add environment parameter to pex_unix_exec_child. 2875 (pex_unix_exec_child): Pass environment to child process. 2876 * pex-win32.c: Add environment parameter to pex_win32_exec_child. 2877 New function env_compare for comparing VAR=VALUE pairs. 2878 (win32_spawn): Assemble environment block and pass to CreateProcess. 2879 (spawn_script): Pass environment through to win32_spawn. 2880 (pex_win32_exec_child): Pass environment through to spawn_script and 2881 win32_spawn. 2882 * functions.texi: Regenerate. 2883 * pexecute.txh: Document pex_run_in_environment. 2884 28852006-05-28 Mark Shinwell <shinwell@codesourcery.com> 2886 2887 * mkstemps.c: Open temporary files in binary mode. 2888 28892006-05-12 Anton Blanchard <anton@samba.org> 2890 2891 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to 2892 hold "int%u_t". 2893 28942006-04-24 Julian Brown <julian@codesourcery.com> 2895 2896 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case. 2897 28982006-03-29 Jim Blandy <jimb@codesourcery.com> 2899 2900 * pex-common.c (pex_input_file, pex_input_pipe): New functions. 2901 (pex_init_common): Initialize obj->input_file. 2902 (pex_run): Close any file opened by pex_input_file. 2903 * pexecute.txh (pex_input_file, pex_input_pipe): New docs. 2904 * pex-common.h (struct pex_obj): New field input_file. 2905 (struct pex_funcs): New function ptr fdopenw. 2906 * pex-unix.c (pex_unix_fdopenw): New function. 2907 (funcs): List it as our fdopenw function. 2908 * pex-win32.c (pex_win32_fdopenw): New function. 2909 (funcs): List it as our fdopenw function. 2910 * pex-djgpp.c (funcs): Leave fdopenw null. 2911 * pex-msdos (funcs): Same. 2912 * functions.texi: Regenerated. 2913 29142006-04-10 Jim Blandy <jimb@codesourcery.com> 2915 2916 * pex-common.c (temp_file): New function, containing guts of 2917 pex-style temporary file name generation. 2918 (pex_run): Use it. 2919 29202006-04-06 Carlos O'Donell <carlos@codesourcery.com> 2921 2922 * Makefile.in: Add install-html, install-html-am, and 2923 install-html-recursive targets. Define mkdir_p and 2924 NORMAL_INSTALL. 2925 * configure.ac: AC_SUBST datarootdir, docdir, htmldir. 2926 * configure: Regenerate. 2927 * testsuite/Makefile.in: Add install-html and html targets. 2928 29292006-03-31 Mark Mitchell <mark@codesourcery.com> 2930 2931 * pex-win32.c (<errno.h>): Include. 2932 (fix_argv): Remove. 2933 (argv_to_cmdline): New function. 2934 (std_suffixes): New variable. 2935 (no_suffixes): Likewise. 2936 (find_executable): New function. 2937 (win32_spawn): Likewise. 2938 (spawn_script): Use win32_spawn instead of _spawnv[p]. 2939 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls. 2940 (pex_win32_wait): Likewise. 2941 29422006-03-24 Jim Blandy <jimb@codesourcery.com> 2943 2944 * pex-common.c (pex_run): Simplify output name handling. 2945 29462006-03-12 Jim Blandy <jimb@red-bean.com> 2947 2948 * pex-common.h (struct pex_obj): Doc fixes. 2949 29502006-03-11 Jim Blandy <jimb@red-bean.com> 2951 2952 * functions.texi: Regenerate. 2953 29542006-02-21 Ben Elliston <bje@au.ibm.com> 2955 2956 * pexecute.c (pwait): Syntax fix for previous change. 2957 29582006-02-17 Uttam Pawar <uttamp@us.ibm.com> 2959 2960 * pexecute.c (pwait): Free vector pointer. 2961 * partition.c (partition_print): Free class_elements pointer. 2962 29632006-02-11 Roger Sayle <roger@eyesopen.com> 2964 R. Scott Bailey <scott.bailey@eds.com> 2965 Bill Northcott <w.northcott@unsw.edu.au> 2966 2967 PR bootstrap/16787 2968 * floatformat.c: Include <float.h> where available. 2969 (NAN): Use value of DBL_QNAN if defined, and NAN isn't. 2970 29712006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net> 2972 2973 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where 2974 supported. 2975 * configure: Regenerated. 2976 29772006-01-20 Carlos O'Donell <carlos@codesourcery.com> 2978 2979 * testsuite/Makefile.in: Add test-expandargv test. 2980 * testsuite/test-expandargv.c: New test. 2981 * argv.c (expandargv): Check for errors with ferror, 2982 rather than just by looking at return value from fread. 2983 29842005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net> 2985 2986 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast 2987 to convert from "from". 2988 (floatformat_to_double): Likewise. 2989 (floatformat_from_double): Use explicit cast to convert from "to". 2990 29912005-12-10 Terry Laurenzo <tlaurenzo@gmail.com> 2992 2993 PR java/9861 2994 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer 2995 and include return type when found. 2996 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add 2997 conditional logic to change printing order of return type.when 2998 the DMGL_RET_POSTFIX option is present. 2999 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle 3000 call. 3001 * testsuite/test-demangle.c (main): Recognize option --ret-postfix 3002 * testsuite/demangle-expected: Test cases to verify extended encoding. 3003 Updated comment to document --ret-postfix option. 3004 30052005-11-06 Richard Guenther <rguenther@suse.de> 3006 3007 * splay-tree.c (rotate_left): New function. 3008 (rotate_right): Likewise. 3009 (splay_tree_splay_helper): Remove. 3010 (splay_tree_splay): Re-implement. 3011 30122005-10-31 Mark Kettenis <kettenis@gnu.org> 3013 3014 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double): 3015 New variables. 3016 30172005-10-07 Mark Mitchell <mark@codesourcery.com> 3018 3019 * at-file.texi: Fix typo. 3020 30212005-10-03 Mark Mitchell <mark@codesourcery.com> 3022 3023 * at-file.texi: New file. 3024 30252005-09-27 Mark Mitchell <mark@codesourcery.com> 3026 3027 * argv.c (expandargv): Do not use xmalloc_failed. 3028 30292005-09-26 Mark Mitchell <mark@codesourcery.com> 3030 3031 * argv.c (safe-ctype.h): Include it. 3032 (ISBLANK): Remove. 3033 (stdio.h): Include. 3034 (buildargv): Use ISSPACE instead of ISBLANK. 3035 (expandargv): New function. 3036 * Makefile.in: Regenerated. 3037 30382005-09-14 Christopher Faylor <cgf@timesys.com> 3039 3040 * pex-win32.c: Include "windows.h". 3041 (backslashify): New function. 3042 (fix_argv): Use backslashify to convert path to windows format. 3043 Allocate one more place in new argv for potential executable from '#!' 3044 parsing. 3045 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS 3046 (openkey): Ditto. 3047 (mingw_rootify): Ditto. 3048 (msys_rootify): Ditto. 3049 (spawn_script): New function. 3050 (pex_win32_exec_child): Save translated argv in newargv. Pass to 3051 spawn_script if spawnv* fails. 3052 (main): New function. Conditional on MAIN. Useful for testing. 3053 30542005-08-17 Mark Kettenis <kettenis@gnu.org> 3055 3056 * floatformat.c (floatformat_always_valid): Change type of last 3057 argument to `void *'. 3058 (floatformat_i387_ext_is_valid): Likewise. 3059 (floatformat_to_double): Change type of second argument to `const 3060 void *'. 3061 (floatformat_from_double): Change type of last argument to `void 3062 *'. 3063 (floatformat_is_valid): Change type of last argument to `const 3064 void *'. 3065 (ieee_test): Remove redundant casts. 3066 30672005-08-17 Kelley Cook <kcook@gcc.gnu.org> 3068 3069 * strverscmp.c: Update FSF address. 3070 * testsuite/Makefile.in: Likewise. 3071 * testsuite/test-demangle.c: Likewise. 3072 * testsuite/test-pexecute.c: Likewise. 3073 30742005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3075 3076 * getopt.c: Include ansidecl.h before system headers. 3077 30782005-07-22 Ben Elliston <bje@gnu.org> 3079 3080 * getopt.c: Include "ansidecl.h". 3081 (_getopt_initialize): Mark argc and argv parameters as unused. 3082 30832005-07-22 Ben Elliston <bje@gnu.org> 3084 3085 * regex.c (regcomp): Change type of `i' from unsigned to int. 3086 30872005-07-22 Ben Elliston <bje@gnu.org> 3088 3089 Recover patch lost in the sourceware repository: 3090 2005-07-09 Ben Elliston <bje@au.ibm.com> 3091 * memcpy.c: Remove ANSI_PROTOTYPES conditional code. 3092 * memmove.c: Likewise. 3093 * objalloc.c: Likewise. 3094 30952005-07-22 Ben Elliston <bje@gnu.org> 3096 3097 * configure.ac: Check for a getopt(3) declaration. 3098 * configure, config.in: Regenerate. 3099 31002005-07-15 Ben Elliston <bje@au.ibm.com> 3101 3102 * regex.c (TRANSLATE): Cast rhs of ternary expression to char. 3103 31042005-07-12 Ben Elliston <bje@au.ibm.com> 3105 3106 * floatformat.c (floatformat_to_double): Add a comment about a 3107 potential source of warnings when compiling this file. 3108 31092005-07-12 Ben Elliston <bje@au.ibm.com> 3110 3111 * pexecute.c (pexecute): Cast string litrals to char *. 3112 * regex.c (re_comp): Cast a call to gettext() to char *. 3113 31142005-07-07 Kelley Cook <kcook@gcc.gnu.org> 3115 3116 * config.table: Delete file. Move former contents into ... 3117 * configure.ac: ... here and escape any brackets for m4. 3118 * Makefile.in (config.status): Remove dependency on config.table. 3119 * configure: Regenerate. 3120 31212005-07-07 Kelley Cook <kcook@gcc.gnu.org> 3122 3123 * config.in: Regenerate for 6/20 change. 3124 31252005-07-03 Steve Ellcey <sje@cup.hp.com> 3126 3127 PR other/13906 3128 * md5.c (md5_process_bytes): Check alignment. 3129 31302005-07-01 Ian Lance Taylor <ian@airs.com> 3131 3132 PR other/22268 3133 * cp-demangle.c (d_expr_primary): Don't run off the end of the 3134 string while looking for the end of a literal value. 3135 * testsuite/demangle-expected: Add test case. 3136 31372005-06-30 Daniel Berlin <dberlin@dberlin.org> 3138 3139 * hashtab.c (EMPTY_ENTRY): Moved and renamed. 3140 (DELETED_ENTRY): Ditto. 3141 31422005-06-20 Geoffrey Keating <geoffk@apple.com> 3143 3144 * strverscmp.c: New. 3145 * Makefile.in (CFILES): Add strverscmp.c. 3146 (CONFIGURED_OFILES): Add strverscmp.o. 3147 (strverscmp.o): New rule. 3148 (stamp-functions): Add $(srcdir) to files in source directory. 3149 * configure.ac (funcs): Add strverscmp. 3150 (AC_CHECK_FUNCS): Add strverscmp. 3151 * configure: Regenerate. 3152 * functions.texi: Regenerate. 3153 31542005-05-28 Eli Zaretskii <eliz@gnu.org> 3155 3156 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS. 3157 * config.in, configure: Regenerate. 3158 31592005-05-25 Richard Henderson <rth@redhat.com> 3160 3161 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS. 3162 (d_make_comp, d_print_comp): Likewise. 3163 (d_special_name): Generate one. 3164 * testsuite/demangle-expected: Add a hidden alias test. 3165 31662005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net> 3167 3168 * configure.ac: Check declarations for calloc(), getenv(), 3169 malloc(), realloc() and sbrk(). 3170 * config.in: Regenerate. 3171 * configure: Likewise. 3172 3173 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC 3174 instead of xmalloc. 3175 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc. 3176 * concat.c (liiberty_concat_ptr): Surround definition with an 3177 extern "C" block, if __cplusplus. 3178 (concat): Use XNEWVEC instead of xmalloc. 3179 (reconcat): Likewise. 3180 * cp-demangle.c (struct d_print_template): Rename member 3181 "template" to "template_decl". Adjust use throughout the file. 3182 (d_print_resize): Properly cast return value of realloc(). 3183 (cplus_demangle_print): Same for malloc(). 3184 (d_demangle): Likewise. 3185 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter 3186 "typename" to "type_name". 3187 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc(). 3188 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc(). 3189 (demangle_template_value_parm): Likewise. 3190 (demangle_template): Likewise. 3191 (recursively_demangle): Likewise. 3192 (do_hpacc_template_literal): Likewise. 3193 (do_arg): Likewise. 3194 (remember_type): Likewise. 3195 (remember_Ktype): Likewise. 3196 (register_Btype): Likewise. 3197 (string_need): Use XRESIZEVEC instead of xrealloc(). 3198 * dyn-string.c (dyn_string_init): Use XNEWVEC. 3199 (dyn_string_new): Use XNEW. 3200 (dyn_string_resize): Use XRESIZEVEC. 3201 * fnmatch.c (fnmatch): Rename local variable "not" to "negate". 3202 * getopt.c (getenv): Declare only if !__cplusplus and !getenv. 3203 Otherwise include <stdlib.h>. 3204 (exchange): Cast return value of malloc(). 3205 * hashtab.c (htab_size): Define as both macro and non-inline 3206 function. 3207 (htab_elements): Likewise. 3208 * getpwd.c (getpwd): Use XNEWVEC. 3209 (htab_create_alloc_ex): Use C90 prototype-style. 3210 * lrealpath.c (lrealpath): Appropriately cast return value of 3211 malloc(). 3212 * make-relative-prefix.c (save_string): Likewise. 3213 * make-temp-file.c (try_dir): Rename from "try". Adjust use in 3214 the file. 3215 (choose_tmpdir): Use XNEWVEC. 3216 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern". 3217 * pex-common.c (pex_init_common): Use XNEW. 3218 (pex_add_remove): Use XRESIZEVEC. 3219 (pex_run): Likewise. 3220 (pex_get_status_and_time): Likewise. 3221 * pex-djgpp.c (pex_djgpp_exec_child): Likewise. 3222 * pex-msdos.c (pex_init): Use XNEW. 3223 (pex_msdos_exec_child): Likewise. 3224 (pex_msdos_exec_child): Use XRESIZEVEC. 3225 * pex-unix.c (pex_wait): Use XNEW. 3226 * pex-win32.c (fix_argv): Use XNEWVEC. 3227 * pexecute.c (pwait): Likewise. 3228 * setenv.c (setenv): Properly cast return value of malloc(). 3229 * sigsetmask.c (sigsetmask): Rename local variables "old" and 3230 "new" to "old_sig" and "new_sig". 3231 * sort.c (main): Use XNEWVEC. 3232 * spaces.c (spaces): Cast return value of malloc(). 3233 * strndup.c (strndup): Likewise. 3234 * ternary.c (ternary_insert): Use XNEW. 3235 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration 3236 with an extern "C" block if __cplusplus. 3237 * xstrdup.c (xstrdup): Cast return value of memcpy(). 3238 * xstrerror.c (strerror): Enclose declaration in an extern "C" 3239 block if __cplusplus. 3240 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy(). 3241 32422005-05-16 Andreas Jaeger <aj@suse.de> 3243 3244 * getpwd.c: Remove unneeded prototype getcwd and move getwd so 3245 that it's only declared if needed. 3246 3247 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is 3248 defined. 3249 32502005-05-15 Andreas Jaeger <aj@suse.de> 3251 3252 * functions.texi: Regenerated. 3253 32542005-05-15 Eli Zaretskii <eliz@gnu.org> 3255 3256 * pexecute.txh: Enclose multi-word data types in @deftypefn in 3257 braces. Minor wording fixes. Use --- for em-dash. Use 3258 @enumerate in enumerated lists. 3259 3260 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in 3261 braces. 3262 32632005-05-11 Eli Zaretskii <eliz@gnu.org> 3264 3265 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and 3266 sys/stat.h. 3267 (pex_init): Fix last argument to pex_init_common. 3268 (pex_djgpp_exec_child): Remove leading underscore from _open, 3269 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program', 3270 which is undeclared, with `executable', which was unused. Remove 3271 unused variable `e'. Fix casting of last arg to spawnv/spawnvp. 3272 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED. 3273 32742005-05-11 Paul Brook <paul@codesourcery.com> 3275 3276 * Makefile.in: Regenerate dependencies. 3277 32782005-05-10 Nick Clifton <nickc@redhat.com> 3279 3280 * Update the address and phone number of the FSF organization in 3281 the GPL notices in the following files: 3282 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c, 3283 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c, 3284 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c, 3285 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c, 3286 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c, 3287 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c, 3288 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c, 3289 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c, 3290 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c, 3291 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c, 3292 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c, 3293 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c, 3294 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c 3295 32962005-05-06 Kelley Cook <kcook@gcc.gnu.org> 3297 3298 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove. 3299 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE. 3300 * configure: Regenerate. 3301 33022005-05-06 Kelley Cook <kcook@gcc.gnu.org> 3303 3304 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS. 3305 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF. 3306 * aclocal.m4: Don't include accross.m4. 3307 * configure, config.in: Regenerate. 3308 33092005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3310 3311 * fopen_unlocked.c (unlock_std_streams): New. 3312 3313 * functions.texi: Regenerate. 3314 33152005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3316 3317 * fopen_unlocked.c (unlock_stream): New. 3318 Consolidate unlocking code into a helper function. 3319 3320 * functions.texi: Regenerate. 3321 33222005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net> 3323 3324 * asprintf.c: Include config.h. 3325 * basename.c: Likewise. 3326 * fdmatch.c: Likewise. 3327 * hex.c: Likewise. 3328 * lbasename.c: Likewise. 3329 * spaces.c: Likewise. 3330 * xatexit.c:Likewise. 3331 * configure.ac: Do check declarations for basename, ffs, asprintf 3332 and vasprintf for real. 3333 * configure: Regenerate. 3334 33352005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net> 3336 3337 * argv.c (dupargv): Allocate space of argv[argc], not 3338 sizeof(char *) of that amount. Cast result to char *. 3339 33402005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net> 3341 3342 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal): 3343 Replace not with negate. 3344 33452005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net> 3346 3347 * configure.ac: Check declarations for basename, ffs, asprintf, 3348 vasprintf. 3349 * configure: Regenerate. 3350 * config.in: Likewise. 3351 33522005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3353 3354 * Makefile.in (CFILES): Add fopen_unlocked.c. 3355 (REQUIRED_OFILES): Add ./fopen_unlocked.o. 3356 Regenerate dependencies. 3357 3358 * configure.ac: Check for stdio_ext.h and __fsetlocking. 3359 3360 * fopen_unlocked.c: New file. 3361 3362 * functions.texi, configure, config.in: Regenerate. 3363 33642005-04-04 Ian Lance Taylor <ian@airs.com> 3365 3366 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable 3367 declaration before statement. 3368 33692005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3370 3371 * bcmp.c: Fix warnings and implement using memcmp. 3372 * bcopy.c: Fix warnings. 3373 * bzero.c: Fix warnings and implement using memset. 3374 3375 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings 3376 -Wstrict-prototypes. 3377 * configure, config.in: Regenerate. 3378 3379 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix 3380 warnings and reconcile interfaces with relevant standards. 3381 33822005-04-02 Ian Lance Taylor <ian@airs.com> 3383 3384 * cp-demangle.c: Update copyright. 3385 33862005-03-31 Joseph S. Myers <joseph@codesourcery.com> 3387 3388 * gettimeofday.c: Add "Supplemental" to @deftypefn. 3389 * functions.texi: Regenerate. 3390 33912005-03-28 Ian Lance Taylor <ian@airs.com> 3392 3393 * pex-common.c: New file. 3394 * pex-one.c: New file. 3395 * pexecute.c: New file. 3396 * pex-common.h: Include <stdio.h>. 3397 (struct pex_obj): Define. 3398 (struct pex_funcs): Define. 3399 (pex_init_common): Declare. 3400 * pex-unix.c: Rewrite. 3401 * pex-win32.c: Rewrite. 3402 * pex-djgpp.c: Rewrite. 3403 * pex-msdos.c: Rewrite. 3404 * testsuite/text-pexecute.c: New file. 3405 * pexecute.txh: Rewrite. 3406 * configure.ac: Check for wait3 and wait4. Set CHECK to 3407 really-check rather than check-cplus-dem. 3408 * functions.texi: Rebuild. 3409 * Makefile.in: Rebuild dependencies. 3410 (CFILES): Add pexecute.c, pex-common.c, pex-one.c. 3411 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o. 3412 * testsuite/Makefile.in (really-check): New target. 3413 (check-pexecute, test-pexecute): New targets. 3414 * configure: Rebuild. 3415 34162005-03-28 Mark Kettenis <kettenis@gnu.org> 3417 3418 * unlink-if-ordinary.c: Include <sys/types.h>. 3419 34202005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3421 3422 Convert libiberty to use ISO C prototype style 7/n. 3423 * regex.c (PARAMS): Remove definition. 3424 (PREFIX): Unconditionaly define using ISO C ## operator. 3425 (init_syntax_once, extract_number, extract_number_and_incr, 3426 print_fastmap, print_partial_compiled_pattern, 3427 print_compiled_pattern, print_double_string, printchar, 3428 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers, 3429 regex_compile, store_op1, store_op2, insert_op1, insert_op2, 3430 at_begline_loc_p, at_endline_p, group_in_compile_stack, 3431 insert_space, wcs_compile_range, byte_compile_range, 3432 truncate_wchar, re_compile_fastmap, re_compile_fastmap, 3433 re_set_registers, re_search, re_search_2, re_search_3, re_match, 3434 re_match_2, count_mbs_length, wcs_re_match_2_internal, 3435 byte_re_match_2_internal, group_match_null_string_p, 3436 alt_match_null_string_p, common_op_match_null_string_p, 3437 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp, 3438 regexec, regerror, regfree): Use ISO C prototype style. 3439 * partition.c: (elem_compare): Likewise. 3440 * cp-demangle.c (print_usage): Likewise. 3441 34422005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3443 3444 Convert libiberty to use ISO C prototype style 5/n. 3445 * random.c (srandom, initstate, setstate, random): Use ISO C 3446 prototypes. 3447 * putenv.c (putenv): Likewise. 3448 * physmem.c (physmem_available, physmem_total, main): Likewise. 3449 * pex-win32.c (fix_argv, pexecute, pwait): Likewise. 3450 * pex-unix.c (pexecute, pwait): Likewise. 3451 * pex-msdos.c (pexecute, pwait): Likewise. 3452 * pex-djgpp.c (pexecute, pwait): Likewise. 3453 * partition.c (partition_new, partition_delete, partition_union) 3454 (elem_compare, partition_print): Likewise. 3455 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk, 3456 _obstack_allocated_p, _obstack_free, obstack_free, 3457 _obstack_memory_used, print_and_abort, obstack_next_free, 3458 obstack_object_size, obstack_base): Likewise. Remove codes 3459 predicated on !defined(__STDC__). 3460 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free, 3461 objalloc_free_block): Use ISO C prototypes. 3462 * mkstemps.c (mkstemps): Likewise. 3463 * memset.c (memset): Likewise. 3464 * mempcpy.c (mempcpy): Likewise. 3465 * rename.c (rename): Likewise. 3466 * rindex.c (rindex): Likewise. 3467 * setenv.c (setenv, unsetenv): Likewise. 3468 * sigsetmask.c (sigsetmask): Likewise. 3469 * snprintf.c (snprintf): Likewise. 3470 * sort.c (sort_pointers, xmalloc): Likewise. 3471 * spaces.c (spaces): Likewise. 3472 * splay-tree.c (splay_tree_delete_helper, 3473 splay_tree_splay_helper, splay_tree_splay, 3474 splay_tree_foreach_helper, splay_tree_xmalloc_allocate, 3475 splay_tree_new, splay_tree_xmalloc_allocate, 3476 splay_tree_new_with_allocator, splay_tree_delete, 3477 splay_tree_insert, splay_tree_remove, splay_tree_lookup, 3478 splay_tree_max, splay_tree_min, splay_tree_predecessor, 3479 splay_tree_successor, splay_tree_foreach, 3480 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise. 3481 * stpcpy.c (stpcpy): Likewise. 3482 * stpncpy.c (stpncpy): Likewise. 3483 * strcasecmp.c (strcasecmp): Likewise. 3484 * strchr.c (strchr): Likewise. 3485 * strdup.c (strdup): Likewise. 3486 34872005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3488 3489 Convert libiberty to use ISO C prototype style 6/n. 3490 * strerror.c (init_error_tables, errno_max, strerror, strerrno, 3491 strtoerrno, main): Use ISO C prototype style. 3492 * strncasecmp.c (strncasecmp): Likewise. 3493 * strncmp.c (strncmp): Likewise. 3494 * strndup.c (strndup): Likewise. 3495 * strrchr.c (strrchr): Likewise. 3496 * strsignal.c (init_signal_tables, signo_max, strsignal, 3497 strsigno, strtosigno, psignal, main): Likewise. 3498 * strstr.c (strstr): Likewise. 3499 * strtod.c (strtod, atof): Likewise. 3500 * strtol.c (strtol): Likewise. 3501 * strtoul.c (strtoul): Likewise. 3502 * ternary.c (ternary_insert, ternary_cleanup, ternary_search, 3503 ternary_recursivesearch): Likewise. 3504 * tmpnam.c (tmpnam): Likewise. 3505 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise. 3506 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise. 3507 * vfork.c (vfork): Likewise. 3508 * vfprintf.c (vfprintf): Likewise. 3509 * vprintf.c (vprintf): Likewise. 3510 * vsnprintf.c (vsnprintf, checkit, main): Likewise. 3511 * vsprintf.c (vsprintf): Likewise. 3512 * waitpid.c (waitpid): Likewise. 3513 * xatexit.c (xatexit, xatexit_cleanup): Likewise. 3514 * xexit.c (xexit): Likewise. 3515 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc, 3516 xcalloc, xrealloc): Likewise. 3517 * xmemdup.c (xmemdup): Likewise. 3518 * xstrdup.c (xstrdup): Likewise. 3519 * xstrerror.c (xstrerror): Likewise. 3520 * xstrndup.c (xstrndup): Likewise. 3521 35222005-03-27 Andreas Jaeger <aj@suse.de> 3523 3524 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional 3525 flags. 3526 * configure: Regenerated. 3527 35282005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3529 3530 * getopt1.c (getopt_long_only): Fix thinko. 3531 35322005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3533 3534 Convert libiberty to use ISO C prototype style 4/n. 3535 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer, 3536 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2, 3537 htab_create_alloc, htab_set_functions_ex, htab_create, 3538 htab_try_create, htab_delete, htab_empty, 3539 find_empty_slot_for_expand, htab_expand, htab_find_with_hash, 3540 htab_find, htab_find_slot_with_hash, htab_find_slot, 3541 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot, 3542 htab_traverse_noresize, htab_traverse, htab_collisions, 3543 htab_hash_string, iterative_hash): Use ISO C prototype. 3544 * hex.c (hex_init): Likewise. 3545 * index.c (index): Likewise. 3546 * insque.c (insque, remque): Likewise. 3547 * lbasename.c (lbasename): Likewise. 3548 * lrealpath.c (lrealpath): Likewise. 3549 * make-relative-prefix.c (save_string, split_directories, 3550 free_split_directories, make_relative_prefix): Likewise. 3551 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise. 3552 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream, 3553 md5_buffer, md5_process_bytes, md5_process_block): Likewise. 3554 * memchr.c (memchr): Likewise. 3555 * memcpy.c (memcpy): Likewise. 3556 * memmove.c (memmove): Likewise. 3557 * gettimeofday.c (gettimeofday): Likewise. 3558 * getruntime.c (get_run_time): Likewise. 3559 * getpwd.c (getpwd, getpwd): Likewise. 3560 * getpagesize.c (getpagesize): Likewise. 3561 * getopt1.c (getopt_long, getopt_long_only, main): Likewise. 3562 * getopt.c (my_index, exchange, _getopt_initialize, 3563 _getopt_internal, getopt, main): Likewise. 3564 * getcwd.c (getcwd): Likewise. 3565 * fnmatch.c (fnmatch): Likewise. 3566 * floatformat.c (floatformat_always_valid, 3567 floatformat_i387_ext_is_valid, get_field, floatformat_to_double, 3568 put_field, floatformat_from_double, floatformat_is_valid, 3569 ieee_test, main): Likewise. 3570 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare, 3571 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key, 3572 fibheap_union, fibheap_extract_min, fibheap_replace_key_data, 3573 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node, 3574 fibheap_delete, fibheap_empty, fibheap_extr_min_node, 3575 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate, 3576 fibheap_link, fibheap_cut, fibheap_cascading_cut, 3577 fibnode_insert_after, fibnode_remove): Likewise. 3578 * ffs.c (ffs): Likewise. 3579 * fdmatch.c (fdmatch): Likewise. 3580 * dyn-string.c (dyn_string_init, dyn_string_new, 3581 dyn_string_delete, dyn_string_release, dyn_string_resize, 3582 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr, 3583 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert, 3584 dyn_string_insert_cstr, dyn_string_insert_char, 3585 dyn_string_append, dyn_string_append_cstr, 3586 dyn_string_append_char, dyn_string_substring, dyn_string_eq): 3587 Likewise. 3588 35892005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3590 3591 Convert libiberty to use ISO C prototype style 3/n. 3592 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count, 3593 consume_count_with_underscores, code_for_qualifier, 3594 qualifier_string, demangle_qualifier, cplus_demangle_opname, 3595 cplus_mangle_opname, cplus_demangle_set_style, 3596 cplus_demangle_name_to_style, cplus_demangle, grow_vect, 3597 ada_demangle, internal_cplus_demangle, squangle_mop_up, 3598 work_stuff_copy_to_from, delete_non_B_K_work_stuff, 3599 delete_work_stuff, mop_up, demangle_signature, 3600 demangle_method_args, demangle_template_template_parm, 3601 demangle_expression, demangle_integral_value, 3602 demangle_real_value, demangle_template_value_parm, 3603 demangle_template, arm_pt, demangle_arm_hp_template, 3604 demangle_class_name, demangle_class, iterate_demangle_function, 3605 demangle_prefix, gnu_special, recursively_demangle, arm_special, 3606 demangle_qualified, get_count, do_type, demangle_fund_type, 3607 do_hpacc_template_const_value, do_hpacc_template_literal, 3608 snarf_numeric_literal, do_arg, remember_type, remember_Ktype, 3609 register_Btype, remember_Btype, forget_B_and_K_types, 3610 forget_types, demangle_args, demangle_nested_args, 3611 demangle_function_name, string_need, string_delete, string_init, 3612 string_clear, string_empty, string_append, string_appends, 3613 string_appendn, string_prepend, string_prepends, string_prependn, 3614 string_append_template_idx): Use ISO C prootype style. 3615 * cp-demint.c (cplus_demangle_fill_component, 3616 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator, 3617 cplus_demangle_v3_components): Likewise. 3618 36192005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net> 3620 3621 Convert libiberty to use ISO C prototype style 2/n. 3622 * cp-demangle.h: Remove uses of PARAMS. 3623 * cp-demangle.c: Likewise. 3624 (d_dump, cplus_demangle_fill_name, 3625 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor, 3626 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name, 3627 d_make_builtin_type, d_make_operator, d_make_extended_operator, 3628 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub, 3629 cplus_demangle_mangled_name, has_return_type, 3630 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name, 3631 d_prefix, d_unqualified_name, d_source_name, d_number, 3632 d_identifier, d_operator_name, d_special_name, d_call_offset, 3633 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers, 3634 d_function_type, d_bare_function_type, d_class_enum_type, 3635 d_array_type, d_pointer_to_member_type, d_template_param, 3636 d_template_args, d_template_arg, d_expression, d_expr_primary, 3637 d_local_name, d_discriminator, d_add_substitution, 3638 d_substitution, d_print_resize, d_print_append_char, 3639 d_print_append_buffer, d_print_error, cplus_demangle_print, 3640 d_print_comp, d_print_java_identifier, d_print_mod_list, 3641 d_print_mod, d_print_function_type, d_print_array_type, 3642 d_print_expr_op, d_print_cast, cplus_demangle_init_info, 3643 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3, 3644 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor, 3645 print_usage, main): 3646 36472005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net> 3648 3649 Convert libiberty to ISO C prototype style 1/n. 3650 * _doprnt.c: Remove conditional #include <varargs.h> on 3651 ANSI_PROTOTYPES as the latter is always assumed. 3652 (_doprnt, checkit, main): Use ISO C prototype. 3653 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype. 3654 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES. 3655 (dupargv, freeargv, buildargv, main): Use ISO C prototype. 3656 * atexit.c (atexit): Likewise 3657 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES. 3658 (asprintf): Use ISO C prototype. 3659 * basename.c (basename): Likewise 3660 * bcmp.c (bcmp): Likewise. 3661 * bcopy.c (bcopy): Likewise. 3662 * bzero.c (bzero): Likewise. 3663 * bsearch.c (bsearch): Likewise. Improve const-correctness. 3664 * choose-temp.c (choose_temp_base): Likewise. 3665 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES. 3666 (calloc): Use ISO C prototype. 3667 * clock.c (clock): Likewise. 3668 * concat.c: Remove conditional #include on ANSI_PROTOTYPES. 3669 (vconcat_length, vconcat_copy, concat_length, concat_copy, 3670 concat_copy2, concat, reconcat, main): Use ISO C prototype. 3671 * copysign.c (copysign): Likewise. 3672 36732005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3674 3675 * Makefile.in (CFILES): Add strndup.c and xstrndup.c. 3676 (REQUIRED_OFILES): Add xstrndup.o. 3677 (CONFIGURED_OFILES): Add strndup.o. 3678 Regenerate dependencies. 3679 3680 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup. 3681 3682 * strndup.c, xstrndup.c: New. 3683 3684 * config.in, configure, functions.texi: Regenerate. 3685 36862005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3687 3688 * xmemdup.c, xstrdup.c: Expose the tail call. 3689 36902005-03-09 Mark Mitchell <mark@codesourcery.com> 3691 3692 * configure.ac (funcs): Add gettimeofday. 3693 * configure: Regenerated. 3694 * gettimeofday.c: New file. 3695 * Makefile.in (CFILES): Add gettimeofday. 3696 (CONFIGURED_OFILES): Add gettimeofday.o. 3697 (./gettimeofday.o): New rule. 3698 36992005-03-09 Ian Lance Taylor <ian@airs.com> 3700 3701 * pex-os2.c: Remove. 3702 * configure.ac: Remove *-*-os2-emx* case when setting pexecute. 3703 * Makefile.in (CFILES): Remove pex-os2.c. 3704 (CONFIGURED_OFILES): Remove pex-os2.o. 3705 (pex-os2.o): Remove target. 3706 * configure: Rebuild. 3707 37082005-03-07 Ian Lance Taylor <ian@airs.com> 3709 3710 * mpw-config.in: Remove. 3711 * mpw-make.sed: Remove. 3712 * mpw.c: Remove. 3713 * Makefile.in (CFILES): Remove pex-mpw.c. 3714 (CONFIGURED_OFILES): Remove pex-mpw.o. 3715 (mpw.o, pex-mpw.o): Remove targets. 3716 * maint-tool (undoc): Remove reference to mpw.c. 3717 37182005-03-06 DJ Delorie <dj@redhat.com> 3719 3720 * configure.ac (target_header_dir): vfork is a stub under djgpp. 3721 * configure: Regenerated. 3722 37232005-03-01 Jan Beulich <jbeulich@novell.com> 3724 3725 * Makefile.in (CFILES): Add unlink-if-ordinary.c 3726 (REQUIRED_OFILES): Add unlink-if-ordinary.o. 3727 Add dependencies and rule for unlink-if-ordinary.o. 3728 * unlink-if-ordinary.c: New. 3729 37302005-03-01 Ben Elliston <bje@au.ibm.com> 3731 3732 * hashtab.c (htab_find_slot_with_hash): Make function 3733 documentation clearer. 3734 37352005-02-13 Jason Merrill <jason@redhat.com> 3736 3737 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous 3738 arguments. 3739 37402005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de> 3741 3742 * hex.c (hex_value): Group 'unsigned int' together to get correct 3743 markup. 3744 * functions.texi: Regenerated. 3745 37462004-12-27 H.J. Lu <hongjiu.lu@intel.com> 3747 3748 * Makefile.in: Undo to 2004-12-17. 3749 * aclocal.m4: Likewise. 3750 * config.table: Likewise. 3751 * configure.ac: Likewise. 3752 * maint-tool: Likewise. 3753 * configure: Likewise. 3754 37552004-12-19 H.J. Lu <hongjiu.lu@intel.com> 3756 3757 PR bootstrap/19072 3758 * Makefile.in (enable_shared): New substitute. 3759 (LTTARGETLIB): New. 3760 (PREFIXTARGETLIB): New. 3761 (LTTESTLIB): New. 3762 (PREFIXTESTLIB): New. 3763 (CCLD): New. 3764 (LINK): New. 3765 ($(TARGETLIB)): Use $(LINK) to create libraries and create 3766 targets by hand. 3767 ($(TESTLIB)): Likewise. 3768 (mostlyclean): Don't remove .libs. Remove the libtool object 3769 directory. 3770 3771 * config.table (enable_shared): Removed. 3772 3773 * configure.ac (enable_static): Set to yes. 3774 (AC_PROG_LIBTOOL): Removed. 3775 (AM_DISABLE_SHARED): Uncommented. 3776 (AM_PROG_LIBTOOL): Likewise. 3777 (LIBOBJS): Add `./' to avoid VPATH. 3778 (LTLIBOBJS): Likewise. 3779 (enable_shared): Substitute. 3780 * configure: Regenerated. 3781 37822004-12-18 H.J. Lu <hongjiu.lu@intel.com> 3783 3784 * Makefile.in (top_builddir): Set to `.'. 3785 (OUTPUT_OPTION): Removed. 3786 (LIBTOOL): New. 3787 (LTLIBOBJS): New. 3788 (EXTRA_LTOFILES): New. 3789 (FLAGS_TO_PASS): Add EXTRA_LTOFILES. 3790 (all): Remove stamp-picdir. 3791 (LTCOMPILE): New. 3792 (.c.lo): New rule. 3793 (REQUIRED_LTOFILES): New. 3794 (CONFIGURED_LTOFILES): New. 3795 ($(TARGETLIB)): Check .libs for PIC object files. Depend on 3796 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS). 3797 (stamp-picdir): Completely removed. 3798 (maint-missing): Pass $(REQUIRED_LTOFILES) 3799 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES) 3800 $(CONFIGURED_OFILES) 3801 (maint-buildall): Depend on $(REQUIRED_LTOFILES) 3802 $(CONFIGURED_LTOFILES). 3803 (mostlyclean): Also remove *.lo .libs. 3804 Run "make maint-deps". 3805 3806 * aclocal.m4: Include ../libtool.m4. 3807 3808 * config.table: Don't check --enable-shared. 3809 3810 * configure.ac (AC_PROG_LIBTOOL): Add. 3811 (AC_PROG_CC_C_O): Removed. 3812 (OUTPUT_OPTION): Removed. 3813 (NO_MINUS_C_MINUS_O): Removed. 3814 (ltpexecute): New substitute. 3815 (LIBOBJS): Cleanup. 3816 * configure: Regenerated. 3817 3818 * maint-tool: Updated for .lo/libtool. 3819 38202004-12-11 Ben Elliston <bje@au.ibm.com> 3821 3822 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int). 3823 * configure: Regenerate. 3824 * config.in: Likewise. 3825 38262004-12-07 DJ Delorie <dj@redhat.com> 3827 3828 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so 3829 that recursion (and thus large stack space) is not needed. 3830 38312004-11-29 Matt Kraai <kraai@alumni.cmu.edu> 3832 3833 * pex-unix.c: Fix the spelling of longjmp. 3834 38352004-11-23 Ian Lance Taylor <ian@wasabisystems.com> 3836 3837 PR other/18623 3838 * cp-demangle.c (d_call_offset): Remove useless local variables 3839 offset and virtual_offset. 3840 * cplus-dem.c (ada_demangle): Remove useless local variable 3841 at_start_name. 3842 (demangle_template): Remove useless local variable start. 3843 38442004-11-19 Roger Sayle <roger@eyesopen.com> 3845 3846 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before 3847 "ansidecl.h" to avoid redeclaration errors with native compilers. 3848 * regex.c: Protect config.h from multiple inclusion. 3849 38502004-11-12 Mike Stump <mrs@apple.com> 3851 3852 * Makefile.in (libiberty.html): Fix html generation. 3853 38542004-09-08 Adam Nemet <anemet@lnxw.com> 3855 3856 * vasprintf.c: Accept __va_copy in addition to va_copy. 3857 38582004-09-03 Paolo Bonzini <bonzini@gnu.org> 3859 3860 * configure: Regenerate. 3861 38622004-09-02 Paolo Bonzini <bonzini@gnu.org> 3863 3864 * configure.ac: Do not enable multilibs for build-side libiberty. 3865 38662004-06-29 Danny Smith <dannysmith@users.sourceforge.net> 3867 3868 * lrealpath.c (lrealpath): Add _WIN32 support. 3869 38702004-06-28 Zack Weinberg <zack@codesourcery.com> 3871 3872 * cp-demangle.h: Declare cplus_demangle_operators, 3873 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and 3874 cplus_demangle_type as static if IN_GLIBCPP_V3. 3875 38762004-06-28 Ian Lance Taylor <ian@wasabisystems.com> 3877 3878 PR other/16240 3879 * cp-demangle.c (d_expr_primary): Check for a failure return from 3880 cplus_demangle_type. 3881 * testsuite/demangle-expected: Add test case. 3882 38832004-05-31 Danny Smith <dannysmith@users.sourceforge.net> 3884 3885 * pex-win32.c (fix_argv): Expand comment. 3886 38872004-05-25 Daniel Jacobowitz <drow@false.org> 3888 3889 * Makefile.in: Add .NOEXPORT. 3890 38912004-04-29 Douglas B Rupp <rupp@gnat.com> 3892 3893 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update 3894 copyright. 3895 38962004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl> 3897 3898 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition. 3899 * configure: Regenerate. 3900 39012004-04-22 Richard Henderson <rth@redhat.com> 3902 3903 * hashtab.c: Include limits.h, stdint.h, ansidecl.h. 3904 (CHAR_BIT): Provide default. 3905 (struct prime_ent, prime_tab): New. 3906 (higher_prime_index): Rename from higher_prime_number, return index. 3907 (htab_mod_1): New. 3908 (htab_mod, htab_mod_m2): Use it. 3909 (htab_create_alloc, htab_create_alloc_ex): Store prime index. 3910 (htab_expand): Likewise. 3911 * configure.ac: Check for stdint.h. 3912 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in. 3913 * config.in, configure: Rebuild. 3914 39152004-04-13 Ian Lance Taylor <ian@wasabisystems.com> 3916 3917 * strerror.c: Include config.h, and redefine sys_nerr and 3918 sys_errlist, before including ansidecl.h and libiberty.h. 3919 39202004-04-13 Jeff Law <law@redhat.com> 3921 3922 * hashtab.c (htab_remove_elt_with_hash): New function. 3923 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash. 3924 39252004-03-31 Richard Henderson <rth@redhat.com> 3926 3927 * hashtab.c (htab_size): Move to top of file; mark inline. 3928 (htab_elements): Likewise. 3929 (htab_mod, htab_mod_m2): New. 3930 (htab_delete): Refactor htab->size and htab->entries. 3931 (htab_empty): Likewise. 3932 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2. 3933 (htab_find_with_hash, htab_find_slot_with_hash): Likewise. 3934 (htab_clear_slot): Use htab_size, htab_elements. 3935 (htab_traverse_noresize, htab_traverse): Likewise. 3936 39372004-03-17 Ian Lance Taylor <ian@wasabisystems.com> 3938 3939 * pex-unix.c (pexecute): Use vfork instead of fork, with 3940 appropriate changes to make this safe. 3941 * pex-common.h (STDERR_FILE_NO): Define. 3942 3943 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for 3944 an 80 column screen. Run maint-deps. 3945 39462004-03-09 Kelley Cook <kcook@gcc.gnu.org> 3947 3948 * configure.ac: Bump version to 2.59. Apply suggested autoupdates. 3949 * acconfig.h: Delete redundant file. 3950 * config.in: Regenerate. 3951 * configure: Regenerate. 3952 39532004-03-09 Hans-Peter Nilsson <hp@axis.com> 3954 3955 * configure: Regenerate for config/accross.m4 correction. 3956 39572004-03-07 Andreas Jaeger <aj@suse.de> 3958 3959 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for 3960 prototypes. 3961 (main): Initialize style. 3962 39632004-02-24 Ian Lance Taylor <ian@wasabisystems.com> 3964 3965 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED, 3966 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG, 3967 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT. 3968 * cp-demangle.c (cplus_demangle_builtin_types): Change char and 3969 short types to D_PRINT_DEFAULT. Change other integer types to use 3970 new D_PRINT_* values where appropriate. Change float types to 3971 D_PRINT_FLOAT. 3972 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_* 3973 values. 3974 * testsuite/demangle-expected: Adjust two test cases. 3975 3976 * cp-demangle.c (d_print_function_type): Print a space before the 3977 parenthesis around the function type in more cases. 3978 * testsuite/demangle-expected: Adjust one test case. 3979 3980 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra 3981 parentheses around a cast. 3982 * testsuite/demangle-expected: Adjust two test cases to match new 3983 output. 3984 3985 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle. 3986 3987 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't 3988 push more than one of the same CV-qualifier on the top of the 3989 stack. 3990 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified, 3991 move the CV-qualifiers to apply to the element type instead. 3992 (d_print_array_type): When checking the modifiers, keep looking 3993 past ones which have been printed already. 3994 * testsuite/demangle-expected: Add three test cases. 3995 39962004-02-23 Ian Lance Taylor <ian@wasabisystems.com> 3997 3998 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle 3999 empty string correctly. 4000 4001 * cp-demangle.c (__cxa_demangle): It is not an error if status is 4002 not NULL. It is an error if the mangled name is the same as a 4003 built-in type name. 4004 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather 4005 than cplus_demangle_v3. 4006 4007 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and 4008 the associated #define of RETURN_ON_ALLOCATION_FAILURE. 4009 40102004-02-16 Matt Kraai <kraai@alumni.cmu.edu> 4011 4012 * regex.c: Include <ansidecl.h>. 4013 (regcomp): Cast i to int. 4014 (regerror): Add ATTRIBUTE_UNUSED to parameter preg. 4015 40162004-01-25 Ian Lance Taylor <ian@wasabisystems.com> 4017 4018 * configure.ac: Add m4_pattern_allow(LIBOBJS). 4019 * configure: Regenerate. 4020 40212004-01-22 DJ Delorie <dj@redhat.com> 4022 4023 * Makefile.in: Convert to ./ throughout. Rebuild dependencies 4024 with explicit build rules. 4025 (VPATH): Remove. 4026 (.c.o): Poison. 4027 * configure.ac (pexecute, LIBOBJS): Add ./ . 4028 * maint-tool: Build dependencies with explicit rules. 4029 40302004-01-15 Kazu Hirata <kazu@cs.umass.edu> 4031 4032 * strdup.c (strdup): Constify the argument. 4033 40342004-01-14 Loren J. Rittle <ljrittle@acm.org> 4035 4036 * Makefile.in (distclean): Remove config.cache. 4037 40382004-01-13 Daniel Jacobowitz <drow@mvista.com> 4039 4040 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE 4041 takes two parameters. 4042 * cp-demint.c (cplus_demangle_fill_component): Likewise. 4043 40442004-01-12 Ian Lance Taylor <ian@wasabisystems.com> 4045 4046 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is 4047 defined, rename some functions which are to become static via 4048 #define. 4049 (CP_STATIC_IF_GLIBCPP_V3): Define. 4050 (struct d_operator_info): Move definition to cp-demangle.h, and 4051 rename to demangle_operator_info. Change all uses. 4052 (enum d_builtin_type_print): Move definition to cp-demangle.h. 4053 (struct d_builtin_type_info): Move definition to cp-demangle.h, 4054 and rename to demangle_builtin_type_info. Change all uses. 4055 (enum d_comp_type): Move definition to include/demangle.h, and 4056 rename to demangle_component_type, and change all enums to start 4057 with DEMANGLE_COMPONENT_ instead of D_. Change all uses. 4058 (struct d_comp): Move definition to include/demangle.h, and rename 4059 to demangle_component. Change all uses. 4060 (struct d_info): Move definition to cp-demangle.h. 4061 (cplus_demangle_fill_name): New function. 4062 (cplus_demangle_fill_extended_operator): New function. 4063 (cplus_demangle_fill_ctor): New function. 4064 (cplus_demangle_fill_dtor): New function. 4065 (d_make_empty): Remove type parameter. Change all callers. 4066 (d_make_name): Use cplus_demangle_fill_name. 4067 (d_make_extended_operator): Use 4068 cplus_demangle_fill_extended_operator. 4069 (d_make_ctor): Use cplus_demangle_fill_ctor. 4070 (d_make_dtor): Use cplus_demangle_fill_dtor. 4071 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make 4072 non-static by default. Change all callers. 4073 (cplus_demangle_operators): Rename from d_operators. Change all 4074 uses. Make non-static by default. Add sentinel at end of array. 4075 (d_operator_name): Adjust initialization of high for new sentinel 4076 in cplus_demangle_operators. 4077 (cplus_demangle_builtin_types): Rename from d_builtin_types. 4078 Change all uses. Make non-static by default. Change initializer 4079 to use D_BUILTIN_TYPE_COUNT instead of magic number 26. 4080 (cplus_demangle_type): Rename from d_type. Make non-static by 4081 default. Change all callers. 4082 (cplus_demangle_init_info): Rename from d_init_info. Make 4083 non-static by default. Change all callers. 4084 * cp-demangle.h: New file. 4085 * cp-demint.c: New file. 4086 * Makefile.in: Rebuild dependencies. 4087 (CFILES): Add cp-demint.c. 4088 (REQUIRED_OFILES): Add cp-demint.o. 4089 40902004-01-09 Kelley Cook <kcook@gcc.gnu.org> 4091 4092 * configure.in: Rename file to ... 4093 * configure.ac: ... this. 4094 * Makefile.in: Update a comment for above change. 4095 * README: Likewise. 4096 * config.in: Regenerate. 4097 40982004-01-02 Ian Lance Taylor <ian@wasabisystems.com> 4099 4100 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip 4101 CV-qualifiers from D_COMP_LOCAL_NAME right subtree. 4102 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when 4103 demangling template parameters. 4104 * testsuite/test-demangle.c (fail): New static function. 4105 (main): Support new options in input file: --no-params, 4106 --is-v3-ctor, and --is-v3-dtor. 4107 * testsuite/demangle-expected: Add --no-params to most tests, and 4108 add the correct result when parameters are not demangled. Add 4109 some simple tests for V3 constructor/destructor recognition. 4110 41112003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4112 4113 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change. 4114 41152003-12-22 Daniel Jacobowitz <drow@mvista.com> 4116 4117 PR debug/13272 4118 * Makefile.in (lbasename.o): Depend on filenames.h. 4119 * lbasename.c: Include "filenames.h" instead of defining 4120 its macros locally. 4121 41222003-12-22 Ian Lance Taylor <ian@wasabisystems.com> 4123 4124 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports 4125 dynamic arrays. 4126 (struct d_operator_info): Add len field. 4127 (struct d_builtin_type_info): Add len and java_len fields. 4128 (struct d_standard_sub_info): Add simple_len, full_len, and 4129 set_last_name_len fields. 4130 (struct d_comp): Add len field to s_string. 4131 (struct d_info): Add send, did_subs, and expansion fields. 4132 (d_append_string_constant): Define. 4133 (d_append_string): Remove. Change all users to use 4134 d_append_string_constant or d_append_buffer instead. 4135 (d_make_sub): Add len parameter. Change all callers. 4136 (d_name): Increase expansion when substituting std::. 4137 (d_unqualified_name): Increase expansion for an operator. 4138 (d_number): Don't use multiplication for negative numbers. 4139 (d_identifier): Make sure there are enough characters in the 4140 string for the specified length. Adjust expansion for an 4141 anonymous namespace. 4142 (d_operators): Initialize len field. 4143 (d_special_name, d_ctor_dtor_name): Increase expansion. 4144 (d_builtin_types): Initialize len and java_len fields. 4145 (d_type): Increase expansion for a builtin type. 4146 (d_cv_qualifiers): Increase expansion for each qualifier. 4147 (d_bare_function_type): Decrease expansion when removing single 4148 void parameter. 4149 (d_template_param): Increment did_subs. 4150 (d_expression): Increase expansion for an operator. 4151 (d_expr_primary): Decrease expansion for a type we will print 4152 specially. 4153 (standard_subs): Initialize new fields. 4154 (d_substitution): Increment did_subs when doing a normal 4155 substitution. Increase expansion for a special substitution. 4156 (d_print): Add estimate parameter. Change all callers. 4157 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline. 4158 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call. 4159 (d_print_java_identifier): Rename from d_print_identifier. Handle 4160 only Java case. Change caller. 4161 (d_init_info): Change return type to void. Change all callers. 4162 Initialize send, did_subs, and expansion fields. Do not 4163 initialize comps and subs fields. 4164 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs 4165 arrays on stack. Make an estimate of the length of the demangled 4166 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures. 4167 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and 4168 subs arrays on stack. 4169 41702003-12-20 Ian Lance Taylor <ian@wasabisystems.com> 4171 4172 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$' 4173 after the identifier. 4174 * testsuite/demangle-expected: Add test case. 4175 41762003-12-19 Ian Lance Taylor <ian@wasabisystems.com> 4177 4178 Fix for PR c++/13447: 4179 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME. 4180 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME. 4181 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like 4182 D_COMP_QUAL_NAME. 4183 (is_ctor_or_dtor): Likewise. 4184 (d_local_name): Use D_COMP_LOCAL_NAME rather than 4185 D_COMP_QUAL_NAME. 4186 (d_print_comp) [D_COMP_LOCAL_NAME]: New. 4187 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is 4188 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree. 4189 (d_print_mod_list): Handle D_COMP_LOCAL_NAME. 4190 * testsuite/demangle-expected: Add two test cases. 4191 4192 * cp-demangle.c (d_print_function_type): Clear the global modifier 4193 list when printing the modifiers, not just when printing the 4194 function parameters. 4195 * testsuite/demangle-expected: Add two test cases. 4196 41972003-12-15 Ian Lance Taylor <ian@wasabisystems.com> 4198 4199 * cp-demangle.c (d_print_function_type): Print the function 4200 parameters with no modifiers. 4201 * testsuite/demangle-expected: Add test case. 4202 4203 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't 4204 expect that we've read the entire string. 4205 (is_ctor_or_dtor): Don't expect that we've read the entire 4206 string--reverse patch of 2003-11-29. 4207 42082003-12-15 Brendan Kehoe <brendan@zen.org> 4209 4210 * Makefile.in (floatformat.o): Add dependency on 4211 config.h to accompany change of 2003-12-03. 4212 42132003-12-15 Ian Lance Taylor <ian@wasabisystems.com> 4214 4215 Fix handling of constructor/destructor of standard substitution: 4216 * cp-demangle.c (struct d_standard_sub_info): Define. 4217 (d_substitution): Add prefix argument. Change all callers. 4218 Rework handling of standard substitutions to print full name when 4219 qualifying a constructor/destructor, or when DMGL_VERBOSE is set. 4220 * testsuite/demangle-expected: Add test case. 4221 4222 Fix handling of negative literal constants: 4223 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG. 4224 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG. 4225 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number. 4226 (d_print_comp): Handle D_COMP_LITERAL_NEG. 4227 * testsuite/demangle-expected: Add test case. 4228 42292003-12-04 Ian Lance Taylor <ian@wasabisystems.com> 4230 4231 * cp-demangle.c (IS_UPPER, IS_LOWER): Define. 4232 (d_last_char): Define new macro. 4233 (d_make_name): Reject an empty name. 4234 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros. 4235 (d_substitution, d_print_identifier): Likewise. 4236 (d_print_comp) [D_COMP_OPERATOR]: Likewise. 4237 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro. 4238 (d_print_mod) Use new d_last_char macro. 4239 (d_print_cast): Use new d_last_char macro. 4240 (is_ctor_or_dtor): Don't leak memory. 4241 4242 Fix handling of member function modifiers: 4243 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS, 4244 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS. 4245 (d_dump): Dump new d_comp_type values. 4246 (d_make_comp): Accept new d_comp_type values. 4247 (has_return_type): Only accept _THIS variants of qualifiers. 4248 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of 4249 qualifiers. 4250 (d_cv_qualifiers): Add member_fn parameter. Change all callers. 4251 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing 4252 qualifiers and printing them at the end, add _THIS qualifiers to 4253 the modifier list. 4254 (d_print_comp) [D_COMP_*_THIS]: New cases. 4255 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of 4256 qualifiers. 4257 (d_print_mod_list): Add suffix parameter. Change all callers. 4258 Keep walking the list even if the current modifier has been 4259 printed. 4260 (d_print_mod): Handle new _THIS qualifiers. 4261 (d_print_function_type): Handle new _THIS qualifiers when deciding 4262 whether to print a parenthesis. Put a space before the 4263 parenthesis in some cases. Call d_print_mod_list again at the 4264 end, passing suffix as 1. 4265 (is_ctor_or_dtor): Look for new _THIS qualifiers. 4266 * testsuite/demangle-expected: Add test case. 4267 4268 Fix for PR gcc/13304: 4269 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character 4270 before the '<' is itself a '<', insert a space. 4271 (d_print_cast): Likewise. 4272 * testsuite/demangle-expected: Add test case. 4273 4274 Fix for PR gcc/13244: 4275 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression 4276 which uses the '>' operator in an extra layer of parens. 4277 * testsuite/demangle-expected: Add test case. 4278 42792003-12-03 Ian Lance Taylor <ian@wasabisystems.com> 4280 4281 * floatformat.c: Include "config.h" and <string.h> if available. 4282 (INFINITY, NAN): Define if not defined by <math.h>. 4283 (floatformat_to_double): Handle NaN, infinity, and denormalized 4284 numbers. 4285 (floatformat_from_double): Likewise. 4286 (ieee_test): In debugging code, use little endian rather than big 4287 endian. Correct tests to handle NaN and to check correct sign of 4288 zero. Omit m68k extended test. 4289 (main): Add more debugging cases. 4290 42912003-11-29 Ian Lance Taylor <ian@wasabisystems.com> 4292 4293 * cp-demangle.c (d_demangle): Only return success if we consumed 4294 the entire demangled string. 4295 (is_ctor_or_dtor): Likewise. 4296 4297 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch 4298 to restore expected result of EDG test case to original expected 4299 result. 4300 43012003-11-26 Ian Lance Taylor <ian@wasabisystems.com> 4302 4303 * cp-demangle.c (struct d_print_mod): Add templates field. 4304 (d_make_builtin_type): Check for NULL type. 4305 (d_make_extended_operator): Check for NULL name. 4306 (d_make_ctor, d_make_dtor): Likewise. 4307 (d_mangled_name): Add top_level parameter. Change all callers. 4308 (d_encoding): If DMGL_PARAMS is not set, strip off initial 4309 CV-qualifiers. 4310 (d_type): Check some return values we rely on. 4311 (d_bare_function_type, d_array_type): Likewise. 4312 (d_pointer_to_member_type, d_template_args): Likewise. 4313 (d_add_substitution): Fail if argument is NULL. 4314 (d_print_resize): Check whether buf is NULL. 4315 (d_print_comp): Save current templates list with each modifier. 4316 Don't pass the modifier list down when printing a template. 4317 (d_print_cast): Don't pass the modifier list down when printing a 4318 template. 4319 (d_print_mod_list): Temporarily set templates list while printing 4320 a modifier. 4321 (d_print_mod): Check that buf is not NULL before using it. 4322 (d_print_function_type): Print parens if there is no modifier. 4323 (d_init_info): Permit as many substitutions as there are 4324 characters in the mangled name. 4325 * testsuite/demangle-expected: Add two new test cases. 4326 43272003-11-25 Ian Lance Taylor <ian@wasabisystems.com> 4328 4329 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to 4330 d_demangle. 4331 43322003-11-22 Ian Lance Taylor <ian@wasabisystems.com> 4333 4334 * cp-demangle.c (d_encoding): Add top_level parameter. Change all 4335 callers. 4336 (print_usage): Display new -p option. 4337 (long_options): Add --no-params. 4338 (main): Accept and handle -p. 4339 43402003-11-21 Ian Lance Taylor <ian@wasabisystems.com> 4341 4342 * cp-demangle.c (has_return_type): Skip qualifiers when checking 4343 whether we have a template. 4344 * testsuite/demangle-expected: Add four new tests. 4345 43462003-11-20 Ian Lance Taylor <ian@wasabisystems.com> 4347 4348 * testsuite/demangle-expected: Minor changes to match output of 4349 new demangler: adjust whitespace in four tests, and change order 4350 of qualifiers in one test. 4351 4352 * cp-demangle.c: Complete rewrite. 4353 43542003-11-19 Mark Mitchell <mark@codesourcery.com> 4355 4356 * cp-demangle.c (demangle_type): Correct thinko in substitution 4357 processing. 4358 43592003-11-18 Ian Lance Taylor <ian@wasabisystems.com> 4360 4361 * cp-demangle.c (demangle_operator_name): Remove space before 4362 "sizeof". 4363 (demangle_type_ptr): Put qualifiers in the right place. Handle 4364 qualifiers in pointer to member specially. 4365 (demangle_type): Handle qualifiers for pointer or reference 4366 specially. Handle function type. 4367 (demangle_local_name): Save and restore caret around demangling of 4368 initial encoding. 4369 4370 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to 4371 cplus_demangle. 4372 4373 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a. 4374 43752003-10-31 Andreas Jaeger <aj@suse.de> 4376 4377 * floatformat.c (floatformat_always_valid): Add unused attribute. 4378 43792003-10-30 Josef Zlomek <zlomekj@suse.cz> 4380 4381 Jan Hubicka <jh@suse.cz> 4382 * vasprintf.c (int_vasprintf): Pass va_list by value. 4383 Use va_copy for copying va_list. 4384 (vasprintf): Pass va_list by value. 4385 43862003-10-30 Josef Zlomek <zlomekj@suse.cz> 4387 4388 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted 4389 instead of increasing n_elements when inserting to deleted slot. 4390 43912003-10-20 J. Brobecker <brobecker@gnat.com> 4392 4393 * cplus-dem.c (demangle_template): Register a new Btype only 4394 when needed. 4395 * testsuite/demangle-expected: Add a new test. 4396 43972003-10-16 H.J. Lu <hongjiu.lu@intel.com> 4398 4399 * testsuite/demangle-expected: Update the expected output of 4400 _GLOBAL__I__Z2fnv. 4401 44022003-10-02 Daniel Jacobowitz <drow@mvista.com> 4403 4404 * strerror.c: Revert last change. Declare static sys_nerr 4405 and sys_errlist using different names. 4406 44072003-10-01 Daniel Jacobowitz <drow@mvista.com> 4408 4409 * strerror.c: Don't provide or reference sys_errlist if 4410 strerror is available. 4411 44122003-10-01 H.J. Lu <hongjiu.lu@intel.com> 4413 4414 * configure.in: Check if $MAKEINFO is missing. 4415 * configure: Regenerated. 4416 44172003-09-24 Daniel Jacobowitz <drow@mvista.com> 4418 4419 * configure.in: Use AC_PROG_CPP_WERROR. 4420 * configure: Regenerated. 4421 44222003-09-22 Andrew Cagney <cagney@redhat.com> 4423 4424 * floatformat.c (floatformat_i387_ext_is_valid): New function. 4425 (floatformat_always_valid): New function. 4426 (floatformat_i387_ext): Initialize new "is_valid" field to 4427 "floatformat_i387_ext_is_valid". 4428 (floatformat_ieee_single_little): Initialize "is_valid" field to 4429 floatformat_always_valid. 4430 (floatformat_ieee_double_big): Ditto. 4431 (floatformat_ieee_double_little): Ditto. 4432 (floatformat_ieee_double_little): Ditto. 4433 (floatformat_ieee_double_littlebyte_bigword): Ditto. 4434 (floatformat_i960_ext): Ditto. 4435 (floatformat_m88110_ext): Ditto. 4436 (floatformat_m88110_harris_ext): Ditto. 4437 (floatformat_arm_ext_big): Ditto. 4438 (floatformat_arm_ext_littlebyte_bigword): Ditto. 4439 (floatformat_ia64_spill_big): Ditto. 4440 (floatformat_ia64_spill_little): Ditto. 4441 (floatformat_ia64_quad_big): Ditto. 4442 (floatformat_ia64_quad_little): Ditto. 4443 (floatformat_ia64_quad_little): Ditto. 4444 (floatformat_is_valid): Call "is_valid". 4445 44462003-09-15 Andrew Cagney <cagney@redhat.com> 4447 4448 * floatformat.c (get_field): Make "data" constant. 4449 (floatformat_is_valid, floatformat_to_double): Make "from" 4450 constant, fix casts. 4451 (floatformat_from_double): Make "from" constant. 4452 44532003-09-15 Daniel Jacobowitz <drow@mvista.com> 4454 4455 * floatformat.c (floatformat_is_valid): New function. 4456 (get_field, put_field): Correct comments. 4457 44582003-09-06 Josef Zlomek <zlomekj@suse.cz> 4459 4460 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to 4461 FIBHEAPKEY_T. 4462 44632003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 4464 4465 PR bootstrap/12100 4466 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define. 4467 * configure: Rebuilt. 4468 44692003-08-27 Daniel Jacobowitz <drow@mvista.com> 4470 4471 * aclocal.m4: Include acx.m4 and no-executables.m4. 4472 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ. 4473 (LIB_AC_PROG_CC): Remove. 4474 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES. 4475 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using 4476 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if 4477 performing link tests. 4478 * configure: Regenerated. 4479 44802003-08-12 Nathanael Nerode <neroden@gcc.gnu.org> 4481 4482 * cp-demangle.c: Clarify what package(s) this is part of. 4483 44842003-07-05 Danny Smith <dannysmith@users.sourceforge.net> 4485 4486 * pex-win32.c (pexecute): Mark parameters this_pname and 4487 temp_base as unused. Remove unused variables retries, 4488 sleep_interval. Initialize org_stdin, org_stdout. 4489 (pwait): Mark parameter flags as unused. 4490 44912003-07-02 Danny Smith <dannysmith@users.sourceforge.net> 4492 4493 * pex-win32.c (fix_argv): Ensure that the executable pathname 4494 uses Win32 backslashes. 4495 (pexecute): Cast away constness when assigning *errmsg_arg. 4496 44972003-06-26 H.J. Lu <hongjiu.lu@intel.com> 4498 4499 * testsuite/demangle-expected: Add more GNU V3 testcases. 4500 45012003-06-22 Zack Weinberg <zack@codesourcery.com> 4502 4503 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC, 4504 not HC_ASCII and HC_EBCDIC. 4505 Add documentation in form expected by gather-docs. 4506 * hex.c: Use HOST_CHARSET, not hand-coded check of character set. 4507 * Makefile.in, functions.texi: Regenerate. 4508 45092003-06-21 Zack Weinberg <zack@codesourcery.com> 4510 4511 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET 4512 for charset determination. 4513 45142003-06-19 Dara Hazeghi <dhazeghi@yahoo.com> 4515 4516 * configure.in: Add check for malloc.h needed by 4517 m68k for function free(). 4518 * configure: Regenerated. 4519 * config.in: Add HAVE_MALLOC_H. 4520 * hashtab.c: include malloc.h were available for 4521 free(). 4522 45232003-06-09 Albert Chin-A-Young <china@thewrittenword.com> 4524 4525 PR bootstrap/10974 4526 * physmem.c: Update comment. 4527 * configure.in: Modify test for _system_configuration for older 4528 AIX systems. 4529 4530 * config.in, configure: Regenerated. 4531 45322003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 4533 4534 PR other/10810 4535 * test-demangle.c (getline): Fix fence-post error. 4536 45372003-06-03 Nick Clifton <nickc@redhat.com> 4538 4539 * asprintf.c: Change comment to note that -1 is returned upon 4540 error. 4541 * vasprintf.c: Likewise. 4542 (vasprintf): Return -1 upon error. 4543 * functions.texi: Document changes to asprintf and vasprintf. 4544 45452003-05-19 Kelley Cook <kelleycook@wideopenwest.com> 4546 4547 * config.table: Accept i[345867]86 variant. 4548 45492003-05-15 Jim Blandy <jimb@redhat.com> 4550 4551 * hex.c (_hex_value): Make this unsigned. 4552 (hex_value): Update documentation for new return type. hex_value 4553 now expands to an unsigned int expression, to avoid unexpected 4554 sign extension when we store it in a bfd_vma, which is larger than 4555 int on some platforms. 4556 * functions.texi: Regenerated. 4557 45582003-05-07 Josef Zlomek <zlomekj@suse.cz> 4559 4560 * splay-tree.c (splay_tree_predecessor): Fix comment. 4561 (splay_tree_successor): Fix comment. 4562 45632003-05-07 Jason Merrill <jason@redhat.com> 4564 4565 * hashtab.c (iterative_hash): New fn. 4566 * configure.in: Add AC_C_BIGENDIAN_CROSS. 4567 * aclocal.m4: Include accross.m4. 4568 * configure, config.in: Regenerate. 4569 45702003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4571 4572 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls. 4573 * configure: Regenerate. 4574 45752003-05-03 Carlo Wood <carlo@alinoe.com> 4576 4577 * cp-demangle.c: Fix typo in "char_traints" string-literal. 4578 45792003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4580 4581 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls. 4582 (main): Test that we don't write too much data. 4583 45842003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4585 4586 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and 4587 vsnprintf. 4588 * snprintf.c, vsnprintf.c: New files. 4589 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c. 4590 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o. 4591 Regenerate dependencies. 4592 4593 * functions.texi, configure, config.in: Regenerated. 4594 45952003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4596 4597 * mempcpy.c, stpcpy.c, stpncpy.c: New files. 4598 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy 4599 and stpncpy. 4600 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c. 4601 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o. 4602 Regenerate dependencies. 4603 4604 * functions.texi, configure, config.in: Regenerated. 4605 46062003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4607 4608 * argv.c: Fix comments. 4609 * calloc.c: Don't unnecessarily include "libiberty.h". 4610 (bzero): Add prototype. 4611 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES. 4612 * getcwd.c (getcwd): Use standard definition to avoid conflicts 4613 with system headers. 4614 * hashtab.c (htab_traverse): Delete unused variables. 4615 * rename.c: Include "ansidecl.h". 4616 (rename): Use standard definition to avoid conflicts with system 4617 headers. 4618 * strsignal.c: Rely on ANSI_PROTOTYPES. 4619 * strstr.c: Check GNUC >= 2, not GNUC == 2. 4620 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES. 4621 * vprintf.c: Include "ansidecl.h" earlier, rely on 4622 ANSI_PROTOTYPES. 4623 * vsprintf.c: Include "ansidecl.h" earlier, rely on 4624 ANSI_PROTOTYPES and possibly include <stdarg.h>. 4625 4626 * Makefile.in: Regenerate dependencies. 4627 46282003-04-15 DJ Delorie <dj@redhat.com> 4629 4630 * maint-tool (deps): Scan for headers in $srcdir also. 4631 46322003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4633 4634 PR target/10338 4635 PR bootstrap/10198 4636 PR bootstrap/10140 4637 * getopt.c (exchange, _getopt_initialize): Use mempcpy not 4638 __mempcpy. 4639 * regex.c (regerror): Likewise. 4640 46412003-04-14 Roger Sayle <roger@eyesopen.com> 4642 4643 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__. 4644 * memchr.c: Likewise. 4645 * strcasecmp.c: Likewise. 4646 * strncasecmp.c: Likewise. 4647 * strncmp.c: Likewise. 4648 * xatexit.c: Likewise. 4649 * xmalloc.c: Likewise. 4650 4651 * copysign.c: Use traditional function declaration instead of DEFUN. 4652 * sigsetmask.c: Likewise. 4653 4654 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN. 4655 * memset.c: Likewise. 4656 4657 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy. 4658 * memmove.c: Likewise. 4659 46602003-04-14 Roger Sayle <roger@eyesopen.com> 4661 4662 * strdup.c (strdup): Tweak implementation to use memcpy. 4663 46642003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4665 4666 * configure.in (HAVE_UINTPTR_T): Always define. 4667 * configure: Regenerated. 4668 46692003-03-23 Alexandre Oliva <aoliva@redhat.com> 4670 4671 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS) 4672 instead of $$CC alone. 4673 (install_to_tooldir): Use it. 4674 46752003-17-03 Jan Hubicka <jh@suse.cz> 4676 4677 * hashtab.c (htab_traverse_noresize): Break out from ... 4678 * hashtab.c (htab_traverse): ... here. 4679 46802003-12-03 Jan Hubicka <jh@suse.cz> 4681 4682 * hashtab.c (htab_expand): Fix warning. 4683 4684 * hashtab.c (htab_expand): Compute the size of hashtable based 4685 on the number of elements actually used. 4686 (htab_traverse): Call htab_expand when table is too empty. 4687 46882003-03-11 Carlo Wood <carlo@gnu.org> 4689 4690 * cplus-dem.c (demangle_integral_value): Correction to reflect 4691 patch of 2002-01-10 in order to also make negative multi-digits 4692 without leading underscore work. 4693 46942003-03-03 Mark Mitchell <mark@codesourcery.com> 4695 4696 * cplus-dem.c: Add license exception to copyright notice. 4697 46982003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4699 4700 * physmem.c: Formatting changes from upstream. 4701 47022003-02-24 Danny Smith <dannysmith@users.source.forge.net> 4703 4704 * physmem.c (physmem_total): Add _WIN32 support. 4705 (physmem_available): Likewise. 4706 47072003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 4708 4709 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for 4710 GSI_PHYSMEM. 4711 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS. 4712 47132003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4714 4715 * configure.in: Check for sys/systemcfg.h and 4716 _system_configuration. 4717 * physmem.c: Add support for AIX. Tweek formatting as per 4718 upstream coreutils beta. 4719 47202003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4721 Richard Earnshaw <rearnsha@arm.com> 4722 Geoffrey Keating <geoffk@apple.com> 4723 4724 * configure.in: Check for sys/sysctl.h and sysctl. 4725 * physmem.c: Add support for *bsd and darwin. 4726 * Makefile.in: Generate depedency for physmem.o. 4727 47282003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 4729 4730 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on 4731 Tru64 UNIX. 4732 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on 4733 Tru64 UNIX. 4734 4735 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h, 4736 machine/hal_sysinfo.h, sys/table.h. 4737 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table. 4738 * configure, config.in: Regenerate. 4739 47402003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4741 4742 * configure.in: Check for sys/sysmp.h and sysmp. 4743 * physmem.c: Pull upstream copy, add support for irix6. 4744 4745 * config.in, configure: Regenerated. 4746 47472003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4748 4749 * physmem.c (physmem_total, physmem_available): De-ANSI-fy. 4750 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and 4751 pstat_getdynamic. 4752 47532003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4754 4755 * Makefile.in (CFILES): Add physmem.c. 4756 (REQUIRED_OFILES): Add physmem.o. 4757 * configure.in: Check for sys/pstat.h. 4758 (checkfuncs): Add pstat_getstatic and pstat_getdynamic. 4759 * physmem.c: New file, copied from textutils. 4760 4761 * config.in, configure: Regenerated. 4762 47632003-02-20 Daniel Jacobowitz <drow@mvista.com> 4764 4765 * Makefile.in (CFILES): Add lrealpath.c. 4766 (REQUIRED_OFILES): Add lrealpath.o. 4767 (lrealpath.o): Add rule. 4768 * aclocal.m4 (libiberty_NEED_DECLARATION): Add. 4769 * configure.in: Add realpath and canonicalize_file_name to 4770 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION 4771 for canonicalize_file_name. 4772 * lrealpath.c: New file. 4773 * make-relative-prefix.c: Update documentation. 4774 (make_relative_prefix): Simplify. Use lbasename and lrealpath. 4775 * config.in: Regenerated. 4776 * configure: Regenerated. 4777 * functions.texi: Regenerated. 4778 47792003-02-20 jmc <jmc@prioris.mini.pw.edu.pl> 4780 4781 * cplus_dem.c: Fix typo: intializes -> initializes. 4782 47832003-02-20 Alexandre Oliva <aoliva@redhat.com> 4784 4785 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to 4786 config.status. 4787 * configure: Rebuilt. 4788 47892003-02-13 Daniel Jacobowitz <drow@mvista.com> 4790 4791 Fix PR c++/7612. 4792 * cplus-dem.c (demangle_signature): Call string_delete. 4793 Remove extra string_init. 4794 (demangle_arm_hp_template): Call string_delete instead of 4795 string_clear. Add missing string_delete call. 4796 (demangle_qualified): Add missing string_delete call. 4797 (do_type): Remove unused variable btype. Add missing string_delete 4798 call. Call string_delete instead of string_clear. 4799 (demangle_fund_type): Move variable btype inside of the switch 4800 statement. Add missing string_delete call. 4801 (do_arg): Call string_delete instead of string_clear. Remove extra 4802 string_init. 4803 (demangle_nested_args): Free work->previous_argument. 4804 48052003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4806 4807 * acconfig.h: New file. Add uintptr_t. 4808 * config.in: Regenerated. 4809 48102003-02-04 Joseph S. Myers <jsm@polyomino.org.uk> 4811 4812 * libiberty.texi: Update to GFDL 1.2. 4813 48142003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de> 4815 4816 * Makefile.in (libiberty_topdir): New subst. 4817 (mkinstalldirs): Redefine in terms of the above. 4818 * configure.in: AC_SUBST it. 4819 * configure: Regenerate. 4820 48212003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de> 4822 4823 * Makefile.in (all-subdir, check-subdir, installcheck-subdir) 4824 (info-subdir, install-info-subdir, clean-info-subdir) 4825 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir) 4826 (clean-subdir, distclean-subdir, maintainer-clean-subdir): 4827 Pass $(FLAGS_TO_PASS). 4828 48292003-01-27 Alexandre Oliva <aoliva@redhat.com> 4830 4831 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use 4832 /`$$CC -print-multi-os-directory`. 4833 48342003-01-26 Daniel Jacobowitz <drow@mvista.com> 4835 4836 * hashtab.c (htab_create_alloc_ex): New function. 4837 (hatab_set_functions_ex): New function. 4838 (htab_delete, htab_expand): Support alternate allocation functions. 4839 48402003-01-24 Christopher Faylor <cgf@redhat.com> 4841 4842 * configure.in: Remove special pex-cygwin consideration. 4843 * configure: Regenerate. 4844 * pex-cygwin.c: Remove. 4845 * Makefile.in: Remove pex-cygwin.[co] lines. 4846 48472003-01-24 Zack Weinberg <zack@codesourcery.com> 4848 4849 * Makefile.in (CFILES): Add pex-*.c. 4850 (REQUIRED_OFILES): Change pexecute.o to @pexecute@ 4851 (CONFIGURED_OFILES): Add pex-*.o. 4852 (TEXIFILES): Add pexecute.txh. 4853 (pexecute.o): Delete rule. 4854 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o, 4855 pex-unix.o, pex-win32.o): New rules. 4856 * configure.in: Change AC_INIT argument to xmalloc.c. 4857 Compute appropriate pexecute implementation and substitute it 4858 as @pexecute@. 4859 4860 * pexecute.c: Split up into... 4861 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c, 4862 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these 4863 new files. 4864 4865 * functions.texi: Regenerate. 4866 * configure: Regenerate. 4867 48682003-01-20 Josef Zlomek <zlomekj@suse.cz> 4869 4870 * hashtab.c (htab_expand): Fix allocation of new entries. 4871 48722003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de> 4873 4874 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR. 4875 4876 * Makefile.in (install_to_libdir, install_to_tooldir): Add a 4877 mkinstalldirs command. 4878 48792002-12-04 Danny Smith <dannysmith@users.sourceforge.net> 4880 4881 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX): 4882 Define for hosts with HOST_EXECUTABLE_SUFFIX. 4883 48842002-11-24 Nick Clifton <nickc@redhat.com> 4885 4886 * make-relative-prefix.c (make_relative_prefix): Ensure return 4887 string is empty before using strcat to construct it. 4888 48892002-11-22 Daniel Jacobowitz <drow@mvista.com> 4890 4891 * Makefile.in: Add make-relative-prefix.c. 4892 * make-relative-prefix.c: New file. 4893 * functions.texi: Rebuilt. 4894 48952002-11-16 Jakub Jelinek <jakub@redhat.com> 4896 4897 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be 4898 used with arguments in traditional C' warnings. 4899 49002002-10-16 Jakub Jelinek <jakub@redhat.com> 4901 4902 * config.table: Use mh-s390pic for s390x too. 4903 49042002-10-06 Andreas Jaeger <aj@suse.de> 4905 4906 * cplus-dem.c (ada_demangle): Get rid of unneeded 4907 variable and of strict-aliasing warning. 4908 (grow_vect): Use char as first parameter. 4909 49102002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4911 4912 * Makefile.in (all): Fix multilib parallel build. 4913 49142002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca> 4915 4916 * cp-demangle.c (demangling_new): Cast 0 to enum. 4917 (demangle_char): Cast return of strdup to char *. 4918 (is_gnu_v3_mangled_ctor): Cast 0 to enum. 4919 (is_gnu_v3_mangled_dtor): Likewise. 4920 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *. 4921 (work_stuff_copy_to_from): Cast return of xmalloc to char **. 4922 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t. 4923 * md5.c (md5_process_bytes): Cast results back to const void *. 4924 (md5_process_block): Add cast to const md5_uint32 *. 4925 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T. 4926 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to 4927 unsigned short. 4928 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc 4929 to void *. 4930 * vasprintf.c (int_vasprintf): Cast return of malloc to char *. 4931 49322002-09-19 Nick Clifton <nickc@redhat.com> 4933 4934 * README: Update email addresses for bugs and patches. 4935 49362002-09-10 Mike Stump <mrs@apple.com> 4937 4938 * splay-tree.c (splay_tree_successor): Fix comments. 4939 49402002-09-11 Zack Weinberg <zack@codesourcery.com> 4941 4942 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c. 4943 * testsuite/Makefile.in: Adjust for test-demangle. 4944 * testsuite/regress-demangle: Deleted. 4945 * testsuite/test-demangle.c: New file. 4946 * testsuite/demangle-expected: Change \$ to $ throughout, now that 4947 this file is not being read by a shell script. 4948 49492002-09-05 Roger Sayle <roger@eyesopen.com> 4950 4951 * regex.c: Only use "#pragma alloca" on AIX when not using gcc. 4952 49532002-08-07 DJ Delorie <dj@redhat.com> 4954 4955 * regex.c (re_error_msgid): Just use a simple array of strings. 4956 (re_compile_pattern): Compensate. 4957 (re_comp): Likewise. 4958 (re_comp): Likewise. 4959 (regerror): Likewise. 4960 49612002-07-29 Neil Booth <neil@daikokuya.co.uk> 4962 4963 * cplus-dem.c (PREPEND_BLANK): Remove. 4964 49652002-07-10 Jason Merrill <jason@redhat.com> 4966 4967 * cp-demangle.c (demangle_identifier): Support extended Unicode 4968 characters. 4969 49702002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4971 4972 * cp-demangle.c (demangle_v3_with_details): Wrap in 4973 !defined IN_GLIBCPP_V3. 4974 49752002-07-01 Mark Mitchell <mark@codesourcery.com> 4976 4977 * cp-demangle.c (demangle_operator_name): Add type_arg parameter. 4978 Set it for the "st" operator. 4979 (demangle_expression): Handle expressions with types as arguments. 4980 49812002-06-30 Douglas Rupp <rupp@gnat.com> 4982 4983 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure. 4984 * Makefile.in (OUTPUT_OPTION): Use. 4985 49862002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de> 4987 4988 * Makefile.in (install_to_libdir): Add $(DESTDIR). 4989 (install_to_tooldir): Likewise. 4990 49912002-06-17 Douglas Rupp <rupp@gnat.com> 4992 4993 * lbasename.c: Add 2002 to copyright. 4994 (IS_DIR_SEPARATOR): Remove VMS junk. 4995 49962002-06-05 Geoffrey Keating <geoffk@redhat.com> 4997 4998 * hashtab.c (htab_create): New stub function for backward 4999 compatibility. 5000 (htab_try_create): Likewise. 5001 50022002-06-03 Geoffrey Keating <geoffk@redhat.com> 5003 5004 * hashtab.c (htab_create): Delete. 5005 (htab_try_create): Delete. 5006 (htab_create_alloc): New. 5007 (htab_delete): Support user-specified memory allocation. 5008 (htab_expand): Likewise. 5009 50102002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de> 5011 5012 * configure.in: Fix typo in the code checking for sys_errlist. 5013 * configure: Regenerated. 5014 50152002-05-13 Andreas Schwab <schwab@suse.de> 5016 5017 * config.table: Use mh-x86pic also for x86-64. 5018 50192002-05-08 Alexandre Oliva <aoliva@redhat.com> 5020 5021 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at 5022 script entry, and set LD to it when configuring multilibs. 5023 * configure: Rebuilt. 5024 50252002-05-07 Mark Mitchell <mark@codesourcery.com> 5026 5027 * configure.in (AC_TYPE_PID_T): Use it. 5028 * configure: Regenerated. 5029 * getruntime.c: Include <sys/types.h>. 5030 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid". 5031 50322002-04-09 Richard Henderson <rth@redhat.com> 5033 5034 * hashtab.c (higher_prime_number): Use 7 as minimum. 5035 (find_empty_slot_for_expand): Don't compute hash2 unless needed. 5036 (htab_find_slot_with_hash): Likewise. 5037 50382002-04-01 Phil Edwards <pme@gcc.gnu.org> 5039 5040 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3. 5041 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally 5042 not compile if IN_GLIBCPP_V3 defined. 5043 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme. 5044 50452002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz> 5046 5047 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled" 5048 if it is NULL. 5049 50502002-03-27 DJ Delorie <dj@redhat.com> 5051 5052 * hex.c: Add documentation. 5053 (_hex_value): Provide non-ASCII empty table. 5054 (hex_init): Initialize the non-ASCII table. 5055 * functions.texi: Regenerate. 5056 50572002-03-27 Mark Mitchell <mark@codesourcery.com> 5058 5059 * dyn-string.c: Add libgcc exception to copyright notice. 5060 50612002-03-26 H.J. Lu (hjl@gnu.org) 5062 5063 * config.table: Support --with-build-subdir. 5064 * configure.in: Likewise. 5065 * configure: Rebuild. 5066 50672002-03-18 Stuart Griffith <Stuart_Griffith@credence.com> 5068 5069 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity' 5070 seen. 5071 50722002-03-12 Mark Mitchell <mark@codesourcery.com> 5073 5074 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright 5075 notice. 5076 50772002-03-11 Douglas B Rupp <rupp@gnat.com> 5078 5079 * xatexit.c [VMS]: Include stdlib.h and unixlib.h. 5080 50812002-03-06 Jim Blandy <jimb@redhat.com> 5082 5083 * splay-tree.c (splay_tree_xmalloc_allocate, 5084 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not 5085 prototyped definitions. Mark `data' arguments as unused. 5086 50872002-03-06 Andrew Cagney <ac131313@redhat.com> 5088 5089 * floatformat.c (floatformat_arm_ext_big): Delete definition. 5090 50912002-03-04 Phil Edwards <pme@gcc.gnu.org> 5092 5093 * configure.in: Add --enable-install-libiberty option. 5094 * Makefile.in (INSTALLED_HEADERS): New variable. 5095 (install_to_libdir): Possibly also copy headers. 5096 * configure: Regenerated. 5097 50982002-03-04 Neil Booth <neil@daikokuya.demon.co.uk> 5099 5100 * xmalloc.c (xmalloc_fail): Clarify error message further. 5101 51022002-03-03 Neil Booth <neil@daikokuya.demon.co.uk> 5103 5104 * xmalloc.c (xmalloc_fail): Clarify error message. 5105 51062002-02-22 Jim Blandy <jimb@redhat.com> 5107 5108 * splay-tree.c (splay_tree_xmalloc_allocate, 5109 splay_tree_xmalloc_deallocate): New functions. 5110 (splay_tree_new): Call splay_tree_new_with_allocator, passing the 5111 above functions and a dummy data pointer. 5112 (splay_tree_new_with_allocator): New function. 5113 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert, 5114 splay_tree_remove): Use the splay tree's allocation and 5115 deallocation functions. 5116 51172002-02-19 Scott Snyder <snyder@fnal.gov> 5118 5119 * testsuite/demangle-expected: Add test case for infinite loop in 5120 demangler. 5121 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle 5122 if do_type() doesn't make any progress --- prevents an infinite 5123 loop. 5124 51252002-02-18 Carlo Wood <carlo@gnu.org> 5126 5127 PR c++/5390 5128 * cplus-dem.c (demangle_integral_value): Accept multi-digit 5129 numbers that do not start with an underscore; This is needed 5130 for integer template parameters. This doesn't break anything 5131 because multi-digit numbers are never followed by a digit. 5132 * testsuite/demangle-expected: Corrected all mangled test 5133 cases with multi-digit template parameters: g++ 2.95.x does 5134 not generate underscores around these parameters. 5135 51362002-02-05 Jason Merrill <jason@redhat.com> 5137 5138 * cplus-dem.c (flags): Add DMGL_VERBOSE 5139 (cplus_demangle_v3_p): Remove. 5140 (demangle_it): Add DMGL_TYPES to passed flags. 5141 * cp-demangle.c (cplus_demangle_v3_all): Remove. 5142 (cplus_demangle_v3_type): Remove. 5143 (cplus_demangle_v3): Add options parm. 5144 51452002-02-02 H.J. Lu (hjl@gnu.org) 5146 5147 * cp-demangle.c (cp_demangle_type): Do not protect with 5148 IN_LIBGCC2. 5149 (cplus_demangle_v3_all): New. 5150 (cplus_demangle_v3): Call cplus_demangle_v3_all. 5151 (cplus_demangle_v3_type): Call cplus_demangle_v3_all. 5152 5153 * cplus-dem.c (cplus_demangle_v3_p): New function pointer. 5154 Initialized to cplus_demangle_v3. 5155 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead 5156 of cplus_demangle_v3. 5157 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for 5158 command line symbol. 5159 5160 * testsuite/regress-demangle: Pass the mangled name at the 5161 command line. 5162 51632002-02-01 H.J. Lu <hjl@gnu.org> 5164 5165 * cp-demangle.c (cp_demangle_type): Call demangling_new with 5166 DMGL_GNU_V3. 5167 51682002-01-31 Phil Edwards <pme@gcc.gnu.org> 5169 5170 * cp-demangle.c: Revert yesterday's change. 5171 51722002-01-31 Adam Megacz <adam@xwt.org> 5173 5174 * configure.in: Treat mingw the same as cywin 5175 wrt HAVE_SYS_ERRLIST. 5176 51772002-01-30 Phil Edwards <pme@gcc.gnu.org> 5178 5179 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2. 5180 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on 5181 cp_demangle_type. 5182 * testsuite/demangle-expected: New gnu-v3 test. 5183 51842002-01-22 Momchil Velikov <velco@fadata.bg> 5185 5186 * configure.in (variable detection): Use arrays of unspecified 5187 size instead of plain integers. 5188 51892002-01-18 DJ Delorie <dj@redhat.com> 5190 5191 * Makefile.in (TESTLIB): New. This library is for future 5192 testsuites. 5193 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize, 5194 break down by letter. 5195 (REQUIRED_OFILES): List long-to-compile files first. 5196 (maint-deps): New, target for updating dependencies. 5197 (dependencies): Update. 5198 * maint-tool: Add dependency-generating option. 5199 * configure.in: Check for _doprnt even if we're not providing it. 5200 * configure: Regenerate. 5201 5202 * _doprnt.c: Modifications to allow compiling on any platform. 5203 * copysign.c: Likewise. 5204 * putenv.c: Likewise. 5205 * setenv.c: Likewise. 5206 * vsprintf.c: Likewise. 5207 52082002-01-15 Douglas B Rupp <rupp@gnat.com> 5209 5210 * mkstemps.c (mkstemps): On VMS, open temp file with option 5211 that causes it to be deleted when closed. 5212 52132002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5214 5215 * cp-demangle.c (long_options): Const-ify. 5216 * cplus-dem.c (long_options): Likewise. 5217 5218 * cplus-dem.c (mystrstr): Delete. All callers changed to use 5219 strstr instead. 5220 52212001-12-31 Ira Ruben <ira@apple.com> 5222 5223 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try. 5224 * configure: Regenerated. 5225 52262001-12-24 Douglas B. Rupp <rupp@gnat.com> 5227 5228 * configure.in (uintptr_t): Use AC_CHECK_TYPE. 5229 * configure: Regenerated. 5230 52312001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org> 5232 5233 PR other/2719 5234 * cplus-dem.c (consume_count): Treat negative count as an error. 5235 * testsuite/demangle-expected: Added testcase. 5236 5237Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com> 5238 5239 * configure.in: Hardcode that vfork works on VMS host. 5240 * configure: Regenerated. 5241 52422001-12-06 Richard Henderson <rth@redhat.com> 5243 5244 * cplus-dem.c (libiberty_demanglers): Add no_demangling case. 5245 (cplus_demangle): Support no_demangling. 5246 52472001-11-27 Zack Weinberg <zack@codesourcery.com> 5248 5249 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build 5250 in libiberty context. Fix typo in leading comment. 5251 * configure.in: Fix various AC_DEFINEs so autoheader works. 5252 If any of vprintf, vsprintf, vfprintf is missing from libc, 5253 then AC_REPLACE_FUNCS(_doprnt). 5254 52552001-11-26 DJ Delorie <dj@redhat.com> 5256 Daniel Jacobowitz <drow@mvista.com> 5257 5258 * Makefile.in (stamp-h): Depend on Makefile for proper 5259 serialization. 5260 (*-subdir): Depend on config.h for proper serialization. 5261 52622001-11-26 DJ Delorie <dj@redhat.com> 5263 5264 * configure.in: Check for alloca.h (for regex.c and putenv.c). 5265 * configure: Regenerate. 5266 * config.h: Add HAVE_ALLOCA_H. 5267 52682001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5269 5270 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) || 5271 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting 5272 is available. 5273 5274Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com) 5275 5276 * config.in (HAVE_UINTPTR_T): Provide autoconf stub. 5277 * configure.in (HAVE_UINTPTR_T): Test for system defining 5278 uintptr_t and define HAVE_UINTPTR_T appropriately. 5279 * regex.c (uintptr_t): Do not provide a definition if the 5280 system provided one. 5281 5282 * regex.c (PREFIX): Provide an alternate definition for 5283 non-ANSI/ISO compilers. 5284 (ARG_PREFIX): Likewise. 5285 52862001-11-12 Jim Meyering <meyering@lucent.com> 5287 5288 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise, 5289 this code would end up calling gettext even in packages built 5290 with --disable-nls. 5291 * getopt.c (_): Likewise. 5292 * regex.c (_): Likewise. 5293 52942001-11-03 Alan Modra <amodra@bigpond.net.au> 5295 5296 * configure.in: Cope with missing makeinfo. 5297 * configure: Regenerate. 5298 52992001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5300 5301 * hex.c (hex_init): Provide empty stub. 5302 5303 * hex.c (hex_init): Delete. 5304 (_hex_value): Const-ify and initialize at compile-time. 5305 53062001-10-19 H.J. Lu <hjl@gnu.org> 5307 5308 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if 5309 necessary. 5310 53112001-10-17 DJ Delorie <dj@redhat.com> 5312 5313 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c, 5314 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c, 5315 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c: 5316 Improve manual formatting. 5317 * functions.texi: Regenerate. 5318 53192001-10-15 DJ Delorie <dj@redhat.com> 5320 5321 * Makefile.in (TEXIFILES): Add fnmatch.txh. 5322 (maint-undoc): New. 5323 maint-tool: Add "undoc" tool. 5324 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c, 5325 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c, 5326 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c, 5327 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update 5328 documentation. 5329 * fnmatch.txh: New. 5330 * functions.texi: Regenerate. 5331 53322001-10-10 Joseph S. Myers <jsm28@cam.ac.uk> 5333 5334 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero". 5335 * strtod.c: Use "ISO C" instead of "ANSI C". 5336 * functions.texi: Regenerate. 5337 53382001-10-07 Joseph S. Myers <jsm28@cam.ac.uk> 5339 5340 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c, 5341 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c, 5342 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c, 5343 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix 5344 spelling. Give names to function arguments in documentation. Use 5345 (void) prototypes in documentation. 5346 * functions.texi: Regenerate. 5347 53482001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5349 5350 * argv.c (buildargv, tests, main): Const-ify. 5351 * cp-demangle.c (operator_code): Likewise. 5352 * cplus-dem.c (optable, libiberty_demanglers, 5353 cplus_demangle_set_style, cplus_demangle_name_to_style, 5354 print_demangler_list): Likewise. 5355 * hashtab.c (higher_prime_number): Likewise. 5356 * strcasecmp.c (charmap): Likewise. 5357 * strerror.c (error_info, strerror, main): Likewise. 5358 * strncasecmp.c (charmap): Likewise. 5359 * strsignal.c (signal_info): Likewise. 5360 53612001-09-29 DJ Delorie <dj@redhat.com> 5362 5363 * configure: Regenerate. 5364 53652001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5366 5367 * concat.c: Include stdlib.h. 5368 53692001-09-27 Eli Zaretskii <eliz@is.elta.co.il> 5370 5371 * libiberty.texi: (Top level): Add syncodeindex pg. Add 5372 @dircategory and @direntry directives. Add @finalout. 5373 (many nodes): Lose the next,prev,up pointers on the @nide line. 5374 (Using, Supplemental Functions, Replacement Functions): Fix 5375 markup. 5376 (Functions): Move around, to allow makeinfo to build the manual 5377 without next,prev,up pointers in thye node lines. 5378 (Licenses): Fix typos. 5379 5380 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c, 5381 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup. 5382 * functions.texi: Regenerate. 5383 5384 * copying-lib.texi: Lose the next,prev,up pointers on the @node 5385 line. 5386 53872001-09-27 DJ Delorie <dj@redhat.com> 5388 5389 * configure.in: Don't use in-tree texinfo, because libiberty must 5390 be built before it. Check for makeinfo version 4 or higher. 5391 * functions.texi: Regenerate. 5392 53932001-09-20 DJ Delorie <dj@redhat.com> 5394 Phil Edwards <pedwards@disaster.jaj.com> 5395 5396 * configure.in (MAKEINFO, PERL): Detect these. 5397 (--enable-maintainer-mode): Add. 5398 * configure: Regenerate. 5399 * Makefile.in (MAKEINFO, PERL): Define. 5400 (libiberty.info, libiberty.dvi, libiberty.html): New. 5401 (CFILES): Add bsearch.c. 5402 (CONFIGURED_OFILES): New, list of objects configure might add. 5403 (maint-missing, maint-buildall): New, for maintainers only. 5404 (clean, mostlyclean): Add info/dvi/html files. 5405 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New. 5406 * gather-docs: New, for maintainers. 5407 * maint-tool: New, for maintainers. 5408 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c, 5409 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c, 5410 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c, 5411 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c, 5412 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c, 5413 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c, 5414 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c, 5415 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update 5416 documentation. 5417 54182001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5419 5420 * concat.c (reconcat): Fix for traditional C. 5421 54222001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5423 5424 * concat.c (reconcat): New function. 5425 54262001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5427 5428 * concat.c (vconcat_length, vconcat_copy, concat_length, 5429 concat_copy, concat_copy2): New functions. 5430 (concat): Use vconcat_length/vconcat_copy. 5431 5432 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len): 5433 Define. 5434 54352001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5436 5437 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN, 5438 VA_FIXEDARG & VA_CLOSE. 5439 5440 * vasprintf.c: Check HAVE_STRING_H when including string.h. 5441 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1. 5442 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string. 5443 54442001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5445 5446 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE. 5447 54482001-08-23 Ulrich Drepper <drepper@redhat.com> 5449 5450 * regex.c (truncate_wchar): Use wcrtomb not wctomb. 5451 54522001-08-23 Ulrich Drepper <drepper@redhat.com> 5453 5454 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc 5455 instead of mbrtowc. 5456 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of 5457 wcslen, and __wcscoll instead of wcscoll. 5458 54592001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu> 5460 5461 * fibheap.c (fibheap_init, fibnode_init): Remove. 5462 (fibheap_new, fibnode_new): Use xcalloc to allocate and 5463 initialize memory. 5464 (fibheap_insert): Remove check for node allocation failure. 5465 54662001-08-21 Richard Henderson <rth@redhat.com> 5467 5468 * Makefile.in (fibheap.o): Depend on config.h. 5469 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some 5470 functions for inlining. 5471 5472Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com> 5473 5474 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever 5475 hosting on cygwin. 5476 * configure: Regenerate. 5477 54782001-08-20 Andrew Cagney <ac131313@redhat.com> 5479 5480 * floatformat.c (floatformat_m88110_ext): Remove #ifdef 5481 HARRIS_FLOAT_FORMAT. 5482 (floatformat_ia64_spill_little, floatformat_ia64_quad_little) 5483 (floatformat_ia64_spill_big, floatformat_ia64_quad_big) 5484 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword) 5485 (floatformat_m88110_harris_ext): New float formats. 5486 54872001-08-20 Daniel Berlin <dan@cgsoftware.com> 5488 5489 * fibheap.c: New file. Fibonacci heap. 5490 5491 * Makefile.in (CFILES): Add fibheap.c. 5492 (REQUIRED_OFILES): Add fibheap.o. 5493 (fibheap.o): Add dependencies for fibheap.o. 5494 54952001-08-17 Christopher Faylor <cgf@cygnus.com> 5496 5497 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin. 5498 * configure: Regenerate. 5499 55002001-08-16 Richard Henderson <rth@redhat.com> 5501 5502 * hashtab.c (htab_hash_string): New. 5503 55042001-08-13 Andrew Cagney <ac131313@redhat.com> 5505 5506 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix 5507 name. 5508 55092001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com> 5510 5511 * regex.c (wcs_regex_compile): Use appropriate string 5512 to compare with collating element. 5513 Fix the padding for the alignment. 5514 55152001-08-10 Andrew Cagney <ac131313@redhat.com> 5516 5517 * lbasename.c (lbasename): Change function definition to return a 5518 const char pointer. 5519 55202001-08-07 Jason Merrill <jason_merrill@redhat.com> 5521 5522 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary 5523 for". 5524 55252001-08-03 Richard Henderson <rth@redhat.com> 5526 5527 * Makefile.in (concat.o): Depend on config.h. 5528 55292001-07-30 Andreas Jaeger <aj@suse.de> 5530 5531 * concat.c: Include "config.h". 5532 55332001-07-30 Andreas Jaeger <aj@suse.de> 5534 5535 * regex.c: Declare wcs functions only if compiling with 5536 MBS_SUPPORT. 5537 Don't use #elif for traditional C. 5538 55392001-07-23 Ulrich Drepper <drepper@redhat.com> 5540 5541 * regex.c: Revamp memory allocation for WCHAR functions to 5542 not use too much stack. 5543 55442001-07-30 Andreas Jaeger <aj@suse.de> 5545 5546 * regex.c: Declare wcs functions only if compiling with 5547 MBS_SUPPORT. 5548 Don't use #elif for traditional C. 5549 55502001-07-25 Daniel Jacobowitz <drow@mvista.com> 5551 5552 * Makefile.in (regex.o): Add dependency on config.h. 5553 55542001-07-18 Andreas Schwab <schwab@suse.de> 5555 5556 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the 5557 underscore character. 5558 55592001-07-18 Ulrich Drepper <drepper@redhat.com> 5560 5561 * regex.c: Limit string length printed in debug messages to 100 5562 chars. 5563 55642001-07-18 Andreas Jaeger <aj@suse.de> 5565 5566 * regex.c: Place under LGPL version 2.1. 5567 55682001-07-10 Jeff Johnston <jjohnstn@redhat.com> 5569 5570 * Makefile.in: Add support for regex code. 5571 * regex.c: New file. 5572 55732001-07-05 Mark Klein <mklein@dis.com> 5574 5575 * Makefile.in: Add ffs.c dependency. 5576 * configure.in: Add ffs.c. 5577 * ffs.c: New file. 5578 55792001-06-18 Richard Henderson <rth@redhat.com> 5580 5581 * concat.c: Include <sys/types.h>. 5582 55832001-06-11 Loren J. Rittle <ljrittle@acm.org> 5584 5585 bootstrap/3106 5586 * strerror.c (sys_nerr): Hide the OS header version. 5587 * strsignal.c (sys_nsig): Likewise. 5588 55892001-06-10 Richard Henderson <rth@redhat.com> 5590 5591 * concat.c: Include string.h. Fix int vs size_t usage. 5592 Simplify the iteration loops. Use memcpy. 5593 55942001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu> 5595 5596 * partition.c: Fix misspelling of `implementation'. 5597 55982001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> 5599 5600 * md5.c (md5_init_ctx): Declare constants as unsigned. 5601 (md5_process_block): Likewise. 5602 56032001-05-07 Zack Weinberg <zackw@stanford.edu> 5604 5605 * cp-demangle.c (demangle_v3_with_details, 5606 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style 5607 function definition. 5608 * ternary.c: Use K+R style function definitions. Use PTR, not 5609 void *. Make arguments constant where possible. 5610 56112001-05-07 Mark Mitchell <mark@codesourcery.com> 5612 5613 * splay-tree.h (splay_tree_max): New function. 5614 (splay_tree_min): Likewise. 5615 56162001-04-15 Daniel Berlin <dan@cgsoftware.com> 5617 5618 * ternary.c: New file - Ternary search tree implementation. 5619 5620 * Makefile.in: Add ternary.o, and ternary.c dependencies. 5621 56222001-04-03 Zack Weinberg <zackw@stanford.edu> 5623 5624 * make-temp-file.c (try): Inline. 5625 56262001-02-28 Richard Henderson <rth@redhat.com> 5627 5628 * Makefile.in (make-temp-file.o): Depend on config.h. 5629 56302001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5631 5632 * memchr.c (memchr): Adjust condition to avoid infinite loop. 5633 56342001-03-23 Jakub Jelinek <jakub@redhat.com> 5635 5636 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1, 5637 `_' not followed by a digit is invalid. 5638 56392001-03-22 Jim Blandy <jimb@redhat.com> 5640 5641 * cp-demangle.c (string_list_delete): Use dyn_string_delete 5642 instead of free, to free the contents as well as the string 5643 structure. 5644 56452001-03-21 Zack Weinberg <zackw@stanford.edu> 5646 5647 * make-temp-file.c: Always default DIR_SEPARATOR to '/'. 5648 Don't default P_tmpdir to anything. Try /var/tmp before 5649 /usr/tmp. 5650 56512001-03-20 Zack Weinberg <zackw@stanford.edu> 5652 5653 * choose-temp.c: Split off make_temp_file, and the code 5654 duplicated between it and choose_temp_base, into... 5655 * make-temp-file.c: ... here; new file. 5656 5657 * Makefile.in (CFILES): Add make-temp-file.c. 5658 (REQUIRED_OFILES): Add make-temp-file.o. 5659 56602001-03-20 Jim Blandy <jimb@redhat.com> 5661 5662 * cp-demangle.c (struct demangling_def): New fields: 5663 is_constructor and is_destructor. 5664 (demangling_new): Initialize them. 5665 (demangle_ctor_dtor_name): Set them, if we detect a constructor 5666 or destructor. 5667 (demangle_v3_with_details, is_gnu_v3_mangled_ctor, 5668 is_gnu_v3_mangled_dtor): New functions. 5669 56702001-03-20 Jason Merrill <jason@redhat.com> 5671 5672 * cplus-dem.c (main): Skip initial $. 5673 56742001-03-15 Michael Meissner <meissner@redhat.com> 5675 5676 * hashtab.c (higher_prime_number): Silence warning that 4294967291 5677 might be a signed integer under pre-ISO C systems. 5678 56792001-03-10 Neil Booth <neil@daikokuya.demon.co.uk> 5680 John David Anglin <dave@hiauly1.hia.nrc.ca> 5681 5682 * lbasename.c: New file. 5683 * Makefile.in: Update for lbasename. 5684 56852001-03-06 Zack Weinberg <zackw@stanford.edu> 5686 5687 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New. 5688 * configure.in: Replace all alloca logic with a simple use of 5689 the above new macro. 5690 * config.table: Kill *-*-beos* entry. 5691 * config/mh-beos: Delete. 5692 * configure, config.in: Regenerate. 5693 5694 * Makefile.in (ALLOCA, HFILES): Kill. 5695 (REQUIRED_OFILES): Add alloca.o. 5696 (alloca.o): Depend on libiberty.h. 5697 (argv.o): Don't depend on alloca-conf.h. 5698 * alloca-conf.h: Delete. 5699 * alloca.c: Include libiberty.h. Kill all #ifdef emacs 5700 blocks. Provide the C alloca unconditionally. Use PTR where 5701 appropriate. Make i00afunc static. 5702 * argv.c: Don't include alloca-conf.h. 5703 57042001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca> 5705 5706 * cplus-dem.c (main): Cast enum style to int. 5707 57082001-02-16 Loren J. Rittle <ljrittle@acm.org> 5709 5710 * cplus-dem.c (main): Initialize style. 5711 57122001-02-02 Phil Edwards <pme@sources.redhat.com> 5713 5714 * COPYING.LIB: Update to LGPL 2.1 from the FSF. 5715 57162001-01-31 Bryce McKinlay <bryce@albatross.co.nz> 5717 5718 Add support for Java demangling under the v3 ABI: 5719 * cp-demangle.c (NAMESPACE_SEPARATOR): New define. 5720 (struct demangling_def): Add `style' field. 5721 (demangling_new): New parameter `style'. Set it in demangling_t. 5722 (demangle_prefix): Use NAMESPACE_SEPARATOR. 5723 (demangle_type_ptr): Don't emit pointer symbol if doing Java output. 5724 (cp_demangle): New parameter `style'. Pass it to demangling_new(). 5725 (main): Call cp_demangle with extra parameter. 5726 (java_demangle_v3): New function. 5727 (java_builtin_type_names): New. Table of primitive type names used 5728 for Java demangling. 5729 (demangle_builtin_type): Look up in java_builtin_type_names if doing 5730 Java output. 5731 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java 5732 demangling. 5733 (long_options): Remove obsolete `java' option. 5734 (main): Remove explicit handling of `java' option. Instead, pass style 5735 parameter in cplus_demangle flags as gdb does. 5736 * testsuite/demangle.expected: Add some Java test cases. 5737 57382000-12-29 DJ Delorie <dj@redhat.com> 5739 5740 * fnmatch.c: Make the note about the origins of this file more 5741 accurate, at least until we can sync with glibc. 5742 * getopt.c: Ditto. 5743 * getopt1.c: Ditto. 5744 * md5.c: Ditto. 5745 * obstack.c: Ditto. 5746 57472000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5748 5749 * bsearch.c: New file. 5750 * configure.in (funcs): Add bsearch. 5751 (AC_CHECK_FUNCS): Likewise. 5752 * configure, config.in: Regenerate. 5753 57542000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5755 5756 * safe-ctype.c: #include "ansidecl.h". 5757 * strtod.c: Likewise. 5758 57592000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5760 5761 * strtoul.c: Include safe-ctype.h, not ctype.h. 5762 57632000-12-07 Zack Weinberg <zack@wolery.stanford.edu> 5764 5765 * safe-ctype.c: New file. 5766 * Makefile.in (CFILES): Add safe-ctype.c. 5767 (REQUIRED_OFILES): Add safe-ctype.o. 5768 5769 * argv.c: Define ISBLANK and use it, not isspace. 5770 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c, 5771 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use 5772 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c) 5773 before calling TOLOWER(c)/TOUPPER(c). 5774 57752000-12-07 Mike Stump <mrs@wrs.com> 5776 5777 * Makefile.in (distclean): When cleaning, remove testsuite. 5778 57792000-12-05 Jason Merrill <jason@redhat.com> 5780 5781 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled 5782 name before allocating the dyn_string. 5783 57842000-12-04 Jason Merrill <jason@redhat.com> 5785 5786 * cp-demangle.c: s/new_abi/v3/. 5787 * cplus-dem.c: Likewise. 5788 (current_demangling_style): Now auto_demangling. 5789 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING. 5790 (main): Use standard symbol chars for auto_demangling. 5791 57922000-11-26 Mark Mitchell <mark@codesourcery.com> 5793 5794 * hashtab.c (higher_prime_number): Use a table, rather than a 5795 seive, to find the next prime. 5796 57972000-11-22 H.J. Lu <hjl@gnu.org> 5798 5799 * cplus-dem.c (main): Handle gnat_demangling. 5800 58012000-11-22 Zack Weinberg <zack@wolery.stanford.edu> 5802 5803 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in. 5804 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader. 5805 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three 5806 argument form of AC_DEFINE in dummy definitions block. Use 5807 AC_DEFINE_NOAUTOHEADER for real definitions of things defined 5808 in dummy block. Preload cache variables instead of bypassing 5809 tests, where possible. 5810 * acconfig.h: Removed. 5811 5812 * xmalloc.c (xmalloc_failed): New function, does error 5813 reporting on failed allocation. 5814 (xmalloc, xcalloc, xrealloc): Use it. 5815 58162000-11-21 Hans-Peter Nilsson <hp@bitrange.com> 5817 5818 * cplus-dem.c (cplus_demangle): Fix formatting. 5819 (grow_vect): Ditto. 5820 (ada_demangle): Ditto. 5821 (internal_cplus_demangle): Ditto. 5822 (mop_up): Ditto. 5823 58242000-11-21 H.J. Lu <hjl@gnu.org> 5825 5826 * cplus-dem.c (main): Handle java_demangling. 5827 58282000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5829 5830 * cplus-dem.c (grow_vect): Prototype. 5831 (ada_demangle): Cast the arg of ctype macros to unsigned char. 5832 58332000-11-15 Hans-Peter Nilsson <hp@bitrange.com> 5834 5835 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for 5836 parameter `option'. 5837 58382000-11-15 Kenneth Block <kenneth.block@compaq.com> 5839 5840 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot 5841 be used in GCC. 5842 58432000-11-15 Kenneth Block <kenneth.block@compaq.com> 5844 5845 * cplus-dem.c: Add gnat demangler. Add java to demangle style 5846 list. 5847 58482000-11-04 Hans-Peter Nilsson <hp@bitrange.com> 5849 5850 * hashtab.c (htab_expand): Change to return int. Use calloc or 5851 xcalloc depending on htab->return_allocation_failure. Return zero 5852 if calloc fails. 5853 (htab_create): Update comment to cover memory allocation. 5854 (htab_try_create): New. 5855 (htab_find_slot_with_hash): Return NULL if htab_expand fails. 5856 Update comment to cover this. 5857 58582000-11-03 Hans-Peter Nilsson <hp@bitrange.com> 5859 5860 * hashtab.c: Change void * to PTR where necessary. 5861 (htab_create, htab_expand): Correct formatting of comment before 5862 function. 5863 58642000-10-22 Alex Samuel <samuel@codesourcery.com> 5865 5866 * cp-demangle.c (string_list_def): Add caret_position and comments. 5867 (result_caret_pos): New macro. 5868 (result_append_string): Rename to... 5869 (result_add_string): ... this, and insert at caret position. 5870 Rename throughout. 5871 (result_append): Rename to... 5872 (result_add): ... this, and insert at caret position. Rename 5873 throughout. 5874 (result_append_char): Rename to... 5875 (result_add_char): ... this, and insert at caret position. Rename 5876 throughout. 5877 (result_append_space): Remove. 5878 (string_list_new): Initialize caret position. 5879 (result_add_separated_char): Use caret position. 5880 (result_get_caret): New funtion. 5881 (result_set_caret): Likewise. 5882 (result_shift_caret): Likewise. 5883 (result_previous_char_is_space): Likewise. 5884 (substitution_start): Use caret position. 5885 (substitution_add): Likewise. 5886 (demangling_new): Initialize caret position. 5887 (demangle_encoding): Use caret position. 5888 (demanglin_nested_name): Put CV qualifiers after name. 5889 (demangle_type_ptr): Use switch statement. Handle pointers to 5890 arrays. Don't use result_append_space. Use caret position. 5891 (demangle_type): Emit CV qualifiers after underlying type. Adjust 5892 call to demangle_array_type. 5893 (demangle_array_type): Add parameter to handle pointers to arrays. 5894 58952000-10-01 Mark Mitchell <mark@codesourcery.com> 5896 5897 * splay-tree.c (splay_tree_insert): Fix formatting. 5898 58992000-09-16 Mark Mitchell <mark@codesourcery.com> 5900 5901 * splay-tree.c (splay_tree_predecessor): Fix typo in comment. 5902 59032000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5904 5905 * splay-tree.c: #include <stdio.h>. 5906 59072000-09-14 Hans-Peter Nilsson <hp@axis.com> 5908 5909 * testsuite/demangle-expected: Add two tests for anonymous 5910 namespaces. 5911 * cplus-dem.c (gnu_special): Handle anonymous namespaces. 5912 59132000-09-10 Mark Mitchell <mark@codesourcery.com> 5914 5915 * splay-tree.c (splay_tree_predecessor): New function. 5916 (splay_tree_successor): Likewise. 5917 59182000-09-10 Hans-Peter Nilsson <hp@axis.com> 5919 5920 * testsuite/demangle-expected: Add four tests for type_info 5921 mangling. 5922 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type, 5923 for a non-template non-qualified type_info function or node. 5924 59252000-09-08 Alex Samuel <samuel@codesourcery.com> 5926 5927 * cp-demangle.c: Fix copyright banner. 5928 59292000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5930 5931 * md5.c: #include "ansidecl.h". 5932 59332000-09-06 Alex Samuel <samuel@codesourcery.com> 5934 5935 * cp-demangle.c (status_allocation_failed): Rearrange whitespace. 5936 (demangle_type): Handle substitution candidates correctly in the 5937 face of special substitutions. 5938 59392000-09-05 Alex Samuel <samuel@codesourcery.com> 5940 5941 * cp-demangle.c (demangle_encoding): Rename variable. 5942 (demangle_name): Rename parameter. Handle return type 5943 suppression. 5944 (demangle_nested_name): Rename parameter. 5945 (demangle_prefix): Likewise. Change return type suppression. 5946 (demangle_unqualified_name): Add parameter. Flag constructors and 5947 conversion operators. 5948 (demangle_special_name): Fix comment. 5949 (demangle_type): Rename variable. 5950 (demangle_bare_function_type): Check for missing return type and 5951 parameter. 5952 (demangle_class_enum_type): Rename parameter. 5953 (demangle_discriminator): Fix misspelling in comment. 5954 59552000-08-31 DJ Delorie <dj@redhat.com> 5956 5957 * configure.in (Cygwin): special case cygwin only when we're 5958 building cygwin, not when we're hosting cygwin. 5959 59602000-09-04 Alex Samuel <samuel@codesourcery.com> 5961 5962 * cp-demangle.c (demangle_template_arg): Eat an `E' after an 5963 <expression>. 5964 59652000-09-04 Alex Samuel <samuel@codesourcery.com> 5966 5967 * cp-demangle.c (demangle_type_ptr): Increment position past 5968 pointer and reference characters. 5969 59702000-09-04 Alex Samuel <samuel@codesourcery.com> 5971 5972 * cp-demangle.c (demangle_nv_offset): New function. 5973 (demangle_v_offset): Likewise. 5974 (demangle_call_offset): Likewise. 5975 (demangle_special_name): Update thunk demangling to comply with 5976 ABI changes. 5977 59782000-09-03 Alex Samuel <samuel@codesourcery.com> 5979 5980 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro. 5981 (substitution_def): Remove template_parm_number. 5982 (NOT_TEMPLATE_PARM): Remove. 5983 (result_insert_string): New macro. 5984 (result_insert): Likewise. 5985 (result_insert_char): Likewise. 5986 (substitution_add): Remove last parameter. Don't store template 5987 parm number. 5988 (BFT_NO_RETURN_TYPE): Define as NULL. 5989 (demangle_encoding): Adjust call to demangle_bare_function_type. 5990 (demangle_name): Adjust substitution. Adjust call to 5991 substitution_add. 5992 (demangle_prefix): Adjust call to substitution_add. 5993 (demangle_identifier): Handle anonymous namespaces. 5994 (demangle_operator_name): Change demangling of vendor-extended 5995 operator to match ABI changes. 5996 (demangle_type_ptr): Change parameters. Make recursive. Handle 5997 substitutions here. 5998 (demangle_type): Adjust calls to demangle_template_param, 5999 substitution_add, and demangle_type_ptr. Fix substitution of 6000 templated types. 6001 (demangle_function_type): Change parameter to a pointer. 6002 (demangle_bare_function_type): Likewise. Adjust insertion point. 6003 (demangle_template_param): Remove last parameter. 6004 (demangle_expr_primary): Remove unused variable. Adjust call to 6005 demangle_template_param. 6006 (is_mangled_char): Accept `$' and `.'. 6007 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'. 6008 * dyn-string.c (dyn_string_insert_char): New function. 6009 60102000-08-31 Hans-Peter Nilsson <hp@axis.com> 6011 6012 * testsuite/demangle-expected: Add nine tests for 6013 underscore-after-number followed by five tests for name-signature 6014 delimiter. 6015 60162000-08-28 Richard Henderson <rth@cygnus.com> 6017 6018 * Makefile.in (md5.o): Depend on config.h. 6019 60202000-08-28 Jason Merrill <jason@redhat.com> 6021 6022 * Makefile.in (REQUIRED_OFILES): Add md5.o. 6023 (CFILES): Add md5.c. 6024 * md5.c: New file. 6025 60262000-08-27 Alex Samuel <samuel@codesourcery.com> 6027 6028 * cp-demangle.c (demangle_name): Initialize template_p in local 6029 name case. Don't re-add substitutions as candidates. 6030 (demangle_nested_name): Use <unqualified-name>. 6031 (demangle_prefix): Likewise. Don't add template names as 6032 substitution candidates twice, or re-add a substitution or the 6033 last prefix component. 6034 (demangle_local_name): Adjust output format. 6035 60362000-08-25 Alex Samuel <samuel@codesourcery.com> 6037 6038 * cp-demangle.c (result_add_separated_char): Change parameter to 6039 int. 6040 (substitution_add): Don't check for duplicates. Check if 6041 previously allocated size is zero. 6042 (demangle_name): Remove duplicate check for std substitution. 6043 Clear template flag appropriately. 6044 (demangle_prefix): Remove argument to demangle_substitution. 6045 Don't check that template flag is already set. 6046 (demangle_operator_name): Add pt operator. 6047 (demangle_type): Don't treat r as built-in type. Remove argument 6048 to demangle_substitution. Fix substitution candidate mechanics. 6049 Handle <template-template-parm>s. Improve comments. 6050 (demangle_template_param): Don't handle template arg lists here. 6051 (demangle_substitution): Remove parameter. 6052 (print_usage): Remove extra fprintf option. 6053 60542000-08-24 Greg McGary <greg@mcgary.org> 6055 6056 * random.c (end_ptr): Revert previous change. 6057 60582000-08-24 Greg McGary <greg@mcgary.org> 6059 6060 * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname, 6061 demangle_expression, demangle_function_name): Use ARRAY_SIZE. 6062 * random.c (end_ptr): Likewise. 6063 60642000-08-23 Alex Samuel <samuel@codesourcery.com> 6065 6066 * cp-demangle.c (result_close_template_list): Remove function. 6067 (result_add_separated_char): New function. 6068 (result_open_template_list): New macro. 6069 (result_close_template_list): Likewise. 6070 (demangle_prefix): Don't set template_p if the 6071 prefix ends with a ctor name. 6072 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR. 6073 (demangle_type): Check for template args after substitution. 6074 (demangle_template_args): Use result_open_template_list. 6075 60762000-08-02 Zack Weinberg <zack@wolery.cumb.org> 6077 6078 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop. 6079 60802000-07-26 Dave Pitts <dpitts@cozx.com> 6081 6082 * config/mh-openedition.h: Added -DLE370 definition. 6083 60842000-07-26 Mark Elbrecht <snowball3@bigfoot.com> 6085 6086 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to 6087 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call. 6088 Cast program to 'char *' in errmsg_arg assignment. 6089 (PWAIT_ERROR): Define. 6090 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform 6091 to DJGPP's WIF* macros. 6092 60932000-07-27 RodneyBrown <RodneyBrown@pmsc.com> 6094 Jeff Law <law@cygnus.com> 6095 6096 * getcwd.c: Include string.h, stdlib.h for prototypes 6097 6098 * Makefile.in (rename.o, waitpid.o): Depend on config.h 6099 * rename.c: Include config.h, unistd.h 6100 * waitpid.c: Include config.h, sys/wait.h 6101 61022000-07-24 Hans-Peter Nilsson <hp@axis.com> 6103 6104 * cplus-dem.c (work_stuff_copy_to_from): New. 6105 (delete_non_B_K_work_stuff): New. 6106 (delete_work_stuff): New. 6107 (mop_up): Break out work_stuff partly destruction to 6108 delete_non_B_K_work_stuff. 6109 (iterate_demangle_function): New. 6110 (demangle_prefix): Call iterate_demangle_function instead of 6111 demangle_function_name. Leave handling of name-signature 6112 __-delimiters to iterate_demangle_function. 6113 (demangle_integral_value): Strip an optional 6114 following underscore cautiously. Handle negative numbers. 6115 61162000-07-24 Daniel Berlin <dberlin@redhat.com> 6117 6118 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to 6119 if (AUTO_DEMANGLING || GNU_DEMANGLING) 6120 61212000-07-21 Alex Samuel <samuel@codesourcery.com> 6122 6123 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge 6124 allocating ctor mangling. 6125 (demangle_array_type): Handle empty and non-constant array length. 6126 61272000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG> 6128 Jeff Law <law@cygnus.com> 6129 6130 * configure.in (AC_CHECK_HEADERS): Add time.h. 6131 (AC_HEADER_TIME): Add check. 6132 * configure, config.in: Regenerate. 6133 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>. 6134 6135 * configure.in (AC_CHECK_HEADERS): Add limits.h. 6136 * configure, config.in: Regenerate. 6137 * sort.c: Portably #include <limits.h> and/or <sys/param.h>. 6138 * strtol.c, strtoul.c: #include "config.h". Portably #include 6139 <limits.h> and/or <sys/param.h>. 6140 * Makefile.in (strtol.o, strtoul.o): Update dependencies. 6141 6142 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro. 6143 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check. 6144 * configure, config.in: Regenerate. 6145 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary. 6146 6147 * cp-demangle.c, mkstemps.c: #include <sys/types.h>. 6148 61492000-07-21 Mike Stump <mrs@wrs.com> 6150 6151 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c. 6152 * (vasprintf.o): Add dependency for config.h in vasprintf.c. 6153 61542000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6155 6156 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2. 6157 6158 * setenv.c (setenv): Initialize variable `ep'. 6159 6160 * sigsetmask.c (abort): Prototype. 6161 6162 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not 6163 __STDC__ for stdarg.h include. 6164 (int_vasprintf): Prototype. 6165 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in 6166 definition. Cast `global_total_width' in comparison. 6167 (main): Prototype. Return a value. 6168 6169 * vfork.c (fork): Prototype. 6170 6171 * xexit.c: Include config.h. 6172 61732000-07-20 Joseph S. Myers <jsm28@cam.ac.uk> 6174 6175 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int, 6176 and print it with %u. 6177 61782000-07-17 Hans-Peter Nilsson <hp@axis.com> 6179 6180 * testsuite/regress-demangle (failed test): Show result and 6181 expected output. 6182 61832000-07-07 Andrew Haley <aph@cygnus.com> 6184 6185 * cplus-dem.c (main): fflush() after emitting last char before 6186 waiting for input. 6187 61882000-06-28 Alex Samuel <samuel@codesourcery.com> 6189 6190 * cp-demangle.c (demangle_encoding): Accept no substitutions. 6191 (demangle_name): Handle <substitution> followed by 6192 <unqualified-template-name>. 6193 (demangle_type): Follow special substitutions with 6194 <class-enum-type> 6195 (demangle_subtitution): Set template_p for special substitutions. 6196 (main): Fix typos. 6197 61982000-06-27 Alex Samuel <samuel@codesourcery.com> 6199 6200 * cp-demangle.c (demangle_special_name): Swap base and derived 6201 class when demangling construction vtables. 6202 62032000-06-21 Alex Samuel <samuel@codesourcery.com> 6204 6205 * cp-demangle.c: Don't include ctype.h. 6206 (IS_DIGIT): New macro. 6207 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout 6208 instead of isdigit and isalpanum. 6209 (demangling_def): Make name and next const pointers. 6210 (STATUS_ALLOCATION_FAILED): New status code. 6211 (dyn_string_append_space): Handle failure in 6212 dyn_string_append_char. 6213 (int_to_dyn_string): Likewise. Change return value to status_t. 6214 (string_list_new): Handle failure of dyn_string_init. 6215 (result_close_template_list): Change return type to status_t. 6216 Handle failure in dyn_string_append. 6217 (result_push): Change return value to status_t. Handle failure in 6218 string_list_new. Handle failure of result_push throughout. 6219 (substitution_add): Change return value to status_t. Handle 6220 dyn_string failures. Handle failure of substitution_add 6221 throughout. 6222 (template_arg_list_new): Return NULL on allocation failure. 6223 (result_append_string): Return STATUS_ALLOCATION_FAILED on error. 6224 Handle error result throughout. 6225 (result_append): Likewise. 6226 (result_append_char): Likewise. 6227 (result_append_space): Likewise. 6228 (demangling_new): Make argument a const pointer. Handle 6229 allocation failures. 6230 (demangle_template_args): Handle failure in template_arg_list_new 6231 and result_close_template_list. 6232 (demangle_discriminator): Return if int_to_dyn_string fails. 6233 (cp_demangle): Likewise. 6234 (cp_demangle_type): New function. 6235 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on 6236 memory allocation failure. 6237 (main): Likewise. 6238 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if 6239 IN_LIBGCC2. 6240 (dyn_string_init): Change return value to int. Handle 6241 RETURN_ON_ALLOCATION_FAILURE case. 6242 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case. 6243 (dyn_string_release): Delete the dyn_string. 6244 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case. 6245 (dyn_string_copy): Change return type to int. 6246 (dyn_string_copy_cstr): Likewise. 6247 (dyn_string_prepend): Likewise. 6248 (dyn_string_prepend_cstr): Likewise. 6249 (dyn_string_insert): Likewise. 6250 (dyn_string_insert_cstr): Likewise. 6251 (dyn_string_append): Likewise. 6252 (dyn_string_append_cstr): Likewise. 6253 (dyn_string_append_char): Likewise. 6254 (dyn_string_substring): Likewise. 6255 62562000-06-09 Zack Weinberg <zack@wolery.cumb.org> 6257 6258 * cp-demangle.c (demangle_operator_name): Add spaces before 6259 names beginning with a letter: delete, delete[], new, new[], 6260 sizeof. 6261 (demangle_special_name): Handle TF <type> and TJ <type>. 6262 6263Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be> 6264 6265 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch. 6266 6267Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be> 6268 6269 * cp-demangle.c (stdio.h): File included unconditionaly. 6270 (template_arg_list_new): Parameter list is PARAMS ((void)), not (). 6271 * dyn-string.c (stdio.h): File included. 6272 * partition.c (partition_print): No `&' needed to take the address of 6273 a function. 6274 62752000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6276 6277 * configure.in (ac_libiberty_warn_cflags): Add -pedantic. 6278 6279 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify. 6280 6281 * cp-demangle.c (demangle_char): Change parameter from char to int. 6282 (demangle_expression, demangle_expr_primary): Remove extra 6283 semi-colon in prototype. 6284 6285 * dyn-string.c (dyn_string_append_char): Change parameter from 6286 char to int. 6287 6288 * memcmp.c (memcmp): Constify. 6289 6290 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with 6291 __extension__. 6292 6293 * partition.c (elem_compare): Prototype. Don't cast away 6294 const-ness. 6295 6296 * setenv.c (setenv): Use braces to avoid ambiguous `else'. 6297 62982000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6299 6300 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h. 6301 6302 * cp-demangle.c: Include demangle.h. 6303 (template_arg_list_new): DeANSIfy. 6304 (cp_demangle): Make static and add prototype. 6305 (operator_code, operators): Constify. 6306 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'. 6307 63082000-06-05 Alex Samuel <samuel@codesourcery.com> 6309 6310 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to 6311 unsigned char. 6312 (demangle_unqualified_name): Likewise. 6313 (demangle_number_literally): Likewise. 6314 (demangle_type): Likewise. 6315 (demangle_substitution): Likewise. 6316 (is_mangled_char): Likewise, for isalnum. 6317 63182000-06-04 Alex Samuel <samuel@codesourcery.com> 6319 6320 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c. 6321 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o. 6322 (cp-demangle.o): New dependency. 6323 (dyn-string.o): Likewise. 6324 6325 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions. 6326 6327 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI 6328 demangler. 6329 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI 6330 demangling mode. 6331 (gnu_new_abi_symbol_characters): New function. 6332 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New 6333 file. 6334 * cp-demangle.c: New file. 6335 6336Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com> 6337 6338 * floatformat.c: Add name to each floatformat field. 6339 6340Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com) 6341 6342 * Makefile.in (objalloc.o): Depend on config.h 6343 63442000-05-29 Zack Weinberg <zack@wolery.cumb.org> 6345 6346 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h 6347 if HAVE_STRING_H. 6348 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H. 6349 * objalloc.c: Include config.h. Include stdlib.h and don't 6350 declare malloc or free if HAVE_STDLIB_H. 6351 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H, 6352 else declare malloc without prototype. Include string.h if 6353 HAVE_STRING_H, else declare memset without prototype. Don't 6354 include stddef.h. 6355 63562000-05-23 Mike Stump <mrs@wrs.com> 6357 6358 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make 6359 -j3. 6360 63612000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca> 6362 6363 * xmalloc.c: Include config.h for HAVE_SBRK definition. 6364 63652000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl> 6366 6367 * hashtab.c (hash_pointer): Delete low-order bits which are 6368 probably zero, also eliminate a warning on alpha. 6369 63702000-05-15 David Edelsohn <edelsohn@gnu.org> 6371 6372 * Makefile.in: Change "pic" to depend on $(PICFLAG), not 6373 on $(enable_shared). 6374 63752000-05-10 Jakub Jelinek <jakub@redhat.com> 6376 6377 * config.table: Use mh-sparcpic for sparc*-*-*. 6378 63792000-05-08 Nick Clifton <nickc@cygnus.com> 6380 6381 * Makefile.in (CFILES): Add strncmp.c. 6382 (NEEDED): Add strncmp. 6383 63842000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6385 6386 * cplus-dem.c (cplus_demangle_opname, demangle_function_name): 6387 Cast the arguments to `islower' to `unsigned char'. 6388 (print_demangler_list): Prototype. 6389 6390Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be> 6391 6392 * sort.c (UCHAR_MAX): Provide fallback definition. 6393 63942000-04-29 Alexandre Oliva <aoliva@cygnus.com> 6395 6396 * Makefile.in (maintainer-clean-subdir): Fix handling of empty 6397 SUBDIRS. 6398 63992000-04-28 Kenneth Block <block@zk3.dec.com> 6400 Jason Merrill <jason@casey.cygnus.com> 6401 6402 * cplus-dem.c (libiberty_demanglers): New table for demangle styles. 6403 (cplus_demangle_set_style): New function for setting style. 6404 (cplus_demangle_name_to_style): New function to translate name. 6405 64062000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6407 6408 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP. 6409 6410 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h. 6411 (libiberty_AC_FUNC_STRNCMP): Invoke. 6412 6413 * strncmp.c: New file. 6414 6415Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz> 6416 6417 * hashtab.c (htab_expand): Add prototype. 6418 (find_empty_slot_for_expand): Likewise. 6419 64202000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6421 6422 * hashtab.c (hash_pointer, eq_pointer): Make definition static to 6423 match prototype. 6424 (htab_expand): Cast the return value of xcalloc. 6425 64262000-04-24 Mark Mitchell <mark@codesourcery.com> 6427 6428 * hashtab.c (hash_pointer): New function. 6429 (eq_pointer): Likewise. 6430 (htab_hash_pointer): New variable. 6431 (htab_eq_pointer): Likewise. 6432 64332000-04-23 Mark Mitchell <mark@codesourcery.com> 6434 6435 * sort.c (sort_pointers): Fix endianness bugs. 6436 6437 * sort.c: New file. 6438 * Makefile.in (CFILES): Add sort.c 6439 (REQUIRED_OFILES): Add sort.o. 6440 (sort.o): New target. 6441 64422000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG> 6443 6444 * Makefile.in (*-subdir): Revamp slightly to avoid losing on 6445 4.3BSD systems. 6446 6447Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 6448 6449 * hashtab.c: Various minor cleanups. 6450 (htab_find_slot_with_hash): INSERT is now enum insert_option. 6451 (htab_find_slot): Likewise. 6452 64532000-04-16 Dave Pitts <dpitts@cozx.com> 6454 6455 * cplus-dem.c (cplus_demangle_opname): Changed to use islower. 6456 64572000-04-05 Richard Henderson <rth@cygnus.com> 6458 6459 * splay-tree.c (splay_tree_remove): New. 6460 64612000-03-30 Mark Mitchell <mark@codesourcery.com> 6462 6463 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash 6464 codes. 6465 (htab_find_with_hash): Likewise. 6466 (htab_find_slot_with_hash): Likewise. 6467 64682000-03-29 Zack Weinberg <zack@wolery.cumb.org> 6469 6470 * hashtab.c (htab_find_with_hash): Avoid calculating hash2 6471 unless it will be used. Rearrange loop for better 6472 optimization. 6473 (higher_prime_number): Add static prototype. 6474 6475Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com) 6476 6477 * Makefile.in (partition.o): Depend on config.h 6478 64792000-03-14 Bernd Schmidt <bernds@cygnus.co.uk> 6480 6481 * hashtab.c (find_empty_slot_for_expand): New function. 6482 (htab_expand): Use it instead of htab_find_slot. 6483 (htab_find_with_hash): Renamed from htab_find; now accepts extra 6484 argument HASH. 6485 (htab_find_slot_with_hash): Likewise for htab_find_slot. 6486 (htab_find): New wrapper function. 6487 (htab_find_slot): Likewise. 6488 (htab_traverse): Pass slot, not entry, to called function. 6489 64902000-03-09 Alex Samuel <samuel@codesourcery.com> 6491 6492 * Makefile.in (CFILES): Add partition.c. 6493 (REQUIRED_OFILES): Add partition.o. 6494 (partition.o): New rule. 6495 * partition.c: New file. 6496 64972000-03-09 Zack Weinberg <zack@wolery.cumb.org> 6498 6499 * hashtab.c (htab_create): Set del_f. 6500 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot): 6501 Use it. 6502 65032000-03-08 Zack Weinberg <zack@wolery.cumb.org> 6504 6505 * hashtab.c: Remove debugging variables (all_searches, 6506 all_collisions, all_expansions). Delete 6507 all_hash_table_collisions. 6508 (create_hash_table, delete_hash_table, empty_hash_table, 6509 find_hash_table_entry, remove_element_from_hash_table_entry, 6510 clear_hash_table_slot, traverse_hash_table, hash_table_size, 6511 hash_table_elements_number, hash_table_collisions): Rename to: 6512 htab_create, htab_delete, htab_empty, htab_find_slot, 6513 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size, 6514 htab_elements, htab_collisions. 6515 (htab_find): New function, handles common case where you don't 6516 plan to add or delete an entry. 6517 (htab_expand): Don't create a whole new table, just a new 6518 entry vector. 6519 (htab_find_slot): Simplify logic. 6520 65211999-08-03 Ian Lance Taylor <ian@zembu.com> 6522 6523 * floatformat.c: Add casts to avoid signed/unsigned warnings. 6524 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix. 6525 6526 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to 6527 $(TARGETLIB)n so it works on MSDOS. 6528 (install_to_tooldir): Likewise. 6529 65301999-07-21 Ian Lance Taylor <ian@zembu.com> 6531 6532 From Mark Elbrecht: 6533 * makefile.dos: Remove; obsolete. 6534 * configure.bat: Remove; obsolete. 6535 65361999-07-11 Ian Lance Taylor <ian@zembu.com> 6537 6538 * splay-tree.c (splay_tree_insert): Add initialization to avoid 6539 warning. 6540 65412000-01-04 Mumit Khan <khan@xraylith.wisc.edu> 6542 6543 * pexecute.c: Conditionally include string.h. 6544 (fix_argv): Handle embedded whitespace in args for Mingw32. 6545 65462000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6547 6548 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if 6549 we're using gcc. 6550 6551 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@ 6552 65531999-12-27 Geoff Keating <geoffk@cygnus.com> 6554 6555 * vasprintf.c (int_vasprintf): Don't re-read the format character 6556 as this mishandles strings like '%%s'. 6557 65581999-12-05 Mark Mitchell <mark@codesourcery.com> 6559 6560 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s 6561 rather than struct splay_tree_node. 6562 (splay_tree_insert): Use struct splay_tree_s rather than struct 6563 splay_tree. 6564 6565Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be> 6566 6567 * hashtab.c (sys/types.h): File included. 6568 65691999-11-22 Jason Merrill <jason@casey.cygnus.com> 6570 6571 * strtoul.c, strtol.c, random.c: Remove advertising clause from 6572 BSD license, pursuant with 6573 6574 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change 6575 6576Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com) 6577 6578 * hashtab.c: Include stdio.h. 6579 6580Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com) 6581 6582 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS. 6583 6584Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be> 6585 6586 * xstrdup (sys/types.h): Include this file. 6587 65881999-10-28 Nathan Sidwell <nathan@acm.org> 6589 6590 * Makefile.in (SUBDIRS): New macro. 6591 (mostlyclean, clean, distclean, maintainer-clean): Adjust to 6592 avoid multiple subdirectory cleaning. 6593 (*-subdir): Use SUBDIRS. 6594 65951999-10-25 Jim Kingdon <http://developer.redhat.com/> 6596 6597 * cplus-dem.c: Move declarations of standard_symbol_characters and 6598 hp_symbol_characters inside #ifdef MAIN to avoid compiler 6599 warnings. 6600 66011999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com> 6602 6603 * hashtab.c (find_hash_table_entry): When returning a 6604 DELETED_ENTRY slot, change it to EMPTY_ENTRY first. 6605 (clear_hash_table_slot): New function which deletes an entry 6606 by its position in the table, not its value. 6607 (traverse_hash_table): New function which calls a hook 6608 function for every live entry in the table. 6609 66101999-10-19 Mark Mitchell <mark@codesourcery.com> 6611 6612 * cplus-dem.c (INTBUF_SIZE): New macro. 6613 (string_append_template_idx): New function. 6614 (demangle_expression): Likewise. 6615 (demangle_integral_value): Use it. 6616 (demangle_real_value): New function, split out from ... 6617 (demangle_template_value_parm): ... here. Use 6618 string_append_template_idx. Use demangle_real_value. 6619 (demangle_template): Use string_append_template_idx. 6620 (demangle_qualified): Use consume_count_with_underscores. 6621 (get_count): Tweak formatting. 6622 (do_type): Use string_append_template_idx. 6623 66241999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6625 6626 * calloc.c: Add a public domain notice. 6627 6628Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be> 6629 6630 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly. 6631 6632Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com> 6633 6634 * Makefile.in (CFILES): Add hashtab.c 6635 (REQUIRED_OFILES): Add hashtab.o 6636 (hashtab.o): Add dependencies. 6637 * hashtab.c: New file 6638 6639Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu> 6640 6641 * basename.c (DIR_SEPARATOR): New macro. 6642 (DIR_SEPARATOR_2): Likewise. 6643 (HAVE_DOS_BASED_FILESYSTEM): Likewise. 6644 (IS_DIR_SEPARATOR): Likewise. 6645 (main): Handle MSDOS style pathname. 6646 66471999-10-11 Mark Mitchell <mark@codesourcery.com> 6648 6649 * cplus-dem.c (do_type): Handle pointer to member types whose 6650 enclosing classes have namespace scope. 6651 6652Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org> 6653 6654 * config.table: Provide a backup shell for executing move-if-change. 6655 66561999-10-02 Mark Mitchell <mark@codesourcery.com> 6657 6658 * xmalloc.c (xmalloc): Fix spelling error. 6659 (xcalloc, xrealloc): Likewise. 6660 66611999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6662 6663 * cplus-dem.c (fancy_abort, demangle_integral_value, 6664 demangle_arm_hp_template, recursively_demangle, 6665 standard_symbol_characters, hp_symbol_characters, main): Add prototype. 6666 (program_name, program_version, fatal): Constify a char*. 6667 (usage, fatal): Mark with ATTRIBUTE_NORETURN. 6668 (main): Call return, not exit. 6669 66701999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6671 6672 * choose-temp.c: Remove obsolete comment about gcc. 6673 (make_temp_file): Constify a char*. 6674 6675Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6676 6677 * xmemdup.c: Include sys/types.h. 6678 66791999-09-07 Jeff Garzik <jgarzik@pobox.com> 6680 6681 * xmemdup.c: New xmemdup function. 6682 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co]. 6683 6684Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org> 6685 6686 * config.table: Add openedition target. 6687 * config/mh-openedition: New file. 6688 6689Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org> 6690 6691 * pexecute.c (pexecute): Fill in temp_base when needed. 6692 66931999-08-31 Richard Henderson <rth@cygnus.com> 6694 6695 * getpwd.c: Check HAVE_GETCWD before defining it away. 6696 66971999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6698 6699 * Makefile.in (CFILES): Add calloc.c and getpwd.c. 6700 (REQUIRED_OFILES): Add getpwd.o. 6701 (getpwd.o): Add target. 6702 6703 * configure.in (AC_PREREQ): Bump to 2.13. 6704 (AC_CHECK_HEADERS): Add check for <sys/stat.h>. 6705 6706 * getpwd.c: New file, moved here from gcc. 6707 67081999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6709 6710 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when 6711 comparing against a signed quantity. 6712 (arm_special): Likewise. 6713 (demangle_fund_type): Likewise. 6714 (do_hpacc_template_const_value): Mark parameter `work' with 6715 ATTRIBUTE_UNUSED. 6716 (main): Constify variable `valid_symbols'. 6717 6718Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be> 6719 6720 * strtoul.c (strtoul): Add parentheses around && within ||. 6721 6722Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org> 6723 6724 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix, 6725 libdir, libsubdir and tooldir. 6726 67271999-08-01 Mark Mitchell <mark@codesourcery.com> 6728 6729 * splay-tree.c (splay_tree_insert): Return the new node. 6730 67311999-07-14 Richard Henderson <rth@cygnus.com> 6732 6733 * argv.c: Include stdlib.h and string.h instead of 6734 prototyping directly. 6735 * choose-temp.c: Conditionally include string.h. 6736 67371999-07-12 Jason Merrill <jason@yorick.cygnus.com> 6738 6739 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero. 6740 67411999-07-11 Ian Lance Taylor <ian@zembu.com> 6742 6743 * splay-tree.c (splay_tree_insert): Add initialization to avoid 6744 warning. 6745 67461999-07-07 Jason Merrill <jason@yorick.cygnus.com> 6747 6748 * Makefile.in (needed-list): Only include stuff we actually need 6749 for libstdc++. 6750 67511999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 6752 6753 * configure.in (checkfuncs): Add gettimeofday. 6754 * config.in, configure: Regenerated. 6755 6756Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu> 6757 6758 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if 6759 the test fails. 6760 * configure: Regenerate. 6761 67621999-06-10 Mike Stump <mrs@wrs.com> 6763 6764 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix 6765 parallel builds. 6766 67671999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6768 6769 * putenv.c: Include ansidecl.h to define `const'. 6770 * setenv.c: Likewise. 6771 6772Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca> 6773 6774 * Makefile.in (CFILES): Add putenv.c and setenv.c. 6775 * configure.in (funcs): Add putenv and setenv. 6776 (AC_CHECK_FUNCS): Check for putenv and setenv. 6777 * configure: Rebuilt. 6778 * putenv.c setenv.c: New files. 6779 6780 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE 6781 bytes of space using malloc. 6782 6783Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com> 6784 6785 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance 6786 the *mangled pointer beyond the end of the string. Clean up code to 6787 match prevailing coding style. 6788 67891999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz> 6790 6791 * tmpnam.c (L_tmpnam): Fix typo. 6792 6793Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org> 6794 6795 * cplus-dem.c (standard_symbol_characters): Renamed from 6796 standard_symbol_alphabet. No longer modify TABLE. 6797 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer 6798 modify TABLE. 6799 (main): Corresponding changes. Use strchr to determine if a 6800 character is valid. 6801 68021999-05-11 Jim Blandy <jimb@zwingli.cygnus.com> 6803 6804 * cplus-dem.c (main): Use table lookup to distinguish identifier 6805 characters from non-identifier characters. 6806 (standard_symbol_alphabet, hp_symbol_alphabet): New functions. 6807 6808Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com> 6809 6810 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list. 6811 * getruntime.c: Only attempt to include sys/resource.h and 6812 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H 6813 are defined. 6814 6815Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com) 6816 6817 * configure.in (alloca detection): Handle alloca directly for interix. 6818 * configure: Rebuilt. 6819 6820Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu> 6821 6822 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32. 6823 68241999-04-20 Jim Blandy <jimb@zwingli.cygnus.com> 6825 6826 Fix from Dale Hawkins: 6827 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be 6828 reallocated properly if we use it again. 6829 6830 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be 6831 stricter about syntax. Always null-terminate string. 6832 6833Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu> 6834 6835 * configure.in (checkfuncs): Check for sbrk. 6836 * config.in: Rebuilt. 6837 * configure: Likewise. 6838 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions. 6839 68401999-04-12 Jim Blandy <jimb@zwingli.cygnus.com> 6841 6842 Fix from Marcus Daniels: 6843 * cplus-dem.c (demangle_fund_type): Don't run off the end of the 6844 identifier looking for another underscore. 6845 6846Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu> 6847 6848 * pexecute.c: Change all references to __UWIN__ to _UWIN. 6849 * xmalloc.c: Likewise. 6850 (xcalloc): UWIN has sbrk. 6851 (xrealloc): Fix guard macro. 6852 68531999-04-11 Richard Henderson <rth@cygnus.com> 6854 6855 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin 6856 or <alloca.h>. 6857 * clock.c (GNU_HZ): New definition. 6858 (clock): Use it. 6859 * getruntime.c: Likewise. 6860 6861 * config.table: Use mh-beos. 6862 * config/mh-beos: New file. 6863 68641999-04-11 Mark Mitchell <mark@codesourcery.com> 6865 6866 * cplus-dem.c (demangle_template_value_parm): Handle 6867 pointers-to-members. 6868 (do_type): Handle template parameters as qualifiers. 6869 68701999-04-01 Jim Blandy <jimb@zwingli.cygnus.com> 6871 6872 * cplus-dem.c: Attempt to handle overflows in counts with some 6873 semblance of grace. 6874 (consume_count): Detect overflows. Return -1 to indicate errors, 6875 instead of zero. 6876 (demangle_template_value_parm, demangle_template): Handle change 6877 to consume_count's return convention. 6878 68791999-04-05 Tom Tromey <tromey@cygnus.com> 6880 6881 * testsuite/regress-demangle: New file. 6882 * testsuite/demangle-expected: New file. 6883 6884 * Makefile.in (all, check, installcheck, info, install-info, 6885 clean-info, dvi, install, etags, tags, mostlyclean, clean, 6886 distclean, maintainer-clean, realclean): Depend on corresponding 6887 `-subdir' target. 6888 (all-subdir check-subdir installcheck-subdir info-subdir 6889 install-info-subdir clean-info-subdir dvi-subdir 6890 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir 6891 distclean-subdir maintainer-clean-subdir): New target. 6892 * testsuite/Makefile.in: New file. 6893 * configure: Rebuilt. 6894 * configure.in: Create testsuite/Makefile. 6895 68961999-04-02 Mark Mitchell <mark@codesourcery.com> 6897 6898 * splay-tree.h (splay_tree_compare_pointers): Define. 6899 69001999-03-30 Mark Mitchell <mark@codesourcery.com> 6901 6902 * splay-tree.c (splay_tree_compare_ints): Define. 6903 69041999-03-30 Tom Tromey <tromey@cygnus.com> 6905 6906 * cplus-dem.c (consume_count): If `count' wraps, return 0 and 6907 don't advance input pointer. 6908 (demangle_class_name): If consume_count didn't find a count, do 6909 nothing. Don't bother with `strlen' sanity check; consume_count 6910 does it for us. 6911 69121999-03-16 Stan Shebs <shebs@andros.cygnus.com> 6913 6914 From Art Haas <ahaas@neosoft.com>: 6915 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings 6916 when doing arm or hp style. 6917 (demangle_nested_args): Decr forgetting_types field when done. 6918 6919Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu> 6920 6921 * pexecute.c (__CYGWIN32__): Rename to 6922 (__CYGWIN__): this. 6923 * xmalloc.c: Likewise. 6924 6925 Changes to support i386-pc-uwin. 6926 * configure.in (*-*-uwin*): Workaround for vfork bug. 6927 * configure: Regenerate. 6928 * pexecute.c (pexecute): Be like standard Unix. 6929 (pwait): Likewise. 6930 * xmalloc.c (first_break): Define. 6931 (xmalloc_set_program_name): Use. 6932 (xmalloc): Use. 6933 6934Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 6935 6936 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc 6937 6938Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com> 6939 6940 * config.table: Check cygwin*, not cygwin32*. 6941 6942Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com> 6943 6944 * Makefile.in: Change mkstemp -> mkstemps. 6945 6946Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr> 6947 6948 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o 6949 * configure.in (funcs): Check for and conditionally add mkstemps to 6950 the list of functions libiberty will provide. 6951 * configure: Rebuilt. 6952 6953Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu> 6954 6955 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on 6956 platforms that don't have HZ. 6957 * getruntime.c (HZ): Likewise. 6958 6959Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com> 6960 6961 * Makefile.in (xstrdup.o): Depend on config.h. 6962 6963Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org) 6964 6965 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after 6966 freeing it. 6967 6968Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6969 6970 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed. 6971 6972Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com> 6973 6974 * Makefile.in (CFILES): fix typo, splay-tree.c instead of 6975 splay-tree.o. 6976 69771999-01-04 Jason Molenda (jsm@bugshack.cygnus.com) 6978 6979 * configure.in: Require autoconf 2.12.1 or higher. 6980 69811998-12-30 Michael Meissner <meissner@cygnus.com> 6982 6983 * random.c (NULL): Don't redefine NULL if it is already defined. 6984 6985Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6986 6987 * argv.c (buildargv): Cast the result of alloca in assignment. 6988 6989 * choose-temp.c: Include stdlib.h. 6990 6991 * cplus-dem.c (demangle_arm_pt): Remove unused prototype. 6992 (snarf_numeric_literal): Constify first parameter. 6993 (code_for_qualifier): Avoid a gcc extension, make the parameter an 6994 int, not a char. 6995 (demangle_qualifier): Likewise. 6996 (demangle_signature): Cast the argument of a ctype function to 6997 unsigned char. 6998 (arm_pt): Add parens around assignment used as truth value. 6999 (demangle_arm_hp_template): Constify variable `args'. 7000 (do_hpacc_template_const_value): Cast the argument of a ctype 7001 function to unsigned char. 7002 (do_hpacc_template_literal): Remove unused variable `i'. 7003 (snarf_numeric_literal): Constify parameter `args'. 7004 Cast the argument of a ctype function to unsigned char. 7005 7006 * floatformat.c (floatformat_to_double): Add explicit braces to 7007 avoid ambiguous `else'. 7008 7009 * fnmatch.c (fnmatch): Change type of variables `c', `c1', 7010 `cstart' and `cend' to unsigned char. Cast the argument of macro 7011 `FOLD', which uses ctype functions, to unsigned char. 7012 7013 * objalloc.c (free): Add prototype. 7014 7015Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se> 7016 7017 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o 7018 7019Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com> 7020 7021 * cplus-dem.c (demangle_arm_pt): remove declaration -- function 7022 doesn't exist. 7023 (do_hpacc_template_literal): remove unused variable `i'. 7024 7025Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com> 7026 7027 * cplus-dem.c (demangle_fund_type): Process CV and u codes before 7028 bumping the pointer we read from. Also prepend these codes, 7029 as we do in other places. 7030 70311998-12-18 Nick Clifton <nickc@cygnus.com> 7032 7033 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be 7034 'const char *' in order to match its usage when calling siblings. 7035 (snarf_numeric_literal): Make first arg 'const char **' in order 7036 to match usage. 7037 7038Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7039 7040 * choose-temp.c: Don't check IN_GCC anymore. 7041 7042 * floatformat.c (floatformat_from_double): Use `const', not `CONST'. 7043 * memchr.c (memchr): Likewise. 7044 * memcpy.c (memcpy): Likewise. 7045 * memmove.c (memmove): Likewise. 7046 7047 * mkstemp.c: Don't check IN_GCC anymore. 7048 * pexecute.c: Likewise. 7049 * splay-tree.c: Likewise. 7050 7051 * strchr.c (strchr): Use `const', not `CONST'. 7052 * strrchr.c (strrchr): Likewise. 7053 * strtol.c (strtol): Likewise. 7054 * strtoul.c (strtoul): Likewise. 7055 7056Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com> 7057 Elena Zannoni <ezannoni@cygnus.com> 7058 Stan Shebs <shebs@cygnus.com> 7059 Edith Epstein <eepstein@cygnus.com> 7060 Andres MacLeod <amacleod@cygnus.com> 7061 Satish Pai <pai@apollo.hp.com> 7062 7063 * HP aCC demangling support. 7064 * cplus-dem.c 7065 (main): Remove default to HP style demangling, set to EDG 7066 demangling correctly when -edg specified; set the demangling style 7067 when user specifies 'edg'. Set strip_underscore to 7068 prepends_underscore, if not HPUXHPPA. Set 7069 current_demangling_style to hp_demangling if HPUXHPPA. Set 7070 current demangling style correctly if the switch is hp. Read 7071 label correctly also in the HP style case. 7072 (work_stuff): add temp_start field; add field for volatile member 7073 function. 7074 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP 7075 style for this case is the same as ARM. 7076 (demangle_args): handle EDG_DEMANGLING style; support HP style. 7077 (demangle_arm_hp_template): new function. (It was 7078 demangle_arm_pt.); check and set value of temp_start field in 7079 multiple places. Also, when ceching for end of template args, 7080 check to see if at end of static member of template class. 7081 (demangle_class): new local variable : save_class_name_end Don't 7082 include template args in string defining class. 7083 (demangle_class_name): use demangel_arm_hp_template. 7084 (demangle_function_name): handle case where demangling style is 7085 HP_DEMANGLING and currently point at an 'X' in the mangled name. 7086 Handle EDG_DEMANGLING style. Handle constructor and destructor 7087 ops for HP style. 7088 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING 7089 styles. global destructor and constructor for HP style are same 7090 as for ARM style. Same for local variables. 7091 (demangle_qualified): handle EDG_DEMANGLING style. 7092 (demangle_signature): add case for volatile member function. For 7093 cases '1' - '9' : initialize the temp_start field to -1 and handle 7094 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING 7095 and AUTO_DEMANGLING styles. If expecting a function and managed 7096 to demangle the funct args, then handle the LUCID_DEMANGLING, 7097 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local 7098 class name after "Lnnn_ in HP style case. HP style too needs to 7099 forget types. _nnn is OK for HP style, so don't report failure. 7100 (do_hpacc_template_const_value): new function. Handle template's 7101 value param for HP/aCC. 7102 (do_hpacc_template_literal): new function. Handle a template's 7103 literal parameter for HP aCC. 7104 (recursively_demangle): new function 7105 (snarf_numeric_literal): new function. 7106 (usage): add 'edg' to the list of demangling styles; add hp switch 7107 to message. 7108 7109Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com> 7110 7111 * pexecute.c: Remove obsolete ifdefed cygwin code. 7112 7113Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7114 7115 * choose-temp.c: Always include libiberty.h. Avoid redundancies. 7116 * cplus-dem.c: Likewise. Conform to libiberty.h. 7117 * pexecute.c: Likewise. 7118 * splay-tree.c: Likewise. 7119 71201998-11-25 Mike Stump <mrs@wrs.com> 7121 7122 * Makefile.in (splay-tree.o): Add config.h dependency. 7123 7124Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7125 7126 * configure.in: Use AC_PREREQ(2.12.1). 7127 71281998-11-16 Benjamin Kosnik <bkoz@haight.constant.com> 7129 7130 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types. 7131 7132Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com) 7133 7134 * mpw.c (mpw_access): Add missing parens. 7135 7136Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7137 7138 * configure.in: Call AC_HEADER_SYS_WAIT. 7139 7140 * pexecute.c: Include sys/wait.h when !IN_GCC. 7141 7142Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com> 7143 7144 * pexecute.c: revert back to checking old Cygwin 7145 preprocessor symbol until some time has passed. 7146 7147Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com> 7148 7149 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin 7150 since it will now support similar constructs. 7151 7152Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7153 7154 * configure.in: Check for calloc. 7155 7156 * calloc.c: New file. 7157 7158 * xmalloc.c (xcalloc): New function. 7159 7160Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com> 7161 7162 *cplus-dem.c (demangle_prefix): Use the last "__" 7163 in the mangled name when looking for the signature. This allows 7164 template names to begin with "__". 7165 71661998-11-08 Mark Mitchell <mark@markmitchell.com> 7167 7168 * cplus-dem.c (type_kind_t): Add tk_reference. 7169 (demangle_template_value_parm): Handle it. 7170 (do_type): Use it for references, instead of tk_pointer. 7171 7172 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle, 7173 not internal_cplus_demangle. 7174 7175Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7176 7177 * choose-temp.c: Don't include gansidecl.h. 7178 * mkstemp.c: Likewise. 7179 * pexecute.c: Likewise. 7180 7181Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com> 7182 7183 * configure.in: detect cygwin* instead of cygwin32* 7184 * configure: regenerate 7185 7186Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7187 7188 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining 7189 whether to include config.h. Possibly include unistd.h in the 7190 !IN_GCC case. Define VFORK_STRING as a printable function call 7191 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is 7192 defined, include vfork.h. If VMS is defined, define vfork() 7193 appropriately. Remove vfork check on USG, we're using autoconf. 7194 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking 7195 locally what string to use. 7196 71971998-10-26 Mark Mitchell <mark@markmitchell.com> 7198 7199 * splay-tree.c: Tweak include directives to make sure declarations of 7200 xmalloc and free are available. 7201 72021998-10-25 Mark Mitchell <mark@markmitchell.com> 7203 7204 * cplus-dem.c (gnu_special): Fix handling of virtual tables in 7205 anonymous namespaces. 7206 72071998-10-23 Mark Mitchell <mark@markmitchell.com> 7208 7209 * cplus-dem.c (work_stuff): Replace const_type and volatile_type 7210 with type_quals. 7211 (TYPE_UNQUALIFIED): New macro. 7212 (TYPE_QUAL_CONST): Likewise. 7213 (TYPE_QUAL_VOLATILE): Likewise. 7214 (TYPE_QUAL_RESTRICT): Likewise. 7215 (code_for_qualifier): New function. 7216 (qualifier_string): Likewise. 7217 (demangle_qualifier): Likewise. 7218 (internal_cplus_demangle): Use them. 7219 (demangle_signature): Likewise. 7220 (demangle_template_value_parm): Likewise. 7221 (do_type): Likewise. 7222 (demangle_fund_type)): Likewise. 7223 7224Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7225 7226 * splay-tree.c (splay_tree_foreach_helper): Make definition static 7227 to match prototype. 7228 72291998-10-21 Mark Mitchell <mark@markmitchell.com> 7230 7231 * splay-tree.c: New file. 7232 * Makefile.in (CFILES): Add it. 7233 (REQUIRED_OFILES): Likewise. 7234 (splay-tree.o): Add dependencies. 7235 7236Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 7237 7238 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking 7239 range of 'K' index. 7240 7241Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7242 7243 * choose-temp.c: Prototype mkstemps() when IN_GCC. 7244 7245 * cplus-dem.c (consume_count): Cast argument of ctype macro to 7246 `unsigned char'. 7247 (cplus_demangle_opname): Cast the result of `strlen' to (int) when 7248 comparing against one. 7249 (cplus_mangle_opname): Likewise. 7250 (demangle_integral_value): Cast argument of ctype macro to 7251 `unsigned char'. 7252 (demangle_template_value_parm): Likewise. 7253 (demangle_template): Initialize variable `bindex'. Cast the 7254 result of `strlen' to (int) when comparing against one. Remove 7255 unused variable `start_of_value_parm'. 7256 (demangle_class_name): Cast the result of `strlen' to (int) when 7257 comparing against one. 7258 (demangle_prefix): Cast argument of ctype macro to `unsigned char'. 7259 (gnu_special): Likewise. Cast the result of `strlen' to (int) 7260 when comparing against one. 7261 (demangle_qualified): Cast argument of ctype macro to `unsigned char'. 7262 (get_count): Likewise. 7263 (do_type): Likewise. Cast the result of `strlen' to (int) when 7264 comparing against one. 7265 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'. 7266 (demangle_function_name): Cast the result of `strlen' to (int) 7267 when comparing against one. 7268 7269 * mkstemp.c (mkstemps): Cast variable `len' to (int) when 7270 comparing against one. 7271 7272Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com) 7273 7274 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h 7275 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too. 7276 * config.in, configure: Rebuilt. 7277 7278 * getopt.c: Check HAVE_STRINGS_H before including strings.h. 7279 * configure.in (AC_CHECK_HEADERS): Check for strings.h too. 7280 * config.in, configure: Rebuilt. 7281 7282Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com> 7283 7284 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT 7285 7286Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com> 7287 7288 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h. 7289 7290Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com) 7291 7292 * Merge egcs & devo libiberty. 7293 72941998-09-08 Martin von L��wis <loewis@informatik.hu-berlin.de> 7295 7296 * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces. 7297 7298Mon Sep 7 23:29:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7299 7300 * mkstemp.c: Include config.h even when not IN_GCC. Wrap header 7301 inclusions inside HAVE_*_H macros. Include ansidecl.h when not 7302 IN_GCC. 7303 7304 * vasprintf.c: Include stdarg.h/varargs.h first. 7305 7306 * vprintf.c: Likewise. 7307 7308Sat Sep 5 03:24:49 1998 Jeffrey A Law (law@cygnus.com) 7309 7310 * pexecute.c: Updates from gcc. Copy in gcc has been removed. This 7311 is the canonical copy. Define ISSPACE if !IN_GCC. 7312 * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly. 7313 * getopt1.c, obstack.c: Similarly. 7314 * Makefile.in: Build mkstemp.o 7315 7316Tue Sep 1 23:12:47 1998 Christopher Faylor <cgf@cygnus.com> 7317 7318 * configure.in: Include asprintf in list of functions known not 7319 to be in newlib. 7320 * configure: Rebuild. 7321 7322Wed Aug 19 14:05:01 1998 Mumit Khan <khan@xraylith.wisc.edu> 7323 7324 * cplus-dem.c (work_stuff): Add dllimported. 7325 (demangled_prefix): Mark symbols imported from PE DLL. 7326 (internal_cplus_demangled): Handle. 7327 73281998-08-17 Jason Merrill <jason@yorick.cygnus.com> 7329 7330 * cplus-dem.c (do_type): Fix simple array handling. If we fail, 7331 stay failed. 7332 7333Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7334 7335 * cplus-dem.c: Include config.h if it exists. Also, only 7336 prototype malloc/realloc if we can't get stdlib.h. 7337 7338Sat Aug 15 16:15:01 1998 Ian Lance Taylor <ian@cygnus.com> 7339 7340 * configure.in: Switch back to checking --with-target-subdir when 7341 deciding whether to check for newlib, undoing part of July 15 7342 change. 7343 * configure: Rebuild. 7344 7345Thu Aug 13 16:47:38 1998 Mark Mitchell <mark@markmitchell.com> 7346 7347 * cplus-dem.c (type_kind_t): New type. 7348 (demangle_template_value_parm): Add type_kind_t parameter. Rely 7349 on this paramter, rather than demangling the type again. 7350 (demangle_integral_value): Pass tk_integral. 7351 (demangle_template_: Pass the value returned from do_type. 7352 (do_type): Return a type_kind_t. Pass tk_integral to 7353 demangle_template_value_parm for array bounds. 7354 (demangle_fund_type): Likewise. 7355 7356 Also incorporate from GCC version: 7357 7358 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com> 7359 7360 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays. 7361 7362Thu Aug 13 16:47:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7363 7364 * cplus-dem.c (demangle_nested_args): Make function definition 7365 static to match the prototype. 7366 7367Tue Jul 28 11:33:09 1998 Mark Mitchell <mark@markmitchell.com> 7368 7369 * cplus-dem.c (type_kind_t): New type. 7370 (demangle_template_value_parm): Add type_kind_t parameter. Rely 7371 on this paramter, rather than demangling the type again. 7372 (demangle_integral_value): Pass tk_integral. 7373 (demangle_template_: Pass the value returned from do_type. 7374 (do_type): Return a type_kind_t. Pass tk_integral to 7375 demangle_template_value_parm for array bounds. 7376 (demangle_fund_type): Likewise. 7377 7378 Also incorporate from GCC version: 7379 7380 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com> 7381 7382 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays. 7383 7384Mon Jul 27 12:16:08 1998 Ian Lance Taylor <ian@cygnus.com> 7385 7386 * Makefile.in (ALLOCA): New variable. 7387 ($(TARGETLIB)): Add $(ALLOCA) to library. 7388 (needed-list): Add $(ALLOCA). 7389 ($(ALLOCA)): Depend upon stamp-picdir. 7390 7391Sun Jul 19 08:23:17 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7392 7393 * cplus-dem.c (demangle_nested_args): Make function definition 7394 static to match the prototype. 7395 7396Wed Jul 15 00:12:58 1998 Ian Lance Taylor <ian@cygnus.com> 7397 7398 * configure.in: Check --with-cross-host rather than 7399 --with-target-subdir when deciding whether build uses a cross 7400 compiler, and when deciding where to install the library. 7401 * configure: Rebuild. 7402 7403Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com> 7404 7405 * cplus-dem.c (demangle_nested_args): Return a value. 7406 7407Sat Jul 11 16:19:48 1998 Mark Mitchell <mark@markmitchell.com> 7408 7409 * cplus-dem.c (string): Move definition before work_stuff. 7410 (work_stuff): Add volatile_type, forgetting_types, 7411 previous_argument, and nrepeats fields. 7412 (SCOPE_STRING): New macro. 7413 (demangle_template): Add `remember' parameter. Add comment. 7414 Register the `B' code type here, if remembering. Tidy. Fix crash 7415 on NULL tmpl_argvec. Be consistent with use of tname/trawname. 7416 (demangle_nested_args): New function. 7417 (internal_cplus_demangle): Handle volatile-qualified member 7418 functions. 7419 (mop_up): Delete the previous_argument string if present. 7420 (demangle_signature): Tidy. Handle volatile-qualified member 7421 functions. Handle back-references using the `B' code. Use extra 7422 parameter to demangle_template and SCOPE_STRING where appropriate. 7423 (demangle_template_value_parm): Fix thinko; 'B' is not an integral 7424 code. 7425 (demangle_class): Use SCOPE_STRING. 7426 (gnu_special): Pass additional argument to demangle_template. 7427 Use SCOPE_STRING. 7428 (demangle_qualified): Save qualified types for later 7429 back-references. Handle constructors and destructors for template 7430 types correctly. 7431 (do_type): Tidy. Use SCOPE_STRING. Pass extra argument to 7432 demangle_template. Use demangled_nested_args. Don't remember 7433 qualified types here; that's now done in demangle_qualified. 7434 Similarly for templates. 7435 (do_arg): Improve commment. Handle 'n' repeat code. 7436 (remember_type): Check forgetting_types. 7437 (demangle_args): Deal with 'n' repeat codes. Tidy. 7438 7439Thu Jul 2 16:26:24 1998 Ian Lance Taylor <ian@cygnus.com> 7440 7441 * config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on 7442 *-*-freebsd2.2.*. From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>. 7443 7444Mon Jun 15 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com> 7445 7446 * configure.in (setobjs): Correct quoting error in cygwin32 case. 7447 From Chris Faylor <cgf@cygnus.com>. 7448 7449Mon Jun 1 13:47:55 1998 Jason Molenda (crash@bugshack.cygnus.com) 7450 7451 * obstack.c: Update to latest FSF version. 7452 7453Mon Jun 1 14:17:36 1998 Mike Stump <mrs@wrs.com> 7454 7455 * Makefile.in: Add a dependency on stamp-picdir for the 7456 objects, so that we can do a parallel build. 7457 7458Sat May 30 22:17:13 1998 Mumit Khan <khan@xraylith.wisc.edu> 7459 7460 * configure.in (checkfuncs): Add missing "'". 7461 7462Fri May 29 12:40:41 1998 Jason Molenda (crash@bugshack.cygnus.com) 7463 7464 * obstack.c (_obstack_memory_used): Elide this function if we're 7465 on a system with GNU libc. 7466 7467Tue May 26 18:28:43 1998 Ian Lance Taylor <ian@cygnus.com> 7468 7469 * Makefile.in (distclean): Remove config.log. 7470 7471Tue May 26 15:01:52 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 7472 7473 * Makefile.in (distclean): Don't remove alloca-conf.h. 7474 7475Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se> 7476 7477 * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767. 7478 74791998-05-21 Mark Mitchell <mmitchell@usa.net> 7480 7481 * cplus-dem.c (do_type): Handle volatile qualification. 7482 74831998-05-21 Manfred Hollstein <manfred@s-direktnet.de> 7484 7485 * configure.in: Check for unistd.h as well. 7486 * configure: Rebuild. 7487 * config.in: Rebuild. 7488 * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE 7489 is defined in unistd.h. Reformat conditional block for easier reading. 7490 7491 * config.table (shared): Default to no if ${enable_shared} 7492 is unset or empty; this logic is used by the toplevel 7493 configure scripts, too. 7494 7495Sat May 16 14:01:26 1998 Jeffrey A Law (law@cygnus.com) 7496 7497 * config.table: Add line to set enable_shared in the Makefile 7498 as needed. 7499 7500Wed May 13 14:24:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7501 7502 * cplus-dem.c (squangle_mop_up): Change return type to void. 7503 (internal_cplus_demangle): Remove unused parameter `options'. 7504 All callers changed. 7505 (cplus_demangle_opname): Remove function wide variable `int i' and 7506 replace with `size_t i' at each location where it is used. 7507 (cplus_mangle_opname): change type of `i' from int to size_t. 7508 7509Wed May 13 13:39:38 1998 Ian Lance Taylor <ian@cygnus.com> 7510 7511 * alloca-conf.h: Include config.h. Check HAVE_ALLOCA_H rather 7512 than sparc or sun. 7513 * Makefile.in (argv.o): Depend upon config.h and alloca-conf.h. 7514 7515Fri May 8 00:23:51 1998 Ian Lance Taylor <ian@cygnus.com> 7516 7517 * configure.in: Set libiberty_topdir correctly when srcdir is 7518 "." and with_target_subdir is not set. 7519 * configure: Rebuild. 7520 7521Thu May 7 13:01:44 1998 Ian Lance Taylor <ian@cygnus.com> 7522 7523 * configure.in: Add *-*-mingw32* case. 7524 * configure: Rebuild. 7525 7526Wed May 6 11:33:51 1998 Ian Lance Taylor <ian@cygnus.com> 7527 7528 * config.table: Never use a PIC file for *-*-cygwin32*. 7529 7530 * Makefile.in (config.status): Depend upon config.table. 7531 7532 * configure.in: On a cygwin32 host, always compile random, and 7533 don't test for sys_siglist, strsignal, or psignal. 7534 * configure: Rebuild. 7535 7536 * clock.c: Check HAVE_SYS_PARAM_H rather than NO_SYS_PARAM_H. 7537 * getcwd.c: Likewise. 7538 * getpagesize.c: Likewise. 7539 * getruntime.c: Likewise. 7540 7541Tue May 5 18:08:32 1998 Ian Lance Taylor <ian@cygnus.com> 7542 7543 Use autoconf tests rather than the old dummy.c test: 7544 * configure.in: Add AC_ARG_WITH calls for --with-target-subdir and 7545 --with-newlib. Add AC_CONFIG_HEADER. Use AC_REPLACE_FUNCS for 7546 most functions. Add special cases to handle newlib and VxWorks. 7547 Remove target_makefile_frag. Create stamp-h in AC_OUTPUT if 7548 CONFIG_HEADERS is set. Only call config-ml.in in AC_OUTPUT if 7549 CONFIG_FILES is set; set ac_file before calling it. 7550 * config.table (arm-*-riscix*, *-*-cygwin32): Remove. 7551 (*-*-hpux*, *-*-hiux*, *-*-irix4*, *-*-solaris2*): Remove. 7552 (*-*-sysv4*, *-*-go32, *-*-vxworks5*, *-*-vxworks): Remove 7553 (i[3456]-*-mingw32*): Remove. 7554 * Makefile.in (ERRORS_CC, CONFIG_H, NEEDED_LIST): Remove. 7555 (LIBOBJS): New variable. 7556 (HOST_OFILES, DO_ALSO, STAGESTUFF): Remove. 7557 (all): Depend upon needed-list. Don't check RULE1. 7558 (@target_makefile_frag@): Remove. 7559 (COMPILE.c): Include @DEFS@. 7560 (HFILES): Add alloca-conf.h. 7561 (REQUIRED_OFILES): Remove basename.o. 7562 ($(TARGETLIB)): New target. 7563 (stamp-needed, lneeded-list, needed.awk, stamp-config): Remove. 7564 (lconfig.h, needed2.awk, dummy.o, errors): Remove. 7565 (needed-list, config.h): Rewrite. 7566 (RULE1, $(RULE1), RULE2, $(RULE2)): Remove. 7567 (.always.): Remove. 7568 (Makefile): Set CONFIG_FILES and CONFIG_HEADERS. 7569 (stamp-h): New target. 7570 (atexit.o, clock.o, getcwd.o, getpagesize.o): New targets. 7571 (basename.o): Don't depend upon config.h. 7572 (getruntime.o): Depend upon config.h. 7573 * atexit.c: Include config.h. Check HAVE_ON_EXIT rather than 7574 NEED_on_exit. 7575 * basename.c: Don't include config.h. Don't check NEED_basename. 7576 * clock.c: Include config.h. 7577 * getcwd.c: Likewise. 7578 * getpagesize.c: Likewise. 7579 * getruntime.c: Likewise. Fix checks which set HAVE_GETRUSAGE and 7580 HAVE_TIMES. 7581 * strerror.c: Change uses of NEED_sys_errlist to 7582 HAVE_SYS_ERRLIST. Likewise for NEED_strerror and HAVE_STRERROR. 7583 * strsignal.c: Likewise for NEED_sys_siglist and HAVE_SYS_SIGLIST, 7584 and for NEED_strsignal and HAVE_STRSIGNAL and for NEED_psignal and 7585 HAVE_PSIGNAL. 7586 * acconfig.h: New file. 7587 * dummy.c: Remove. 7588 * functions.def: Remove. 7589 * config/mh-cxux7 (HDEFINES): Remove -DHAVE_SYSCONF. 7590 * config/mh-windows (HDEFINES): Remove. 7591 * config/mh-cygwin32: Remove. 7592 * config/mh-go32: Remove. 7593 * config/mh-irix4: Remove. 7594 * config/mh-riscix: Remove. 7595 * config/mh-sysv4: Remove. 7596 * config/mt-mingw32: Remove. 7597 * config/mt-vxworks5: Remove. 7598 * config.in: New file, generated using autoheader. 7599 * configure: Rebuild. 7600 7601Mon May 4 13:00:28 1998 Ian Lance Taylor <ian@cygnus.com> 7602 7603 * configure.in: Rewrite to use autoconf. 7604 * configure: Generate using autoconf. 7605 * config/mh-a68bsd: Remove. 7606 * config/mh-apollo68: Remove. 7607 * config/mh-hpbsd: Remove. 7608 * config/mh-ncr3000: Remove. 7609 * config/mh-sysv: Remove. 7610 * config/mh-aix (RANLIB, INSTALL): Don't define. 7611 * config/mh-cxux7 (RANLIB, INSTALL): Don't define. 7612 * config/mh-irix4 (CC, RANLIB, INSTALL): Don't define. 7613 * config/mh-sysv4 (RANLIB, INSTALL): Don't define. 7614 * config.table: Change config_shell to CONFIG_SHELL, and use 7615 libiberty_topdir to find move-if-change. 7616 (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove. 7617 (i[3456]86-ncr-sysv4*, *-*-dgux*, hppa*-hp-bsd*): Remove. 7618 (*-*-irix*, *-*-m88kbcs*, *-*-sysv*): Remove. 7619 * Makefile.in (srcdir): Set to @srcdir@. 7620 (VPATH): Likewise. 7621 (prefix, exec_prefix, bindir, libdir): Set to autoconf variables. 7622 (SHELL, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Likewise. 7623 (CC, CFLAGS, RANLIB)): Likewise. 7624 (datadir, man*dir, infodir, includedir, MAKEINFO): Remove. 7625 (target_makefile_frag, host_makefile_frag): Add substitutions. 7626 (INSTALL_DEST): Set to @INSTALL_DEST@. 7627 (Makefile): Depend upon config.status. Don't depend upon 7628 $(host_makefile_frag) or $(target_makefile_frag). 7629 (config.status): New target. 7630 7631Sun May 3 17:58:49 1998 Ian Lance Taylor <ian@cygnus.com> 7632 7633 * config/mt-sunos4: Remove. Should be handled by --with-headers 7634 and --with-libraries options at top level. 7635 * config.table: Never use mt-sunos4. 7636 7637 * alloca-conf.h: New file, combining alloca-norm.h and 7638 alloca-botch.h. 7639 * alloca-norm.h: Remove. 7640 * alloca-botch.h: Remove. 7641 * configure.in: Set shell variables files and links to empty. 7642 * config.table: Don't set shell variable files. 7643 * configure.bat: Don't create alloca-conf.h. 7644 * makefile.vms: Likewise. 7645 * mpw-config.in: Likewise. 7646 * vmsbuild.com: Likewise. 7647 7648Fri May 1 11:41:42 1998 Ian Lance Taylor <ian@cygnus.com> 7649 7650 * Makefile.in ($(HOST_OFILES) $(REQUIRED_OFILES)): Remove old 7651 target depending upon config.h. 7652 (alloca.o): Add target depending upon config.h 7653 (basename.o, choose-temp.o, fnmatch.o): Likewise. 7654 (getopt.o, getopt1.o, pexecute.o, strerror.o): Likewise. 7655 (strsignal.o, xstrerror.o): Likewise. 7656 7657Fri May 1 04:26:25 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 7658 7659 * cplus-dem.c (cplus_demangle_opname): Initialize work. 7660 7661Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com> 7662 7663 * cplus-dem.c (demangle_qualified): Replace missing else. 7664 7665Sun Apr 26 15:38:50 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 7666 7667 * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the 7668 length in the name of a virtual table. 7669 7670Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod <amacleod@cygnus.com> 7671 7672 * cplus-dem.c (struct work stuff): Add field for B and K mangle codes. 7673 (cplus_demangle_opname): Call mop_up_squangle. 7674 (cplus_demangle): Initialize squangle info, then call 7675 internal_cplus_demangle. (Most code moved there as well) 7676 (internal_cplus_demangle): New function, performs most of what use 7677 to be done in cplus_demangle, but is only called with this file. 7678 (squangle_mop_up): New function to clean up B and K code data. 7679 (mop_up): set pointers to NULL after freeing. 7680 (demangle_signature, demangle_template, demangle_class): Add 7681 switch elements to handle K and B codes. 7682 (demangle_prefix, gnu_special, demangle_qualified): Add 7683 code to handle K and B codes. 7684 (do_type, demangle_fund_type): Handle B and K codes. 7685 (remember_Ktype): New function to store K info. 7686 (register_Btype, remember_Btype): New functions for B codes. 7687 (forget_B_and_K_types): New function to destroy B and K info. 7688 7689Fri Apr 10 01:49:10 1998 Jeffrey A Law (law@cygnus.com) 7690 7691 * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc. 7692 7693Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de> 7694 7695 * config.table: Make locating frag files failsafe even for the 7696 special case if configuring and building in srcdir. 7697 7698Mon Feb 23 14:33:15 1998 Ian Lance Taylor <ian@cygnus.com> 7699 7700 * choose-temp.c: Fix handling of sys/file.h to work in libiberty. 7701 7702Sun Feb 22 18:03:23 1998 Jeffrey A Law (law@cygnus.com) 7703 7704 * choose-temp.c: Sync with copy in gcc. 7705 7706Thu Feb 12 16:29:49 1998 Ian Lance Taylor <ian@cygnus.com> 7707 7708 * getopt.c: Update to latest FSF version. 7709 * getopt1.c: Likewise. 7710 7711Tue Feb 10 16:58:33 1998 Stan Shebs <shebs@andros.cygnus.com> 7712 7713 * cplus-dem.c (gnu_special): Don't get confused by .<digits> 7714 strings that are not actually lengths. 7715 7716Fri Feb 6 01:35:17 1998 Manfred Hollstein <manfred@s-direktnet.de> 7717 7718 * Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG. 7719 (.c.o): Check value of enable_shared, not PICFLAG. 7720 (stamp-picdir): Dito. 7721 7722Thu Feb 5 18:48:56 1998 Geoffrey Noer <noer@cygnus.com> 7723 7724 * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES 7725 since it gets built automatically 7726 7727Sun Feb 1 02:52:32 1998 Mike Stump <mrs@wrs.com> 7728 7729 * config.table (vxworks configs): Default to VxWorks 5.x, as that is 7730 the currently shipping OS. 7731 7732Tue Jan 27 16:08:20 1998 Pat Rankin <rankin@eql.caltech.edu> 7733 7734 * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in: 7735 Add fnmatch.o and objalloc.o; remove vasprintf.o. 7736 [config.h]: Define NEED_strsignal. 7737 7738Mon Jan 19 12:20:01 1998 Ian Lance Taylor <ian@cygnus.com> 7739 7740 * functions.def: Correct argument types for strerror and 7741 strsignal. Reported by Alex Gutman <agutman@emc.com>. 7742 7743Sun Jan 18 15:57:28 1998 Michael Snyder <msnyder@cleaver.cygnus.com> 7744 7745 * vasprintf.c (int_vasprintf): Increase buffer size for float/double 7746 values. 7747 7748Sat Jan 17 22:28:38 1998 Mumit Khan <khan@xraylith.wisc.edu> 7749 J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl> 7750 7751 Add mingw32 support. 7752 * pexecute.c (pexecute): New function for mingw32. Supports pipes. 7753 (pwait): New function for mingw32. 7754 7755 * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32. 7756 * config/mt-mingw32: New file. 7757 * xmalloc.c (first_break): Not used for mingw32. 7758 (xmalloc_set_program_name): Don't use sbrk on mingw32. 7759 (xmalloc): Likewise. 7760 (xrealloc): Likewise. 7761 7762Sat Jan 17 22:28:05 1998 Jeffrey A Law (law@cygnus.com) 7763 7764 * choose-temp.c: Sync with gcc version. 7765 7766Tue Jan 13 18:34:39 1998 Jim Wilson <wilson@cygnus.com> 7767 7768 * Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR 7769 to all filenames in libdir and tooldir. 7770 (distclean): Do MULTICLEAN before deleting Makefile. 7771 (stamp-needed, stamp-config): Add MULTISRCTOP to 7772 pathname for move-if-change. 7773 7774Thu Dec 4 17:25:19 1997 Jeffrey A Law (law@cygnus.com) 7775 7776 * strsignal.c (sys_nsig): Try NSIG and _NSIG. 7777 7778Wed Nov 19 13:37:06 1997 Michael Meissner <meissner@cygnus.com> 7779 7780 * alloca-norm.h (alloca, GCC case): Don't redefine alloca if it 7781 was already defined previously. 7782 7783Mon Nov 10 12:48:03 1997 Philippe De Muyter <phdm@macqel.be> 7784 7785 * Makefile.in (INSTALL): Use ../install-sh, not install. 7786 7787Tue Oct 28 23:41:15 1997 Judy Goldberg <jodyg@idt.net> 7788 7789 * Makefile.in (CFILES): Add pexecute.c. 7790 7791Wed Oct 15 19:13:48 1997 Ian Lance Taylor <ian@cygnus.com> 7792 7793 * asprintf.c: Consistently use either stdarg or varargs. 7794 7795Tue Oct 14 12:01:00 1997 Mark Mitchell <mmitchell@usa.net> 7796 7797 * cplus-dem.c (demangle_signature): Don't look for return types on 7798 constructors. Handle member template constructors. 7799 7800Fri Oct 3 17:53:30 1997 Ian Lance Taylor <ian@cygnus.com> 7801 7802 * README: Fix configuration instructions. 7803 7804Mon Sep 29 12:28:41 1997 Ian Lance Taylor <ian@cygnus.com> 7805 7806 * pexecute.c: Update to current version from /gd/gnu/lib: 7807 7808 Mon Sep 29 12:27:59 1997 Ian Lance Taylor <ian@cygnus.com> 7809 7810 * pexecute.c: Use spawn if __CYGWIN32__. 7811 7812 1997-08-08 Paul Eggert <eggert@twinsun.com> 7813 7814 * pexecute.c: Include "config.h" first, as per autoconf manual. 7815 7816 Fri Jun 27 15:20:29 1997 Scott Christley <scottc@net-community.com> 7817 7818 * pexecute.c (fix_argv): New function. 7819 (pexecute): Win32 but not Cygwin32 needs its arguments fixed. 7820 Add underscore to cwait function call. 7821 7822Sun Sep 28 12:00:52 1997 Mark Mitchell <mmitchell@usa.net> 7823 7824 * cplus-dem.c (demangle_template): Add new parameter. Handle new 7825 template-function mangling. 7826 (consume_count_with_underscores): New function. 7827 (demangle_signature): Handle new name-mangling scheme. 7828 7829Wed Sep 24 00:31:59 1997 Felix Lee <flee@yin.cygnus.com> 7830 7831 * asprintf.c: stdarg.h when ALMOST_STDC 7832 * config/mh-windows (EXTRA_OFILES): add asprintf.o and 7833 strncasecmp.o. 7834 7835Thu Aug 28 14:27:15 1997 Andrew Cagney <cagney@b1.cygnus.com> 7836 7837 * vasprintf.c (vasprintf): Allow for _BSD_VA_LIST_. 7838 7839 * config.table: Add case for FreeBSD 2.1 and 2.2, needs mh-fbsd21. 7840 7841 * config/mh-fbsd21 (EXTRA_OFILES): Force vasprintf.o 7842 7843Wed Sep 10 12:43:10 1997 Jason Merrill <jason@yorick.cygnus.com> 7844 7845 * cplus-dem.c (demangle_fund_type): Change "complex" to "__complex". 7846 7847Fri Sep 5 16:34:42 1997 Andrew Cagney <cagney@b1.cygnus.com> 7848 7849 * asprintf.c (asprintf): New file. 7850 * Makefile.in (CFILES): Add asprintf.c 7851 * functions.def: Ditto. 7852 7853Thu Aug 28 18:53:34 1997 Andrew Cagney <cagney@b1.cygnus.com> 7854 7855 * argv.c (dupargv): New function, duplicate an argument vector. 7856 7857Tue Aug 19 20:28:45 1997 Geoffrey Noer <noer@cygnus.com> 7858 7859 * config/mh-cygwin32: also build random.o 7860 7861Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com> 7862 7863 * cplus-dem.c: Add 'extern' to prepends_underscore. 7864 7865Wed Jul 30 11:42:19 1997 Per Bothner <bothner@cygnus.com> 7866 7867 * cplus-dem.c: Various changes to produce Java output when passed 7868 DMGL_JAVA. Thus "::" becomes "." and "JArray<Foo>" becomes "Foo[]". 7869 (main): Support --java and -j flags to set DMGL_JAVA. 7870 7871Tue Jul 22 19:05:23 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE> 7872 7873 * config/mh-go32 (CC, AR, RANLIB): Don't define. 7874 7875Tue Jul 22 17:49:54 1997 Ian Lance Taylor <ian@cygnus.com> 7876 7877 * Makefile.in (REQUIRED_OFILES): Add pexecute.o. 7878 (pexecute.o): New target. 7879 7880 * Makefile.in (stamp-needed): New target, replacing needed-list. 7881 (needed-list): Just depend upon stamp-needed. 7882 (stamp-config): New target, replacing config.h. 7883 (config.h): Just depend upon stamp-config. 7884 (mostlyclean): Remove stamp-*. 7885 7886Thu Jun 12 11:00:18 1997 Angela Marie Thomas (angela@cygnus.com) 7887 7888 * Makefile.in (FLAGS_TO_PASS): pass INSTALL, INSTALL_PROGRAM and 7889 INSTALL_DATA for multilibbed installs 7890 7891Tue Jun 3 13:21:05 1997 Doug Evans <dje@canuck.cygnus.com> 7892 7893 Tue Dec 10 09:44:57 1996 Paul Eggert <eggert@twinsun.com> 7894 7895 * choose-temp.c (choose_temp_base): Don't dump core if TMPDIR is empty. 7896 7897 * choose-temp.c (try): Insist that temp dir be searchable. 7898 7899 Wed Oct 23 17:36:39 1996 Doug Rupp (rupp@gnat.com) 7900 7901 * choose-temp.c (choose_temp_base): On VMS, use proper syntax 7902 for current directory. 7903 7904 Sat Feb 15 19:03:48 1997 Geoffrey Noer (noer@cygnus.com) 7905 7906 * pexecute.c: Remove special cases for cygwin32. 7907 (pwait): Remove local definition of `pid'. 7908 7909 Tue Nov 12 18:26:15 1996 Doug Rupp (rupp@gnat.com) 7910 7911 * pexecute.c (vfork): Supply new definition for VMS. 7912 (pwait): Use waitpid instead of wait for VMS. 7913 7914Tue May 20 14:02:20 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 7915 7916 * cplus-dem.c (do_type): Handle `J'. 7917 (demangle_fund_type): Print "complex" for it. 7918 7919Wed Apr 30 12:15:45 1997 Jason Merrill <jason@yorick.cygnus.com> 7920 7921 * configure.in: Don't turn on multilib here. 7922 7923Mon Apr 28 19:04:31 1997 Michael Snyder <msnyder@cleaver.cygnus.com> 7924 7925 * obstack.c: move _obstack_memory_used outside of ifdef. Cannot be 7926 elided; needed by gdb and not present in libc. 7927 7928Thu Apr 24 19:33:47 1997 Ian Lance Taylor <ian@cygnus.com> 7929 7930 * Makefile.in (clean): Remove tmpmulti.out. 7931 7932Tue Apr 22 10:25:15 1997 Fred Fish <fnf@cygnus.com> 7933 7934 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): 7935 Add new floatformat, mainly for ARM doubles. 7936 7937Mon Apr 14 12:11:16 1997 Ian Lance Taylor <ian@cygnus.com> 7938 7939 * config.table: Use ${config_shell} with ${moveifchange}. From 7940 Thomas Graichen <graichen@rzpd.de>. 7941 7942Fri Apr 4 03:09:24 1997 Ulrich Drepper <drepper@cygnus.com> 7943 7944 * configure.in: Enable multilibing by default. 7945 Update multilib template to read config-ml.in. 7946 7947Tue Apr 1 16:26:39 1997 Klaus Kaempf <kkaempf@progis.de> 7948 7949 * makefile.vms: Add objalloc. 7950 7951Mon Mar 31 23:57:51 1997 H.J. Lu <hjl@gnu.ai.mit.edu> 7952 7953 * cplus-dem.c (demangle_it): Add prototype declaration. 7954 (usage, fatal): Likewise. 7955 7956 * xexit.c (_xexit_cleanup): Add prototype. 7957 7958 * strerror.c (init_error_tables): Declare. 7959 7960Fri Mar 28 11:43:20 1997 H.J. Lu <hjl@lucon.org> 7961 7962 * functions.def: Add DEF of vasprintf, and DEFFUNC of strsignal. 7963 * strsignal.c: Only define strsignal if NEED_strsignal. 7964 * Makefile.in (REQUIRED_OFILES): Remove vasprintf.o. 7965 * configure.in: Add NEED_strsignal to xconfig.h. Add vasprintf.o 7966 to xneeded-list. 7967 * config/mh-cygwin32 (HDEFINES): Add -DNEED_strsignal. 7968 (EXTRA_OFILES): Define to vasprintf.o. 7969 * config/mh-windows (HDEFINES): Add -DNEED_strsignal. 7970 (EXTRA_OFILES): Add vasprintf.o. 7971 * config/mt-vxworks5 (vxconfig.h): Define NEED_strsignal. 7972 (vxneeded-list): Add vasprintf.o. 7973 7974Thu Mar 20 17:02:09 1997 Ian Lance Taylor <ian@cygnus.com> 7975 7976 * objalloc.c: Include <stdio.h>. 7977 7978Mon Mar 17 19:23:11 1997 Ian Lance Taylor <ian@cygnus.com> 7979 7980 * objalloc.c: New file. 7981 * Makefile.in (CFILES): Add objalloc.c 7982 (REQUIRED_OFILES): Add objalloc.o. 7983 (objalloc.o): New target. 7984 7985Sat Mar 15 18:49:41 1997 Ian Lance Taylor <ian@cygnus.com> 7986 7987 * obstack.c: Update to current FSF version. 7988 7989Fri Mar 14 14:18:47 1997 Ian Lance Taylor <ian@cygnus.com> 7990 7991 * cplus-dem.c: Add prototypes for all static functions. 7992 (mystrstr): Make static. Make arguments and result const. 7993 (cplus_match): Remove; not used. 7994 7995Tue Mar 11 14:20:31 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 7996 7997 * cplus-dem.c (gnu_special): Call demangled_fund_type for other 7998 __t* symbols. 7999 8000Tue Mar 11 15:41:21 1997 H.J. Lu <hjl@lucon.org> 8001 8002 * spaces.c: Declare malloc and free properly. 8003 * strsignal.c (init_signal_tables): Add prototype. 8004 * xatexit.c (_xexit_cleanup): Add parameter declarations. 8005 8006Wed Feb 19 15:43:24 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 8007 8008 * Makefile.in (lneeded-list): If alloca.o is needed, xexit.o is 8009 also required because of xmalloc.o. 8010 8011Fri Feb 14 13:43:38 1997 Ian Lance Taylor <ian@cygnus.com> 8012 8013 * strsignal.c: Unconditionally redefine sys_siglist around the 8014 inclusion of the system header files. 8015 8016Thu Feb 13 22:01:04 1997 Klaus Kaempf <kkaempf@progis.de> 8017 8018 * makefile.vms: Remove 8 bit characters. Update to latest 8019 gcc release. 8020 8021Tue Feb 4 11:52:19 1997 Ian Lance Taylor <ian@cygnus.com> 8022 8023 * strsignal.c: Use NEED_sys_siglist instead of 8024 LOSING_SYS_SIGLIST. 8025 * config.table: Don't use mh-lynxos. 8026 * config/mh-lynxos: Remove. 8027 8028Thu Jan 16 14:51:03 1997 Bob Manson <manson@charmed.cygnus.com> 8029 8030 * cplus-dem.c: Fix indenting; make identical to the copy 8031 in GCC. 8032 (do_type, case 'M'): Check for a template as well as a class. 8033 8034Thu Dec 19 13:51:33 1996 Brendan Kehoe <brendan@lisa.cygnus.com> 8035 8036 * config/mt-vxworks5 (vxneeded-list): Remove sigsetmask.o, since 8037 vxworks 5.[0-3] all have sigsetmask in them; the one provided by 8038 libiberty is incorrect, as well. 8039 8040Mon Dec 2 15:03:42 1996 Michael Meissner <meissner@tiktok.cygnus.com> 8041 8042 * alloca.c (alloca): When compiled with an ANSI/ISO compiler, 8043 alloca takes a size_t argument, not just unsigned. 8044 8045Mon Nov 18 15:42:08 1996 Jason Merrill <jason@yorick.cygnus.com> 8046 8047 * cplus-dem.c: Note that this file also lives in GCC. 8048 8049Mon Nov 18 15:19:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 8050 8051 * alloca.c: Remove include of libiberty.h for hpux. 8052 * argv.c: Replace defs from libiberty.h. 8053 * spaces.c: Put back externs from removed from libiberty.h. 8054 * vasprintf.c: Remove include of libiberty.h for hpux. 8055 8056Mon Nov 18 14:08:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 8057 8058 * cplus-dem.c: Checking in again; last checkin filed due to sticky tag. 8059 8060Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 8061 8062 * cplus-dem.c: Revert last two commits due to conflicts with 8063 hpux system headers. 8064 8065Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 8066 8067 * alloca.c, argv.c, spaces.c, strcasecmp.c, vasprintf.c, vprintf.c: 8068 Revert last commit due to conflicts with hpux system headers. 8069 8070Wed Nov 13 10:36:50 1996 Michael Meissner <meissner@tiktok.cygnus.com> 8071 8072 * cplus-dem.c (x{m,re}alloc): Make declarations compatibile with 8073 libiberty.h when compiled with a standard compiler. 8074 8075Tue Nov 12 16:31:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 8076 8077 * alloca.c: Include libiberty.h for definition of xmalloc. 8078 Don't redefine NULL. 8079 * argv.c: Move prototypes to libiberty.h. 8080 * cplus-dem.c: Include libiberty.h for definition of xmalloc. 8081 Don't redefine NULL. 8082 Use casts to eliminate compiler warnings. 8083 * spaces.c: Remove prototypes for malloc and free which are 8084 already in libibrty.h. 8085 * strcasecmp.c: Use casts to eliminate compiler warnings. 8086 * vasprintf.c: Include libiberty.h for definition of malloc. 8087 Don't redefine NULL. 8088 * vprintf.c: Include stdarg.h if __STDC__. 8089 8090Fri Oct 11 15:42:12 1996 Stu Grossman (grossman@critters.cygnus.com) 8091 8092 * config/mh-windows: Add strcasecmp.o to EXTRA_OFILES. 8093 8094Fri Oct 11 11:16:31 1996 Stan Shebs <shebs@andros.cygnus.com> 8095 8096 * mpw.c (mpwify_filename): Rewrite to simplify, and to handle 8097 upward components correctly. 8098 8099Tue Oct 8 08:55:34 1996 Stu Grossman (grossman@critters.cygnus.com) 8100 8101 * config.table, config/mh-windows: Add support for building under 8102 MSVC (the Microsoft build environment). 8103 8104Mon Oct 7 10:50:27 1996 Ian Lance Taylor <ian@cygnus.com> 8105 8106 * fnmatch.c: Undef const if not __STDC__. 8107 8108Thu Oct 3 13:46:39 1996 Ian Lance Taylor <ian@cygnus.com> 8109 8110 * fnmatch.c: New file. 8111 * Makefile.in (CFILES): Add fnmatch.c. 8112 (REQUIRED_OFILES): Add fnmatch.o. 8113 (fnmatch.o): New target. 8114 8115Wed Sep 18 14:49:13 1996 Jason Merrill <jason@yorick.cygnus.com> 8116 8117 * cplus-dem.c (demangle_template): Fix handling of address args. 8118 (gnu_special): Handle type_info stuff. 8119 8120Fri Sep 13 17:52:55 1996 Stan Shebs <shebs@andros.cygnus.com> 8121 8122 * mpw.c (DebugPI): Make settable from the env var DEBUG_PATHNAMES. 8123 (mpwify_filename): Handle "::/" case. 8124 8125Thu Sep 12 13:30:40 1996 Geoffrey Noer <noer@cygnus.com> 8126 8127 * config/mh-cygwin32: new file (need -DNEED_basename and 8128 -DNEED_sys_siglist for native NT rebuilding) 8129 * config.table (*-*-cygwin32): new entry 8130 * choose-temp.c: bring in sync with gcc (revert Aug 17 change) 8131 8132Thu Aug 29 16:48:45 1996 Michael Meissner <meissner@tiktok.cygnus.com> 8133 8134 * config.table (i[345]86-*-*): Recognize i686 for pentium pro. 8135 8136Tue Aug 27 13:47:58 1996 Stan Shebs <shebs@andros.cygnus.com> 8137 8138 * pexecute.c (pexecute) [MPW]: Remove old bogus code that 8139 messed with arguments that included a '/', add escape chars 8140 to double quotes, remove const decl from arg that Mac 8141 compilers don't seem to like. 8142 8143Sat Aug 17 04:44:27 1996 Geoffrey Noer <noer@cygnus.com> 8144 8145 * pexecute.c: Update test for win32 (&& ! cygwin32). 8146 * choose-temp.c: fix WIN32 preprocessor defines 8147 8148Thu Aug 15 12:26:48 1996 Stan Shebs <shebs@andros.cygnus.com> 8149 8150 * mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG({Default})@ 8151 to editing of default makefile rule. 8152 8153Sun Aug 11 21:03:27 1996 Stu Grossman (grossman@critters.cygnus.com) 8154 8155 * alloca-norm.h: Include <malloc.h> if _WIN32. 8156 * argv.c: Include non-prototyped decls for malloc and string 8157 functions if ! _WIN32 or if __GNUC__. 8158 8159Thu Aug 8 12:42:40 1996 Klaus Kaempf <kkaempf@progis.de> 8160 8161 * config.h-vms: New file. 8162 * makefile.vms: Use it. 8163 8164Wed Aug 7 17:16:12 1996 Stu Grossman (grossman@critters.cygnus.com) 8165 8166 * getopt.c (_getopt_internal): If argc is 0, just return (before 8167 we reference *argv and segfault). 8168 8169Mon Aug 5 01:29:08 1996 Jason Merrill <jason@yorick.cygnus.com> 8170 8171 * Makefile.in (distclean): Add multilib.out. 8172 8173Thu Jul 18 17:40:55 1996 Ian Lance Taylor <ian@cygnus.com> 8174 8175 * alloca-norm.h: Change #ifdef sparc to #if defined (sparc) && 8176 defined (sun). From Andrew Gierth <ANDREWG@microlise.co.uk>. 8177 8178Mon Jul 1 13:40:44 1996 Ken Raeburn <raeburn@cygnus.com> 8179 8180 Tue May 28 15:29:03 1996 Pat Rankin <rankin@eql.caltech.edu> 8181 8182 * vmsbuild.com (REQUIRD_OFILES): Add choose-temp.o and xstrdup.o. 8183 8184 Thu Jan 25 18:20:04 1996 Pat Rankin <rankin@eql.caltech.edu> 8185 8186 * vmsbuild.com: Changes to handle DEFFUNC(on_exit). 8187 (do_ofiles): Allow nonexistent source file in pass 3. 8188 (chk_deffunc): New routine. 8189 8190Tue Jun 25 19:24:43 1996 Doug Evans <dje@canuck.cygnus.com> 8191 8192 * pexecute.c (PEXECUTE_VERBOSE): Define. 8193 (MPW pexecute): Check flags & PEXECUTE_VERBOSE instead of verbose_flag. 8194 8195Tue Jun 25 23:11:48 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) 8196 8197 * Makefile.in (docdir): Removed. 8198 8199Tue Jun 25 23:01:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) 8200 8201 * Makefile.in (oldincludedir): Removed. 8202 8203Tue Jun 25 22:50:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) 8204 8205 * Makefile.in (datadir): Set to $(prefix)/share. 8206 8207Thu Jun 20 21:17:52 1996 Ian Lance Taylor <ian@cygnus.com> 8208 8209 * cplus-dem.c (demangle_arm_pt): Reindent. Avoid endless loop by 8210 checking for errors from do_type. 8211 8212Tue Jun 18 14:36:19 1996 Klaus Kaempf <kkaempf@progis.de> 8213 8214 * makefile.vms: New file. 8215 * xmalloc.c: If VMS, include <stdlib.h> and <unixlib.h> rather 8216 than declaring malloc, realloc, and sbrk. 8217 8218Mon Jun 10 13:17:17 1996 Doug Evans <dje@canuck.cygnus.com> 8219 8220 * pexecute.c: New file. 8221 8222Wed Jun 5 16:57:45 1996 Richard Henderson <rth@tamu.edu> 8223 8224 * xmalloc.c: Declare sbrk. 8225 8226Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8227 8228 * alloca-norm.h: Add SPARCworks cc compatible __builtin_alloca 8229 declaration. 8230 8231Mon Apr 22 18:41:49 1996 Ian Lance Taylor <ian@cygnus.com> 8232 8233 * xstrerror.c: Include <stdio.h>. 8234 8235Sun Apr 21 11:55:12 1996 Doug Evans <dje@canuck.cygnus.com> 8236 8237 * Makefile.in (CFILES): Add atexit.c. 8238 8239Sun Apr 21 09:50:09 1996 Stephen L Moshier (moshier@world.std.com) 8240 8241 * choose-temp.c: Include sys/types.h before sys/file.h for sco3.2v5. 8242 8243Wed Apr 17 11:17:55 1996 Doug Evans <dje@canuck.cygnus.com> 8244 8245 * choose-temp.c: Don't #include sys/file.h ifdef NO_SYS_FILE_H. 8246 #include <stdio.h> 8247 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_FILE_H. 8248 8249Tue Apr 16 11:27:16 1996 Jeffrey A Law (law@cygnus.com) 8250 8251 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o. 8252 Reverts Feb 8, 1995 change. 8253 8254Mon Apr 15 12:53:26 1996 Doug Evans <dje@canuck.cygnus.com> 8255 8256 * choose-temp.c: New file. 8257 * Makefile.in (CFILES): Add choose-temp.c. 8258 (REQUIRED_OFILES): Add choose-temp.o. 8259 8260Sat Apr 13 14:19:30 1996 Stu Grossman (grossman@critters.cygnus.com) 8261 8262 * floatformat.c (floatformat_to_double): Don't bias exponent when 8263 handling zero's, denorms or NaNs. 8264 8265Thu Apr 11 13:36:56 1996 Stu Grossman (grossman@critters.cygnus.com) 8266 8267 * floatformat.c (floatformat_to_double): Fix bugs with handling 8268 numbers with fractions < 32 bits. 8269 8270Mon Apr 8 14:48:34 1996 Ian Lance Taylor <ian@cygnus.com> 8271 8272 * config.table: Permit --enable-shared to specify a list of 8273 directories. 8274 8275Tue Mar 19 22:02:07 1996 Jason Merrill <jason@yorick.cygnus.com> 8276 8277 * cplus-dem.c (demangle_template): Fix for non-mangled pointer 8278 arguments. 8279 8280Fri Mar 8 17:24:18 1996 Ian Lance Taylor <ian@cygnus.com> 8281 8282 * configure.in: If srcdir is `.' and with_target_subdir is not 8283 `.', then set MULTISRCTOP before calling config-ml.in. 8284 8285Thu Mar 7 13:37:10 1996 Stan Shebs <shebs@andros.cygnus.com> 8286 8287 * mpw.c (mpw_open): Add debugging output option. 8288 8289Wed Mar 6 17:36:03 1996 Jason Merrill <jason@yorick.cygnus.com> 8290 8291 * cplus-dem.c (demangle_template): Fix for address-of-extern arguments. 8292 8293Tue Feb 27 12:00:50 1996 Raymond Jou <rjou@mexican.cygnus.com> 8294 8295 * mpw.c (mpwify_filename): Change 6 to 5 in 8296 strncmp (unixname, "/tmp/", 5). 8297 8298Tue Feb 20 10:55:53 1996 Ian Lance Taylor <ian@cygnus.com> 8299 8300 * cplus-dem.c (demangle_template): Initialize is_bool. Correctly 8301 handle 0 as a pointer value parameter. 8302 8303Mon Feb 5 16:41:44 1996 Ian Lance Taylor <ian@cygnus.com> 8304 8305 * Makefile.in (all): Depend upon required-list. 8306 (required-list): New target. 8307 (clean): Remove required-list. 8308 8309Wed Jan 31 10:19:41 1996 Steve Chamberlain <sac@slash.cygnus.com> 8310 8311 * win32.c: Deleted. 8312 * config.table (i386-*-win32): Deleted. 8313 * config/mh-i386win32: Deleted. 8314 8315Thu Jan 18 11:34:17 1996 Ian Lance Taylor <ian@cygnus.com> 8316 8317 * cplus-dem.c (cplus_demangle_opname): Change opname parameter to 8318 const char *. 8319 (cplus_mangle_opname): Change return type and opname parameter to 8320 const char *. Don't cast return value. 8321 8322Tue Jan 16 12:13:11 1996 Stan Shebs <shebs@andros.cygnus.com> 8323 8324 * mpw.c: Include Timer.h, in order to get m68k Microseconds trap 8325 definition. 8326 8327Wed Jan 3 13:15:04 1996 Fred Fish <fnf@cygnus.com> 8328 8329 * obstack.c: Update copyright to 1996. 8330 (_obstack_memory_used): Define new function. Called via 8331 obstack_memory_used macro. 8332 8333Thu Dec 28 11:39:40 1995 Ian Lance Taylor <ian@cygnus.com> 8334 8335 * xstrdup.c: New file. 8336 * Makefile.in (CFILES): Add xstrdup.c. 8337 (REQUIRED_OFILES): Add xstrdup.o. 8338 (xstrdup.o): New target. 8339 8340Mon Dec 11 18:18:52 1995 Mike Stump <mrs@cygnus.com> 8341 8342 * atexit.c: New stub to provide atexit on systems that have 8343 on_exit, like SunOS 4.1.x systems. 8344 * functions.def (on_exit, atexit): Ditto. 8345 8346Mon Dec 11 15:42:14 1995 Stan Shebs <shebs@andros.cygnus.com> 8347 8348 * mpw.c (mpw_abort): Remove decl. 8349 (mpw_access): Move debugging printf. 8350 8351Sat Dec 2 01:25:23 1995 Ian Lance Taylor <ian@cygnus.com> 8352 8353 * config.table: Consistently use ${host} rather than ${xhost} or 8354 ${target}. 8355 * configure.in: Don't bother to set ${xhost} before calling 8356 config.table. 8357 8358Tue Nov 28 14:16:57 1995 Brendan Kehoe <brendan@lisa.cygnus.com> 8359 8360 * Makefile.in (.c.o): Use test instead of the left bracket, to 8361 avoid problems with some versions of make. 8362 8363Tue Nov 28 11:45:17 1995 Stan Shebs <shebs@andros.cygnus.com> 8364 8365 * mpw-make.sed: Fix INCDIR edit to work with Nov 14 change. 8366 8367Tue Nov 21 11:26:34 1995 Fred Fish <fnf@rtl.cygnus.com> 8368 8369 * config/mh-hpux: Remove. It was only used to define EXTRA_OFILES, 8370 which was set to just alloca.o, which is now automatically marked 8371 as needed by the autoconfiguration process. 8372 8373Tue Nov 21 14:15:06 1995 Ian Lance Taylor <ian@cygnus.com> 8374 8375 * config.table: Check ${with_cross_host} rather than comparing 8376 ${host} and ${target}. 8377 8378Thu Nov 16 14:34:42 1995 Ian Lance Taylor <ian@cygnus.com> 8379 8380 * configure.in: If with_target_subdir is empty, set xhost to 8381 ${host} rather than ${target} before calling config.table. 8382 8383Tue Nov 14 01:38:30 1995 Doug Evans <dje@canuck.cygnus.com> 8384 8385 * Makefile.in (MULTITOP): Deleted. 8386 (MULTISRCTOP, MULTIBUILDTOP): New. 8387 (FLAGS_TO_PASS): Delete INCDIR. 8388 (INCDIR): Add $(MULTISRCTOP). 8389 (install_to_libdir): Add $(MULTISUBDIR). Call $(MULTIDO). 8390 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in 8391 instead of cfg-ml-pos.in. 8392 (cross-compile check): Change to test for with_target_subdir. 8393 (EXTRA_LINKS): Delete. 8394 8395Sun Nov 12 12:13:04 1995 Stan Shebs <shebs@andros.cygnus.com> 8396 8397 * mpw-make.sed: Add getpagesize.c.o to needed-list. 8398 * mpw.c [USE_MW_HEADERS]: Conditionalize compiling of 8399 functions that are supplied by Metrowerks libraries. 8400 (fstat): Clean up descriptor->pointer conversion code. 8401 (InstallConsole, etc): Empty definitions, for when linking 8402 with SIOUX. 8403 8404Sun Nov 5 19:25:27 1995 Per Bothner <bothner@kalessin.cygnus.com> 8405 8406 * Makefile.in (FLAGS_TO_PASS): Also pass PICFLAGS. 8407 (.c.o): Stylistic change. 8408 8409Thu Nov 2 12:06:29 1995 Ian Lance Taylor <ian@cygnus.com> 8410 8411 * strtol.c, strtoul.c: Don't include <stdlib.h>. From 8412 phdm@info.ucl.ac.be (Philippe De Muyter). 8413 8414Wed Nov 1 11:59:36 1995 Ian Lance Taylor <ian@cygnus.com> 8415 8416 * configure.in: Correct sed call. 8417 8418Mon Oct 30 13:03:45 1995 Per Bothner <bothner@kalessin.cygnus.com> 8419 8420 * configure.in: Clean up / simplify for native. 8421 8422 * configure.in: Merge in stuff from ../xiberty/configure.in. 8423 * Makefile.in (CC): Add definition (so it can be overrridden 8424 by ../configure). 8425 8426Tue Oct 24 17:57:27 1995 Stan Shebs <shebs@andros.cygnus.com> 8427 8428 * mpw-make.sed: Leave strerror.c.o in standard list of functions. 8429 * mpw.c (R_OK, ENOENT, EACCESS, ENOSYS): Remove. 8430 (link): Remove useless definition with error return. 8431 (last_microseconds, warn_if_spin_delay, record_for_spin_delay): 8432 Use UnsignedWide type for microsecond counts. 8433 8434Thu Oct 19 10:52:07 1995 Michael Meissner <meissner@wogglebug.tiac.net> 8435 8436 * memcmp.c (memcmp): Argument types are const void *, not void 8437 *const. 8438 8439 * strncasecmp.c (strncasecmp): Include ansidecl.h/stdarg.h, not 8440 sys/types.h. 8441 * strcasecmp.c (strcasecmp): Ditto. 8442 8443Tue Oct 10 11:03:24 1995 Fred Fish <fnf@cygnus.com> 8444 8445 * Makefile.in (BISON): Remove macro. 8446 8447Tue Sep 26 15:06:46 1995 Stan Shebs <shebs@andros.cygnus.com> 8448 8449 * Makefile.in (HFILES): Add default empty definition. 8450 * mpw-config.in (config.h): Only update if changed. 8451 * mpw-make.in: Remove. 8452 * mpw-make.sed: New file, edits Makefile.in into MPW makefile. 8453 * mpw.c: Remove semi-clone of strerror code. 8454 (sys_nerr, sys_errlist): Define here. 8455 (Microseconds): Only define as A-line trap if m68k Mac. 8456 8457Wed Sep 20 12:53:32 1995 Ian Lance Taylor <ian@cygnus.com> 8458 8459 * Makefile.in (maintainer-clean): New synonym for distclean. 8460 8461Mon Aug 28 19:47:52 1995 Per Bothner <bothner@kalessin.cygnus.com> 8462 8463 * config.table: For host, generalize rs6000-ibm-aix* 8464 to *-ibm-aix* so we also include powerpc. 8465 8466Tue Aug 22 03:18:05 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 8467 8468 Fri Jun 16 18:35:40 1995 Pat Rankin (rankin@eql.caltech.edu) 8469 8470 * xstrerror.c: New file. 8471 * Makefile.in, vmsbuild.com: Compile it. 8472 8473Mon Jul 31 12:16:32 1995 steve chamberlain <sac@slash.cygnus.com> 8474 8475 * config.table (i386-*-win32): New. 8476 8477Fri Jul 21 11:35:52 1995 Doug Evans <dje@canuck.cygnus.com> 8478 8479 * Makefile.in (MULTITOP): New variable. 8480 (MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): Likewise. 8481 (all): Add multilib support. 8482 (install_to_tooldir, *clean): Likewise. 8483 8484Mon Jul 10 11:47:27 1995 Ken Raeburn <raeburn@cygnus.com> 8485 8486 * makefile.dos (OBJS): Add hex.o. From DJ Delorie. 8487 8488Fri Jun 30 17:28:59 1995 Pat Rankin (rankin@eql.caltech.edu) 8489 8490 * vmsbuild.com: create "new-lib.olb", build libiberty under that 8491 name, and then make it become "liberty.olb" when done, so that an 8492 incomplete build attempt never leaves behind something which looks 8493 like a complete library. 8494 8495Thu Jun 29 00:22:02 1995 Steve Chamberlain <sac@slash.cygnus.com> 8496 8497 * config/mh-i386pe: New file for PE hosts. 8498 * config.table: Understand PE hosts. 8499 8500Wed Jun 28 19:13:23 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8501 8502 * cplus-dem.c: Update from gcc. 8503 8504 * argv.c, dummy.c: If __STDC__, #include "alloca-conf.h" after 8505 <stddef.h>. 8506 * alloca-norm.h: If __STDC__, declare alloca with its parameter. 8507 8508Thu Jun 22 18:57:47 1995 Stan Shebs <shebs@andros.cygnus.com> 8509 8510 * mpw-make.in (ALL_CFLAGS): Define NEED_basename. 8511 * mpw.c: Only test DebugPI once whenever printing debug info. 8512 (mpwify_filename): If filename is /tmp/foo, change it into :_foo, 8513 also fix to not write on input filename buffer. 8514 (mpw_access): Use stat() instead of open(), works for directories 8515 as well as files. 8516 8517Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8518 8519 * Makefile.in: Massage broken shells that require 'else true'. 8520 8521Sat Jun 17 23:21:58 1995 Fred Fish <fnf@cygnus.com> 8522 8523 * alloca-norm.h: Declare alloca as type "PTR" to match functions.def. 8524 Declare __builtin_alloca in the sparc case, as argv.c did. 8525 * argv.c: Replace inline version of alloca-norm.h at start of file with 8526 a #include of alloca-conf.h. Precede it with an include of ansidecl.h 8527 because alloca-norm.h needs to declare alloca as "PTR". 8528 8529Mon Jun 12 14:24:26 1995 Steve Chamberlain <sac@slash.cygnus.com> 8530 8531 * win32.c: New file. 8532 8533Fri Jun 9 15:16:14 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8534 8535 * dummy.c: #include "alloca-conf.h". 8536 8537Wed Jun 7 11:46:23 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8538 8539 * Makefile.in (mostlyclean): Remove stamp-picdir. 8540 (clean): Don't. 8541 8542Mon Jun 5 18:46:06 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8543 8544 * config.table (frags): Use toplevel pic frags. 8545 8546 * Makefile.in (PICFLAG): New macro. 8547 (all): Depend on stamp-picdir. 8548 (needed-list): Ditto. 8549 (.c.o): Also build pic object. 8550 (stamp-picdir): New rule. 8551 (mostlyclean): Remove pic. 8552 (clean): Remove stamp-picdir. 8553 8554Fri Mar 24 16:55:48 1995 Pat Rankin (rankin@eql.caltech.edu) 8555 8556 * vmsbuild.com (config.h): Add `#define NEED_basename'. 8557 8558Tue May 23 10:12:46 1995 Per Bothner <bothner@kalessin.cygnus.com> 8559 8560 * clock.c, getopt.c, strtod.c, vsprintf.c: Change from using LGPL 8561 to libio-style copyright. 8562 * getpagesize.c: Remove FSF copyright. 8563 8564Sat May 20 12:30:23 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 8565 8566 Added improved VMS support from Pat Rankin: 8567 8568 Fri Mar 17 18:40:36 1995 Pat Rankin (rankin@eql.caltech.edu) 8569 8570 * vmsbuild.com: new file. 8571 8572 * getpagesize.c (getpagesize): implement for VMS; 8573 * strerror.c (strerror, strerrno, strtoerrno): add rudimentary 8574 support for EVMSERR. 8575 8576Thu May 18 17:01:42 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 8577 8578 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk) 8579 8580 * floatformat.c (floatformat_arm_ext): Define. 8581 8582Tue May 16 13:30:59 1995 Per Bothner <bothner@kalessin.cygnus.com> 8583 8584 * basename.c, bcmp.c, getcwd.c, insque.c, rename.c, sigsetmask.c, 8585 strerror.c, strsignal.c: Remove FSF copyright. 8586 * sigsetmask.c: #include <sys/types.h> - seems to be needed by ISC. 8587 8588Mon May 15 19:53:17 1995 Per Bothner <bothner@kalessin.cygnus.com> 8589 8590 * bcopy.c, bzero.c, memcmp.c, memcpy.c, memset.c, strchr.c, 8591 strrchr.c, strstr.c, vfork.c: Remove FSF Copyright, because this 8592 might contaminate libstdc++ with the LGPL. (OK'd by RMS 11 Oct 94.) 8593 * strchr.c, strrchr.c: Add cast to suppress const warning. 8594 8595Thu May 4 14:36:42 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8596 8597 * cplus-dem.c: Use const instead of CONST. Don't include 8598 ansidecl.h directly. 8599 8600Wed Apr 19 01:30:27 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8601 8602 * cplus-dem.c: Don't include libiberty.h. Do declare xmalloc and 8603 xrealloc. 8604 (-DMAIN): Don't rely on an externally-defined version number; 8605 instead, require the version number to be defined as a 8606 preprocessor macro. Handle the RS/6000 leading dot. Define 8607 xmalloc, xrealloc and fatal. Don't strip a leading underscore 8608 if we couldn't demangle the word. 8609 8610Tue Apr 4 13:03:51 1995 Stan Shebs <shebs@andros.cygnus.com> 8611 8612 (Old mpw.c change descriptions retained for informational value.) 8613 * mpw.c (warning_threshold): Default to .4 sec. 8614 (overflow_count, current_progress): New globals. 8615 (warn_if_spin_delay): Include current progress type, 8616 such as program name, in message. 8617 (mpw_start_progress): Set current_progress variable from arg. 8618 (mpw_end_progress): Report spin delays by power-of-two-size 8619 buckets instead of constant-size buckets. 8620 8621 * mpw.c: Clean up formatting, types, returns, etc. 8622 (ENOSYS): Define. 8623 (mpw_fread, mpw_fwrite): Define. 8624 (sleep): Define correctly. 8625 8626 * mpw.c: New code to implement cursor spinning support. 8627 (umask): New function. 8628 (mpw_fopen, mpw_fseek, stat, fstat): Call PROGRESS. 8629 8630 * mpw.c (mpw_basename, mpw_mixed_basename): New functions, find 8631 basenames for MPW and MPW/Unix filenames. 8632 (mpw_special_init): New function, calls Macsbug if desired. 8633 8634 * mpw.c: Add GPL notice. 8635 (mpwify_filename): Add more transformations. 8636 (mpw_fopen): Call mpwify_filename on file names. 8637 (rename): Remove. 8638 (chdir, getcwd): Add simple definitions. 8639 8640 * mpw.c: Random cleanups, remove unused code bits. 8641 Added copy of strerror.c for gcc's use. 8642 (stat, fstat, _stat): New versions based on Guido van Rossum code. 8643 8644 * mpw.c (mpw_fseek): Make it work correctly when doing SEEK_CUR. 8645 8646 * mpw.c (stat): Remove hack definition, get from sys/stat.h. 8647 (fork, vfork, etc): Print error messages if called. 8648 (getrusage, sbrk, environ, isatty, link, utime, mkdir, rmdir, 8649 rename, chown): Define. 8650 8651 * mpw-config.in: New file, MPW version of configure.in. 8652 * mpw-make.in: New file, MPW version of Makefile.in. 8653 * mpw.c: New file, MPW compatibility routines. 8654 8655Fri Mar 24 14:10:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com) 8656 8657 * basename.c: Include config.h before checking for NEED_basename. 8658 8659Thu Mar 23 19:09:54 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8660 8661 * functions.def: Add DEFFUNC for basename. 8662 8663 * basename.c: Only define basename if NEED_basename. 8664 8665Thu Mar 16 13:36:05 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8666 8667 * config.table: Fix --enable-shared logic for native builds. 8668 8669Mon Mar 13 11:05:11 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8670 8671 * cplus-dem.c (demangle_template): Demangle bool literals properly. 8672 8673Mon Mar 6 23:57:28 1995 Stu Grossman (grossman@cygnus.com) 8674 8675 * strtol.c strtoul.c: Replace these with less buggy versions from 8676 NetBSD. (strtoul in particular couldn't handle base 16.) 8677 8678Wed Mar 1 15:59:01 1995 Ian Lance Taylor <ian@cygnus.com> 8679 8680 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_PARAM_H. 8681 8682 * clock.c: If NO_SYS_PARAM_H is defined, don't include 8683 <sys/param.h>. 8684 * getcwd.c, getpagesize.c, getruntime.c: Likewise. 8685 8686Fri Feb 17 15:40:55 1995 Ian Lance Taylor <ian@cygnus.com> 8687 8688 * getruntime.c (get_run_time): Don't assume that CLOCKS_PER_SEC is 8689 a number; ANSI appears to permit any expression, including a 8690 function call. 8691 8692 * config.table (*-*-vxworks5*): Use mt-vxworks5 when configuring 8693 xiberty. 8694 * config/mt-vxworks5: New file. 8695 8696Thu Feb 9 14:19:45 1995 Ian Lance Taylor <ian@cygnus.com> 8697 8698 * basename.c (basename): Change argument to be const. 8699 8700Wed Feb 8 18:06:52 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8701 8702 * Makefile.in (lneeded-list): Don't worry about xmalloc. 8703 8704Sun Jan 15 00:40:36 1995 Jeff Law (law@snake.cs.utah.edu) 8705 8706 * Makefile.in (distclean): Delete xhost-mkfrag. 8707 8708Thu Jan 12 16:54:18 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8709 8710 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o. 8711 8712Wed Jan 11 22:39:56 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 8713 8714 * hex.c: New file. 8715 * Makefile.in (REQUIRED_OFILES, CFILES): List it. 8716 (hex.o): Add dependencies. 8717 8718 * cplus-dem.c (demangle_prefix): For GNU style constructor and 8719 destructor names, try demangling the remainder of the string. 8720 8721Wed Dec 28 00:49:15 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com> 8722 8723 * vasprintf.c (int_vasprintf): New static function. 8724 (vasprintf): Use int_vasprintf. Removes assumption that va_list 8725 is assignment compatible. 8726 8727Sat Nov 5 19:29:12 1994 Jason Merrill (jason@phydeaux.cygnus.com) 8728 8729 * Makefile.in (LIBCFLAGS): New variable. 8730 (FLAGS_TO_PASS): Pass it. 8731 (.c.o): Use it. 8732 8733Thu Nov 3 19:09:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 8734 8735 * getopt.c, getopt1.c: Do compile these functions under Linux, 8736 since many native versions are based on glibc but are buggy. 8737 8738Mon Oct 24 15:16:46 1994 Per Bothner <bothner@kalessin.cygnus.com> 8739 8740 * vasprintf.c: Make 'format' arg be const, to avoid a mismatch 8741 with prototype in GNU libc. Support stdarg.h as well as varargs.h. 8742 8743Tue Oct 11 17:48:27 1994 Jason Merrill (jason@phydeaux.cygnus.com) 8744 8745 * Makefile.in (REQUIRED_OFILES): Add vasprintf.o. 8746 * functions.def: Remove vasprintf. 8747 8748Wed Sep 14 17:04:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 8749 8750 * xmalloc.c (first_break): New static variable. 8751 (xmalloc_set_program_name): Record sbrk (0) in first_break. 8752 (xmalloc): If memory allocation fails, try to report how much 8753 memory was allocated by the program up to this point. 8754 (xrealloc): Likewise. 8755 8756Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org) 8757 8758 * Makefile.in (ERRORS_CC): New variable, defaulted to $(CC). Use it 8759 when linking dummy. 8760 * config.table: Add host RISCiX Makefile frag. 8761 * config/mh-riscix: New file. 8762 8763Thu Aug 25 17:29:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 8764 8765 * Makefile.in (FLAGS_TO_PASS): Define. 8766 ($(RULE1)): Use $(FLAGS_TO_PASS). 8767 8768Wed Aug 24 17:08:47 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 8769 8770 * vasprintf.c: Include <string.h>. 8771 (vasprintf): Add casts to void for va_arg to avoid gcc warnings. 8772 * xatexit.c: Declare malloc. 8773 8774Fri Aug 19 15:29:12 1994 Kung Hsu (kung@mexican.cygnus.com) 8775 8776 * cplus-dem.c (demangle_args): Fix a bug in previous patch (the 8777 one below). 8778 8779Thu Aug 18 14:37:14 1994 Kung Hsu (kung@mexican.cygnus.com) 8780 8781 * cplus-dem.c (demangle args): Handle ARM repeat encoding where 8782 the type index is greater than 9. 8783 8784Wed Aug 17 16:13:49 1994 Kung Hsu (kung@mexican.cygnus.com) 8785 8786 * cplus-dem.c (demangle_qualified): accept optional '_' between 8787 qualified name. This is baecause the template name may end with 8788 numeric and can mixed up with the length of next qualified name. 8789 8790Wed Aug 3 05:52:14 1994 D. V. Henkel-Wallace (gumby@cygnus.com) 8791 8792 * config/mt-sunos4: Use our standard location for cross-includes 8793 and cross-libs when the target is also a "host" environment (ie no 8794 newlib; includes and such don't belong to us). This is specific 8795 to the Cygnus Support environment. 8796 8797Tue Aug 2 15:25:12 1994 Kung Hsu (kung@mexican.cygnus.com) 8798 8799 * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not 8800 xxx<ch=81>. 8801 8802Mon Aug 1 17:02:48 1994 Kung Hsu (kung@mexican.cygnus.com) 8803 8804 * cplus-dem.c (main): flush stdout to make pipe work. 8805 8806Sat Jul 16 12:56:32 1994 Stan Shebs (shebs@andros.cygnus.com) 8807 8808 * config.table (*-*-cxux7*): Recognize. 8809 * floatformat.c (floatformat_m88110_ext) [HARRIS_FLOAT_FORMAT]: 8810 Harris-specific float format. 8811 * config/mh-cxux7: New file. 8812 8813Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8814 8815 * cplus-dem.c (demangle_template): Make sure that the result of 8816 consume_count doesn't index beyond the end of the string. 8817 8818Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8819 8820 * cplus-dem.c (gnu_special): Handle vtable mangling of gcc-2.4.5 and 8821 earlier. Improve test for new vtable mangling. Change output back 8822 to `virtual table'. 8823 8824Mon Jun 20 11:37:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 8825 8826 * obstack.c: Always compile this code, even if using the GNU 8827 library. Avoids problems with relatively recent binary 8828 incompatibility. 8829 8830Thu Jun 16 17:54:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8831 8832 * cplus-dem.c: Include libiberty.h. 8833 (xmalloc, xrealloc, free): Don't declare. 8834 (strstr): Don't declare parameters. 8835 (xmalloc, xrealloc): Don't define. 8836 (long_options): Add no-strip-underscores. 8837 (main): Call xmalloc_set_program_name. Pass n in short options to 8838 getopt_long. Handle option 'n' to not strip underscores. 8839 (usage): Mention -n and --no-strip-underscores. 8840 8841Sun Jun 12 01:37:09 1994 Jason Merrill (jason@deneb.cygnus.com) 8842 8843 * cplus-dem.c (demangle_template): Separate consecutive >'s with a 8844 space. 8845 (gnu_special): Demangle template and qualified names in a vtable name. 8846 8847Fri May 27 12:27:52 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 8848 8849 From gas-2.3 and binutils-2.4 net releases: 8850 8851 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com) 8852 8853 * makefile.dos: [new] Makefile for dos/go32 8854 * configure.bat: update for latest files 8855 * msdos.c: remove some functions now in libc.a 8856 8857Fri May 20 18:53:32 1994 Per Bothner (bothner@kalessin.cygnus.com) 8858 8859 * cplus-dem.c (gnu_special): Recognize thunks, as well as 8860 the new naming style for vtables (when -fvtable-thunks). 8861 8862Wed May 18 13:34:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8863 8864 * Makefile.in (XTRAFLAGS): Don't define. 8865 (.c.o, dummy.o): Don't use XTRAFLAGS. 8866 ($(RULE1)): Don't pass XTRAFLAGS down in recursive call. 8867 8868Fri May 13 16:02:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com) 8869 8870 * vasprintf.c: New file. 8871 * Makefile.in, functions.def: Add it. 8872 8873Fri May 13 16:20:28 1994 Jason Merrill (jason@deneb.cygnus.com) 8874 8875 * cplus-dem.c (demangle_fund_type): Grok bool. 8876 8877Fri May 6 14:44:21 1994 Steve Chamberlain (sac@cygnus.com) 8878 8879 * config.table: Add go32 8880 * config/mh-go32: New template. 8881 8882Fri May 6 11:01:59 1994 D. V. Henkel-Wallace (gumby@rtl.cygnus.com) 8883 8884 * config.table, config/mt-sunos4: config for when sun4 is cross target. 8885 8886Mon Apr 11 00:54:33 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu) 8887 8888 * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]: 8889 Declare strlen to return int. Don't include stddef.h. 8890 8891Fri Apr 1 00:38:17 1994 Jim Wilson (wilson@mole.gnu.ai.mit.edu) 8892 8893 * getopt.c: Delete use of IN_GCC to control whether 8894 stddef.h or gstddef.h is included. 8895 8896Thu Apr 14 14:00:56 1994 Kung Hsu (kung@mexican.cygnus.com) 8897 8898 * cplus-dem.c (demangle_signature): Fix a bug in template function 8899 type numbering. 8900 8901Wed Apr 13 17:23:03 1994 Kung Hsu (kung@mexican.cygnus.com) 8902 8903 * cplus-dem.c (demangle_signature): Fix template function with arm 8904 style argument type number, Tn. 8905 8906Wed Apr 13 17:11:15 1994 Jason Merrill (jason@deneb.cygnus.com) 8907 8908 * cplus-dem.c (optable): Add new[] and delete[]. 8909 8910Fri Apr 8 11:21:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com) 8911 8912 * argv.c (buildargv): Don't produce empty argument just because 8913 there is trailing whitespace. 8914 8915Wed Apr 6 11:42:14 1994 Kung Hsu (kung@mexican.cygnus.com) 8916 8917 * cplus-dem.c (demangle_template): fix 'Q' qualified name bug. 8918 Handle 'p' same as 'P'. 8919 * cplus-dem.c (do_type): Handle 'p' same as 'P'. 8920 8921Sat Mar 26 12:00:13 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8922 8923 * floatformat.c (get_field, put_field): Fix off by one error in 8924 little endian case. 8925 8926Thu Mar 24 10:40:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com) 8927 8928 * floatformat.c (floatformat_from_double): Pass unsigned char *, 8929 not char *, to put_field. 8930 8931Fri Mar 18 12:34:33 1994 Per Bothner (bothner@kalessin.cygnus.com) 8932 8933 * memmove.c: Re-wrote; placed in public domain. 8934 8935Wed Mar 16 10:33:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com) 8936 8937 * cplus-dem.c (demangle_prefix): If ARM demangling, don't treat 8938 __Q* as a constructor. 8939 8940Mon Mar 14 12:26:02 1994 Ian Lance Taylor (ian@cygnus.com) 8941 8942 * ieee-float.c: Removed; no longer used. 8943 * Makefile.in: Changed accordingly. 8944 8945Mon Mar 7 12:28:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8946 8947 * floatformat.c (get_field): Removed unused local variable i. 8948 (put_field): Removed unused local variable i. 8949 8950Sun Feb 27 21:50:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com) 8951 8952 * floatformat.c: New file, intended to replace ieee-float.c. 8953 * Makefile.in: Change accordingly. 8954 8955Thu Feb 24 11:51:12 1994 David J. Mackenzie (djm@rtl.cygnus.com) 8956 8957 * getopt.c: Remove #ifdef GETOPT_COMPAT and #if 0 code. 8958 (_getopt_initialize): New function, broken out of _getopt_internal. 8959 (_getopt_internal): 8960 If long_only and the ARGV-element has the form "-f", where f is 8961 a valid short option, don't consider it an abbreviated form of 8962 a long option that starts with f. Otherwise there would be no 8963 way to give the -f short option. 8964 8965Thu Feb 10 14:44:16 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu) 8966 8967 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]: 8968 Test just __STDC__, not emacs. 8969 8970Wed Feb 9 00:14:00 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu) 8971 8972 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC] 8973 [emacs] [not __STDC__]: Don't include stddef.h. Don't declare strlen. 8974 8975Fri Dec 24 19:43:00 1993 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu) 8976 8977 * getopt.c (_NO_PROTO): Define before config.h is included. 8978 8979Mon Sep 20 15:59:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu) 8980 8981 * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include 8982 <config.h> only under these, else "config.h". 8983 8984Thu Aug 12 18:16:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu) 8985 8986 * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include 8987 <config.h> instead of "config.h". 8988 8989Sun Feb 20 17:17:01 1994 Ian Lance Taylor (ian@lisa.cygnus.com) 8990 8991 * concat.c: Check ANSI_PROTOTYPES rather than __STDC__ to decide 8992 whether to use prototypes or not. 8993 * strerror.c (const): Never undefine; let ansidecl.h handle it. 8994 * strsignal.c (const): Likewise. 8995 8996Thu Feb 17 13:27:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8997 8998 * xatexit.c (_xexit_cleanup): Declare as extern; don't initialize. 8999 Merging common and initialized variables need not be supported by 9000 ANSI C compilers. 9001 (xatexit): Initialize _xexit_cleanup if not already set. 9002 * xexit.c: Comment fix. 9003 9004Wed Feb 16 01:15:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 9005 9006 * xmalloc.c: Don't declare xexit; it's declared in libiberty.h. 9007 (xrealloc): If oldmem is NULL, allocate with malloc, rather than 9008 assuming that realloc works correctly. 9009 9010Tue Feb 15 09:26:16 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 9011 9012 * concat.c, ieee-float.c: Replace inclusion of <string.h> 9013 with explicit function declarations, as recommended by Ian Taylor. 9014 9015Sat Feb 12 10:31:11 1994 David J. Mackenzie (djm@rtl.cygnus.com) 9016 9017 * xmalloc.c (xmalloc, xrealloc): Use PTR and size_t throughout. 9018 (malloc, realloc): Declare. 9019 9020Thu Feb 10 17:08:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 9021 9022 * argv.c, basename.c: Include ansidecl.h and libiberty.h. 9023 * concat.c, fdmatch.c, getruntime.c, spaces.c: Likewise. 9024 * strerror.c, strsignal.c, xatexit.c, xexit.c: Likewise. 9025 * xmalloc.c: Likewise. 9026 * concat.c: Don't declare xmalloc. If __STDC__, use <stdarg.h> 9027 macros, not <varargs.h> macros. 9028 * spaces.c (spaces): Make return type const. Don't crash if 9029 malloc returns NULL. 9030 * strerror.c (struct error_info): Make name and msg fields const. 9031 (error_names): Make const. 9032 (strerrno): Make const. 9033 (strtoerrno): Make argument const. 9034 * strsignal.c (struct signal_info): Make name and msg fields 9035 const. 9036 (signal_names, sys_siglist): Make const. 9037 (strsignal, strsigno): Make const. 9038 (strtosigno): Make argument const. 9039 * xatexit.c: Declare parameter types. 9040 * xmalloc.c (name): Make const. 9041 (xmalloc_set_program_name): Make argument const. 9042 * Makefile.in (INCDIR): Define. 9043 (.c.o): Use $(INCDIR). 9044 (dummy.o): Likewise. 9045 (argv.o, basename.o): New targets; depend on libiberty.h. 9046 (concat.o, fdmatch.o, getruntime.o, spaces.o): Likewise. 9047 (strerror.o, strsignal.o, xatexit.o, xexit.o): Likewise. 9048 (xmalloc.o): Likewise. 9049 (cplus-dem.o): New target; depend on demangle.h. 9050 (getopt.o, getopt1.o): New targets; depend on getopt.h. 9051 (ieee-float.o): New target; depend on ieee-float.h. 9052 (obstack.o): New target; depend on obstack.h. 9053 9054Tue Feb 8 05:29:08 1994 David J. Mackenzie (djm@thepub.cygnus.com) 9055 9056 Handle obstack_chunk_alloc returning NULL. This allows 9057 obstacks to be used by libraries, without forcing them 9058 to call exit or longjmp. 9059 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk): 9060 If CALL_CHUNKFUN returns NULL, set alloc_failed, else clear it. 9061 (_obstack_begin, _obstack_begin_1): Return 1 if successful, 0 if not. 9062 9063Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 9064 9065 * concat.c, ieee-float.c: Include <string.h>. 9066 9067Sun Feb 6 21:28:46 1994 David J. Mackenzie (djm@thepub.cygnus.com) 9068 9069 * xmalloc.c (xmalloc_set_program_name): New function. 9070 (xmalloc, xrealloc): Include the name in the error message, if set. 9071 9072 * Replace atexit.c with xatexit.c. 9073 * Makefile.in (CFILES), functions.def: Change references. 9074 9075Sat Feb 5 14:02:32 1994 Stan Shebs (shebs@andros.cygnus.com) 9076 9077 * getruntime.c (get_run_time): Use getrusage or times if 9078 HAVE_GETRUSAGE or HAVE_TIMES are defined. 9079 9080Fri Feb 4 15:49:38 1994 David J. Mackenzie (djm@thepub.cygnus.com) 9081 9082 * atexit.c: New file. 9083 * Makefile.in (CFILES), functions.def: Add it. 9084 * xexit.c: New file. 9085 * Makefile.in (CFILES, REQUIRED_OFILES): Add it. 9086 * xmalloc.c (xmalloc, xrealloc): Call xexit instead of exit. 9087 Change request for 0 bytes into request for 1 byte. 9088 9089Wed Feb 2 11:36:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 9090 9091 * xmalloc.c (xmalloc, xrealloc): Print size using %lu, and cast to 9092 unsigned long, to avoid warnings. 9093 9094Fri Jan 28 17:49:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 9095 9096 * dummy.c: Don't include time.h ever; always define clock_t as 9097 "unsigned long". Until gcc/fixincludes ensures that clock_t 9098 exists, __STDC__ isn't a sufficient test. And if clock() doesn't 9099 exist, clock_t probably doesn't either. 9100 9101Mon Jan 24 11:52:31 1994 Stan Shebs (shebs@andros.cygnus.com) 9102 9103 * clock.c, getruntime.c: New files. 9104 * Makefile.in: Add to file lists. 9105 * functions.def (clock): Add to list. 9106 * dummy.c (time.h): Add if __STDC__. 9107 (clock_t): #define as "unsigned long" if not __STDC__. 9108 9109Tue Jan 11 11:27:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 9110 9111 * strtod.c: Declare atof. From edler@jan.ultra.nyu.edu (Jan 9112 Edler). 9113 9114Tue Dec 28 14:17:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 9115 9116 * Makefile.in (errors): Use CFLAGS as well as LDFLAGS when 9117 linking. 9118 9119Fri Dec 17 12:26:07 1993 Kung Hsu (kung@cirdan.cygnus.com) 9120 9121 * cplus-dem.c (demangle_arm_pt): New function. Common code 9122 for ARM template demangling. 9123 * cplus-dem.c (demangle_class_name): Use demangle_arm_pt. 9124 * cplus-dem.c (demangle_prefix): Likewise. 9125 9126Tue Nov 30 15:47:48 1993 Jason Merrill (jason@deneb.cygnus.com) 9127 9128 * cplus-dem.c (cplus_demangle_opname): Add CONST to please gcc. 9129 9130Sat Nov 27 11:05:50 1993 Fred Fish (fnf@cygnus.com) 9131 9132 Merge changes from tom@basil.icce.rug.nl (Tom R.Hageman) 9133 * strerror.c, strsignal.c: As a small space optimization, don't 9134 include messages when they aren't actually used. 9135 9136 Merge changes from takefive.co.at!joe (Josef Leherbauer) 9137 * cplus-dem.c (demangle_prefix, demangle_function_name, 9138 cplus_demangle_opname): Fixes for systems where cplus_marker 9139 is something other than '$'. 9140 9141Fri Nov 26 13:51:11 1993 Per Bothner (bothner@kalessin.cygnus.com) 9142 9143 * waitpid.c: Simple-minded approcimation to waitpid 9144 using vanilla wait. 9145 * functions.def, Makefile.in: Update accordingly, 9146 9147Thu Nov 18 18:01:15 1993 Kung Hsu (kung@cirdan.cygnus.com) 9148 9149 * cplus-dem.c(demangle_template): fix bug template instantiation 9150 with value of user defined type. 9151 9152Wed Nov 17 18:30:21 1993 Kung Hsu (kung@cirdan.cygnus.com) 9153 9154 * cplus-dem.c(cplus_demangle_opname): add the subject new function 9155 to support unified search of operator in class. 9156 9157Wed Nov 10 09:47:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9158 9159 gcc -Wall lint: 9160 * strtoul.c (strtoul): use "(digit = *s) != '\0'" not just 9161 "digit = *s" as condition in while loop. 9162 9163Tue Nov 9 15:52:22 1993 Mark Eichin (eichin@cygnus.com) 9164 9165 * Makefile.in: pass SHELL to recursive make 9166 9167Thu Nov 4 12:09:26 1993 Per Bothner (bothner@kalessin.cygnus.com) 9168 9169 * vfprintf.c, vprintf.c, vsprintf.c: Make format arg 9170 be (const char*), for ANSI (and gcc w/fixproto) consistency. 9171 9172Thu Nov 4 08:29:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9173 9174 * config.table: Make *-*-hiux* use mh-hpux. 9175 9176Fri Oct 22 07:53:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9177 9178 * config.table: Add * to end of all OS names. 9179 9180Tue Oct 19 17:12:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 9181 9182 * Makefile.in (lneeded-list): ensure that object file names are 9183 not duplicated, as multiple instances of the same object file in 9184 a library causes problems on some machines 9185 9186Mon Oct 18 21:59:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9187 9188 * strcasecmp.c, strncasecmp.c: Change u_char to unsigned char. 9189 9190Fri Oct 15 22:17:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 9191 9192 * strncasecmp.c: new file, implements strncasecmp 9193 * strcasecmp.c: new file, implement strcasecmp 9194 9195 * Makefile.in (CFILES): list these two new source files 9196 9197 * functions.def: add strcasecmp and strncasecmp entries 9198 9199Fri Oct 15 14:53:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 9200 9201 * strtoul.c (strtoul), strtol.c (strtol): Handle overflow 9202 according to ANSI C. 9203 9204Thu Oct 14 16:34:19 1993 Kung Hsu (kung@cirdan.cygnus.com) 9205 9206 * cplus-dem.c: add support of ARM global constructor/destructor, 9207 and 'G' for passing record or union in parameter. 9208 9209Wed Oct 13 13:36:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9210 9211 * Makefile.in: Fix comment to clarify that stuff in REQUIRED_OFILES 9212 should not be in functions.def. 9213 9214Wed Oct 13 13:13:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 9215 9216 * functions.def: Removed xmalloc. Stuff in REQUIRED_OFILES should 9217 not be in functions.def. 9218 9219Mon Oct 4 18:26:39 1993 Kung Hsu (kung@cirdan.cygnus.com) 9220 9221 * cplus-dem.c: change globl constructor/destructor to proper name 9222 9223Tue Sep 28 18:11:07 1993 Kung Hsu (kung@cirdan.cygnus.com) 9224 9225 * cplus-dem.c: fix bug in constructor/destructor 9226 9227Tue Sep 28 16:20:49 1993 Kung Hsu (kung@cirdan.cygnus.com) 9228 9229 * cplus-dem.c: support both old and new _vt$... vtbl mangled names 9230 9231Fri Sep 24 19:07:16 1993 Jason Merrill (jason@deneb.cygnus.com) 9232 9233 * cplus-dem.c: Fix demangle_template prototype 9234 9235Fri Sep 24 17:32:55 1993 Kung Hsu (kung@cirdan.cygnus.com) 9236 9237 * cplus-dem.c: fix template demangling 9238 * cplus-dem.c: fix const type demangling 9239 * cplus-dem.c: fix constructor/destructor, virtual table, 9240 qualifier, global constructor/destructor demangling 9241 9242Wed Sep 1 23:13:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9243 9244 * strsignal.c, strerror.c: Use fully-bracketed initializer to 9245 keep gcc -Wall happy. 9246 9247Fri Aug 27 10:30:09 1993 Jason Merrill (jason@deneb.cygnus.com) 9248 9249 * cplus-dem.c (do_type): Add CONSTS to make gcc happy with last 9250 patch. 9251 9252Fri Aug 27 11:24:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9253 9254 Patch from Paul Flinders: 9255 * cplus-dem.c (do_type): Deal with arrays. 9256 9257Tue Aug 24 14:23:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9258 9259 * cplus-dem.c (demangle_qualified: Deal with GNU format for more 9260 than 9 classes. 9261 9262Wed Aug 18 19:50:29 1993 Jason Merrill (jason@deneb.cygnus.com) 9263 9264 * Makefile.in (dummy.o): Redirect to /dev/null to avoid "variable 9265 not initialized" warnings under HP/UX 9266 9267Sun Aug 15 20:42:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9268 9269 * strerror.c: Move include of stdio.h after sys_errlist #define. 9270 Also remove NULL definition (stdio.h always defines NULL, so it 9271 never did anything but clutter up the code). 9272 9273Sat Aug 14 14:21:49 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 9274 9275 * Makefile.in, functions.def: handle xmalloc.c 9276 9277 * xmalloc.c: provide xmalloc and xrealloc functions 9278 9279Thu Aug 12 17:38:57 1993 David J. Mackenzie (djm@thepub.cygnus.com) 9280 9281 * cplus-dem.c: Fix a comment. 9282 9283Sat Aug 7 13:56:35 1993 David J. Mackenzie (djm@thepub.cygnus.com) 9284 9285 * getopt1.c: Declare const the way getopt.c does. 9286 9287Fri Aug 6 17:03:13 1993 David J. Mackenzie (djm@thepub.cygnus.com) 9288 9289 * obstack.c, alloca.c: Update from FSF. 9290 * getopt.c, getopt1.c: Update to current FSF version, which 9291 doesn't use alloca. 9292 9293Tue Jul 27 14:03:57 1993 Brendan Kehoe (brendan@lisa.cygnus.com) 9294 9295 * Makefile.in (demangle): Add the target with a message saying 9296 where demangle went. 9297 9298Mon Jul 26 15:49:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9299 9300 * Makefile.in: Remove obsolete `demangle' target. 9301 9302Thu Jul 22 08:31:01 1993 Fred Fish (fnf@deneb.cygnus.com) 9303 9304 * cplus-dem.c (arm_special): Apply patch from arg@lucid.com to 9305 avoid infinite loop on vtbl symbols with disambiguating "junk" 9306 tacked on the end. 9307 9308Mon Jul 19 14:10:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 9309 9310 * strsignal.c: work around some systems losing definitions of 9311 sys_siglist 9312 9313 * config/mh-lynxos: this system has a losing definition of 9314 sys_siglist 9315 9316 * config.table: use mh-lynxos for *-*-lynxos 9317 9318Mon Jul 19 17:08:52 1993 Ken Raeburn (raeburn@rtl.cygnus.com) 9319 9320 * config.table: Add support for HPPA BSD hosts. 9321 9322 * config/mh-hpbsd: New file. 9323 9324Mon Jul 12 18:00:40 1993 K. Richard Pixley (rich@cygnus.com) 9325 9326 * Makefile.in (TAGS): make work when srcdir != objdir. 9327 9328Sun Jun 27 15:35:31 1993 David J. Mackenzie (djm@thepub.cygnus.com) 9329 9330 * cplus-dem.c (main): Add long options, including --help and 9331 --version. 9332 (usage): New function from code in main. 9333 9334Tue Jun 22 11:37:38 1993 Per Bothner (bothner@deneb.cygnus.com) 9335 9336 * config.table: New shell scipt, sourced by both ./configure,in 9337 and ../xiberty/configure.in, to avoid maintainance lossages. 9338 * configure.in and ../xiberty/configure.in: Use config.table. 9339 9340 * configure.in: Don't use mh-aix for AIX 3.2, only for 3.1. 9341 * configure.in: Map *-*-irix* (except irix4) to mh-sysv. 9342 * ../xiberty/configure.in: Update from ./configure.in. 9343 9344Tue Jun 15 17:05:31 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 9345 9346 * Makefile.in: remove parentdir support 9347 9348Wed May 26 12:59:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 9349 9350 * cplus-dem.c (xrealloc): Match definition with prototype. 9351 9352Tue May 25 14:27:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 9353 9354 * cplus-dem.c (demangle_prefix): Demangle cfront 9355 local variables as an extension to ARM demangling. 9356 9357Fri May 21 09:53:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 9358 9359 * ieee-float.c: Don't require pointers to double to be aligned. 9360 9361Tue May 18 17:12:10 1993 Fred Fish (fnf@cygnus.com) 9362 9363 (merge changes from dlong@cse.ucsc.edu) 9364 * cplus-dem.c (consume_count): Simplify. 9365 * cplus-dem.c (arm_pt, demangle_class_name): New functions. 9366 * cplus-dem.c (various): Calls to arm_pt, demangle_class_name. 9367 9368 * cplus-dem.c (xmalloc, xrealloc, strstr): Make extern decls into 9369 full prototypes. 9370 * cplus-dem.c (free): Add prototype. 9371 * cplus-dem.c (optable): Fully bracketize initializer. 9372 9373Fri May 14 17:13:05 1993 Per Bothner (bothner@cygnus.com) 9374 9375 * cplus-dem.c: Whether initial underscores are stripped 9376 depends on the external variable prepends_underscore 9377 (which is generated by the binutils Makefile). 9378 9379Fri May 14 07:32:20 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 9380 9381 * cplus-dem.c (mop_up, arm_special): Remove some unused variables. 9382 9383Tue May 4 20:31:59 1993 Fred Fish (fnf@cygnus.com) 9384 9385 * cplus-dem.c (consume_count): Return zero if arg does not 9386 start with digit, and don't consume any input. 9387 9388Tue May 4 08:10:28 1993 Jim Kingdon (kingdon@cygnus.com) 9389 9390 * Makefile.in (demangle): Use ${srcdir} not $^. 9391 9392 * strtod.c: New file, needed at least for BSD 4.3. 9393 9394Sun May 2 11:30:42 1993 Fred Fish (fnf@cygnus.com) 9395 9396 * strsignal.c (sys_siglist): For ANSI compilations, type is 9397 "const char *const". Also remove conditionalization on __STDC__ 9398 since const is defined away for non-ANSI. 9399 9400Wed Apr 28 19:29:55 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 9401 9402 * configure.in: Recognize *-*-hpux. 9403 * config/mh-hpux: New file. 9404 9405Tue Apr 27 15:22:19 1993 Per Bothner (bothner@cygnus.com) 9406 9407 * tmpnam.c: Added ANSI tmpnam() function. 9408 * functions.def, Makefile.in: Update accordingly. 9409 9410Tue Apr 27 13:38:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 9411 9412 * cplus-dem.c (demangle_function_name): Get the demangling of 9413 stop__1A right. 9414 9415Fri Apr 16 23:48:24 1993 Jim Kingdon (kingdon at calvin) 9416 9417 * cplus-dem.c: Declare strstr return type. 9418 9419Fri Mar 26 12:01:26 1993 Jim Kingdon (kingdon@cygnus.com) 9420 9421 * strsignal.c: Add some AIX signals. 9422 9423Thu Mar 25 15:17:23 1993 Ian Lance Taylor (ian@cygnus.com) 9424 9425 * Makefile.in (MAKEOVERRIDES): Define to be empty. 9426 9427Wed Mar 24 01:59:25 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com) 9428 9429 * Makefile.in: add installcheck & dvi targets 9430 9431Thu Mar 18 14:05:44 1993 Per Bothner (bothner@rtl.cygnus.com) 9432 9433 * ieee-float.c: New file, moved from ../gdb (since it is 9434 needed by ../opcode/m68k-dis.c). 9435 9436Tue Mar 2 17:47:31 1993 Fred Fish (fnf@cygnus.com) 9437 9438 * cplus-dem.c: Replace all references to cfront with ARM. 9439 9440Fri Feb 26 00:17:07 1993 Per Bothner (bothner@rtl.cygnus.com) 9441 9442 * cplus-dem.c: Fix main program (when compiled with -DMAIN) 9443 to be more useful as a filter. 9444 9445Sat Feb 20 21:41:39 1993 Brendan Kehoe (brendan@lisa.cygnus.com) 9446 9447 * Makefile.in (install_to_libdir, install_to_tooldir): Go into the 9448 destination directory before running $(RANLIB), in case that 9449 program tries to create a file in the current directory as part of 9450 its work. 9451 9452Thu Feb 18 23:00:19 1993 John Gilmore (gnu@cygnus.com) 9453 9454 * strsignal.c (sys_siglist): Remove yet another *%^&%&$# "const" 9455 because BSD 4.4 lacks one. Isn't this fun? 9456 9457Thu Feb 18 11:24:25 1993 Fred Fish (fnf@cygnus.com) 9458 9459 * cplus-dem.c (demangle_signature): Set func_done after 9460 demangling a template. 9461 * cplus-dem.c (demangle_template): Fix several small bugs 9462 in demangling GNU style templates. 9463 * cplus-dem.c (demangle_prefix): Fix for templates in GNU 9464 style constructors. 9465 * cplus-dem.c (gnu_special): Fix for templates in GNU style 9466 static data members. 9467 9468Tue Feb 16 17:28:35 1993 Fred Fish (fnf@cygnus.com) 9469 9470 * cplus-dem.c (demangle_signature): Modify to include type 9471 modifiers like static and const in remembered types. 9472 9473Thu Feb 11 22:20:47 1993 Fred Fish (fnf@cygnus.com) 9474 9475 * cplus-dem.c (demangled_qualified): Add new parameter that tells 9476 whether to prepend or append the qualifiers. 9477 * cplus-dem.c (string_prepends): Used now, remove #if 0. 9478 * cplus-dem.c (demangle_signature): Call demangle_qualified 9479 with prepending. 9480 * cplus-dem.c (gnu_special): Recognize static data members that 9481 use qualified names. 9482 * cplus-dem.c (demangle_qualified): Accumulate qualifiers in a 9483 temporary buffer and the prepend or append them to the result, 9484 as specified by the new "append" flag. 9485 * cplus-dem.c (do_type): Call demangled_qualified with 9486 appending. 9487 9488Mon Dec 28 10:47:19 1992 Ken Raeburn (raeburn@cygnus.com) 9489 9490 * strsignal.c (signal_table): Now const. 9491 (init_signal_tables): Variable eip now points to const. 9492 9493 * strerror.c (error_table): Now const. 9494 (init_error_tables): Variable eip now points to const. 9495 9496Tue Dec 15 15:36:50 1992 Per Bothner (bothner@cygnus.com) 9497 9498 * memchr.c (memchr): New (ANSI standard) function. 9499 * Makefile.in, functions.def: Added memchr. 9500 * Makefile.in (AR_FLAGS): Use rc instad of non-standard cq. 9501 9502Wed Dec 2 22:49:10 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 9503 9504 * getopt.c: remove use of USG around <alloca.h>, which never meant 9505 anything anyway 9506 9507 * config/mh-{aix,apollo68,ncr3000,sysv,sysv4}: removed definitions 9508 of USG and USGr4 9509 9510Thu Nov 19 03:09:33 1992 Brendan Kehoe (brendan@lisa.cygnus.com) 9511 9512 * cplus-dem.c (demangle_fund_type): Recognize `w', a wide character; 9513 it's now a type according to the ANSI X3J16 working paper; output 9514 "wchar_t" for it. 9515 (demangle_template): Accept `w' as an integral type. 9516 (xmalloc, xrealloc): Use `char *', not `PTR'. Cast calls to their 9517 counterparts malloc and realloc to `char *'. 9518 (main): Exit with a 0 status. 9519 * Makefile.in (demangle): Don't expect the user to define 9520 DEMANGLE, instead force to be cplus-dem.c. Look in $(srcdir)/../include 9521 for demangle.h. Pass it any HDEFINES or XTRAFLAGS. 9522 9523Wed Nov 18 18:56:20 1992 John Gilmore (gnu@cygnus.com) 9524 9525 * Makefile.in (AR_FLAGS): Avoid verbosity. 9526 * config/mh-sysv4: Remove AR_FLAGS override, use INSTALL=cp, 9527 replace USGr4 with HAVE_SYSCONF. 9528 * config/mh-solaris: Remove; mh-sysv4 works now. 9529 * getpagesize.c: Replace USGr4 with HAVE_SYSCONF. 9530 * configure.in: Simplify host matching table, remove separate 9531 solaris config file. 9532 9533Sun Nov 15 09:35:16 1992 Fred Fish (fnf@cygnus.com) 9534 9535 * configure.in (i[34]86-*-solaris2*): Add, use mh-sysv4. 9536 9537Tue Nov 3 21:27:03 1992 Brendan Kehoe (brendan@cygnus.com) 9538 9539 * cplus-dem.c (xmalloc, xrealloc): Add decls. 9540 (remember_type): Don't cast xmalloc. 9541 (string_need): Likewise; don't cast xrealloc either. 9542 9543Fri Oct 23 08:52:01 1992 Ian Lance Taylor (ian@cygnus.com) 9544 9545 * Makefile.in, functions.defs, rename.c: added simple 9546 implementation of rename, since some binutils programs use it. 9547 9548Thu Oct 15 15:18:22 1992 Per Bothner (bothner@cygnus.com) 9549 9550 * strsignal.c: Add appropriate 'const' to sys_siglist 9551 extern declaration (if __STDC__). (Needed for Linux.) 9552 * strsignal.c (strsignal): Add cast to remove const-ness. 9553 9554Fri Oct 9 03:22:55 1992 John Gilmore (gnu@cygnus.com) 9555 9556 * Makefile.in (needed.awk, needed2.awk): Remove erroneous \'s 9557 before "'s, diagnosed by BSD 4.4 awk. 9558 9559Thu Oct 8 15:25:12 1992 Ian Lance Taylor (ian@cygnus.com) 9560 9561 * Makefile.in: create config.h and needed-list through $(CONFIG_H) 9562 and $(NEEDED_LIST), to give some hooks for xiberty. 9563 9564Thu Oct 1 23:31:42 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 9565 9566 * configure.in: use cpu-vendor-triple instead of nested cases 9567 9568Wed Sep 30 11:26:59 1992 Per Bothner (bothner@rtl.cygnus.com) 9569 9570 * Makefile.in, argv.c, basename.c, bcmp.c, bcopy.c, bzero.c, 9571 concat.c, cplus-dem.c, fdmatch.c, getcwd.c, getopt.c, getopt1.c, 9572 getpagesize.c, insque.c, memcmp.c, memcpy.c, memmove.c, memset.c, 9573 obstack.c, sigsetmask.c, spaces.c, strchr.c, strerror.c, 9574 strrchr.c, strsignal.c, strstr.c, vfork.c, vsprintf.c: 9575 Convert from using GPL to LGPL. 9576 9577Sat Sep 26 04:01:30 1992 John Gilmore (gnu@cygnus.com) 9578 9579 * Makefile.in (errors): Leave dummy.o and dummy around so that 9580 we can see how the needed list was generated (it's sometimes wrong). 9581 (mostlyclean): Remove them. 9582 9583Mon Sep 21 14:50:42 1992 Ian Lance Taylor (ian@cygnus.com) 9584 9585 * getcwd.c: supply a default if MAXPATHLEN is not defined. 9586 9587 * config/mh-irix4: set EXTRA_OFILES to alloca.o, from WRS. 9588 9589Wed Sep 9 12:41:48 1992 Ian Lance Taylor (ian@cygnus.com) 9590 9591 * Makefile.in: Use XTRAFLAGS when compiling, so that xiberty works 9592 when cross-compiling. 9593 9594Thu Sep 3 13:29:39 1992 K. Richard Pixley (rich@sendai.cygnus.com) 9595 9596 * cplus-dem.c: (demangle_prefix): reduction in strength of strstr 9597 as a time optimization. 9598 9599 * cplus-dem.c (cplus_demangle): remove strpbrk test. Appears to 9600 be more expensive than simply demangling. 9601 9602 * cplus-dem.c (cplus_match): new function. 9603 9604Tue Sep 1 15:24:04 1992 Per Bothner (bothner@rtl.cygnus.com) 9605 9606 * cplus-dem.c: #include <stdio.h>, to define NULL. 9607 Define current_demangling_style. 9608 9609Sun Aug 30 17:58:19 1992 Per Bothner (bothner@rtl.cygnus.com) 9610 9611 * cplus-dem.c: New file, moved from ../gdb. 9612 * cplus-dem.c (set_cplus_marker_for_demangling): New exported 9613 function, to avoid compiling in target-dependency for CPLUS_MARKER. 9614 * cplus-dem.c (cplus_demangle): Allow demangling style option 9615 to be passed as a parameter, but using the global variable 9616 current_demangling_style as a default. 9617 * Makefile.in: Update for cplus-dem.c 9618 9619Sat Aug 29 10:44:09 1992 Fred Fish (fnf@cygnus.com) 9620 9621 * obstack.c: Merge in comment changes from FSF version. Now 9622 matches the FSF version exactly. 9623 9624Fri Aug 28 18:39:08 1992 John Gilmore (gnu@cygnus.com) 9625 9626 * obstack.c (CALL_FREEFUN): Can't use ?: with void values (at 9627 least on losing DECstations!); use if-then-else instead. 9628 9629Wed Aug 19 14:40:34 1992 Ian Lance Taylor (ian@cygnus.com) 9630 9631 * Makefile.in: always create installation directories. 9632 9633Mon Aug 10 17:33:40 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 9634 9635 * Makefile.in: clean up definition of CFILES, more comments 9636 9637Sat Aug 8 23:10:59 1992 Fred Fish (fnf@cygnus.com) 9638 9639 * getopt.c (my_index): Make first arg const to match strchr, 9640 which it sometimes is remapped to. 9641 9642Sat Aug 1 13:48:50 1992 Fred Fish (fnf@cygnus.com) 9643 9644 * obstack.c (DEFAULT_ALIGNMENT): Update to match FSF version. 9645 * obstack.c (_obstack_begin): Initialize use_extra_arg. 9646 * obstack.c (_obstack_begin_1): New, from FSF version. 9647 9648Mon Jul 20 21:07:58 1992 Fred Fish (fnf@cygnus.com) 9649 9650 * obstack.c (CALL_CHECKFUN, CALL_FREEFUN): Use use_extra_arg and 9651 extra_arg. 9652 * obstack.c (_obstack_begin): Remove area_id and flags arguments 9653 (previously added for mmalloc support, interface has changed). 9654 Also convert flags usage to use use_extra_arg and maybe_empty_object. 9655 9656Fri Jul 10 00:41:53 1992 Fred Fish (fnf@cygnus.com) 9657 9658 * argv.c: Move expandargv inline and eliminate static variables. 9659 Rewrite to always allocate in powers of two. Fix to return an 9660 argv with a single null string arg if passed a null string. 9661 9662Fri Jul 3 20:27:29 1992 Fred Fish (fnf@cygnus.com) 9663 9664 * random.c, sigsetmask.c, strerror.c, strsignal.c: Remove 9665 "(void)" casts from function calls where the return value is 9666 ignored, in accordance with GNU coding standards. 9667 9668Mon Jun 29 10:54:19 1992 Fred Fish (fnf at cygnus.com) 9669 9670 * bcopy.c, strerror.c, strsignal.c: Lint. 9671 9672Thu Jun 25 09:18:41 1992 K. Richard Pixley (rich@rtl.cygnus.com) 9673 9674 * getopt.c: merge changes from make. 9675 9676Thu Jun 25 04:43:22 1992 John Gilmore (gnu at cygnus.com) 9677 9678 * alloca.c: Incorporate fixes from gdb/alloca.c. 9679 FIXME: Eventually move gdb's alloca configuration files here, 9680 and remove gdb/alloca.c and its Makefile.in support. 9681 9682Tue Jun 23 21:56:30 1992 Fred Fish (fnf@cygnus.com) 9683 9684 * dummy.c: Define NOTHING to /*nothing*/, change return type 9685 of main to int and return zero. 9686 * functions.def: Supply NOTHING as the fourth arg to macros 9687 that don't have an explicit arg, to satisfy picky preprocessors. 9688 9689Wed Jun 17 18:13:58 1992 Per Bothner (bothner@rtl.cygnus.com) 9690 9691 * Makefile.in: Clean up *clean rules, as per standards.texi. 9692 9693Tue Jun 16 16:11:59 1992 K. Richard Pixley (rich@rtl.cygnus.com) 9694 9695 * getopt.c, getopt1.c: merged largely gratuitous, mostly 9696 whitespace diffs from other prep distributions. 9697 9698Mon Jun 15 12:25:46 1992 Fred Fish (fnf@cygnus.com) 9699 9700 * config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install, 9701 it is broken on ncr 3000's. 9702 9703Mon Jun 15 01:03:26 1992 John Gilmore (gnu at cygnus.com) 9704 9705 * sigsetmask.c: Rewrite. Old one was very confused about its 9706 arguments and result. New one can't do much, but at least knows 9707 what it can't do, and it's good enough for GDB's use. 9708 9709Sun Jun 14 15:17:40 1992 Stu Grossman (grossman at cygnus.com) 9710 9711 * functions.def: Use proper prototype for strtoul. 9712 9713Fri Jun 12 19:22:40 1992 John Gilmore (gnu at cygnus.com) 9714 9715 * Makefile.in: Add random.c. 9716 * config/mh-*: Use "true" rather than "echo >/dev/null" for ranlib. 9717 * configure.in: update solaris2 config. 9718 9719Wed Jun 10 16:31:29 1992 Fred Fish (fnf@cygnus.com) 9720 9721 * random.c: Add for random() and srandom(). 9722 * functions.def: Add random 9723 9724Tue Jun 9 17:27:18 1992 Fred Fish (fnf@cygnus.com) 9725 9726 * config/{mh-ncr3000, mh-sysv4}: Add definition for INSTALL 9727 using /usr/ucb/install. 9728 9729Mon Jun 1 13:20:17 1992 Per Bothner (bothner@rtl.cygnus.com) 9730 9731 * strerror.c: Kludge to guard against a conflict with 9732 possible declaration of sys_errlist in errno.h. 9733 9734Sun May 31 15:07:47 1992 Mark Eichin (eichin at cygnus.com) 9735 9736 * configure.in, config/mh-solaris: add solaris2 config support. 9737 9738Fri May 29 17:23:23 1992 Per Bothner (bothner@rtl.cygnus.com) 9739 9740 * sigsetmask.c: #ifdef out sigsetmask if SIG_SETMASK 9741 is not defined (should be defined in signal.h, says Posix.). 9742 9743Mon May 18 17:35:04 1992 K. Richard Pixley (rich@cygnus.com) 9744 9745 * getopt.c: merged changes from make-3.62.11. 9746 9747Fri May 8 14:53:07 1992 K. Richard Pixley (rich@cygnus.com) 9748 9749 * getopt.c: merged changes from bison-1.18. 9750 9751Tue May 5 11:51:40 1992 Per Bothner (bothner@rtl.cygnus.com) 9752 9753 * Makefile.in: Don't have $(EXTRA_OFILES) depend on config.h, 9754 since that introduces a circular dependency. 9755 ($(EXTRA_OFILES) are used to build config.h.) 9756 9757 * strtoul.c: Fixes to handle non-decimal bases better. 9758 9759Wed Apr 22 09:27:51 1992 Fred Fish (fnf@cygnus.com) 9760 9761 * config/mh-ncr3000: Replace MINUS_G with CFLAGS. 9762 * Makefile.dos: Finish MINUS_G eradication. 9763 * Makefile.in (CFILES): Add strsignal.c. 9764 * Makefile.in (REQUIRED_OFILES): Add strerror.o strsignal.o 9765 * Makefile.in (needed-list): Split creation of errors file to 9766 separate make target. 9767 * Makefile.in (config.h, needed2.awk, errors): New targets. 9768 * Makefile.in (clean): Split to multiple lines, add needed2.awk 9769 and config.h. 9770 * dummy.c (DEFFUNC, DEFVAR): Add defines and undefs. 9771 * functions.def (strerror): Remove from optional list. 9772 * functions.def (sys_nerr, sys_errlist, sys_siglist): DEFVAR's 9773 * functions.def (strerror, psignal): DEFFUNC's 9774 * strerror.c: Rewrite from scratch to use sys_errlist only if 9775 available, add errno_max(), add strerrno(), add strtoerrno(), 9776 add test driver. 9777 * strsignal.c: New file, signal equivalent to strerror.c. 9778 Uses sys_siglist if available, defines signo_max(), strsignal(), 9779 strsigno(), strtosigno(), psignal(), and test driver. 9780 9781Mon Apr 20 20:49:32 1992 K. Richard Pixley (rich@cygnus.com) 9782 9783 * Makefile.in: do not print recursion line. 9784 9785 * Makefile.in: allow CFLAGS to be passed in from command line. 9786 Removed MINUS_G. Default CFLAGS to -g. 9787 9788Mon Apr 20 12:57:46 1992 Per Bothner (bothner@rtl.cygnus.com) 9789 9790 * config/mh-aix: New. EXTRA_OFILES lists copysign.o, 9791 so libg++ users don't have to be inconvenienced by a 9792 libc.a bug (libc.a needs copysign, but doesn't define it!). 9793 * configure.in: Use config/mh-aix. 9794 * strtoul.c: Handle '-' as required by ANSI. 9795 Clean up radix handling. 9796 * strstr.c: Fix buggy algorithm. 9797 * Makefile.in: Change so that ${EXTRA_OFILES} is 9798 appended to needed-list (which is used by libg++). 9799 9800Fri Apr 10 22:51:41 1992 Fred Fish (fnf@cygnus.com) 9801 9802 * configure.in: Recognize new ncr3000 config. 9803 * config/mh-ncr3000: New config file. 9804 9805Wed Apr 1 23:31:43 1992 John Gilmore (gnu at cygnus.com) 9806 9807 * argv.c, dummy.c: Lint. 9808 9809Tue Mar 31 18:46:44 1992 Fred Fish (fnf@cygnus.com) 9810 9811 * config/mh-sysv4: New config file. 9812 * configure.in (host_makefile_frag): Set to config/mh-sysv4 for 9813 host_os == sysv4. 9814 * getpagesize.c: For SVR4, use sysconf(_SC_PAGESIZE) to get 9815 pagesize. 9816 9817Sun Mar 29 12:26:42 1992 John Gilmore (gnu at cygnus.com) 9818 9819 * getopt.c: Lint. 9820 9821Fri Mar 27 08:32:55 1992 Fred Fish (fnf@cygnus.com) 9822 9823 * functions.def (alloca): Fix return type and args to avoid 9824 type clash with gcc's builtin alloca. 9825 9826Tue Mar 24 23:33:42 1992 K. Richard Pixley (rich@cygnus.com) 9827 9828 * configure.in, config/mh-irix4: irix4 support. 9829 9830 * Makefile.in, functions.def, alloca.c: added alloca. 9831 9832Tue Mar 24 17:34:46 1992 Stu Grossman (grossman at cygnus.com) 9833 9834 * obstack.c (CALL_FREEFUN): Make it compile on DECstations. 9835 9836Thu Mar 19 13:57:42 1992 Fred Fish (fnf@cygnus.com) 9837 9838 * argv.c: Fix various external function definitions to be 9839 correct in an ANSI compilation environment. 9840 9841Sat Mar 14 17:28:17 1992 Fred Fish (fnf@cygnus.com) 9842 9843 * obstack.c: Changes to support calling mmalloc functions, 9844 which take an additional argument over malloc functions. 9845 9846Fri Mar 6 22:01:10 1992 K. Richard Pixley (rich@cygnus.com) 9847 9848 * added check target. 9849 9850Thu Feb 27 22:19:39 1992 Per Bothner (bothner@cygnus.com) 9851 9852 * argv.c: #include alloca-conf.h (needed by AIX). 9853 9854Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com) 9855 9856 * Makefile.in, configure.in: removed traces of namesubdir, 9857 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced 9858 copyrights to '92, changed some from Cygnus to FSF. 9859 9860Sat Feb 22 01:09:21 1992 Stu Grossman (grossman at cygnus.com) 9861 9862 * argv.c: Check in Fred's version which fixes problems with 9863 alloca(). 9864 9865Fri Feb 7 21:46:08 1992 Stu Grossman (grossman at cygnus.com) 9866 9867 * makefile.dos: Remove NUL to keep patch from failing. 9868 9869Thu Jan 30 22:48:41 1992 Stu Grossman (grossman at cygnus.com) 9870 9871 * getopt.c (_getopt_internal): Fix usage of enum has_arg. 9872 9873Mon Jan 20 18:53:23 1992 Stu Grossman (grossman at cygnus.com) 9874 9875 * getopt.c, getopt1.c, ../include/getopt.h: Get latest versions. 9876 9877Sat Jan 18 16:53:01 1992 Fred Fish (fnf at cygnus.com) 9878 9879 * argv.c: New file to build and destroy standard argument 9880 vectors from a command string. 9881 9882 * Makefile.in: Add argv.c and argv.o to appropriate macros. 9883 9884Fri Dec 20 12:12:57 1991 Fred Fish (fnf at cygnus.com) 9885 9886 * configure.in: Change svr4 references to sysv4. 9887 9888 * rindex.c: Declare return type of externally used function 9889 strrchr(). 9890 9891Thu Dec 19 18:35:03 1991 John Gilmore (gnu at cygnus.com) 9892 9893 * Makefile.in: Remove "***" in normal output, since Make produces 9894 this on errors, and it's convenient to search for. 9895 9896Tue Dec 17 23:21:30 1991 Per Bothner (bothner at cygnus.com) 9897 9898 * memcmp.c, memcpy.c, memmove.c, memset.c, strchr.c, strrchr.c: 9899 New ANSI functions. The old non-ANSI functions (such as bcopy) 9900 should be avoided. 9901 * bcopy.c: Fix to correctly handle overlapping regions. 9902 * index.c, rindex.c: Re-write in terms of strchr() and strrchr(). 9903 * functions.def: Add the new functions. 9904 * functions.def: Add 4th parameter to DEF macro, 9905 an ansidecl.h-style prototype. 9906 * dummy.c: Use expanded DEF macro to create a dummy function 9907 call, with correct parameter types. (This avoids some 9908 complaints from gcc about predefined builtins.) 9909 9910 Move the functionality of config/mh-default into Makefile.in. 9911 This avoid duplication, and simplifies things slightly. 9912 * Makefile.in: Tweak so we don't need config/mh-default. 9913 * README: Update. 9914 * configure.in: No longer need config/mh-default. 9915 * config/mh-default: Deleted. 9916 * config/mh-sysv: Remove lines copied from old mh-default. 9917 9918Tue Dec 17 05:46:46 1991 John Gilmore (gnu at cygnus.com) 9919 9920 * fdmatch.c (fdmatch): Don't compare st_rdev, which is for 9921 'mknod' device numbers. 9922 9923Mon Dec 16 12:25:34 1991 Fred Fish (fnf at cygnus.com) 9924 9925 * fdmatch.c, Makefile.in: Add new function that takes two 9926 open file descriptors and returns nonzero if they refer to 9927 the same file, zero otherwise. (used in gdb) 9928 9929Wed Dec 11 17:40:39 1991 Steve Chamberlain (sac at rtl.cygnus.com) 9930 From DJ: 9931 * msdos.c: stub functions for dos. 9932 * makefile.dos, configdj.bat: new. 9933 * getopt.c: Don't include alloca-conf.h in a GO32 world. 9934 9935 9936Tue Dec 10 04:14:49 1991 K. Richard Pixley (rich at rtl.cygnus.com) 9937 9938 * Makefile.in: infodir belongs in datadir. 9939 9940Fri Dec 6 23:26:45 1991 K. Richard Pixley (rich at rtl.cygnus.com) 9941 9942 * Makefile.in: remove spaces following hyphens because bsd make 9943 can't cope. added standards.text support. install using 9944 INSTALL_DATA. 9945 9946 * configure.in: remove commontargets as it is no longer a 9947 recognized hook. 9948 9949Thu Dec 5 22:46:46 1991 K. Richard Pixley (rich at rtl.cygnus.com) 9950 9951 * Makefile.in: idestdir and ddestdir go away. Added copyrights 9952 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir 9953 and mandir now keyed off datadir by default. 9954 9955Fri Nov 22 19:15:29 1991 John Gilmore (gnu at cygnus.com) 9956 9957 * Makefile.in: find-needed.awk does not fit in 14 chars. 9958 9959 * Makefile.in: Suppress error checking when compiling the test 9960 program, because Ultrix make/sh aborts there due to a bug. 9961 9962Fri Nov 22 12:23:17 1991 Per Bothner (bothner at cygnus.com) 9963 9964 * Makefile.in: Re-did how EXTRA_OFILES is used to be more useful. 9965 * README: Explained how the auto-configuration works, 9966 and how to add new files and/or configurations. 9967 9968Fri Nov 22 09:45:23 1991 John Gilmore (gnu at cygnus.com) 9969 9970 * strtoul.c: Avoid defining ULONG_MAX if already defined; 9971 cast a const char * to char * for pedants. 9972 9973 * getopt.c: Only define "const" after local include files get to, 9974 and only if they haven't defined it. 9975 9976Thu Nov 21 16:58:53 1991 John Gilmore (gnu at cygnus.com) 9977 9978 * getcwd.c (remove getwd.c): GNU code should call getcwd(). We 9979 emulate it with getwd() if available. This avoids callers having 9980 to find a MAXPATHLEN or PATH_MAX value from somewhere. 9981 * Makefile.in, functions.def: getwd->getcwd. 9982 * configure.in: Use generic case for every system. 9983 * config/mh-{delta88,mach,rs6000,svr4}: Remove. 9984 * config/mh-sysv: Use default handling, just add -DUSG. 9985 9986Thu Nov 14 10:58:05 1991 Per Bothner (bothner at cygnus.com) 9987 9988 * Makefile.in, config/mh-default: Re-do make magic 9989 so that for the default ("automatic") mode we only 9990 compile the files we actually need. Do this using 9991 a recursive make: The top-level generates the list 9992 of needed files (loosely, the ones missing in libc), 9993 and then passes that list to the recursive make. 9994 * config/mh-mach: Remove obsolete STRERROR-{C,O} macros. 9995 9996Tue Nov 12 19:10:57 1991 John Gilmore (gnu at cygnus.com) 9997 9998 RS/6000 host support (grumble). 9999 10000 * configure.in: Build alloca-conf.h file from alloca-norm.h 10001 (everything else) or alloca-botch.h (rs/6000). 10002 * Makefile.in: Include . on the include path. 10003 * getopt.c: Use alloca-conf.h. 10004 * alloca-norm.h: How to declare alloca on reasonable machines. 10005 * alloca-botch.h: How to declare alloca on braindead machines. 10006 10007Tue Nov 12 09:21:48 1991 Fred Fish (fnf at cygnus.com) 10008 10009 * concat.c : New file, like concat() in gdb but can take a 10010 variable number of arguments rather than fixed at 3 args. For 10011 now, client applications must supply an xmalloc(), which is a 10012 front end function to malloc() that deals with out-of-memory 10013 conditions. 10014 10015 * Makefile.in: Add concat.c and concat.o to appropriate macros. 10016 10017Sat Nov 9 13:29:59 1991 Fred Fish (fnf at cygnus.com) 10018 10019 * config/mh-svr4: Add sigsetmask to list of required functions. 10020 10021Sun Nov 3 11:57:56 1991 Per Bothner (bothner at cygnus.com) 10022 10023 * vsprintf.c: New file. 10024 * functions.def, Makefile.in: Add vsprintf. 10025 10026Sun Oct 27 16:31:22 1991 John Gilmore (gnu at cygnus.com) 10027 10028 * configure.in, config/mh-rs6000: Add rs/6000 host support. 10029 * Makefile.in: Compile with debug info. 10030 10031Fri Oct 25 17:01:12 1991 Per Bothner (bothner at cygnus.com) 10032 10033 * Makefile.in, configure.in, and new files: dummy.c, functions.def, 10034 config/mf-default: Added a default configuration mode, 10035 which includes into libiberty.a functions that are "missing" in libc. 10036 * strdup.c, vprintf.c, vfprintf.c: New files. 10037 10038Thu Oct 24 02:29:26 1991 Fred Fish (fnf at cygnus.com) 10039 10040 * config/hmake-svr4: New file. 10041 10042 * config/hmake-sysv: Add HOST_CFILES and HOST_OFILES. 10043 10044 * basename.c, bcmp.c, bcopy.c, bzero.c, getpagesize.c getwd.c, 10045 index.c, insque.c, rindex.c, spaces.c, strstr.c, vfork.c: New 10046 files containing either portable C versions or emulations using 10047 native library calls. 10048 10049 * strerror.c: Add copyright, internal documentation, etc. 10050 10051 * strtol.c: Replace hardwired hex constants with some more 10052 portable macros. Remove illegal (according to gcc) cast. 10053 10054 * strtoul.c: Replace hardwired hex constant with more portable 10055 macro. 10056 10057 * Makefile.in: Move TARGETLIB and CFLAGS where makefile fragments 10058 can override them. Add new source and object file names to CFILES 10059 and OFILES respectively. 10060 10061 * configure.in: Add support for SVR4 makefile fragments. 10062 10063Tue Oct 22 19:00:23 1991 Steve Chamberlain (steve at cygnus.com) 10064 10065 * Makefile.in: Move RANLIB, AR and AR_FLAGS to where they can be 10066 over-ridden by config/hmake-* 10067 * configure.in: added m88kcvs to sysv list 10068 10069Fri Oct 4 01:29:08 1991 John Gilmore (gnu at cygnus.com) 10070 10071 * Makefile.in: Most hosts need strerror, but one or two don't, 10072 and they override these definitions in the host-dependent makefile 10073 fragment. 10074 * config/hmake-mach: The odd man out on strerror -- it's supplied. 10075 * strerror.c: New file. 10076 10077 * strtol.c, strtoul.c: Add strtol to libiberty, since Mach lacks 10078 it and bfd uses it. 10079 * configure.in, Makefile.in, config/hmake-mach: Only configure 10080 strtol & strotoul in on Mach. 10081 10082Tue Sep 3 06:36:23 1991 John Gilmore (gnu at cygint.cygnus.com) 10083 10084 * obstack.c: Merge with latest FSF version. 10085 10086 10087Local Variables: 10088version-control: never 10089End: 10090