12017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de> 2 3 PR PR c++/70182 4 * cp-demangle.c (d_unqualified_name): Handle "on" for 5 operator names. 6 * testsuite/demangle-expected: Add tests. 7 82017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de> 9 10 PR c++/77489 11 * cp-demangle.c (d_discriminator): Handle discriminator >= 10. 12 * testsuite/demangle-expected: Add tests for discriminator. 13 142017-01-04 Jakub Jelinek <jakub@redhat.com> 15 16 Update copyright years. 17 182017-01-04 Alan Modra <amodra@gmail.com> 19 20 * Makefile.in (configure_deps): Update. 21 * configure: Regenerate. 22 232016-12-13 Jakub Jelinek <jakub@redhat.com> 24 25 PR c++/78761 26 * cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto). 27 * testsuite/demangle-expected: Add test for decltype(auto). 28 292016-12-12 Nathan Sidwell <nathan@acm.org> 30 31 PR c++/78252 32 * cp-demangle.c (struct d_print_info): Add is_lambda_arg field. 33 (d_print_init): Initialize it. 34 (d_print_comp_inner) <DEMANGLE_COMPONENT_TEMPLATE_PARAM>: Check 35 is_lambda_arg for auto. 36 <DEMANGLE_COMPONENT_REFERENCE, 37 DEMANGLE_COMPONENT_RVALUE_REFERENCE>: Skip smashing check when 38 is_lambda_arg. 39 <DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg 40 printing. 41 * testsuite/demangle-expected: Add lambda auto mangling cases. 42 432016-12-08 Alan Modra <amodra@gmail.com> 44 45 * configure: Regenerate. 46 472016-12-06 DJ Delorie <dj@redhat.com> 48 49 * argv.c (expandargv): Check for directories passed as @-files. 50 512016-11-30 David Malcolm <dmalcolm@redhat.com> 52 53 PR c/78498 54 * strndup.c (strlen): Delete decl. 55 (strnlen): Add decl. 56 (strndup): Call strnlen rather than strlen. 57 * xstrndup.c (xstrndup): Likewise. 58 592016-11-29 Nathan Sidwell <nathan@acm.org> 60 61 * cp-demangle.c (d_print_comp_inner): Fix parameter indentation. 62 632016-11-03 David Tolnay <dtolnay@gmail.com> 64 Mark Wielaard <mark@klomp.org> 65 66 * Makefile.in (CFILES): Add rust-demangle.c. 67 (REQUIRED_OFILES): Add rust-demangle.o. 68 * cplus-dem.c (libiberty_demanglers): Add rust_demangling case. 69 (cplus_demangle): Handle RUST_DEMANGLING. 70 (rust_demangle): New function. 71 * rust-demangle.c: New file. 72 * testsuite/Makefile.in (really-check): Add check-rust-demangle. 73 (check-rust-demangle): New rule. 74 * testsuite/rust-demangle-expected: New file. 75 762016-11-15 Mark Wielaard <mark@klomp.org> 77 78 * cp-demangle.c (d_expression_1): Make sure third expression 79 exists for ?: and fold expressions. 80 * testsuite/demangle-expected: Add examples of strings that could 81 crash the demangler because of missing expression. 82 832016-11-14 Mark Wielaard <mark@klomp.org> 84 85 * cplus-dem.c (demangle_signature): After 'H', template function, 86 no success and don't advance position if end of string reached. 87 (demangle_template): After 'z', template name, return zero on 88 premature end of string. 89 (gnu_special): Guard strchr against searching for zero characters. 90 (do_type): If member, only advance mangled string when 'F' found. 91 * testsuite/demangle-expected: Add examples of strings that could 92 crash the demangler by reading past end of input. 93 942016-11-06 Mark Wielaard <mark@klomp.org> 95 96 * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local. 97 * configure: Regenerated. 98 992016-11-07 Jason Merrill <jason@redhat.com> 100 101 * cp-demangle.c (is_fnqual_component_type): New. 102 (d_encoding, d_print_comp_inner, d_print_mod_list): Use it. 103 (FNQUAL_COMPONENT_CASE): New. 104 (d_make_comp, has_return_type, d_print_comp_inner) 105 (d_print_function_type): Use it. 106 (next_is_type_qual): New. 107 (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec. 108 1092016-11-02 Mark Wielaard <mjw@redhat.com> 110 111 * cplus-dem.c (demangle_signature): Move fall through comment. 112 (demangle_fund_type): Add fall through comment between 'G' and 'I'. 113 * hashtab.c (iterative_hash): Add fall through comments. 114 * regex.c (regex_compile): Add Fall through comment after '+'/'?'. 115 (byte_re_match_2_internal): Add Fall through comment after jump_n. 116 Change "Note fall through" to "Fall through". 117 (common_op_match_null_string_p): Return false after set_number_at 118 instead of fall through. 119 1202016-11-01 Jason Merrill <jason@redhat.com> 121 122 * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor. 123 1242016-10-31 Mark Wielaard <mjw@redhat.com> 125 126 * cplus-dem.c (ada_demangle): Initialize demangled to NULL and 127 XDELETEVEC demangled when unknown. 128 1292016-09-19 Andrew Stubbs <ams@codesourcery.com> 130 131 * pex-win32.c (argv_to_cmdline): Quote zero-length parameters. 132 * testsuite/test-pexecute.c (main): Insert check for zero-length parameters. 133 1342016-09-10 Mark Wielaard <mjw@redhat.com> 135 136 * cp-demangle.c (d_substitution): Change struct demangle_component 137 variable name from c to dc. 138 1392016-08-12 Marek Polacek <polacek@redhat.com> 140 141 PR c/7652 142 * cp-demangle.c (d_print_mod): Add FALLTHRU. 143 1442016-08-04 Marcel B��hme <boehme.marcel@gmail.com> 145 146 PR c++/71696 147 * cplus-dem.c: Prevent infinite recursion when there is a cycle 148 in the referencing of remembered mangled types. 149 (work_stuff): New stack to keep track of the remembered mangled 150 types that are currently being processed. 151 (push_processed_type): New method to push currently processed 152 remembered type onto the stack. 153 (pop_processed_type): New method to pop currently processed 154 remembered type from the stack. 155 (work_stuff_copy_to_from): Copy values of new variables. 156 (delete_non_B_K_work_stuff): Free stack memory. 157 (demangle_args): Push/Pop currently processed remembered type. 158 (do_type): Do not demangle a cyclic reference and push/pop 159 referenced remembered type. 160 1612016-07-29 Aldy Hernandez <aldyh@redhat.com> 162 163 * make-relative-prefix.c (make_relative_prefix_1): Fall back to 164 malloc if alloca argument is greater than MAX_ALLOCA_SIZE. 165 1662016-07-15 Jason Merrill <jason@redhat.com> 167 168 * cp-demangle.c (cplus_demangle_operators): Add f[lrLR]. 169 (d_expression_1): Handle them. 170 (d_maybe_print_fold_expression): New. 171 (d_print_comp_inner): Use it. 172 (d_index_template_argument): Handle negative index. 173 174 * cp-demangle.c (cplus_demangle_operators): Add sP and sZ. 175 (d_print_comp_inner): Handle them. 176 (d_template_args_1): Split out from d_template_args. 177 (d_args_length): New. 178 1792016-07-13 Marcel B��hme <boehme.marcel@gmail.com> 180 181 PR c++/70926 182 * cplus-dem.c: Handle large values and overflow when demangling 183 length variables. 184 (demangle_template_value_parm): Read only until end of mangled string. 185 (do_hpacc_template_literal): Likewise. 186 (do_type): Handle overflow when demangling array indices. 187 1882016-06-12 Brooks Moses <bmoses@google.com> 189 190 * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length 191 VLAs. 192 1932016-05-31 Alan Modra <amodra@gmail.com> 194 195 * xmemdup.c (xmemdup): Use xmalloc rather than xcalloc. 196 1972016-05-19 Jakub Jelinek <jakub@redhat.com> 198 199 PR c++/70498 200 * cp-demangle.c (d_expression_1): Formatting fix. 201 2022016-05-18 Artemiy Volkov <artemiyv@acm.org> 203 204 * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference 205 constant. 206 (demangle_template_value_parm): Handle tk_rvalue_reference 207 type kind. 208 (do_type): Support 'O' type id (rvalue references). 209 210 * testsuite/demangle-expected: Add tests. 211 2122016-05-02 Marcel B��hme <boehme.marcel@gmail.com> 213 214 PR c++/70498 215 * cp-demangle.c: Parse numbers as integer instead of long to avoid 216 overflow after sanity checks. Include <limits.h> if available. 217 (INT_MAX): Define if necessary. 218 (d_make_template_param): Takes integer argument instead of long. 219 (d_make_function_param): Likewise. 220 (d_append_num): Likewise. 221 (d_identifier): Likewise. 222 (d_number): Parse as and return integer. 223 (d_compact_number): Handle overflow. 224 (d_source_name): Change variable type to integer for parsed number. 225 (d_java_resource): Likewise. 226 (d_special_name): Likewise. 227 (d_discriminator): Likewise. 228 (d_unnamed_type): Likewise. 229 * testsuite/demangle-expected: Add regression test cases. 230 2312016-04-30 Oleg Endo <olegendo@gcc.gnu.org> 232 233 * configure: Remove SH5 support. 234 2352016-04-08 Marcel B��hme <boehme.marcel@gmail.com> 236 237 PR c++/69687 238 * cplus-dem.c: Include <limits.h> if available. 239 (INT_MAX): Define if necessary. 240 (remember_type, remember_Ktype, register_Btype, string_need): 241 Abort if we detect cases where we the size of the allocation would 242 overflow. 243 244 PR c++/70492 245 * cplus-dem.c (gnu_special): Handle case where consume_count returns 246 -1. 247 2482016-03-31 Mikhail Maltsev <maltsevm@gmail.com> 249 Marcel Bohme <boehme.marcel@gmail.com> 250 251 PR c++/67394 252 PR c++/70481 253 * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing 254 btypevec/ktypevec. 255 * testsuite/demangle-expected: Add coverage tests. 256 2572016-01-27 Iain Buclaw <ibuclaw@gdcproject.org> 258 259 * d-demangle.c (dlang_call_convention): Handle extern Objective-C 260 function calling convention. 261 (dlang_call_convention_p): Likewise. 262 (dlang_type): Likewise. 263 * testsuite/d-demangle-expected: Add coverage tests. 264 2652016-01-27 Iain Buclaw <ibuclaw@gdcproject.org> 266 267 * d-demangle.c (dlang_function_args): Append ',' for variadic functions 268 only if parameters were seen before the elipsis symbol. 269 * testsuite/d-demangle-expected: Add coverage test for parameter-less 270 variadic functions. 271 2722016-01-27 Iain Buclaw <ibuclaw@gdcproject.org> 273 274 * d-demangle.c (dlang_type): Handle function types only in the context 275 of seeing a pointer type symbol. 276 * testsuite/d-demangle-expected: Update function pointer tests. 277 2782016-01-05 Mike Frysinger <vapier@gentoo.org> 279 280 * argv.c (dupargv): Change arg to char * const *. Update comment. 281 (writeargv, countargv): Likewise. 282 * functions.texi (dupargv, writeargv, countargv): Likewise. 283 2842016-01-05 Mike Frysinger <vapier@gentoo.org> 285 286 * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup. 287 2882015-12-28 Patrick Palka <ppalka@gcc.gnu.org> 289 290 * crc32.c: In the documentation, don't refer to GDB's 291 now-nonexistent crc32 implementation. In the table-generation 292 program embedded within the documentation, change the type of 293 the induction variables i and j from int to unsigned int, to 294 avoid undefined behavior. 295 2962015-12-21 Nick Clifton <nickc@redhat.com> 297 298 PR 66827 299 * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left 300 shifting. 301 3022015-11-27 Pedro Alves <palves@redhat.com> 303 304 PR other/61321 305 PR other/61233 306 * cp-demangle.c (d_demangle_callback, d_make_comp): Handle 307 DEMANGLE_COMPONENT_CONVERSION. 308 (is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION 309 instead of DEMANGLE_COMPONENT_CAST. 310 (d_operator_name): Return a DEMANGLE_COMPONENT_CONVERSION 311 component if handling a conversion. 312 (d_count_templates_scopes, d_print_comp_inner): Handle 313 DEMANGLE_COMPONENT_CONVERSION. 314 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_CONVERSION instead 315 of DEMANGLE_COMPONENT_CAST. 316 (d_print_cast): Rename as ... 317 (d_print_conversion): ... this. Adjust comments. 318 (d_print_cast): Rewrite - simply print the left subcomponent. 319 * cp-demint.c (cplus_demangle_fill_component): Handle 320 DEMANGLE_COMPONENT_CONVERSION. 321 322 * testsuite/demangle-expected: Add tests. 323 3242015-11-12 Mike Stump <mikestump@comcast.net> 325 326 * Makefile.in (etags tags TAGS): Use && instead of ;. 327 3282015-11-09 Alan Modra <amodra@gmail.com> 329 330 * configure.ac: Check size of size_t. 331 * configure: Regenerate. 332 * config.in: Regenerate. 333 3342015-11-09 Alan Modra <amodra@gmail.com> 335 336 * obstack.c (_obstack_newchunk): Silence -Wc++compat warning. 337 (_obstack_begin_worker): Likewise. Move assignment to h->chunk 338 after alloc failure check. 339 3402015-11-09 Alan Modra <amodra@gmail.com> 341 342 PR gdb/17133 343 * obstack.c (__alignof__): Expand alignof_type from alignof.h. 344 (obstack_exit_failure): Don't use exitfail.h. 345 (_): Include libintl.h when HAVE_LIBINTL_H and nls enabled. 346 Provide default. Don't include gettext.h. 347 (_Noreturn): Define. 348 * obstacks.texi: Adjust node references to external libc info files. 349 3502015-11-09 Alan Modra <amodra@gmail.com> 351 352 PR gdb/17133 353 * obstack.c: Import current gnulib file. 354 * obstacks.texi: Updated doc, from glibc's manual/memory.texi. 355 3562015-11-06 Joel Brobecker <brobecker@adacore.com> 357 358 * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on 359 Android hosts. 360 * configure: Regenerate. 361 3622015-10-28 Jason Merrill <jason@redhat.com> 363 364 * Makefile.in (TAGS): Fix for separate build directory. 365 3662015-10-18 Roland McGrath <roland@gnu.org> 367 Iain Sandoe <iain@codesourcery.com> 368 369 PR other/63758 370 * pex-unix.c: Obtain the environment interface from settings in 371 environ.h rather than in-line code. Update copyright date. 372 * setenv.c: Likewise. 373 * xmalloc.c: Likewise. 374 3752015-09-30 Jason Merrill <jason@redhat.com> 376 377 * cp-demangle.c (d_cv_qualifiers): Dx means transaction_safe. 378 (cplus_demangle_type): Let d_cv_qualifiers handle it. 379 (d_dump, d_make_comp, has_return_type, d_encoding) 380 (d_count_templates_scopes, d_print_comp_inner) 381 (d_print_mod_list, d_print_mod, d_print_function_type) 382 (is_ctor_or_dtor): Handle DEMANGLE_COMPONENT_TRANSACTION_SAFE. 383 3842015-08-15 Ian Lance Taylor <iant@google.com> 385 386 * cp-demangle.c (d_abi_tags): Preserve di->last_name across any 387 ABI tags. 388 3892015-08-11 Iain Buclaw <ibuclaw@gdcproject.org> 390 391 * d-demangle.c (dlang_parse_real): Remove call to strtod. 392 (strtod): Remove declaration. 393 * testsuite/d-demangle-expected: Update float and complex literal 394 tests to check correct hexadecimal demangling. 395 3962015-07-13 Mikhail Maltsev <maltsevm@gmail.com> 397 398 * cp-demangle.c (d_dump): Fix syntax error. 399 (d_identifier): Adjust type of len to match d_source_name. 400 (d_expression_1): Fix out-of-bounds access. Check code variable for 401 NULL before dereferencing it. 402 (d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER. 403 (d_print_comp_inner): Add NULL pointer check. 404 * cp-demangle.h (d_peek_next_char): Define as inline function when 405 CHECK_DEMANGLER is defined. 406 (d_advance): Likewise. 407 * testsuite/demangle-expected: Add new testcases. 408 4092015-07-09 Uros Bizjak <ubizjak@gmail.com> 410 411 * getruntime.c (RUSAGE_SELF): Define if not already defined. 412 (get_runtime): Use RUSAGE_SELF as argument 1 of getrusage call. 413 4142015-06-01 Jason Merrill <jason@redhat.com> 415 416 * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor 417 extended qualifier. 418 4192015-05-22 Yunlian Jiang <yunlian@google.com> 420 421 * configure.ac: Add AC_GNU_SOURCE. 422 * Makefile.in (COMPILE.c): Add -D_GNU_SOURCE. 423 * configure, config.in: Rebuild. 424 * floatformat.c (_GNU_SOURCE): Don't define if already defined. 425 4262015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 427 428 * d-demangle.c (dlang_symbol_kinds): New enum. 429 (dlang_parse_symbol): Update signature. Handle an ambiguity between 430 pascal functions and template value arguments. Only check for a type 431 if parsing a function, or at the top level. Return failure if the 432 entire symbol was not successfully demangled. 433 (dlang_identifier): Update signature. Handle an ambiguity between two 434 adjacent digits in a mangled symbol string. 435 (dlang_type): Update call to dlang_parse_symbol. 436 (dlang_template_args): Likewise. 437 (dlang_parse_template): Likewise. 438 (dlang_demangle): Likewise. 439 * testsuite/d-demangle-expected: Fix bad tests found, and add problematic 440 examples to the unittests. 441 4422015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 443 444 * d-demangle.c (dlang_template_args): Skip over specialized template 445 parameters in mangled symbol. 446 * testsuite/d-demangle-expected: Add coverage and unittest for specialized 447 template parameters. 448 4492015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 450 451 * d-demangle.c (dlang_type): Handle cent and ucent types. 452 * testsuite/d-demangle-expected: Add coverage tests for cent and ucent. 453 4542015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 455 456 * d-demangle.c (dlang_attributes): Handle return attributes, ignoring 457 return parameters in the mangled string. Return NULL if have encountered 458 an unknown attribute. 459 (dlang_function_args): Handle return parameters in the mangled string. 460 * testsuite/d-demangle-expected: Add coverage tests for functions with 461 return parameters and return attributes. 462 4632015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 464 465 * d-demangle.c (dlang_identifier): Check encoded length of identifier 466 to verify strncmp matches entire string. 467 * testsuite/d-demangle-expected: Fix wrong test for postblit symbol. 468 4692015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 470 471 * d-demangle.c (dlang_type_modifiers): New function. 472 (dlang_type_modifier_p): New function. 473 (dlang_call_convention_p): Ignore any kind of type modifier. 474 (dlang_type): Handle and emit the type modifier after delegate types. 475 (dlang_parse_symbol): Handle and emit the type modifier after the symbol. 476 * testsuite/d-demangle-expected: Add coverage tests for all valid 477 usages of function symbols with type modifiers. 478 4792015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 480 481 * d-demangle.c (dlang_call_convention): Return NULL if have reached the 482 end of the symbol, but expected something to read. 483 (dlang_attributes): Likewise. 484 (dlang_function_type): Likewise. 485 (dlang_type): Likewise. 486 (dlang_identifier): Likewise. 487 (dlang_value): Likewise. 488 4892015-05-16 Iain Buclaw <ibuclaw@gdcproject.org> 490 491 * d-demangle.c (dlang_parse_string): Represent embedded whitespace or 492 non-printable characters as hex or escape sequences. 493 * testsuite/d-demangle-expected: Add test for templates with tabs and 494 newlines embedded into the signature. 495 4962015-05-08 Joel Brobecker <brobecker@adacore.com> 497 498 * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined 499 but not HAVE_SYS_TIME_H. 500 5012015-04-22 Eli Zaretskii <eliz@gnu.org> 502 503 * setenv.c <environ>: Declare only if not a macro. 504 5052015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com> 506 507 * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS. 508 5092015-04-10 Jakub Jelinek <jakub@redhat.com> 510 Iain Sandoe <iain@codesourcery.com> 511 512 PR target/65351 513 * configure: Regenerate. 514 5152015-04-07 Jakub Jelinek <jakub@redhat.com> 516 Iain Sandoe <iain@codesourcery.com> 517 518 PR target/65351 519 * configure: Regenerate. 520 5212015-01-19 Eli Zaretskii <eliz@gnu.org> 522 523 * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't 524 macros. 525 5262014-12-24 Uros Bizjak <ubizjak@gmail.com> 527 Ben Elliston <bje@au.ibm.com> 528 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 529 530 * xasprintf.c: New file. 531 * Makefile.in (CFILES): Add xasprintf.c. 532 (REQUIRED_OFILES): Add xasprintf.$(objext). 533 (xasprintf.$(objext)): New target. 534 * functions.texi: Regenerate. 535 5362014-12-11 Uros Bizjak <ubizjak@gmail.com> 537 Ben Elliston <bje@au.ibm.com> 538 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 539 540 * xvasprintf.c: New file. 541 * vprintf-support.h: Likewise. 542 * vprintf-support.c: Likewise. 543 * Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c. 544 (REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext). 545 (vprintf-support.$(objext), xvasprintf.$(objext)): New targets. 546 (vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h. 547 * functions.texi: Regenerate. 548 * vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size. 549 5502014-11-22 John David Anglin <danglin@gcc.gnu.org> 551 552 PR other/63694 553 * configure.ac: Check for strtol, strtoul, strtoll and strtoull 554 declarations. 555 * configure: Regenerated. 556 5572014-11-12 Kirill Yukhin <kirill.yukhin@intel.com> 558 559 * testsuite/test-strtol.c (run_tests): Cast strtol return to 560 unsigned long. 561 5622014-11-11 Anthony Brandon <anthony.brandon@gmail.com> 563 Manuel L��pez-Ib����ez <manu@gcc.gnu.org> 564 565 PR driver/36312 566 * filename_cmp.c (canonical_filename_eq): New function to check if 567 file names are the same. 568 * functions.texi: Updated with documentation for new function. 569 5702014-11-11 David Malcolm <dmalcolm@redhat.com> 571 572 * ChangeLog.jit: New. 573 5742014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 575 576 * sigsetmask.c (_POSIX_SOURCE): Remove. 577 5782014-10-28 Yury Gribov <y.gribov@samsung.com> 579 580 * strtoll.c: New file. 581 * strtoull.c: New file. 582 * configure.ac: Add long long checks. Add harness for strtoll and 583 strtoull. Check decls for strtol, strtoul, strtoll, strtoull. 584 * Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull. 585 * config.in: Regenerate. 586 * configure: Regenerate. 587 * functions.texi: Regenerate. 588 * testsuite/Makefile.in (check-strtol): New rule. 589 (test-strtol): Likewise. 590 (mostlyclean): Clean up strtol test. 591 * testsuite/test-strtol.c: New test. 592 5932014-10-15 David Malcolm <dmalcolm@redhat.com> 594 595 * choose-temp.c (choose_tmpdir): Remove now-redundant local 596 copy of prototype. 597 * functions.texi: Regenerate. 598 * make-temp-file.c (choose_tmpdir): Convert return type from 599 char * to const char * - given that this returns a pointer to 600 a memoized allocation, the caller must not touch it. 601 6022014-10-14 Joel Brobecker <brobecker@adacore.com> 603 604 * d-demangle.c: Replace strtold with strtod in global comment. 605 (strtold): Remove declaration. 606 (strtod): New declaration. 607 (dlang_parse_real): Declare value as double instead of long 608 double. Replace call to strtold by call to strtod. 609 Update format in call to snprintf. 610 6112014-09-26 Jason Merrill <jason@redhat.com> 612 613 * cp-demangle.c (d_substitution): Handle abi tags on abbreviation. 614 6152014-09-26 Max Ostapenko <m.ostapenko@partner.samsung.com> 616 617 * pex-common.h (struct pex_funcs): Add new parameter for open_write field. 618 * pex-unix.c (pex_unix_open_write): Add support for new parameter. 619 * pex-djgpp.c (pex_djgpp_open_write): Likewise. 620 * pex-win32.c (pex_win32_open_write): Likewise. 621 * pex-common.c (pex_run_in_environment): Likewise. 622 6232014-09-23 Iain Buclaw <ibuclaw@gdcproject.org> 624 625 * Makefile.in (CFILES): Add d-demangle.c. 626 (REQUIRED_OFILES): Add d-demangle.o. 627 * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case. 628 (cplus_demangle): Likewise. 629 * d-demangle.c: New file. 630 * testsuite/Makefile.in (really-check): Add check-d-demangle. 631 * testsuite/d-demangle-expected: New file. 632 6332014-09-19 Ian Lance Taylor <iant@google.com> 634 635 * simple-object-elf.c (simple_object_elf_write_ehdr): Correctly 636 handle objects with more than SHN_LORESERVE sections. 637 (simple_object_elf_write_shdr): Add sh_link parameter. 638 (simple_object_elf_write_to_file): Correctly handle objects with 639 more than SHN_LORESERVE sections. 640 6412014-08-29 Andrew Burgess <aburgess@broadcom.com> 642 643 * cp-demangle.c (d_dump): Only access field from s_fixed part of 644 the union for DEMANGLE_COMPONENT_FIXED_TYPE. 645 (d_count_templates_scopes): Likewise. 646 6472014-08-13 Gary Benson <gbenson@redhat.com> 648 649 * testsuite/demangler-fuzzer.c: New file. 650 * testsuite/Makefile.in (fuzz-demangler): New rule. 651 (demangler-fuzzer): Likewise. 652 (mostlyclean): Clean up demangler fuzzer. 653 6542014-06-11 Andrew Burgess <aburgess@broadcom.com> 655 656 * cplus-dem.c (do_type): Call string_delete even if the call to 657 demangle_template fails. 658 6592014-06-01 Ray Donnelly <mingw.android@gmail.com> 660 661 * pex-win32.c (argv_to_cmdline): Don't quote 662 args unnecessarily 663 6642014-05-28 Pedro Alves <palves@redhat.com> 665 666 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM 667 and DEMANGLE_COMPONENT_NUMBER. 668 6692014-05-22 Thomas Schwinge <thomas@codesourcery.com> 670 671 * testsuite/demangle-expected: Fix last commit. 672 6732014-05-14 Andrew Burgess <aburgess@broadcom.com> 674 675 * cplus-dmem.c (internal_cplus_demangle): Free any resources 676 allocated by possible previous call to gnu_special. 677 (squangle_mop_up): Reset pointers to NULL after calling free. 678 * testsuite/demangle-expected: New test case. 679 6802014-05-08 Gary Benson <gbenson@redhat.com> 681 682 * cp-demangle.c (struct d_component_stack): New structure. 683 (struct d_print_info): New field component_stack. 684 (d_print_init): Initialize the above. 685 (d_print_comp_inner): Renamed from d_print_comp. 686 Do not restore template stack if it would cause a loop. 687 (d_print_comp): New function. 688 * testsuite/demangle-expected: New test cases. 689 6902014-04-17 Jakub Jelinek <jakub@redhat.com> 691 692 PR sanitizer/56781 693 * maint-tool: Also emit rule for noasan/ subdirectory. 694 * configure.ac (NOASANFLAG): Set and substitute. 695 * Makefile.in: Regenerated. 696 (NOASANFLAG): Set. 697 (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic 698 subdir. 699 (stamp-noasandir): New goal. 700 * configure: Regenerated. 701 7022014-04-01 Richard Biener <rguenther@suse.de> 703 704 * simple-object.c (simple_object_internal_write): Handle 705 EINTR and short writes. 706 7072014-03-28 Richard Biener <rguenther@suse.de> 708 709 * simple-object.c (simple_object_internal_read): Handle 710 EINTR and short reads. 711 7122014-03-13 Uros Bizjak <ubizjak@gmail.com> 713 714 * regex.c (bzero) [!_LIBC]: Define without coma expression. 715 (regerror): Cast the call to memcpy to (void) to avoid unused 716 value warnings. 717 7182014-01-28 Thomas Schwinge <thomas@codesourcery.com> 719 720 * cp-demangle.c (d_demangle_callback): Put an abort call in place, 721 to help the compiler. 722 7232014-01-21 Tom Tromey <tromey@redhat.com> 724 725 * _doprint.c (checkit): Use stdarg, not VA_* macros. 726 * asprintf.c (asprintf): Use stdarg, not VA_* macros. 727 * concat.c (concat_length, concat_copy, concat_copy2, concat) 728 (reconcat): Use stdarg, not VA_* macros. 729 * snprintf.c (snprintf): Use stdarg, not VA_* macros. 730 * vasprintf.c (checkit): Use stdarg, not VA_* macros. 731 * vsnprintf.c (checkit): Use stdarg, not VA_* macros. 732 7332014-01-06 Mike Frysinger <vapier@gentoo.org> 734 735 PR other/56780 736 * configure.ac: Delete target_header_dir assignment. 737 * configure: Regenerated. 738 7392014-01-06 Gary Benson <gbenson@redhat.com> 740 741 * cp-demangle.c (struct d_print_info): New fields 742 next_saved_scope, copy_templates, next_copy_template and 743 num_copy_templates. 744 (d_count_templates): New function. 745 (d_print_init): New parameter "dc". 746 Estimate numbers of templates and scopes required. 747 (d_print_free): Removed function. 748 (cplus_demangle_print_callback): Allocate stack for 749 templates and scopes. Removed call to d_print_free. 750 (d_copy_templates): Removed function. 751 (d_save_scope): New function. 752 (d_get_saved_scope): Likewise. 753 (d_print_comp): Replace state saving/restoring code with 754 calls to d_save_scope and d_get_saved_scope. 755 7562013-12-23 Bill Maddox <maddox@google.com> 757 758 * cp-demangle.c (cplus_demangle_fill_ctor,cplus_demangle_fill_dtor): 759 Handle unified ctor/dtor. 760 (d_ctor_dtor_name): Handle unified ctor/dtor. 761 7622013-11-22 Cary Coutant <ccoutant@google.com> 763 764 PR other/59195 765 * cp-demangle.c (struct d_info_checkpoint): New struct. 766 (struct d_print_info): Add current_template field. 767 (d_operator_name): Set flag when processing a conversion 768 operator. 769 (cplus_demangle_type): When processing <template-args> for 770 a conversion operator, backtrack if necessary. 771 (d_expression_1): Renamed from d_expression. 772 (d_expression): New wrapper around d_expression_1. 773 (d_checkpoint): New function. 774 (d_backtrack): New function. 775 (d_print_init): Initialize current_template. 776 (d_print_comp): Set current_template. 777 (d_print_cast): Put current_template in scope for 778 printing conversion operator name. 779 (cplus_demangle_init_info): Initialize is_expression and 780 is_conversion. 781 * cp-demangle.h (struct d_info): Add is_expression and 782 is_conversion fields. 783 * testsuite/demangle-expected: New test cases. 784 7852013-11-15 Andreas Schwab <schwab@linux-m68k.org> 786 787 * configure: Regenerate. 788 7892013-11-12 Uros Bizjak <ubizjak@gmail.com> 790 791 * cp-demangle.c (d_copy_templates): Cast result of malloc 792 to (struct d_print_template *). 793 (d_print_comp): Cast result of realloc to (struct d_saved scope *). 794 7952013-10-29 Marc Glisse <marc.glisse@inria.fr> 796 797 PR tree-optimization/58689 798 * concat.c: Remove note about xmalloc. 799 8002013-10-27 Gerald Pfeifer <gerald@pfeifer.com> 801 802 * testsuite/test-demangle.c: Include unistd.h. 803 8042013-10-25 Gary Benson <gbenson@redhat.com> 805 806 * cp-demangle.c (struct d_saved_scope): New structure. 807 (struct d_print_info): New fields saved_scopes and 808 num_saved_scopes. 809 (d_print_init): Initialize the above. 810 (d_print_free): New function. 811 (cplus_demangle_print_callback): Call the above. 812 (d_copy_templates): New function. 813 (d_print_comp): New variables saved_templates and 814 need_template_restore. 815 [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]: 816 Capture scope the first time the component is traversed, and use the 817 captured scope for subsequent traversals. 818 * testsuite/demangle-expected: Add regression test. 819 8202013-10-23 Gerald Pfeifer <gerald@pfeifer.com> 821 822 * testsuite/test-expandargv.c: Include unistd.h. 823 8242013-10-15 David Malcolm <dmalcolm@redhat.com> 825 826 * configure.ac: If --enable-host-shared, use -fPIC. 827 * configure: Regenerate. 828 8292013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com> 830 831 * cp-demangle.c (d_name): Demangle local-source-names. 832 * testsuite/demangle-expected: New test. 833 8342013-09-10 Paolo Carlini <paolo.carlini@oracle.com> 835 836 PR bootstrap/58386 837 Revert: 838 839 2013-09-10 Gary Benson <gbenson@redhat.com> 840 841 * cp-demangle.c: Include hashtab.h. 842 (struct d_print_info): New field saved_scopes. 843 (d_print_init): Initialize the above. 844 (d_print_free): New function. 845 (cplus_demangle_print_callback): Call the above. 846 (struct d_saved_scope): New structure. 847 (d_store_scope): New function. 848 (d_free_scope) Likewise. 849 (d_restore_scope) Likewise. 850 (d_hash_saved_scope) Likewise. 851 (d_equal_saved_scope) Likewise. 852 (d_print_comp): New variable saved_scope. 853 [DEMANGLE_COMPONENT_REFERENCE, 854 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first 855 time the component is traversed, and use the captured scope for 856 subsequent traversals. 857 * testsuite/demangle-expected: Add regression test. 858 8592013-09-10 Gary Benson <gbenson@redhat.com> 860 861 * cp-demangle.c: Include hashtab.h. 862 (struct d_print_info): New field saved_scopes. 863 (d_print_init): Initialize the above. 864 (d_print_free): New function. 865 (cplus_demangle_print_callback): Call the above. 866 (struct d_saved_scope): New structure. 867 (d_store_scope): New function. 868 (d_free_scope) Likewise. 869 (d_restore_scope) Likewise. 870 (d_hash_saved_scope) Likewise. 871 (d_equal_saved_scope) Likewise. 872 (d_print_comp): New variable saved_scope. 873 [DEMANGLE_COMPONENT_REFERENCE, 874 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first 875 time the component is traversed, and use the captured scope for 876 subsequent traversals. 877 * testsuite/demangle-expected: Add regression test. 878 8792013-08-20 Alan Modra <amodra@gmail.com> 880 881 * floatformat.c (floatformat_ibm_long_double): Rename to.. 882 (floatformat_ibm_long_double_big): ..this. 883 (floatformat_ibm_long_double_little): New. 884 8852013-07-09 Tristan Gingold <gingold@adacore.com> 886 887 * makefile.vms (OBJS): Add dwarfnames.obj 888 8892013-05-31 Matt Burgess <matthew@linuxfromscratch.org> 890 891 PR other/56780 892 * configure.ac: Move test for --enable-install-libiberty 893 outside of the 'with_target_subdir' test so that it actually gets 894 run. Add output messages to show the test result. 895 * configure: Regenerate. 896 * Makefile.in (install_to_libdir): Place the 897 installation of the libiberty library in the same guard as that 898 used for the headers to prevent it being installed unless 899 requested via --enable-install-libiberty. 900 9012013-05-06 David Edelsohn <dje.gcc@gmail.com> 902 Peter Bergner <bergner@vnet.ibm.com> 903 Segher Boessenkool <segher@kernel.crashing.org> 904 Jakub Jelinek <jakub@redhat.com> 905 906 * hashtab.c (hash_pointer): Remove conditional and avoid 907 unexecuted shift equal to wordsize. 908 9092013-04-22 Andi Kleen <ak@linux.intel.com> 910 911 * hashtab.c (hash_pointer): Move to end of file and reimplement. 912 9132013-04-03 Jason Merrill <jason@redhat.com> 914 915 * cp-demangle.c (cplus_demangle_type): Fix function quals. 916 (d_pointer_to_member_type): Simplify. 917 918 Demangle C++11 ref-qualifier. 919 * cp-demangle.c (d_ref_qualifier): New. 920 (d_nested_name, d_function_type): Use it. 921 (d_parmlist): Don't get confused by a ref-qualifier. 922 (cplus_demangle_type): Reorder ref-qualifier. 923 (d_pointer_to_member_type): Likewise. 924 (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and 925 DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS. 926 (d_make_comp, has_return_type, d_encoding): Likewise. 927 (d_print_comp, d_print_mod_list, d_print_mod): Likewise. 928 (d_print_function_type, is_ctor_or_dtor): Likewise. 929 9302013-03-27 Kai Tietz <ktietz@redhat.com> 931 932 * configure: Regenerated. 933 9342013-03-06 Tobias Burnus <burnus@net-b.de> 935 936 * libiberty.texi: Update comment, remove lowersections. 937 * obstacks.texi: Regenerate. 938 9392013-03-05 Jakub Jelinek <jakub@redhat.com> 940 941 PR middle-end/56526 942 * simple-object-mach-o.c (simple_object_mach_o_segment): Initialize 943 wrapper_sect_offset to avoid a warning. 944 9452013-03-01 Andreas Schwab <schwab@linux-m68k.org> 946 947 * obstacks.texi (Obstacks): Trim @node to only contain the 948 node name. 949 * libiberty.texi (Obstacks): Lower section. 950 9512013-02-14 Jason Merrill <jason@redhat.com> 952 953 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG. 954 (d_print_comp): Likewise. 955 9562013-02-09 Jakub Jelinek <jakub@redhat.com> 957 958 PR other/56245 959 * regex.c (PTR_INT_TYPE): Define. 960 (EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE. 961 9622013-01-31 Kai Tietz <ktietz@redhat.com> 963 964 PR other/54620 965 * sha1.c (sha1_process_block): Handle case that size_t is 966 a wider-integer-scalar as a 32-bit unsigned integer. 967 968 PR other/53413 969 * md5.c (md5_process_block): Handle case that size_t is 970 a wider-integer-scalar a 32-bit unsigned integer. 971 9722013-01-04 Ian Lance Taylor <iant@google.com> 973 974 PR other/54800 975 * simple-object-mach-o.c (simple_object_mach_o_segment): Don't 976 bother to zero out a buffer we are about to set anyhow. 977 9782013-01-01 David Edelsohn <dje.gcc@gmail.com> 979 980 * simple-object-xcoff.c: New file. 981 * Makefile.in: Add it to build machinery. 982 * simple-object-common.h (simple_object_xcoff_functions): Declare. 983 * simple-object.c (format_functions): Add 984 simple_object_xcoff_functions. 985 9862012-11-10 Jason Merrill <jason@redhat.com> 987 988 * cp-demangle.c (d_unqualified_name): Handle abi tags here. 989 (d_name): Not here. 990 9912012-11-09 Jason Merrill <jason@redhat.com> 992 993 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_TAGGED_NAME. 994 (d_make_comp, d_find_pack, d_print_comp): Likewise. 995 (d_abi_tags): New. 996 (d_name): Call it. 997 9982012-10-08 Jason Merrill <jason@redhat.com> 999 1000 * cp-demangle.c (d_special_name, d_dump): Handle TH and TW. 1001 (d_make_comp, d_print_comp): Likewise. 1002 10032012-09-18 Ian Lance Taylor <iant@google.com> 1004 1005 * strnlen.c: New file. 1006 * configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not 1007 present. 1008 * Makefile.in: Rebuild dependencies. 1009 (CFILES): Add strnlen.c. 1010 (CONFIGURED_OFILES): Add ./strnlen.$(objext). 1011 * configure, config.in, functions.texi: Rebuild. 1012 1013 * maint-tool: Accept .def files in the include directory. 1014 10152012-09-18 Florian Weimer <fweimer@redhat.com> 1016 1017 PR other/54411 1018 * objalloc.c (_objalloc_alloc): Add overflow check covering 1019 alignment and CHUNK_HEADER_SIZE addition. 1020 10212011-08-28 H.J. Lu <hongjiu.lu@intel.com> 1022 1023 * argv.c (dupargv): Replace malloc with xmalloc. Don't check 1024 xmalloc return. 1025 (buildargv): Likewise. Also replace strdup with xstrdup. 1026 (expandargv): Don't check dupargv return. 1027 10282011-08-28 H.J. Lu <hongjiu.lu@intel.com> 1029 1030 PR binutils/14526 1031 * argv.c (buildargv): Replace alloca with xmalloc/free. 1032 10332012-08-17 Andreas Schwab <schwab@linux-m68k.org> 1034 1035 * floatformat.c (floatformat_to_double): Correctly handle numbers 1036 between 1 and 2. Simplify handling of denormal number. 1037 (main): Test with 1.1. 1038 10392012-07-31 Mike Frysinger <vapier@gentoo.org> 1040 1041 * md5.c (md5_finish_ctx): Declare swap_bytes. Assign SWAP() output 1042 to swap_bytes, and then call memcpy to move it to ctx->buffer. 1043 10442012-07-26 Kazu Hirata <kazu@codesourcery.com> 1045 Sandra Loosemore <sandra@codesourcery.com> 1046 1047 * pex-win32.c (pex_win32_exec_child): Only close original file 1048 descriptors if child is launched successfully. 1049 10502012-07-18 Jason Merrill <jason@redhat.com> 1051 1052 * cp-demangle.c (cplus_demangle_operators): Add *_cast. 1053 (op_is_new_cast): New. 1054 (d_expression, d_print_comp): Check it. 1055 10562012-07-13 Doug Evans <dje@google.com> 1057 1058 * filename_cmp.c (filename_hash, filename_eq): New functions. 1059 10602012-06-29 Andreas Schwab <schwab@linux-m68k.org> 1061 1062 * copying-lib.texi (Library Copying): Don't use @heading inside 1063 @enumerate. 1064 10652012-05-22 Tom Tromey <tromey@redhat.com> 1066 1067 http://sourceware.org/bugzilla/show_bug.cgi?id=14065 1068 * testsuite/demangle-expected: Add regression test. 1069 * cp-demangle.c (d_find_pack): Return NULL for 1070 DEMANGLE_COMPONENT_UNNAMED_TYPE. 1071 10722012-04-27 Tom Tromey <tromey@redhat.com> 1073 1074 * dwarfnames.c: New file. 1075 * Makefile.in (CFILES): Add dwarfnames. 1076 (REQUIRED_OFILES): Add dwarfnames. 1077 (./dwarfnames.$(objext)): New target. 1078 10792012-04-04 Tristan Gingold <gingold@adacore.com> 1080 1081 * pex-unix.c (to_ptr32): Fix style. 1082 10832012-04-02 Tristan Gingold <gingold@adacore.com> 1084 1085 * stack-limit.c: Includes ansidecl.h. 1086 (stack_limit_increase): Add ATTRIBUTE_UNUSED 1087 10882012-03-20 Jason Merrill <jason@redhat.com> 1089 1090 * cp-demangle.c (cplus_demangle_type): Handle 'auto'. 1091 10922012-03-07 Jason Merrill <jason@redhat.com> 1093 1094 * cp-demangle.c (cplus_demangle_operators): Add li. 1095 (d_unqualified_name): Handle it specially. 1096 10972012-01-26 Jakub Jelinek <jakub@redhat.com> 1098 1099 * make-relative-prefix.c (make_relative_prefix_1): Avoid warning 1100 about using preprocessor directives inside of macro arguments. 1101 11022012-01-22 Douglas B Rupp <rupp@gnat.com> 1103 1104 * configure: Regenerate. 1105 11062012-01-10 Jason Merrill <jason@redhat.com> 1107 1108 * cp-demangle.c (d_print_comp) [DEMANGLE_COMPONENT_OPERATOR]: 1109 Omit a trailing space in the operator name. 1110 11112012-01-06 Jason Merrill <jason@redhat.com> 1112 1113 PR c++/6057 1114 PR c++/48051 1115 PR c++/50855 1116 PR c++/51322 1117 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and 1118 DEMANGLE_COMPONENT_INITIALIZER_LIST. 1119 (d_make_comp): Likewise. Allow null right arg for 1120 DEMANGLE_COMPONENT_TRINARY_ARG2. 1121 (cplus_demangle_operators): Adjust new/delete; add .*, :: and throw. 1122 (d_template_args, d_template_arg): Handle 'J' for argument packs. 1123 (d_exprlist): Add terminator parm. 1124 (d_expression, d_print_comp): Handle initializer lists, nullary 1125 expressions, prefix/suffix operators, and new. 1126 (d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME 1127 and DEMANGLE_COMPONENT_INITIALIZER_LIST. 1128 * testsuite/demangle-expected: Add tests. 1129 1130 * cp-demangle.c (cplus_demangle_type): decltype, pack expansion 1131 and vector are substitutable. 1132 (cplus_demangle_operators): Sort. 1133 11342012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 1135 1136 * configure: Regenerate. 1137 11382012-01-02 Jakub Jelinek <jakub@redhat.com> 1139 1140 * make-relative-prefix.c (make_relative_prefix_1): Avoid 1141 stack overflow if PATH contains just a single entry and 1142 HOST_EXECUTABLE_SUFFIX needs to be used. 1143 1144 PR driver/48306 1145 * make-relative-prefix.c: Include sys/stat.h. 1146 (make_relative_prefix_1): If access succeeds, check also stat 1147 if nstore is a regular file. 1148 11492011-12-20 Andreas Schwab <schwab@linux-m68k.org> 1150 1151 * configure: Regenerate. 1152 11532011-12-20 Tristan Gingold <gingold@adacore.com> 1154 1155 * aclocal.m4: Assume strncmp works in cross case. 1156 * configure: Regenerate 1157 11582011-12-19 Andreas Schwab <schwab@linux-m68k.org> 1159 1160 * configure: Regenerate. 1161 11622011-11-07 Richard Henderson <rth@redhat.com> 1163 1164 Merged from transactional-memory. 1165 1166 * cp-demangle.c (cplus_demangle_fill_ctor): Accept 1167 gnu_v3_object_ctor_group. 1168 (cplus_demangle_fill_dtor): Accept gnu_v3_object_dtor_group. 1169 (d_ctor_dtor_name): Recognize gnu_v3_object_ctor_group 1170 and gnu_v3_object_dtor_group. 1171 (d_dump): Handle DEMANGLE_COMPONENT_TRANSACTION_CLONE 1172 and DEMANGLE_COMPONENT_NONTRANSACTION_CLONE. 1173 (d_make_comp, d_print_comp): Likewise. 1174 (d_special_name): Generate them. 1175 11762011-11-04 Jason Merrill <jason@redhat.com> 1177 1178 PR c++/48370 1179 * cp-demangle.c (d_special_name, d_print_comp): Handle a 1180 discriminator number on DEMANGLE_COMPONENT_REFTEMP. 1181 11822011-11-02 Doug Evans <dje@google.com> 1183 1184 * Makefile.in (CFILES): Add timeval-utils.c. 1185 (REQUIRED_OFILES): Add timeval-utils.$(objext). 1186 (INSTALLED_HEADERS): Add timeval-utils.h. 1187 (timeval-utils.$(objext)): Add rule. 1188 11892011-10-28 Ian Lance Taylor <iant@google.com> 1190 1191 * setproctitle.c (setproctitle): Use "GNU/Linux" in comment. 1192 11932011-10-26 Iain Sandoe <iains@gcc.gnu.org> 1194 1195 PR target/48108 1196 * simple-object-mach-o.c (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX, 1197 GNU_WRAPPER_NAMES): New macros. 1198 (simple_object_mach_o_segment): Handle wrapper scheme. 1199 (simple_object_mach_o_write_section_header): Allow the segment name 1200 to be supplied. 1201 (simple_object_mach_o_write_segment): Handle wrapper scheme. Ensure 1202 that the top-level segment name in the load command is empty. 1203 (simple_object_mach_o_write_to_file): Determine the number of 1204 sections during segment output, use that in writing the header. 1205 12062011-10-10 Ian Lance Taylor <iant@google.com> 1207 1208 PR c++/48665 1209 * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a 1210 function type, change them to apply to the "this" parameter. 1211 * testsuite/demangle-expected: Add test case. 1212 12132011-09-28 Doug Evans <dje@google.com> 1214 1215 * timeval-utils.c: New file. 1216 1217 * argv.c (countargv): New function. 1218 12192011-09-23 Cary Coutant <ccoutant@google.com> 1220 1221 PR 40831 1222 * cp-demangle.c (d_make_comp): Add new component type. 1223 (cplus_demangle_mangled_name): Check for clone suffixes. 1224 (d_parmlist): Don't error out if we see '.'. 1225 (d_clone_suffix): New function. 1226 (d_print_comp): Print info for clone suffixes. 1227 * testsuite/demangle-expected: Add new testcases. 1228 12292011-09-23 Ian Lance Taylor <iant@google.com> 1230 Pierre Vittet <piervit@pvittet.com> 1231 1232 * md5.c (md5_process_bytes): Correct handling of unaligned 1233 buffer. 1234 12352011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 1236 1237 * aclocal.m4: Include ../config/picflag.m4. 1238 * configure.ac (GCC_PICFLAG): Call it. 1239 (enable_shared): Clear PICFLAG unless shared. 1240 * configure: Regenerate. 1241 12422011-08-12 Steve Ellcey <sje@cup.hp.com> 1243 1244 * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer. 1245 12462011-08-06 Uros Bizjak <ubizjak@gmail.com> 1247 1248 * testsuite/test-expandargv.c (writeout_test): Check result of fwrite. 1249 12502011-08-01 Jason Merrill <jason@redhat.com> 1251 1252 PR c++/49932 1253 * cp-demangle.c (d_prefix): Handle decltype. 1254 * testsuite/demangle-expected: Test it. 1255 12562011-07-26 H.J. Lu <hongjiu.lu@intel.com> 1257 1258 * testsuite/demangle-expected: Remove an extra line. 1259 12602011-07-26 Ian Lance Taylor <iant@google.com> 1261 1262 * cp-demangle.c (d_print_init): Initialize pack_index field. 1263 (d_print_comp): Check for NULL template argument. 1264 * testsuite/demangle-expected: Add test case. 1265 12662011-07-22 Gerald Pfeifer <gerald@pfeifer.com> 1267 1268 PR target/49817 1269 * stack-limit.c: Include <stdint.h>. 1270 12712011-07-22 Jakub Jelinek <jakub@redhat.com> 1272 1273 PR c++/49756 1274 * stack-limit.c: New file. 1275 * Makefile.in: Regenerate deps. 1276 (CFILES): Add stack-limit.c. 1277 (REQUIRED_OFILES): Add ./stack-limit.$(objext). 1278 * configure.ac (checkfuncs): Add getrlimit and setrlimit. 1279 (AC_CHECK_FUNCS): Likewise. 1280 * configure: Regenerated. 1281 * config.in: Regenerated. 1282 12832011-07-04 Jason Merrill <jason@redhat.com> 1284 1285 * cp-demangle.c (d_expression): Handle 'this'. 1286 (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise. 1287 12882011-07-01 Joel Brobecker <brobecker@adacore.com> 1289 1290 * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of 1291 HAVE_CASE_INSENSITIVE_FILE_SYSTEM. 1292 12932011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com> 1294 1295 PR debug/49408 1296 * cp-demangle.c (d_print_comp): Suppress argument list for function 1297 references by the '&' unary operator. Keep also already processed 1298 variant without the argument list. Suppress argument list types for 1299 function call used in an expression. 1300 * testsuite/demangle-expected: Fix excessive argument list types in 1301 `test for typed function in decltype'. New testcase for no argument 1302 list types printed. 3 new testcases for function references by the 1303 '&' unary operator.. 1304 13052011-06-20 Jason Merrill <jason@redhat.com> 1306 1307 PR c++/37089 1308 * cp-demangle.c (d_print_comp): Handle reference smashing. 1309 * testsuite/demangle-expected: Test it. 1310 13112011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com> 1312 1313 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: 1314 Suppress d_print_mod for DMGL_RET_POSTFIX. 1315 * testsuite/demangle-expected: New testcases for --ret-postfix. 1316 13172011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com> 1318 1319 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do 1320 not pass DMGL_RET_POSTFIX or DMGL_RET_DROP. Support DMGL_RET_DROP. 1321 * testsuite/demangle-expected: New testcases for --ret-drop. 1322 * testsuite/test-demangle.c: Document --ret-drop in a comment. 1323 (main): New variable ret_drop, fill it, call cplus_demangle with it. 1324 13252011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com> 1326 1327 * cp-demangle.c (struct d_print_info): Remove field options. 1328 (d_print_init): Remove parameter options. 1329 (cplus_demangle_print_callback): Update all the callers. 1330 (d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type) 1331 (d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr): 1332 Add parameter options, update all the callers. 1333 13342011-04-20 Jim Meyering <meyering@redhat.com> 1335 1336 * cp-demint.c (cplus_demangle_v3_components): Remove useless 1337 if-before-free. 1338 * cplus-dem.c (squangle_mop_up): Likewise. 1339 (delete_non_B_K_work_stuff): Likewise. 1340 * pex-common.c (pex_free): Likewise. 1341 * pex-msdos.c (pex_msdos_cleanup): Likewise. 1342 * pex-win32.c (mingw_rootify, msys_rootify): Likewise. 1343 (win32_spawn): Likewise. 1344 * regex.c (FREE_VAR, weak_alias): Likewise. 1345 * spaces.c (spaces): Likewise. 1346 13472011-04-10 Jim Meyering <meyering@redhat.com> 1348 1349 Avoid memory overrun in a test leading to potential double-free. 1350 * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error: 1351 i.e., do copy the trailing NUL byte. 1352 13532011-03-31 Tristan Gingold <gingold@adacore.com> 1354 1355 * makefile.vms (OBJS): Add filename_cmp.obj 1356 13572011-02-28 Kai Tietz <kai.tietz@onevision.com> 1358 1359 * filename_cmp.c (filename_ncmp): New function. 1360 * functions.texi: Regenerated. 1361 13622011-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1363 1364 * splay-tree.c: Escape wrapping newlines in texinfo markup 1365 with '@', to fix function declaration output rendering. 1366 * gather-docs: Relax and improve macro name matching to actually 1367 match all current names and to allow input line wrapping. 1368 * bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c, 1369 hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c, 1370 memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c, 1371 pexecute.txh, random.c, setenv.c, setproctitle.c, 1372 simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c, 1373 strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c: 1374 Wrap long texinfo input lines. 1375 * functions.texi: Regenerate. 1376 13772011-01-18 Mike Frysinger <vapier@gentoo.org> 1378 1379 * .gitignore: New file. 1380 13812010-12-08 Doug Evans <dje@google.com> 1382 1383 * splay-tree.c (splay_tree_foreach_helper): Remove arg `sp', 1384 all callers updated. Rewrite to be non-recursive. 1385 13862010-11-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 1387 1388 * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>. 1389 13902010-11-20 Anthony Green <green@moxielogic.com> 1391 1392 * configure.ac: Turn PR_SET_NAME link test into a test for 1393 sys/prctl.h. 1394 * configure, config.in: Rebuilt. 1395 * setproctitle.c: Test for HAVE_SYS_PRCTL_H. 1396 (setproctitle) Test for PR_SET_NAME definition. 1397 13982010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1399 1400 PR other/46202 1401 * Makefile.in (install-strip): New phony target. 1402 (install): Also mark as phony. 1403 14042010-11-16 Ian Lance Taylor <iant@google.com> 1405 1406 * simple-object.c (simple_object_attributes_merge): Rename from 1407 simple_object_attributes_compare. Call merge field. 1408 * simple-object-common.h (struct simple_object_functions): Rename 1409 attributes_compare field to attribute_merge. 1410 * simple-object-elf.c (EM_SPARC): Define. 1411 (EM_SPARC32PLUS): Define. 1412 (simple_object_elf_attributes_merge): Renamed from 1413 simple_object_elf_attributes_compare. Permit EM_SPARC and 1414 EM_SPARC32PLUS objects to be merged. 1415 (simple_object_elf_functions): Update function name. 1416 * simple-object-coff.c (simple_object_coff_attributes_merge): 1417 Rename from simple_object_coff_attributes_compare. 1418 (simple_object_coff_functions): Update function name. 1419 * simple-object-mach-o.c (simple_object_mach_o_attributes_merge): 1420 Renamed from simple_object_mach_o_attributes_compare. 1421 (simple_object_mach_o_functions): Update function name. 1422 14232010-11-16 H.J. Lu <hongjiu.lu@intel.com> 1424 1425 PR other/42670 1426 PR binutils/11137 1427 * cp-demangle.c (d_make_demangle_mangled_name): New. 1428 (d_demangle_callback): Use it on DCT_GLOBAL_XTORS. 1429 1430 * testsuite/demangle-expected: Updated. 1431 14322010-11-14 Kai Tietz <kai.tietz@onevision.com> 1433 1434 * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading 1435 offset. 1436 14372010-11-12 Ian Lance Taylor <iant@google.com> 1438 1439 PR other/46332 1440 * cp-demangle.c (d_print_function_type): Don't print parentheses 1441 if there are no modifiers to print. 1442 * testsuite/demangle-expected: Tweak one test case, add another. 1443 14442010-11-04 Richard Henderson <rth@redhat.com> 1445 1446 * configure.ac (AC_CHECK_HEADERS): Add process.h. 1447 (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list. 1448 (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe. 1449 * configure, config.in: Rebuild. 1450 * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function. 1451 [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions. 1452 14532010-11-02 Ian Lance Taylor <iant@google.com> 1454 Dave Korn <dave.korn.cygwin@gmail.com> 1455 Iain Sandoe <iains@gcc.gnu.org> 1456 1457 * simple-object.c: New file. 1458 * simple-object-common.h: New file. 1459 * simple-object-elf.c: New file. 1460 * simple-object-mach-o.c: New file. 1461 * simple-object-coff.c: New file. 1462 * simple-object.txh: New file. 1463 * configure.ac: Add AC_TYPE_SSIZE_T. 1464 * Makefile.in: Rebuild dependencies. 1465 (CFILES): Add simple-object.c, simple-object-coff, 1466 simple-object-elf.c, and simple-object-mach-o.c. 1467 (REQUIRED_OFILES): Add corresponding object files. 1468 * configure: Rebuild. 1469 * config.in: Rebuild. 1470 * functions.texi: Rebuild. 1471 14722010-10-29 Ian Lance Taylor <iant@google.com> 1473 1474 * setproctitle.c: Add space after function name in @deftypefn 1475 comment. 1476 * functions.texi: Rebuild. 1477 14782010-10-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1479 1480 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete. 1481 * configure: Regenerate. 1482 14832010-10-07 Andi Kleen <ak@linux.intel.com> 1484 1485 * configure: Regenerate. 1486 * configure.ac: Turn PR_SET_NAME check into link check. 1487 14882010-10-06 Andi Kleen <ak@linux.intel.com> 1489 1490 * Makefile.in (CFILES): Add setproctitle. 1491 (CONFIGURED_OFILES): Add setproctitle. 1492 (setproctitle): Add rule. 1493 * config.in: Regenerate. 1494 * configure: Regenerate. 1495 * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle. 1496 * setproctitle.c: Add file. 1497 * functions.texi: Regenerate. 1498 14992010-09-22 Tristan Gingold <gingold@adacore.com> 1500 1501 * cplus-dem.c (ada_demangle): Add comments. 1502 Handle stream and controlled type operations. 1503 Decoding of some uppercase letters moved before separators. 1504 * testsuite/demangle-expected: Add tests. 1505 15062010-09-10 James Lyon <jameslyon0@googlemail.com> 1507 1508 http://sourceware.org/bugzilla/show_bug.cgi?id=11572 1509 * cp-demangle.c (d_find_pack): Add case for 1510 DEMANGLE_COMPONENT_LAMBDA. 1511 * testsuite/demangle-expected: Add regression test. 1512 15132010-09-08 Tristan Gingold <gingold@adacore.com> 1514 1515 PR 44001 1516 * maint-tool (missing): Fix pattern for object file. 1517 (deps): Use $(objext) for object extension. 1518 * Makefile.in (objext): New variable. 1519 Replace all occurences of .o with .$(objext) 1520 Regenerate with maint-deps 1521 * configure.ac (pexecute): Set to the basename. 1522 * configure: Regenerate. 1523 15242010-08-20 Maciej W. Rozycki <macro@codesourcery.com> 1525 1526 * pex-common.c (pex_read_err): Set stderr_pipe to -1 if a 1527 corresponding stream has been opened. 1528 (pex_free): Close pipe file descriptors corresponding to child's 1529 stdout and stderr before waiting. 1530 15312010-08-13 Nick Clifton <nickc@redhat.com> 1532 1533 * argv.c (expandargv): Limit the number of times that response 1534 files are opened in order to prevent infinite recursion. 1535 15362010-07-21 Pascal Obry <obry@adacore.com> 1537 1538 * make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed. 1539 15402010-07-06 Ken Werner <ken.werner@de.ibm.com> 1541 1542 * floatformat.c (floatformat_ieee_half_big): New variable. 1543 (floatformat_ieee_half_little): Likewise. 1544 15452010-06-14 Gerald Pfeifer <gerald@pfeifer.com> 1546 1547 * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice). 1548 Update copyright years. 1549 Move to GFDL 1.3. 1550 15512010-06-10 Jakub Jelinek <jakub@redhat.com> 1552 1553 PR other/43838 1554 * cp-demangle.c (struct d_print_info): Add flush_count field. 1555 (d_print_init): Initialize it to 0. 1556 (d_print_flush): Increment it. 1557 (d_print_comp): If needed flush before appending ", ". Only 1558 decrement dpi->len if no flushes happened during the recursive 1559 call. 1560 * testsuite/demangle-expected: Add a test for this. 1561 15622010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> 1563 1564 * splay-tree.c: Update copyright years. 1565 (splay_tree_new_typed_alloc): New. 1566 (splay_tree_new_with_allocator): Use it. 1567 1568 * hashtab.c: Update copyright years. 1569 (htab_create_typed_alloc): New. 1570 (htab_create_alloc): Use it. 1571 1572 * functions.texi: Regenerate. 1573 15742010-06-03 Joern Rennecke <joern.rennecke@embecosm.com> 1575 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1576 1577 PR bootstrap/42798 1578 * configure.ac: Check for declaration of 'basename(char *)'. 1579 * configure: Regenerate. 1580 15812010-05-26 Kai Tietz <kai.tietz@onevision.com> 1582 1583 * testsuite/demangle-expected: Add tests for __int128 1584 and unsigned __int128 types. 1585 15862010-05-06 Magnus Fromreide <magfr@lysator.liu.se> 1587 Jason Merrill <jason@redhat.com> 1588 1589 * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr. 1590 (cplus_demangle_type): Handle nullptr. 1591 * testsuite/demangle-expected: Test it. 1592 15932010-04-23 Pedro Alves <pedro@codesourcery.com> 1594 1595 * lbasename.c (lbasename): Split into ... 1596 (unix_lbasename, dos_basename): ... these. 1597 (lbasename): ... and reimplement on top of them. 1598 * Makefile.in (lbasename.o): Add dependency on 1599 $(INCDIR)/filenames.h. 1600 16012010-04-07 Jakub Jelinek <jakub@redhat.com> 1602 1603 * regex.c (byte_re_match_2_internal): Avoid set but not used 1604 warning. 1605 16062010-03-22 Jason Merrill <jason@redhat.com> 1607 1608 * cp-demangle.c (d_print_mod): Use () rather than [] for vectors. 1609 16102010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1611 1612 * Makefile.in (all): Do not use exec. 1613 16142010-02-04 Tom Tromey <tromey@redhat.com> 1615 1616 * testsuite/demangle-expected: Add missing --format=gnu-v3. 1617 16182010-02-03 Jason Merrill <jason@redhat.com> 1619 1620 * cp-demangle.c (d_expression): Handle dependent operator name. 1621 1622 PR c++/12909 1623 * cp-demangle.c (d_number_component, d_vector_type): New. 1624 (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors. 1625 16262010-01-25 Ian Lance Taylor <iant@google.com> 1627 1628 * cp-demangle.c (cplus_demangle_type): Check for invalid type 1629 after "DF". 1630 * testsuite/demangle-expected: Add test. 1631 16322010-01-20 Jason Merrill <jason@redhat.com> 1633 1634 PR c++/42338 1635 * cp-demangle.c (d_print_comp): Fix array index printing. 1636 16372010-01-11 Tristan Gingold <gingold@adacore.com> 1638 1639 * cplus-dem.c (ada_demangle): Remove prototype. 1640 (grow_vect): Removed. 1641 (ada_demangle): Rewritten. 1642 (cplus_demangle): Fix indentation. 1643 * testsuite/demangle-expected: Add tests for Ada. 1644 16452010-01-09 Ian Lance Taylor <iant@google.com> 1646 1647 PR other/42230 1648 * cp-demangle.c (d_demangle): Return dgs.alc on success. 1649 16502010-01-04 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> 1651 1652 PR target/42316 1653 * configure.ac (PICFLAG): Use -fPIC on SH hosts. 1654 * configure: Regenerate. 1655 16562009-12-07 Doug Evans <dje@google.com> 1657 1658 * pex-unix.c (pex_unix_exec_child): Save/restore environ. 1659 16602009-11-26 Ben Elliston <bje@au.ibm.com> 1661 1662 * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order. 1663 * configure: Regenerate. 1664 16652009-11-25 Ben Elliston <bje@au.ibm.com> 1666 1667 * functions.texi: Rebuild. 1668 16692009-11-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 1670 Ben Elliston <bje@au.ibm.com> 1671 1672 * README: Mention changes to Makefile.in and functions.texi. 1673 * gather-docs: Mention 'make stamp-functions' in the header. 1674 16752009-11-23 Ben Elliston <bje@au.ibm.com> 1676 Ian Lance Taylor <iant@google.com> 1677 1678 * pex-unix.c (pex_child_error): Improve warning avoidance by 1679 checking the results of write(3) and exiting with -2 if any write 1680 returns a negative value. 1681 16822009-11-22 Steve Ward <planet36@gmail.com> 1683 1684 * dyn-string.c (dyn_string_append_char): Fix typo in comment. 1685 16862009-11-20 Ben Elliston <bje@au.ibm.com> 1687 1688 * pex-unix.c (pex_child_error): Define writeerr macro to avoid 1689 unused result warnings from write(3) calls. Undefine writeerr 1690 after all uses. 1691 16922009-10-08 Daniel Gutson <dgutson@codesourcery.com> 1693 Daniel Jacobowitz <dan@codesourcery.com> 1694 Pedro Alves <pedro@codesourcery.com> 1695 1696 * argv.c (consume_whitespace): New function. 1697 (only_whitespace): New function. 1698 (buildargv): Always use ISSPACE by calling consume_whitespace. 1699 (expandargv): Skip empty files. Do not stop at the first empty 1700 argument (calling only_whitespace).. 1701 * testsuite/test-expandargv.c: (test_data): Test empty lines 1702 and empty arguments. 1703 (run_tests): Fix false positives due to shorter arguments. 1704 17052009-09-30 Martin Thuresson <martint@google.com> 1706 1707 * regex.c (byte_re_match_2_internal): Split declaration and 1708 assignment to avoid -Wc++-compat warning due to goto. 1709 17102009-09-29 Jason Merrill <jason@redhat.com> 1711 1712 * Makefile.in: Enable demangle target. 1713 * cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New. 1714 (d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas. 1715 (d_parmlist): Factor out from d_bare_function_type. 1716 (d_compact_number): Factor out from d_template_param and d_expression. 1717 (d_append_num): Factor out from d_print_comp. 1718 (d_print_comp, d_print_mod_list): Handle lambdas. 1719 * testsuite/demangle-expected: Add lambda tests. 1720 17212009-09-23 Matthew Gingell <gingell@adacore.com> 1722 1723 * cplus-dem.c (ada_demangle): Ensure demangled is freed. 1724 17252009-09-22 Ozkan Sezer <sezeroz@gmail.com> 1726 1727 * choose-temp.c: Include unistd.h for mingw targets. 1728 17292009-09-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 1730 1731 * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>. 1732 17332009-09-15 Tristan Gingold <gingold@adacore.com> 1734 1735 * config.h-vms (intptr_t): Define to compile hashtab.c 1736 17372009-09-04 Ozkan Sezer <sezeroz@gmail.com> 1738 1739 PR target/39065 1740 * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t 1741 with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T. 1742 * config.in: Regenerated. 1743 * configure: Regenerated. 1744 17452009-09-03 Ozkan Sezer <sezeroz@gmail.com> 1746 1747 PR target/39065 1748 * configure.ac: Also check for intptr_t. 1749 * config.h.in: Regenerated. 1750 * configure: Regenerated. 1751 * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t 1752 instead of of long. 1753 17542009-09-02 Tristan Gingold <gingold@adacore.com> 1755 1756 * vmsbuild.com: Removed as unused and superceeded by makefile.vms. 1757 * makefile.vms: Ported to Itanium VMS. Remove useless targets and 1758 dependencies. Remove unused FORMAT variable. 1759 * configure.com: New file to create build.com DCL script for 1760 Itanium VMS or Alpha VMS. 1761 17622009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1763 1764 * configure.ac (AC_PREREQ): Bump to 2.64. 1765 17662009-08-23 H.J. Lu <hongjiu.lu@intel.com> 1767 1768 PR ld/10536 1769 * Makefile.in (install-html-recursive): Removed. 1770 17712009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1772 1773 * config.in: Regenerate. 1774 * configure: Regenerate. 1775 17762009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 1777 1778 * Makefile.in (AUTOCONF, configure_deps): New variables. 1779 ($(srcdir)/configure): New rule, active only in maintainer mode. 1780 17812009-07-29 Douglas B Rupp <rupp@gnat.com> 1782 1783 * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS. 1784 17852009-07-27 Douglas B Rupp <rupp@gnat.com> 1786 1787 * pex-unix.c (vfork): Remove VMS specific definition (get from header 1788 file instead). 1789 (to_ptr32): New function. 1790 (pex_unix_exec_child): Use it. 1791 17922009-07-24 Ian Lance Taylor <iant@google.com> 1793 1794 PR bootstrap/40854 1795 * crc32.c (xcrc32): Rename from crc32. 1796 17972009-07-24 Ian Lance Taylor <iant@google.com> 1798 1799 * crc32.c: New file. 1800 * Makefile.in: Rebuild dependencies. 1801 (CFILES): Add crc32.c. 1802 (REQUIRED_OFILES): Add ./crc32.o. 1803 * functions.texi: Rebuild. 1804 18052009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com> 1806 1807 * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>) 1808 (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New. 1809 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>) 1810 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New. 1811 (d_demangle_callback): The variable type is now declared as enum. 1812 Replace parser of _GLOBAL_ symbols by a d_make_comp call. 1813 18142009-06-21 Jakub Jelinek <jakub@redhat.com> 1815 1816 * hashtab.c (htab_traverse): Don't call htab_expand for 1817 nearly empty hashtabs with sizes 7, 13 or 31. 1818 18192009-06-16 Nick Clifton <nickc@redhat.com> 1820 1821 PR 10197 1822 * testsuite/test-demangle.c: Rename getline to get_line to avoid 1823 conflicts with system function of the same name. 1824 18252009-05-30 Eli Zaretskii <eliz@gnu.org> 1826 1827 * snprintf.c: Doc fix. 1828 1829 * vsnprintf.c: Doc fix. 1830 18312009-05-29 Kai Tietz <kai.tietz@onevision.com> 1832 1833 * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false. 1834 18352009-05-29 Michael Matz <matz@suse.de> 1836 1837 * fibheap.c (fibheap_replace_key_data): Make sure we don't early 1838 out when forcing the minimum. 1839 (fibheap_delete_node): Assert that we managed to force the minimum. 1840 18412009-05-25 Tristan Gingold <gingold@adacore.com> 1842 1843 * config.h-vms: Rewritten. Define configure macros. 1844 Use DEC-C builtin alloca. 1845 1846 * makefile.vms (OBJS): Update list. 1847 (OPT): New variable. 1848 (CFLAGS): Update compilation flags. 1849 (libiberty.olb): Do not depend on alloca-conf.h anymore. 1850 18512009-05-19 Ian Lance Taylor <iant@google.com> 1852 Ben Elliston <bje@au.ibm.com> 1853 1854 * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug. 1855 (cplus_demangle_fill_dtor): Likewise. 1856 18572009-05-17 Julian Brown <julian@codesourcery.com> 1858 1859 * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing 1860 standard handles (stdin, stdout, stderr) in parent. 1861 18622009-04-29 Julian Brown <julian@codesourcery.com> 1863 1864 * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT. 1865 (pex_win32_exec_child): Ensure each process has only one handle open 1866 on pipe endpoints. Close standard input after creating child for 1867 symmetry with standard output/standard error. 1868 18692009-04-25 Eli Zaretskii <eliz@gnu.org> 1870 1871 * Makefile.in (needed-list): Target removed (not used in GCC 1872 3.0 and later). All references deleted. 1873 (mostlyclean): Remove references to needed.awk and needed2.awk. 1874 18752009-04-14 Eli Zaretskii <eliz@gnu.org> 1876 1877 * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of 1878 existing and required library functions to with_target_subdir 1879 section, so that the native build does detect them at configure 1880 time. 1881 * configure: Regenerated. 1882 18832009-04-13 Ozkan Sezer <sezeroz@gmail.com> 1884 1885 PR target/39397 1886 * pex-common.h (struct pex_obj): Store pid values as pid_t, 1887 not as long (members *children and (*wait)) 1888 * pex-common.c (pex_run_in_environment): Likewise. 1889 * pex-win32.c (pex_win32_wait): Return pid_t and properly check 1890 returned pid value. 1891 * pex-djgpp.c (pex_djgpp_wait): Return pid_t. 1892 * pex-msdos.c (pex_msdos_wait): Likewise. 1893 18942009-04-07 Arnaud Patard <apatard@mandriva.com> 1895 1896 * configure.ac: Fix Linux/MIPS matching rule. 1897 * configure: Regenerate. 1898 18992009-03-27 Ian Lance Taylor <iant@google.com> 1900 1901 * memmem.c: New file, from gnulib. 1902 * configure.ac: Add memmem to list of functions provided if they 1903 are not available on the host. 1904 * Makefile.in: Rebuild dependencies. 1905 (CFILES): Add memmem.c. 1906 (CONFIGURED_OFILES): Add memmem.o. 1907 * configure, config.in, functions.texi: Rebuild. 1908 19092009-03-23 Jason Merrill <jason@redhat.com> 1910 1911 * cp-demangle.c (d_expression): Handle pack expansion. 1912 (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM. 1913 (d_print_subexpr): Don't wrap function parms in (). 1914 (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle 1915 not finding a pack. 1916 19172009-03-17 Jason Merrill <jason@redhat.com> 1918 1919 * cp-demangle.c (d_make_function_param): new fn. 1920 (cplus_demangle_mangled_name): Work around abi v2 bug. 1921 (d_expr_primary): Likewise. 1922 (cplus_demangle_operators): Add alignof ops. 1923 (d_expression): Handle function parameters and conversions 1924 with other than 1 operand. 1925 (d_print_comp): Handle function parameters. Fix bug with 1926 function used in type of function. 1927 * testsuite/demangle-expected: Update tests. 1928 19292009-02-21 Mark Mitchell <mark@codesourcery.com> 1930 1931 * make-temp-file.c (<windows.h>): Include on Windows. 1932 (choose_tmpdir): On Windows, use GetTempPath. 1933 19342009-01-18 Dave Korn <dave.korn.cygwin@gmail.com> 1935 1936 * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin, 1937 as it no longer shares libiberty object files. 1938 * configure: Regenerated. 1939 19402009-01-07 Jason Merrill <jason@redhat.com> 1941 1942 * cp-demangle.c (d_expression): Remove mangling for zero-op casts. 1943 19442009-01-06 Ben Elliston <bje@au.ibm.com> 1945 1946 * cp-demangle.c (cplus_demangle_type): Return NULL if the 1947 character following a 'D' cannot be recognised. 1948 19492008-12-18 Jason Merrill <jason@redhat.com> 1950 1951 PR c++/38561 1952 * cp-demangle.c (d_expression, d_print_comp): Revert 1953 cast changes. 1954 19552008-12-17 Jason Merrill <jason@redhat.com> 1956 1957 * cp-demangle.c (d_expression): Handle rvalue stubs too. 1958 [DEMANGLE_COMPONENT_CAST]: Update mangling. 1959 (d_print_comp): Avoid extra ", " with empty template argument packs. 1960 Remove handling for obsolete T() mangling. 1961 19622008-12-10 Jason Merrill <jason@redhat.com> 1963 1964 * cp-demangle.c (cplus_demangle_type): Support fixed-point types. 1965 (d_print_comp, d_dump): Likewise. 1966 19672008-10-22 Daniel Jacobowitz <dan@codesourcery.com> 1968 1969 * Makefile.in (CPPFLAGS): Define. 1970 (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS. 1971 19722008-10-15 Paolo Bonzini <bonzini@gnu.org> 1973 1974 PR bootstrap/37137 1975 * Makefile.in (LIBCFLAGS): Remove. 1976 (FLAGS_TO_PASS): Don't mention it. 1977 (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS. 1978 19792008-10-08 David Edelsohn <edelsohn@gnu.org> 1980 1981 * xstrdup.c: Include <sys/types.h> after "config.h" 1982 19832008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com> 1984 1985 * configure.ac: Call AC_SYS_LARGEFILE. 1986 * config.in: Regenerated. 1987 * configure: Likewise. 1988 19892008-10-06 Jason Merrill <jason@redhat.com> 1990 1991 * cp-demangle.c (struct d_print_info): Add pack_index. 1992 (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION. 1993 (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and 1994 DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args. 1995 (cplus_demangle_builtin_types): Add char16/32_t. 1996 (cplus_demangle_type): Recognize them. 1997 (d_template_args): Handle empty argument packs. 1998 (d_template_arg): Handle argument packs. 1999 (d_expression): Handle dependent name. 2000 (d_index_template_argument): New fn. 2001 (d_lookup_template_argument): New fn. 2002 (d_find_pack, d_pack_length): New fn. 2003 (d_print_subexpr): Split out... 2004 (d_print_comp): ...from here. Use d_*_template_argument. 2005 Handle empty arg lists. Support pack expansions. 2006 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32. 2007 20082008-09-09 Jason Merrill <jason@redhat.com> 2009 2010 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE. 2011 (d_make_comp): Likewise. 2012 (cplus_demangle_type): Handle decltype and DFP types. 2013 (cplus_demangle_operators): Call operator takes 2 args. 2014 (cplus_demangle_builtin_types): Add DFP types. 2015 (d_exprlist): New fn. 2016 (d_expression): Handle parm placeholders, T() and calls. 2017 (d_print_comp): Handle decltype, T() and calls. 2018 * testsuite/demangle-expected: Test the above. 2019 20202008-08-07 Aaron W. LaFramboise <aaronavay62@aaronwl.com> 2021 2022 * pex-win32.c (argv_to_argc): New function. 2023 (spawn_script): Duplicate argv before calling win32_spawn. 2024 20252008-07-31 Jakub Jelinek <jakub@redhat.com> 2026 2027 * mkstemps.c (mkstemps): Keep looping even for EISDIR. 2028 20292008-07-31 Denys Vlasenko <dvlasenk@redhat.com> 2030 2031 * mkstemps.c (mkstemps): If open failed with errno other than 2032 EEXIST, return immediately. 2033 * make-temp-file.c: Include errno.h. 2034 (make_temp_file): If mkstemps failed, print an error message 2035 before aborting. 2036 20372008-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2038 2039 * maint-tool (deps): Output config.h instead of stamp-h. 2040 * Makefile.in: Rebuild deps. 2041 (maintainer-clean-subdir): Depend on stamp-h rather than config.h. 2042 Reverts 2007-07-11 change. 2043 20442008-06-19 Eric Blake <ebb9@byu.net> 2045 2046 Adjust strsignal to POSIX 200x prototype. 2047 * strsignal.c (strsignal): Remove const. 2048 20492008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2050 2051 * configure: Regenerate. 2052 20532008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2054 2055 * libiberty.texi: Expand TABs, drop indentation outside examples. 2056 * obstacks.texi: Likewise. 2057 20582008-04-21 Aurelien Jarno <aurelien@aurel32.net> 2059 2060 * configure.ac: use -fPIC on Linux/MIPS hosts. 2061 * configure: Regenerate. 2062 20632008-04-18 Kris Van Hees <kris.van.hees@oracle.com> 2064 2065 * testsuite/demangle-expected: Added tests for char16_t and char32_t. 2066 20672008-04-18 Paolo Bonzini <bonzini@gnu.org> 2068 2069 PR bootstrap/35457 2070 * aclocal.m4: Add override.m4. 2071 * configure: Regenerate. 2072 20732008-03-31 Ian Lance Taylor <iant@google.com> 2074 2075 * cp-demangle.c (d_substitution): Correct overflow check to avoid 2076 -fstrict-overflow optimizations. 2077 20782008-03-27 Paolo Bonzini <bonzini@gnu.org> 2079 2080 * configure.ac (frags): Don't set, use frag instead. 2081 (PICFLAG): Set here and substitute. 2082 * Makefile.in (PICFLAG): Substitute from autoconf. 2083 * configure: Regenerate. 2084 20852008-03-24 Ian Lance Taylor <iant@google.com> 2086 2087 * sha1.c: New file, from gnulib. 2088 * Makefile.in: Rebuild dependencies. 2089 (CFILES): Add sha1.c. 2090 (REQUIRED_OFILES): Add sha1.o. 2091 20922008-03-24 Doug Evans <dje@google.com> 2093 2094 * make-relative-prefix.c (make_relative_prefix_1): Handle NULL 2095 return from strdup. 2096 20972008-03-12 Seongbae Park <seongbae.park@gmail.com> 2098 2099 * cplus-dem.c (malloc, realloc): Use void * instead of char * 2100 as return type. 2101 21022008-03-11 Nick Clifton <nickc@redhat.com> 2103 2104 * md5.c (md5_process_bytes): Do not assume that memcpy will 2105 provide a return value. 2106 21072008-02-19 Ben Elliston <bje@au.ibm.com> 2108 2109 PR other/12618 2110 * testsuite/Makefile.in (mostlyclean): Remove any core file. 2111 21122008-01-26 David Daney <ddaney@avtrex.com> 2113 2114 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE, 2115 DEMANGLE_COMPONENT_COMPOUND_NAME, and 2116 DEMANGLE_COMPONENT_CHARACTER cases. 2117 (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and 2118 DEMANGLE_COMPONENT_JAVA_RESOURCE cases. 2119 (d_make_character): New function. 2120 (d_java_resource): Same. 2121 (d_special_name): Handle "Gr" case. 2122 (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE, 2123 DEMANGLE_COMPONENT_COMPOUND_NAME, and 2124 DEMANGLE_COMPONENT_CHARACTER cases. 2125 * testsuite/demangle-expected: Add test for java resource name 2126 mangling. 2127 21282008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com> 2129 2130 * cplus-dem.c (demangle_function_name): Changed to return value 2131 indicating if a name was correctly demangled. 2132 (iterate_demangle_function): Use demangle_function_name return 2133 value. 2134 21352008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org> 2136 2137 PR other/33768 2138 * splay-tree.c (rotate_left): Fix minor typo in comment. 2139 (rotate_right): Likewise. 2140 21412007-11-12 Joseph Myers <joseph@codesourcery.com> 2142 2143 * floatformat.c (floatformat_ibm_long_double_is_valid): Fix 2144 compiler warnings. 2145 (floatformat_ibm_long_double): Use 2146 floatformat_ibm_long_double_is_valid. 2147 21482007-11-07 Joseph Myers <joseph@codesourcery.com> 2149 Daniel Jacobowitz <dan@codesourcery.com> 2150 2151 * floatformat.c (mant_bits_set): New. 2152 (floatformat_to_double): Use it. Note no special handling of 2153 split formats. 2154 (floatformat_from_double): Note no special handing of split 2155 formats. 2156 (floatformat_ibm_long_double_is_valid, 2157 floatformat_ibm_long_double): New. 2158 (floatformat_ieee_single_big, floatformat_ieee_single_little, 2159 floatformat_ieee_double_big, floatformat_ieee_double_little, 2160 floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f, 2161 floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext, 2162 floatformat_m68881_ext, floatformat_i960_ext, 2163 floatformat_m88110_ext, floatformat_m88110_harris_ext, 2164 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword, 2165 floatformat_ia64_spill_big, floatformat_ia64_spill_little, 2166 floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update 2167 for addition of split_half field. 2168 21692007-09-06 Tom Tromey <tromey@redhat.com> 2170 2171 * pexecute.txh (pex_free): Document process killing. 2172 21732007-08-31 Douglas Gregor <doug.gregor@gmail.com> 2174 2175 * cp-demangle.c (d_dump): Handle 2176 DEMANGLE_COMPONENT_RVALUE_REFERENCE. 2177 (d_make_comp): Ditto. 2178 (cplus_demangle_type): Ditto. 2179 (d_print_comp): Ditto. 2180 (d_print_mod): Ditto. 2181 (d_print_function_type): Ditto. 2182 21832007-08-24 Kai Tietz <kai.tietz@onevision.com> 2184 2185 * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t. 2186 * pex-djgpp.c: Likewise. 2187 * pex-msdos.c: Likewise. 2188 * pex-unix.c: Likewise. 2189 * pex-win32.c: Likewise. 2190 21912007-08-17 Michael Snyder <msnyder@access-company.com> 2192 2193 * make-relative-prefix.c (make_relative_prefix_1): Resource leaks. 2194 21952007-08-03 Michael Snyder <msnyder@access-company.com> 2196 2197 * make-relative-prefix.c (make_relative_prefix_1): Fix resource 2198 leak. 2199 22002007-07-31 Michael Snyder <msnyder@access-company.com> 2201 2202 * cp-demangle.c (d_print_comp): Guard against null. 2203 22042007-07-25 Ben Elliston <bje@au.ibm.com> 2205 2206 * Makefile.in (CFILES): Remove ternary.c. 2207 (REQUIRED_OFILES): Remove ./ternary.o. 2208 (INSTALLED_HEADERS): Remove ternary.h. 2209 (ternary.o): Remove. 2210 * ternary.c: Remove. 2211 22122007-07-23 DJ Delorie <dj@redhat.com> 2213 2214 * argv.c (writeargv): Fix typo in inline documentation. 2215 * functions.texi: Regenerate. 2216 22172007-07-17 DJ Delorie <dj@redhat.com> 2218 2219 * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate 2220 gettimeofday entry. 2221 * configure: Likewise. 2222 22232007-07-11 Alexandre Oliva <aoliva@redhat.com> 2224 2225 * maint-tool (deps): Output stamp-h instead of config.h. 2226 * Makefile.in: Rebuild deps. 2227 (maintainer-clean-subdir): Depend on stamp-h rather than config.h. 2228 22292007-07-02 Simon Baldwin <simonb@google.com> 2230 2231 * argv.c (writeargv): Removed declaration of unused variable. 2232 22332007-06-14 Paolo Bonzini <bonzini@gnu.org> 2234 2235 * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too. 2236 * configure: Regenerate. 2237 22382007-06-14 Paolo Bonzini <bonzini@gnu.org> 2239 2240 * aclocal.m4: Include config/warnings.m4. 2241 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS. 2242 * configure: Regenerate. 2243 22442007-06-07 Geoffrey Keating <geoffk@apple.com> 2245 2246 * configure.ac: Non-default multilibs can be cross compilations. 2247 * configure: Regenerate 2248 22492007-05-07 Nathan Froyd <froydnj@codesourcery.com> 2250 2251 * argv.c (writeargv): New function. 2252 22532007-05-05 Geoffrey Keating <geoffk@apple.com> 2254 2255 * cp-demangle.c (d_name): Detect local-source-name. 2256 (d_prefix): Likewise. 2257 (d_unqualified_name): Implement local-source-name. 2258 22592007-05-03 Joel Brobecker <brobecker@adacore.com> 2260 2261 * filename_cmp.c: Replace include of ctype.h by include of 2262 safe-ctype.h. 2263 (filename_cmp): Use TOLOWER instead of tolower for conversions 2264 that are locale-independent. 2265 * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h. 2266 22672007-04-11 Thomas Neumann <tneumann@users.sourceforge.net> 2268 2269 * argv.c: Use ANSI C declarations. 2270 * make-relative-prefix.c: Likewise. 2271 22722007-04-06 Joel Brobecker <brobecker@adacore.com> 2273 2274 * filename_cmp.c (filename_cmp): Improve documentation. 2275 22762007-04-02 Andreas Schwab <schwab@suse.de> 2277 2278 * filename_cmp.c: Include "config.h". 2279 22802007-03-29 Joel Brobecker <brobecker@adacore.com> 2281 2282 * filename_cmp.c: New file. 2283 * Makefile.in (CFILES): Add filename_cmp.c. 2284 (REQUIRED_OFILES): Add filename_cmp.o 2285 (filename_cmp.o): New rule. 2286 * functions.texi: Regenerate. 2287 22882007-03-15 Geoffrey Keating <geoffk@apple.com> 2289 2290 * cp-demangle.c (d_encoding): Exit early on error. 2291 (d_pointer_to_member_type): Exit early if cplus_demangle_type 2292 returns NULL. 2293 (cplus_demangle_type): Likewise. 2294 * testsuite/demangle-expected: New testcase. 2295 22962007-03-01 Brooks Moses <brooks.moses@codesourcery.com> 2297 2298 * Makefile.in: Add install-pdf target as copied from 2299 automake v1.10 rules. 2300 * testsuite/Makefile.in: Add dummy install-pdf target. 2301 23022007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de> 2303 Eric Botcazou <ebotcazou@libertysurf.fr> 2304 2305 PR other/16513 2306 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR). 2307 Install headers in multilib independent location. 2308 23092007-02-26 DJ Delorie <dj@redhat.com> 2310 2311 * configure.ac: add djgpp-specific results, so we don't have to 2312 link during a cross compilation. 2313 * configure: Regenerated. 2314 23152007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2316 2317 * hex.c: Fix typo. 2318 * choose-temp.c: Likewise. 2319 * functions.texi: Regenerate. 2320 23212007-01-31 Vladimir Prus <vladimir@codesourcery.com> 2322 2323 * pex-common.h (struct pex_obj): New fields 2324 stderr_pipe and read_err. 2325 * pex-common.c (pex_init_common): Initialize 2326 stderr_pipe. 2327 (pex_run_in_environment): Add error checking 2328 for PEX_STDERR_TO_PIPE. Create a pipe 2329 for stderr if necessary. 2330 (pex_read_err): New. 2331 (pex_free): Close read_err. 2332 * pexecute.txh: Document changes. 2333 * functions.texi: Regenerated. 2334 23352007-01-31 Ben Elliston <bje@au.ibm.com> 2336 2337 * strsignal.c (psignal): Change type of signo to int. 2338 * functions.texi: Regenerate. 2339 23402007-01-29 Simon Baldwin <simonb@google.com> 2341 2342 * cp-demangle.h (cplus_demangle_operators): External definition 2343 suppressed if not building for libstdc++. 2344 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface 2345 to demangling, provides a malloc-less version of __cxa_demangle. 2346 (cplus_demangle_print_callback): Public callback version of 2347 cplus_demangle_print. 2348 (struct d_growable_string): New growable string structure. 2349 (d_growable_string_init): New function, provides support for 2350 growable strings separate from print info. 2351 (d_growable_string_resize): Likewise. 2352 (d_growable_string_append_buffer): Likewise. 2353 (d_growable_string_callback_adapter):): Likewise. 2354 (d_print_init): New print info initialization function. 2355 (d_print_error): Macro replace by inline function. 2356 (d_print_saw_error): Likewise. 2357 (d_append_char): Likewise. 2358 (d_append_buffer): Likewise. 2359 (d_append_string): New inline function, replaces the 2360 d_append_string_constant macro. 2361 (d_flush_buffer): New function, flushes buffer to callback. 2362 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback 2363 for unsupported dynamic arrays replaced by alloca(). 2364 (d_demangle): Return string length estimating removed. 2365 (d_dump): Moved error case handling from call site into function. 2366 (d_print_resize): Function removed. 2367 (d_print_append_char): Likewise. 2368 (d_print_append_buffer): Likewise. 2369 (d_print_error): Likewise. 2370 (d_print_comp): Added special case handling for Java arrays. 2371 (java_demangle_v3): Removed string post-processing for Java arrays, 2372 now replaced by special case handling in d_print_comp. 2373 (cplus_demangle_v3_callback): Augmented interface to demangling, 2374 provides a malloc-less version of cplus_demangle_v3. 2375 (java_demangle_v3_callback): Augmented interface to demangling, 2376 provides a malloc-less version of java_demangle_v3. 2377 23782007-01-12 Ben Elliston <bje@au.ibm.com> 2379 2380 * pex-unix.c (writeerr): Cast write result to void. 2381 2382 * choose-temp.c (choose_temp_base): Check the result of the call 2383 to mktemp rather than testing the length of the modified string. 2384 23852006-12-20 Geoffrey Keating <geoffk@apple.com> 2386 2387 * cp-demangle.h: Add comment explaining what to do to avoid 2388 overrunning string. 2389 (d_check_char): New. 2390 (d_next_char): Don't advance past trailing '\0'. 2391 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char. 2392 (d_nested_name): Likewise. 2393 (d_special_name): Likewise. 2394 (d_call_offset): Likewise. 2395 (d_function_type): Likewise. 2396 (d_array_type): Likewise. 2397 (d_pointer_to_member_type): Likewise. 2398 (d_template_param): Likewise. 2399 (d_template_args): Likewise. 2400 (d_template_arg): Likewise. 2401 (d_expr_primary): Likewise. 2402 (d_local_name): Likewise. 2403 (d_substitution): Likewise. 2404 (d_ctor_dtor_name): Use d_advance rather than d_next_char. 2405 * testsuite/test-demangle.c: Include sys/mman.h. 2406 (MAP_ANONYMOUS): Define. 2407 (protect_end): New. 2408 (main): Use protect_end. 2409 * testsuite/demangle-expected: Add testcases for overrunning 2410 the end of the string. 2411 24122006-11-30 Andrew Stubbs <andrew.stubbs@st.com> 2413 J"orn Rennecke <joern.rennecke@st.com> 2414 2415 PR driver/29931 2416 * make-relative-prefix.c (make_relative_prefix_1): New function, 2417 broken out of make_relative_prefix. Make link resolution dependent 2418 on new parameter. 2419 (make_relative_prefix): Use make_relative_prefix_1. 2420 (make_relative_prefix_ignore_links): New function. 2421 24222006-11-08 Vladimir Prus <vladimir@codesourcery.com> 2423 2424 * pex-win32.c (no_suffixes): Remove. 2425 (std_suffixes): Add "" as first element. 2426 (find_executable): Remove detection of already-present 2427 extension. Try all suffixes in std_suffixes. 2428 24292006-11-07 Julian Brown <julian@codesourcery.com> 2430 2431 * floatformat.c (get_field): Fix segfault with little-endian word 2432 order on 64-bit hosts. 2433 (put_field): Likewise. 2434 (min): Move definition. 2435 24362006-10-26 Danny Smith <dannysmith@users.sourceforge.net> 2437 2438 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC. 2439 (find_executable): Likewise. 2440 (win32_spawn): Cast alloca return to (char**). 2441 Replace malloc with XNEWVEC. 2442 bcopy.c (bcopy): Add explict casts in assignments. 2443 24442006-10-25 Ben Elliston <bje@au.ibm.com> 2445 2446 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}. 2447 24482006-10-10 Brooks Moses <bmoses@stanford.edu> 2449 2450 * Makefile.in: Added "pdf", "libiberty.pdf" target support. 2451 * testsuite/Makefile.in: Added empty "pdf" target. 2452 24532006-09-22 Ian Lance Taylor <ian@airs.com> 2454 2455 PR other/29176 2456 * cp-demangle.c (d_substitution): Check for overflow when 2457 computing substitution index. 2458 24592006-08-30 Corinna Vinschen <corinna@vinschen.de> 2460 2461 * configure.ac: Add case for Mingw as host. 2462 * configure: Regenerate. 2463 24642006-08-27 Ian Lance Taylor <ian@airs.com> 2465 2466 PR driver/27622 2467 * pex-common.h (struct pex_funcs): Add toclose parameter to 2468 exec_child field. 2469 * pex-common.c (pex_run_in_environment): Pass toclose to 2470 exec_child. 2471 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter. 2472 * pex-unix.c (pex_unix_exec_child): Likewise. 2473 * pex-msdos.c (pex_msdos_exec_child): Likewise. 2474 * pex-win32.c (pex_win32_exec_child): Likewise. 2475 2476 PR other/28797 2477 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution 2478 for a qualified member which is not a function. 2479 * testsuite/demangle-expected: Add test case. 2480 24812006-07-27 Jan Hubicka <jh@suse.cz> 2482 2483 PR rtl-optimization/28071 2484 * hashtab.c (htab_empty): Clear out n_deleted/n_elements; 2485 downsize the hashtable. 2486 24872006-07-04 Peter O'Gorman <peter@pogma.com> 2488 2489 * Makefile.in: chmod 644 before ranlib during install. 2490 24912006-06-02 Mark Shinwell <shinwell@codesourcery.com> 2492 2493 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning 2494 to environ. 2495 24962006-06-01 Mark Shinwell <shinwell@codesourcery.com> 2497 2498 * pex-common.c: New function pex_run_in_environment. 2499 * pex-common.h: Add environment parameter to exec_child. 2500 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child. 2501 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child. 2502 (pex_djgpp_exec_child): Pass environment to child process. 2503 * pex-unix.c: Add environment parameter to pex_unix_exec_child. 2504 (pex_unix_exec_child): Pass environment to child process. 2505 * pex-win32.c: Add environment parameter to pex_win32_exec_child. 2506 New function env_compare for comparing VAR=VALUE pairs. 2507 (win32_spawn): Assemble environment block and pass to CreateProcess. 2508 (spawn_script): Pass environment through to win32_spawn. 2509 (pex_win32_exec_child): Pass environment through to spawn_script and 2510 win32_spawn. 2511 * functions.texi: Regenerate. 2512 * pexecute.txh: Document pex_run_in_environment. 2513 25142006-05-28 Mark Shinwell <shinwell@codesourcery.com> 2515 2516 * mkstemps.c: Open temporary files in binary mode. 2517 25182006-05-12 Anton Blanchard <anton@samba.org> 2519 2520 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to 2521 hold "int%u_t". 2522 25232006-04-24 Julian Brown <julian@codesourcery.com> 2524 2525 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case. 2526 25272006-03-29 Jim Blandy <jimb@codesourcery.com> 2528 2529 * pex-common.c (pex_input_file, pex_input_pipe): New functions. 2530 (pex_init_common): Initialize obj->input_file. 2531 (pex_run): Close any file opened by pex_input_file. 2532 * pexecute.txh (pex_input_file, pex_input_pipe): New docs. 2533 * pex-common.h (struct pex_obj): New field input_file. 2534 (struct pex_funcs): New function ptr fdopenw. 2535 * pex-unix.c (pex_unix_fdopenw): New function. 2536 (funcs): List it as our fdopenw function. 2537 * pex-win32.c (pex_win32_fdopenw): New function. 2538 (funcs): List it as our fdopenw function. 2539 * pex-djgpp.c (funcs): Leave fdopenw null. 2540 * pex-msdos (funcs): Same. 2541 * functions.texi: Regenerated. 2542 25432006-04-10 Jim Blandy <jimb@codesourcery.com> 2544 2545 * pex-common.c (temp_file): New function, containing guts of 2546 pex-style temporary file name generation. 2547 (pex_run): Use it. 2548 25492006-04-06 Carlos O'Donell <carlos@codesourcery.com> 2550 2551 * Makefile.in: Add install-html, install-html-am, and 2552 install-html-recursive targets. Define mkdir_p and 2553 NORMAL_INSTALL. 2554 * configure.ac: AC_SUBST datarootdir, docdir, htmldir. 2555 * configure: Regenerate. 2556 * testsuite/Makefile.in: Add install-html and html targets. 2557 25582006-03-31 Mark Mitchell <mark@codesourcery.com> 2559 2560 * pex-win32.c (<errno.h>): Include. 2561 (fix_argv): Remove. 2562 (argv_to_cmdline): New function. 2563 (std_suffixes): New variable. 2564 (no_suffixes): Likewise. 2565 (find_executable): New function. 2566 (win32_spawn): Likewise. 2567 (spawn_script): Use win32_spawn instead of _spawnv[p]. 2568 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls. 2569 (pex_win32_wait): Likewise. 2570 25712006-03-24 Jim Blandy <jimb@codesourcery.com> 2572 2573 * pex-common.c (pex_run): Simplify output name handling. 2574 25752006-03-12 Jim Blandy <jimb@red-bean.com> 2576 2577 * pex-common.h (struct pex_obj): Doc fixes. 2578 25792006-03-11 Jim Blandy <jimb@red-bean.com> 2580 2581 * functions.texi: Regenerate. 2582 25832006-02-21 Ben Elliston <bje@au.ibm.com> 2584 2585 * pexecute.c (pwait): Syntax fix for previous change. 2586 25872006-02-17 Uttam Pawar <uttamp@us.ibm.com> 2588 2589 * pexecute.c (pwait): Free vector pointer. 2590 * partition.c (partition_print): Free class_elements pointer. 2591 25922006-02-11 Roger Sayle <roger@eyesopen.com> 2593 R. Scott Bailey <scott.bailey@eds.com> 2594 Bill Northcott <w.northcott@unsw.edu.au> 2595 2596 PR bootstrap/16787 2597 * floatformat.c: Include <float.h> where available. 2598 (NAN): Use value of DBL_QNAN if defined, and NAN isn't. 2599 26002006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net> 2601 2602 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where 2603 supported. 2604 * configure: Regenerated. 2605 26062006-01-20 Carlos O'Donell <carlos@codesourcery.com> 2607 2608 * testsuite/Makefile.in: Add test-expandargv test. 2609 * testsuite/test-expandargv.c: New test. 2610 * argv.c (expandargv): Check for errors with ferror, 2611 rather than just by looking at return value from fread. 2612 26132005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net> 2614 2615 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast 2616 to convert from "from". 2617 (floatformat_to_double): Likewise. 2618 (floatformat_from_double): Use explicit cast to convert from "to". 2619 26202005-12-10 Terry Laurenzo <tlaurenzo@gmail.com> 2621 2622 PR java/9861 2623 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer 2624 and include return type when found. 2625 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add 2626 conditional logic to change printing order of return type.when 2627 the DMGL_RET_POSTFIX option is present. 2628 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle 2629 call. 2630 * testsuite/test-demangle.c (main): Recognize option --ret-postfix 2631 * testsuite/demangle-expected: Test cases to verify extended encoding. 2632 Updated comment to document --ret-postfix option. 2633 26342005-11-06 Richard Guenther <rguenther@suse.de> 2635 2636 * splay-tree.c (rotate_left): New function. 2637 (rotate_right): Likewise. 2638 (splay_tree_splay_helper): Remove. 2639 (splay_tree_splay): Re-implement. 2640 26412005-10-31 Mark Kettenis <kettenis@gnu.org> 2642 2643 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double): 2644 New variables. 2645 26462005-10-07 Mark Mitchell <mark@codesourcery.com> 2647 2648 * at-file.texi: Fix typo. 2649 26502005-10-03 Mark Mitchell <mark@codesourcery.com> 2651 2652 * at-file.texi: New file. 2653 26542005-09-27 Mark Mitchell <mark@codesourcery.com> 2655 2656 * argv.c (expandargv): Do not use xmalloc_failed. 2657 26582005-09-26 Mark Mitchell <mark@codesourcery.com> 2659 2660 * argv.c (safe-ctype.h): Include it. 2661 (ISBLANK): Remove. 2662 (stdio.h): Include. 2663 (buildargv): Use ISSPACE instead of ISBLANK. 2664 (expandargv): New function. 2665 * Makefile.in: Regenerated. 2666 26672005-09-14 Christopher Faylor <cgf@timesys.com> 2668 2669 * pex-win32.c: Include "windows.h". 2670 (backslashify): New function. 2671 (fix_argv): Use backslashify to convert path to windows format. 2672 Allocate one more place in new argv for potential executable from '#!' 2673 parsing. 2674 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS 2675 (openkey): Ditto. 2676 (mingw_rootify): Ditto. 2677 (msys_rootify): Ditto. 2678 (spawn_script): New function. 2679 (pex_win32_exec_child): Save translated argv in newargv. Pass to 2680 spawn_script if spawnv* fails. 2681 (main): New function. Conditional on MAIN. Useful for testing. 2682 26832005-08-17 Mark Kettenis <kettenis@gnu.org> 2684 2685 * floatformat.c (floatformat_always_valid): Change type of last 2686 argument to `void *'. 2687 (floatformat_i387_ext_is_valid): Likewise. 2688 (floatformat_to_double): Change type of second argument to `const 2689 void *'. 2690 (floatformat_from_double): Change type of last argument to `void 2691 *'. 2692 (floatformat_is_valid): Change type of last argument to `const 2693 void *'. 2694 (ieee_test): Remove redundant casts. 2695 26962005-08-17 Kelley Cook <kcook@gcc.gnu.org> 2697 2698 * strverscmp.c: Update FSF address. 2699 * testsuite/Makefile.in: Likewise. 2700 * testsuite/test-demangle.c: Likewise. 2701 * testsuite/test-pexecute.c: Likewise. 2702 27032005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2704 2705 * getopt.c: Include ansidecl.h before system headers. 2706 27072005-07-22 Ben Elliston <bje@gnu.org> 2708 2709 * getopt.c: Include "ansidecl.h". 2710 (_getopt_initialize): Mark argc and argv parameters as unused. 2711 27122005-07-22 Ben Elliston <bje@gnu.org> 2713 2714 * regex.c (regcomp): Change type of `i' from unsigned to int. 2715 27162005-07-22 Ben Elliston <bje@gnu.org> 2717 2718 Recover patch lost in the sourceware repository: 2719 2005-07-09 Ben Elliston <bje@au.ibm.com> 2720 * memcpy.c: Remove ANSI_PROTOTYPES conditional code. 2721 * memmove.c: Likewise. 2722 * objalloc.c: Likewise. 2723 27242005-07-22 Ben Elliston <bje@gnu.org> 2725 2726 * configure.ac: Check for a getopt(3) declaration. 2727 * configure, config.in: Regenerate. 2728 27292005-07-15 Ben Elliston <bje@au.ibm.com> 2730 2731 * regex.c (TRANSLATE): Cast rhs of ternary expression to char. 2732 27332005-07-12 Ben Elliston <bje@au.ibm.com> 2734 2735 * floatformat.c (floatformat_to_double): Add a comment about a 2736 potential source of warnings when compiling this file. 2737 27382005-07-12 Ben Elliston <bje@au.ibm.com> 2739 2740 * pexecute.c (pexecute): Cast string litrals to char *. 2741 * regex.c (re_comp): Cast a call to gettext() to char *. 2742 27432005-07-07 Kelley Cook <kcook@gcc.gnu.org> 2744 2745 * config.table: Delete file. Move former contents into ... 2746 * configure.ac: ... here and escape any brackets for m4. 2747 * Makefile.in (config.status): Remove dependency on config.table. 2748 * configure: Regenerate. 2749 27502005-07-07 Kelley Cook <kcook@gcc.gnu.org> 2751 2752 * config.in: Regenerate for 6/20 change. 2753 27542005-07-03 Steve Ellcey <sje@cup.hp.com> 2755 2756 PR other/13906 2757 * md5.c (md5_process_bytes): Check alignment. 2758 27592005-07-01 Ian Lance Taylor <ian@airs.com> 2760 2761 PR other/22268 2762 * cp-demangle.c (d_expr_primary): Don't run off the end of the 2763 string while looking for the end of a literal value. 2764 * testsuite/demangle-expected: Add test case. 2765 27662005-06-30 Daniel Berlin <dberlin@dberlin.org> 2767 2768 * hashtab.c (EMPTY_ENTRY): Moved and renamed. 2769 (DELETED_ENTRY): Ditto. 2770 27712005-06-20 Geoffrey Keating <geoffk@apple.com> 2772 2773 * strverscmp.c: New. 2774 * Makefile.in (CFILES): Add strverscmp.c. 2775 (CONFIGURED_OFILES): Add strverscmp.o. 2776 (strverscmp.o): New rule. 2777 (stamp-functions): Add $(srcdir) to files in source directory. 2778 * configure.ac (funcs): Add strverscmp. 2779 (AC_CHECK_FUNCS): Add strverscmp. 2780 * configure: Regenerate. 2781 * functions.texi: Regenerate. 2782 27832005-05-28 Eli Zaretskii <eliz@gnu.org> 2784 2785 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS. 2786 * config.in, configure: Regenerate. 2787 27882005-05-25 Richard Henderson <rth@redhat.com> 2789 2790 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS. 2791 (d_make_comp, d_print_comp): Likewise. 2792 (d_special_name): Generate one. 2793 * testsuite/demangle-expected: Add a hidden alias test. 2794 27952005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net> 2796 2797 * configure.ac: Check declarations for calloc(), getenv(), 2798 malloc(), realloc() and sbrk(). 2799 * config.in: Regenerate. 2800 * configure: Likewise. 2801 2802 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC 2803 instead of xmalloc. 2804 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc. 2805 * concat.c (liiberty_concat_ptr): Surround definition with an 2806 extern "C" block, if __cplusplus. 2807 (concat): Use XNEWVEC instead of xmalloc. 2808 (reconcat): Likewise. 2809 * cp-demangle.c (struct d_print_template): Rename member 2810 "template" to "template_decl". Adjust use throughout the file. 2811 (d_print_resize): Properly cast return value of realloc(). 2812 (cplus_demangle_print): Same for malloc(). 2813 (d_demangle): Likewise. 2814 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter 2815 "typename" to "type_name". 2816 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc(). 2817 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc(). 2818 (demangle_template_value_parm): Likewise. 2819 (demangle_template): Likewise. 2820 (recursively_demangle): Likewise. 2821 (do_hpacc_template_literal): Likewise. 2822 (do_arg): Likewise. 2823 (remember_type): Likewise. 2824 (remember_Ktype): Likewise. 2825 (register_Btype): Likewise. 2826 (string_need): Use XRESIZEVEC instead of xrealloc(). 2827 * dyn-string.c (dyn_string_init): Use XNEWVEC. 2828 (dyn_string_new): Use XNEW. 2829 (dyn_string_resize): Use XRESIZEVEC. 2830 * fnmatch.c (fnmatch): Rename local variable "not" to "negate". 2831 * getopt.c (getenv): Declare only if !__cplusplus and !getenv. 2832 Otherwise include <stdlib.h>. 2833 (exchange): Cast return value of malloc(). 2834 * hashtab.c (htab_size): Define as both macro and non-inline 2835 function. 2836 (htab_elements): Likewise. 2837 * getpwd.c (getpwd): Use XNEWVEC. 2838 (htab_create_alloc_ex): Use C90 prototype-style. 2839 * lrealpath.c (lrealpath): Appropriately cast return value of 2840 malloc(). 2841 * make-relative-prefix.c (save_string): Likewise. 2842 * make-temp-file.c (try_dir): Rename from "try". Adjust use in 2843 the file. 2844 (choose_tmpdir): Use XNEWVEC. 2845 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern". 2846 * pex-common.c (pex_init_common): Use XNEW. 2847 (pex_add_remove): Use XRESIZEVEC. 2848 (pex_run): Likewise. 2849 (pex_get_status_and_time): Likewise. 2850 * pex-djgpp.c (pex_djgpp_exec_child): Likewise. 2851 * pex-msdos.c (pex_init): Use XNEW. 2852 (pex_msdos_exec_child): Likewise. 2853 (pex_msdos_exec_child): Use XRESIZEVEC. 2854 * pex-unix.c (pex_wait): Use XNEW. 2855 * pex-win32.c (fix_argv): Use XNEWVEC. 2856 * pexecute.c (pwait): Likewise. 2857 * setenv.c (setenv): Properly cast return value of malloc(). 2858 * sigsetmask.c (sigsetmask): Rename local variables "old" and 2859 "new" to "old_sig" and "new_sig". 2860 * sort.c (main): Use XNEWVEC. 2861 * spaces.c (spaces): Cast return value of malloc(). 2862 * strndup.c (strndup): Likewise. 2863 * ternary.c (ternary_insert): Use XNEW. 2864 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration 2865 with an extern "C" block if __cplusplus. 2866 * xstrdup.c (xstrdup): Cast return value of memcpy(). 2867 * xstrerror.c (strerror): Enclose declaration in an extern "C" 2868 block if __cplusplus. 2869 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy(). 2870 28712005-05-16 Andreas Jaeger <aj@suse.de> 2872 2873 * getpwd.c: Remove unneeded prototype getcwd and move getwd so 2874 that it's only declared if needed. 2875 2876 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is 2877 defined. 2878 28792005-05-15 Andreas Jaeger <aj@suse.de> 2880 2881 * functions.texi: Regenerated. 2882 28832005-05-15 Eli Zaretskii <eliz@gnu.org> 2884 2885 * pexecute.txh: Enclose multi-word data types in @deftypefn in 2886 braces. Minor wording fixes. Use --- for em-dash. Use 2887 @enumerate in enumerated lists. 2888 2889 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in 2890 braces. 2891 28922005-05-11 Eli Zaretskii <eliz@gnu.org> 2893 2894 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and 2895 sys/stat.h. 2896 (pex_init): Fix last argument to pex_init_common. 2897 (pex_djgpp_exec_child): Remove leading underscore from _open, 2898 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program', 2899 which is undeclared, with `executable', which was unused. Remove 2900 unused variable `e'. Fix casting of last arg to spawnv/spawnvp. 2901 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED. 2902 29032005-05-11 Paul Brook <paul@codesourcery.com> 2904 2905 * Makefile.in: Regenerate dependencies. 2906 29072005-05-10 Nick Clifton <nickc@redhat.com> 2908 2909 * Update the address and phone number of the FSF organization in 2910 the GPL notices in the following files: 2911 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c, 2912 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c, 2913 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c, 2914 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c, 2915 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c, 2916 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c, 2917 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c, 2918 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c, 2919 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c, 2920 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c, 2921 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c, 2922 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c, 2923 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c 2924 29252005-05-06 Kelley Cook <kcook@gcc.gnu.org> 2926 2927 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove. 2928 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE. 2929 * configure: Regenerate. 2930 29312005-05-06 Kelley Cook <kcook@gcc.gnu.org> 2932 2933 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS. 2934 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF. 2935 * aclocal.m4: Don't include accross.m4. 2936 * configure, config.in: Regenerate. 2937 29382005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2939 2940 * fopen_unlocked.c (unlock_std_streams): New. 2941 2942 * functions.texi: Regenerate. 2943 29442005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2945 2946 * fopen_unlocked.c (unlock_stream): New. 2947 Consolidate unlocking code into a helper function. 2948 2949 * functions.texi: Regenerate. 2950 29512005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net> 2952 2953 * asprintf.c: Include config.h. 2954 * basename.c: Likewise. 2955 * fdmatch.c: Likewise. 2956 * hex.c: Likewise. 2957 * lbasename.c: Likewise. 2958 * spaces.c: Likewise. 2959 * xatexit.c:Likewise. 2960 * configure.ac: Do check declarations for basename, ffs, asprintf 2961 and vasprintf for real. 2962 * configure: Regenerate. 2963 29642005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net> 2965 2966 * argv.c (dupargv): Allocate space of argv[argc], not 2967 sizeof(char *) of that amount. Cast result to char *. 2968 29692005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net> 2970 2971 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal): 2972 Replace not with negate. 2973 29742005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net> 2975 2976 * configure.ac: Check declarations for basename, ffs, asprintf, 2977 vasprintf. 2978 * configure: Regenerate. 2979 * config.in: Likewise. 2980 29812005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2982 2983 * Makefile.in (CFILES): Add fopen_unlocked.c. 2984 (REQUIRED_OFILES): Add ./fopen_unlocked.o. 2985 Regenerate dependencies. 2986 2987 * configure.ac: Check for stdio_ext.h and __fsetlocking. 2988 2989 * fopen_unlocked.c: New file. 2990 2991 * functions.texi, configure, config.in: Regenerate. 2992 29932005-04-04 Ian Lance Taylor <ian@airs.com> 2994 2995 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable 2996 declaration before statement. 2997 29982005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2999 3000 * bcmp.c: Fix warnings and implement using memcmp. 3001 * bcopy.c: Fix warnings. 3002 * bzero.c: Fix warnings and implement using memset. 3003 3004 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings 3005 -Wstrict-prototypes. 3006 * configure, config.in: Regenerate. 3007 3008 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix 3009 warnings and reconcile interfaces with relevant standards. 3010 30112005-04-02 Ian Lance Taylor <ian@airs.com> 3012 3013 * cp-demangle.c: Update copyright. 3014 30152005-03-31 Joseph S. Myers <joseph@codesourcery.com> 3016 3017 * gettimeofday.c: Add "Supplemental" to @deftypefn. 3018 * functions.texi: Regenerate. 3019 30202005-03-28 Ian Lance Taylor <ian@airs.com> 3021 3022 * pex-common.c: New file. 3023 * pex-one.c: New file. 3024 * pexecute.c: New file. 3025 * pex-common.h: Include <stdio.h>. 3026 (struct pex_obj): Define. 3027 (struct pex_funcs): Define. 3028 (pex_init_common): Declare. 3029 * pex-unix.c: Rewrite. 3030 * pex-win32.c: Rewrite. 3031 * pex-djgpp.c: Rewrite. 3032 * pex-msdos.c: Rewrite. 3033 * testsuite/text-pexecute.c: New file. 3034 * pexecute.txh: Rewrite. 3035 * configure.ac: Check for wait3 and wait4. Set CHECK to 3036 really-check rather than check-cplus-dem. 3037 * functions.texi: Rebuild. 3038 * Makefile.in: Rebuild dependencies. 3039 (CFILES): Add pexecute.c, pex-common.c, pex-one.c. 3040 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o. 3041 * testsuite/Makefile.in (really-check): New target. 3042 (check-pexecute, test-pexecute): New targets. 3043 * configure: Rebuild. 3044 30452005-03-28 Mark Kettenis <kettenis@gnu.org> 3046 3047 * unlink-if-ordinary.c: Include <sys/types.h>. 3048 30492005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3050 3051 Convert libiberty to use ISO C prototype style 7/n. 3052 * regex.c (PARAMS): Remove definition. 3053 (PREFIX): Unconditionaly define using ISO C ## operator. 3054 (init_syntax_once, extract_number, extract_number_and_incr, 3055 print_fastmap, print_partial_compiled_pattern, 3056 print_compiled_pattern, print_double_string, printchar, 3057 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers, 3058 regex_compile, store_op1, store_op2, insert_op1, insert_op2, 3059 at_begline_loc_p, at_endline_p, group_in_compile_stack, 3060 insert_space, wcs_compile_range, byte_compile_range, 3061 truncate_wchar, re_compile_fastmap, re_compile_fastmap, 3062 re_set_registers, re_search, re_search_2, re_search_3, re_match, 3063 re_match_2, count_mbs_length, wcs_re_match_2_internal, 3064 byte_re_match_2_internal, group_match_null_string_p, 3065 alt_match_null_string_p, common_op_match_null_string_p, 3066 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp, 3067 regexec, regerror, regfree): Use ISO C prototype style. 3068 * partition.c: (elem_compare): Likewise. 3069 * cp-demangle.c (print_usage): Likewise. 3070 30712005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3072 3073 Convert libiberty to use ISO C prototype style 5/n. 3074 * random.c (srandom, initstate, setstate, random): Use ISO C 3075 prototypes. 3076 * putenv.c (putenv): Likewise. 3077 * physmem.c (physmem_available, physmem_total, main): Likewise. 3078 * pex-win32.c (fix_argv, pexecute, pwait): Likewise. 3079 * pex-unix.c (pexecute, pwait): Likewise. 3080 * pex-msdos.c (pexecute, pwait): Likewise. 3081 * pex-djgpp.c (pexecute, pwait): Likewise. 3082 * partition.c (partition_new, partition_delete, partition_union) 3083 (elem_compare, partition_print): Likewise. 3084 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk, 3085 _obstack_allocated_p, _obstack_free, obstack_free, 3086 _obstack_memory_used, print_and_abort, obstack_next_free, 3087 obstack_object_size, obstack_base): Likewise. Remove codes 3088 predicated on !defined(__STDC__). 3089 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free, 3090 objalloc_free_block): Use ISO C prototypes. 3091 * mkstemps.c (mkstemps): Likewise. 3092 * memset.c (memset): Likewise. 3093 * mempcpy.c (mempcpy): Likewise. 3094 * rename.c (rename): Likewise. 3095 * rindex.c (rindex): Likewise. 3096 * setenv.c (setenv, unsetenv): Likewise. 3097 * sigsetmask.c (sigsetmask): Likewise. 3098 * snprintf.c (snprintf): Likewise. 3099 * sort.c (sort_pointers, xmalloc): Likewise. 3100 * spaces.c (spaces): Likewise. 3101 * splay-tree.c (splay_tree_delete_helper, 3102 splay_tree_splay_helper, splay_tree_splay, 3103 splay_tree_foreach_helper, splay_tree_xmalloc_allocate, 3104 splay_tree_new, splay_tree_xmalloc_allocate, 3105 splay_tree_new_with_allocator, splay_tree_delete, 3106 splay_tree_insert, splay_tree_remove, splay_tree_lookup, 3107 splay_tree_max, splay_tree_min, splay_tree_predecessor, 3108 splay_tree_successor, splay_tree_foreach, 3109 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise. 3110 * stpcpy.c (stpcpy): Likewise. 3111 * stpncpy.c (stpncpy): Likewise. 3112 * strcasecmp.c (strcasecmp): Likewise. 3113 * strchr.c (strchr): Likewise. 3114 * strdup.c (strdup): Likewise. 3115 31162005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3117 3118 Convert libiberty to use ISO C prototype style 6/n. 3119 * strerror.c (init_error_tables, errno_max, strerror, strerrno, 3120 strtoerrno, main): Use ISO C prototype style. 3121 * strncasecmp.c (strncasecmp): Likewise. 3122 * strncmp.c (strncmp): Likewise. 3123 * strndup.c (strndup): Likewise. 3124 * strrchr.c (strrchr): Likewise. 3125 * strsignal.c (init_signal_tables, signo_max, strsignal, 3126 strsigno, strtosigno, psignal, main): Likewise. 3127 * strstr.c (strstr): Likewise. 3128 * strtod.c (strtod, atof): Likewise. 3129 * strtol.c (strtol): Likewise. 3130 * strtoul.c (strtoul): Likewise. 3131 * ternary.c (ternary_insert, ternary_cleanup, ternary_search, 3132 ternary_recursivesearch): Likewise. 3133 * tmpnam.c (tmpnam): Likewise. 3134 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise. 3135 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise. 3136 * vfork.c (vfork): Likewise. 3137 * vfprintf.c (vfprintf): Likewise. 3138 * vprintf.c (vprintf): Likewise. 3139 * vsnprintf.c (vsnprintf, checkit, main): Likewise. 3140 * vsprintf.c (vsprintf): Likewise. 3141 * waitpid.c (waitpid): Likewise. 3142 * xatexit.c (xatexit, xatexit_cleanup): Likewise. 3143 * xexit.c (xexit): Likewise. 3144 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc, 3145 xcalloc, xrealloc): Likewise. 3146 * xmemdup.c (xmemdup): Likewise. 3147 * xstrdup.c (xstrdup): Likewise. 3148 * xstrerror.c (xstrerror): Likewise. 3149 * xstrndup.c (xstrndup): Likewise. 3150 31512005-03-27 Andreas Jaeger <aj@suse.de> 3152 3153 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional 3154 flags. 3155 * configure: Regenerated. 3156 31572005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3158 3159 * getopt1.c (getopt_long_only): Fix thinko. 3160 31612005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3162 3163 Convert libiberty to use ISO C prototype style 4/n. 3164 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer, 3165 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2, 3166 htab_create_alloc, htab_set_functions_ex, htab_create, 3167 htab_try_create, htab_delete, htab_empty, 3168 find_empty_slot_for_expand, htab_expand, htab_find_with_hash, 3169 htab_find, htab_find_slot_with_hash, htab_find_slot, 3170 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot, 3171 htab_traverse_noresize, htab_traverse, htab_collisions, 3172 htab_hash_string, iterative_hash): Use ISO C prototype. 3173 * hex.c (hex_init): Likewise. 3174 * index.c (index): Likewise. 3175 * insque.c (insque, remque): Likewise. 3176 * lbasename.c (lbasename): Likewise. 3177 * lrealpath.c (lrealpath): Likewise. 3178 * make-relative-prefix.c (save_string, split_directories, 3179 free_split_directories, make_relative_prefix): Likewise. 3180 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise. 3181 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream, 3182 md5_buffer, md5_process_bytes, md5_process_block): Likewise. 3183 * memchr.c (memchr): Likewise. 3184 * memcpy.c (memcpy): Likewise. 3185 * memmove.c (memmove): Likewise. 3186 * gettimeofday.c (gettimeofday): Likewise. 3187 * getruntime.c (get_run_time): Likewise. 3188 * getpwd.c (getpwd, getpwd): Likewise. 3189 * getpagesize.c (getpagesize): Likewise. 3190 * getopt1.c (getopt_long, getopt_long_only, main): Likewise. 3191 * getopt.c (my_index, exchange, _getopt_initialize, 3192 _getopt_internal, getopt, main): Likewise. 3193 * getcwd.c (getcwd): Likewise. 3194 * fnmatch.c (fnmatch): Likewise. 3195 * floatformat.c (floatformat_always_valid, 3196 floatformat_i387_ext_is_valid, get_field, floatformat_to_double, 3197 put_field, floatformat_from_double, floatformat_is_valid, 3198 ieee_test, main): Likewise. 3199 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare, 3200 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key, 3201 fibheap_union, fibheap_extract_min, fibheap_replace_key_data, 3202 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node, 3203 fibheap_delete, fibheap_empty, fibheap_extr_min_node, 3204 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate, 3205 fibheap_link, fibheap_cut, fibheap_cascading_cut, 3206 fibnode_insert_after, fibnode_remove): Likewise. 3207 * ffs.c (ffs): Likewise. 3208 * fdmatch.c (fdmatch): Likewise. 3209 * dyn-string.c (dyn_string_init, dyn_string_new, 3210 dyn_string_delete, dyn_string_release, dyn_string_resize, 3211 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr, 3212 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert, 3213 dyn_string_insert_cstr, dyn_string_insert_char, 3214 dyn_string_append, dyn_string_append_cstr, 3215 dyn_string_append_char, dyn_string_substring, dyn_string_eq): 3216 Likewise. 3217 32182005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net> 3219 3220 Convert libiberty to use ISO C prototype style 3/n. 3221 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count, 3222 consume_count_with_underscores, code_for_qualifier, 3223 qualifier_string, demangle_qualifier, cplus_demangle_opname, 3224 cplus_mangle_opname, cplus_demangle_set_style, 3225 cplus_demangle_name_to_style, cplus_demangle, grow_vect, 3226 ada_demangle, internal_cplus_demangle, squangle_mop_up, 3227 work_stuff_copy_to_from, delete_non_B_K_work_stuff, 3228 delete_work_stuff, mop_up, demangle_signature, 3229 demangle_method_args, demangle_template_template_parm, 3230 demangle_expression, demangle_integral_value, 3231 demangle_real_value, demangle_template_value_parm, 3232 demangle_template, arm_pt, demangle_arm_hp_template, 3233 demangle_class_name, demangle_class, iterate_demangle_function, 3234 demangle_prefix, gnu_special, recursively_demangle, arm_special, 3235 demangle_qualified, get_count, do_type, demangle_fund_type, 3236 do_hpacc_template_const_value, do_hpacc_template_literal, 3237 snarf_numeric_literal, do_arg, remember_type, remember_Ktype, 3238 register_Btype, remember_Btype, forget_B_and_K_types, 3239 forget_types, demangle_args, demangle_nested_args, 3240 demangle_function_name, string_need, string_delete, string_init, 3241 string_clear, string_empty, string_append, string_appends, 3242 string_appendn, string_prepend, string_prepends, string_prependn, 3243 string_append_template_idx): Use ISO C prootype style. 3244 * cp-demint.c (cplus_demangle_fill_component, 3245 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator, 3246 cplus_demangle_v3_components): Likewise. 3247 32482005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net> 3249 3250 Convert libiberty to use ISO C prototype style 2/n. 3251 * cp-demangle.h: Remove uses of PARAMS. 3252 * cp-demangle.c: Likewise. 3253 (d_dump, cplus_demangle_fill_name, 3254 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor, 3255 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name, 3256 d_make_builtin_type, d_make_operator, d_make_extended_operator, 3257 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub, 3258 cplus_demangle_mangled_name, has_return_type, 3259 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name, 3260 d_prefix, d_unqualified_name, d_source_name, d_number, 3261 d_identifier, d_operator_name, d_special_name, d_call_offset, 3262 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers, 3263 d_function_type, d_bare_function_type, d_class_enum_type, 3264 d_array_type, d_pointer_to_member_type, d_template_param, 3265 d_template_args, d_template_arg, d_expression, d_expr_primary, 3266 d_local_name, d_discriminator, d_add_substitution, 3267 d_substitution, d_print_resize, d_print_append_char, 3268 d_print_append_buffer, d_print_error, cplus_demangle_print, 3269 d_print_comp, d_print_java_identifier, d_print_mod_list, 3270 d_print_mod, d_print_function_type, d_print_array_type, 3271 d_print_expr_op, d_print_cast, cplus_demangle_init_info, 3272 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3, 3273 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor, 3274 print_usage, main): 3275 32762005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net> 3277 3278 Convert libiberty to ISO C prototype style 1/n. 3279 * _doprnt.c: Remove conditional #include <varargs.h> on 3280 ANSI_PROTOTYPES as the latter is always assumed. 3281 (_doprnt, checkit, main): Use ISO C prototype. 3282 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype. 3283 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES. 3284 (dupargv, freeargv, buildargv, main): Use ISO C prototype. 3285 * atexit.c (atexit): Likewise 3286 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES. 3287 (asprintf): Use ISO C prototype. 3288 * basename.c (basename): Likewise 3289 * bcmp.c (bcmp): Likewise. 3290 * bcopy.c (bcopy): Likewise. 3291 * bzero.c (bzero): Likewise. 3292 * bsearch.c (bsearch): Likewise. Improve const-correctness. 3293 * choose-temp.c (choose_temp_base): Likewise. 3294 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES. 3295 (calloc): Use ISO C prototype. 3296 * clock.c (clock): Likewise. 3297 * concat.c: Remove conditional #include on ANSI_PROTOTYPES. 3298 (vconcat_length, vconcat_copy, concat_length, concat_copy, 3299 concat_copy2, concat, reconcat, main): Use ISO C prototype. 3300 * copysign.c (copysign): Likewise. 3301 33022005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3303 3304 * Makefile.in (CFILES): Add strndup.c and xstrndup.c. 3305 (REQUIRED_OFILES): Add xstrndup.o. 3306 (CONFIGURED_OFILES): Add strndup.o. 3307 Regenerate dependencies. 3308 3309 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup. 3310 3311 * strndup.c, xstrndup.c: New. 3312 3313 * config.in, configure, functions.texi: Regenerate. 3314 33152005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3316 3317 * xmemdup.c, xstrdup.c: Expose the tail call. 3318 33192005-03-09 Mark Mitchell <mark@codesourcery.com> 3320 3321 * configure.ac (funcs): Add gettimeofday. 3322 * configure: Regenerated. 3323 * gettimeofday.c: New file. 3324 * Makefile.in (CFILES): Add gettimeofday. 3325 (CONFIGURED_OFILES): Add gettimeofday.o. 3326 (./gettimeofday.o): New rule. 3327 33282005-03-09 Ian Lance Taylor <ian@airs.com> 3329 3330 * pex-os2.c: Remove. 3331 * configure.ac: Remove *-*-os2-emx* case when setting pexecute. 3332 * Makefile.in (CFILES): Remove pex-os2.c. 3333 (CONFIGURED_OFILES): Remove pex-os2.o. 3334 (pex-os2.o): Remove target. 3335 * configure: Rebuild. 3336 33372005-03-07 Ian Lance Taylor <ian@airs.com> 3338 3339 * mpw-config.in: Remove. 3340 * mpw-make.sed: Remove. 3341 * mpw.c: Remove. 3342 * Makefile.in (CFILES): Remove pex-mpw.c. 3343 (CONFIGURED_OFILES): Remove pex-mpw.o. 3344 (mpw.o, pex-mpw.o): Remove targets. 3345 * maint-tool (undoc): Remove reference to mpw.c. 3346 33472005-03-06 DJ Delorie <dj@redhat.com> 3348 3349 * configure.ac (target_header_dir): vfork is a stub under djgpp. 3350 * configure: Regenerated. 3351 33522005-03-01 Jan Beulich <jbeulich@novell.com> 3353 3354 * Makefile.in (CFILES): Add unlink-if-ordinary.c 3355 (REQUIRED_OFILES): Add unlink-if-ordinary.o. 3356 Add dependencies and rule for unlink-if-ordinary.o. 3357 * unlink-if-ordinary.c: New. 3358 33592005-03-01 Ben Elliston <bje@au.ibm.com> 3360 3361 * hashtab.c (htab_find_slot_with_hash): Make function 3362 documentation clearer. 3363 33642005-02-13 Jason Merrill <jason@redhat.com> 3365 3366 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous 3367 arguments. 3368 33692005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de> 3370 3371 * hex.c (hex_value): Group 'unsigned int' together to get correct 3372 markup. 3373 * functions.texi: Regenerated. 3374 33752004-12-27 H.J. Lu <hongjiu.lu@intel.com> 3376 3377 * Makefile.in: Undo to 2004-12-17. 3378 * aclocal.m4: Likewise. 3379 * config.table: Likewise. 3380 * configure.ac: Likewise. 3381 * maint-tool: Likewise. 3382 * configure: Likewise. 3383 33842004-12-19 H.J. Lu <hongjiu.lu@intel.com> 3385 3386 PR bootstrap/19072 3387 * Makefile.in (enable_shared): New substitute. 3388 (LTTARGETLIB): New. 3389 (PREFIXTARGETLIB): New. 3390 (LTTESTLIB): New. 3391 (PREFIXTESTLIB): New. 3392 (CCLD): New. 3393 (LINK): New. 3394 ($(TARGETLIB)): Use $(LINK) to create libraries and create 3395 targets by hand. 3396 ($(TESTLIB)): Likewise. 3397 (mostlyclean): Don't remove .libs. Remove the libtool object 3398 directory. 3399 3400 * config.table (enable_shared): Removed. 3401 3402 * configure.ac (enable_static): Set to yes. 3403 (AC_PROG_LIBTOOL): Removed. 3404 (AM_DISABLE_SHARED): Uncommented. 3405 (AM_PROG_LIBTOOL): Likewise. 3406 (LIBOBJS): Add `./' to avoid VPATH. 3407 (LTLIBOBJS): Likewise. 3408 (enable_shared): Substitute. 3409 * configure: Regenerated. 3410 34112004-12-18 H.J. Lu <hongjiu.lu@intel.com> 3412 3413 * Makefile.in (top_builddir): Set to `.'. 3414 (OUTPUT_OPTION): Removed. 3415 (LIBTOOL): New. 3416 (LTLIBOBJS): New. 3417 (EXTRA_LTOFILES): New. 3418 (FLAGS_TO_PASS): Add EXTRA_LTOFILES. 3419 (all): Remove stamp-picdir. 3420 (LTCOMPILE): New. 3421 (.c.lo): New rule. 3422 (REQUIRED_LTOFILES): New. 3423 (CONFIGURED_LTOFILES): New. 3424 ($(TARGETLIB)): Check .libs for PIC object files. Depend on 3425 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS). 3426 (stamp-picdir): Completely removed. 3427 (maint-missing): Pass $(REQUIRED_LTOFILES) 3428 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES) 3429 $(CONFIGURED_OFILES) 3430 (maint-buildall): Depend on $(REQUIRED_LTOFILES) 3431 $(CONFIGURED_LTOFILES). 3432 (mostlyclean): Also remove *.lo .libs. 3433 Run "make maint-deps". 3434 3435 * aclocal.m4: Include ../libtool.m4. 3436 3437 * config.table: Don't check --enable-shared. 3438 3439 * configure.ac (AC_PROG_LIBTOOL): Add. 3440 (AC_PROG_CC_C_O): Removed. 3441 (OUTPUT_OPTION): Removed. 3442 (NO_MINUS_C_MINUS_O): Removed. 3443 (ltpexecute): New substitute. 3444 (LIBOBJS): Cleanup. 3445 * configure: Regenerated. 3446 3447 * maint-tool: Updated for .lo/libtool. 3448 34492004-12-11 Ben Elliston <bje@au.ibm.com> 3450 3451 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int). 3452 * configure: Regenerate. 3453 * config.in: Likewise. 3454 34552004-12-07 DJ Delorie <dj@redhat.com> 3456 3457 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so 3458 that recursion (and thus large stack space) is not needed. 3459 34602004-11-29 Matt Kraai <kraai@alumni.cmu.edu> 3461 3462 * pex-unix.c: Fix the spelling of longjmp. 3463 34642004-11-23 Ian Lance Taylor <ian@wasabisystems.com> 3465 3466 PR other/18623 3467 * cp-demangle.c (d_call_offset): Remove useless local variables 3468 offset and virtual_offset. 3469 * cplus-dem.c (ada_demangle): Remove useless local variable 3470 at_start_name. 3471 (demangle_template): Remove useless local variable start. 3472 34732004-11-19 Roger Sayle <roger@eyesopen.com> 3474 3475 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before 3476 "ansidecl.h" to avoid redeclaration errors with native compilers. 3477 * regex.c: Protect config.h from multiple inclusion. 3478 34792004-11-12 Mike Stump <mrs@apple.com> 3480 3481 * Makefile.in (libiberty.html): Fix html generation. 3482 34832004-09-08 Adam Nemet <anemet@lnxw.com> 3484 3485 * vasprintf.c: Accept __va_copy in addition to va_copy. 3486 34872004-09-03 Paolo Bonzini <bonzini@gnu.org> 3488 3489 * configure: Regenerate. 3490 34912004-09-02 Paolo Bonzini <bonzini@gnu.org> 3492 3493 * configure.ac: Do not enable multilibs for build-side libiberty. 3494 34952004-06-29 Danny Smith <dannysmith@users.sourceforge.net> 3496 3497 * lrealpath.c (lrealpath): Add _WIN32 support. 3498 34992004-06-28 Zack Weinberg <zack@codesourcery.com> 3500 3501 * cp-demangle.h: Declare cplus_demangle_operators, 3502 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and 3503 cplus_demangle_type as static if IN_GLIBCPP_V3. 3504 35052004-06-28 Ian Lance Taylor <ian@wasabisystems.com> 3506 3507 PR other/16240 3508 * cp-demangle.c (d_expr_primary): Check for a failure return from 3509 cplus_demangle_type. 3510 * testsuite/demangle-expected: Add test case. 3511 35122004-05-31 Danny Smith <dannysmith@users.sourceforge.net> 3513 3514 * pex-win32.c (fix_argv): Expand comment. 3515 35162004-05-25 Daniel Jacobowitz <drow@false.org> 3517 3518 * Makefile.in: Add .NOEXPORT. 3519 35202004-04-29 Douglas B Rupp <rupp@gnat.com> 3521 3522 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update 3523 copyright. 3524 35252004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl> 3526 3527 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition. 3528 * configure: Regenerate. 3529 35302004-04-22 Richard Henderson <rth@redhat.com> 3531 3532 * hashtab.c: Include limits.h, stdint.h, ansidecl.h. 3533 (CHAR_BIT): Provide default. 3534 (struct prime_ent, prime_tab): New. 3535 (higher_prime_index): Rename from higher_prime_number, return index. 3536 (htab_mod_1): New. 3537 (htab_mod, htab_mod_m2): Use it. 3538 (htab_create_alloc, htab_create_alloc_ex): Store prime index. 3539 (htab_expand): Likewise. 3540 * configure.ac: Check for stdint.h. 3541 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in. 3542 * config.in, configure: Rebuild. 3543 35442004-04-13 Ian Lance Taylor <ian@wasabisystems.com> 3545 3546 * strerror.c: Include config.h, and redefine sys_nerr and 3547 sys_errlist, before including ansidecl.h and libiberty.h. 3548 35492004-04-13 Jeff Law <law@redhat.com> 3550 3551 * hashtab.c (htab_remove_elt_with_hash): New function. 3552 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash. 3553 35542004-03-31 Richard Henderson <rth@redhat.com> 3555 3556 * hashtab.c (htab_size): Move to top of file; mark inline. 3557 (htab_elements): Likewise. 3558 (htab_mod, htab_mod_m2): New. 3559 (htab_delete): Refactor htab->size and htab->entries. 3560 (htab_empty): Likewise. 3561 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2. 3562 (htab_find_with_hash, htab_find_slot_with_hash): Likewise. 3563 (htab_clear_slot): Use htab_size, htab_elements. 3564 (htab_traverse_noresize, htab_traverse): Likewise. 3565 35662004-03-17 Ian Lance Taylor <ian@wasabisystems.com> 3567 3568 * pex-unix.c (pexecute): Use vfork instead of fork, with 3569 appropriate changes to make this safe. 3570 * pex-common.h (STDERR_FILE_NO): Define. 3571 3572 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for 3573 an 80 column screen. Run maint-deps. 3574 35752004-03-09 Kelley Cook <kcook@gcc.gnu.org> 3576 3577 * configure.ac: Bump version to 2.59. Apply suggested autoupdates. 3578 * acconfig.h: Delete redundant file. 3579 * config.in: Regenerate. 3580 * configure: Regenerate. 3581 35822004-03-09 Hans-Peter Nilsson <hp@axis.com> 3583 3584 * configure: Regenerate for config/accross.m4 correction. 3585 35862004-03-07 Andreas Jaeger <aj@suse.de> 3587 3588 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for 3589 prototypes. 3590 (main): Initialize style. 3591 35922004-02-24 Ian Lance Taylor <ian@wasabisystems.com> 3593 3594 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED, 3595 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG, 3596 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT. 3597 * cp-demangle.c (cplus_demangle_builtin_types): Change char and 3598 short types to D_PRINT_DEFAULT. Change other integer types to use 3599 new D_PRINT_* values where appropriate. Change float types to 3600 D_PRINT_FLOAT. 3601 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_* 3602 values. 3603 * testsuite/demangle-expected: Adjust two test cases. 3604 3605 * cp-demangle.c (d_print_function_type): Print a space before the 3606 parenthesis around the function type in more cases. 3607 * testsuite/demangle-expected: Adjust one test case. 3608 3609 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra 3610 parentheses around a cast. 3611 * testsuite/demangle-expected: Adjust two test cases to match new 3612 output. 3613 3614 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle. 3615 3616 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't 3617 push more than one of the same CV-qualifier on the top of the 3618 stack. 3619 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified, 3620 move the CV-qualifiers to apply to the element type instead. 3621 (d_print_array_type): When checking the modifiers, keep looking 3622 past ones which have been printed already. 3623 * testsuite/demangle-expected: Add three test cases. 3624 36252004-02-23 Ian Lance Taylor <ian@wasabisystems.com> 3626 3627 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle 3628 empty string correctly. 3629 3630 * cp-demangle.c (__cxa_demangle): It is not an error if status is 3631 not NULL. It is an error if the mangled name is the same as a 3632 built-in type name. 3633 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather 3634 than cplus_demangle_v3. 3635 3636 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and 3637 the associated #define of RETURN_ON_ALLOCATION_FAILURE. 3638 36392004-02-16 Matt Kraai <kraai@alumni.cmu.edu> 3640 3641 * regex.c: Include <ansidecl.h>. 3642 (regcomp): Cast i to int. 3643 (regerror): Add ATTRIBUTE_UNUSED to parameter preg. 3644 36452004-01-25 Ian Lance Taylor <ian@wasabisystems.com> 3646 3647 * configure.ac: Add m4_pattern_allow(LIBOBJS). 3648 * configure: Regenerate. 3649 36502004-01-22 DJ Delorie <dj@redhat.com> 3651 3652 * Makefile.in: Convert to ./ throughout. Rebuild dependencies 3653 with explicit build rules. 3654 (VPATH): Remove. 3655 (.c.o): Poison. 3656 * configure.ac (pexecute, LIBOBJS): Add ./ . 3657 * maint-tool: Build dependencies with explicit rules. 3658 36592004-01-15 Kazu Hirata <kazu@cs.umass.edu> 3660 3661 * strdup.c (strdup): Constify the argument. 3662 36632004-01-14 Loren J. Rittle <ljrittle@acm.org> 3664 3665 * Makefile.in (distclean): Remove config.cache. 3666 36672004-01-13 Daniel Jacobowitz <drow@mvista.com> 3668 3669 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE 3670 takes two parameters. 3671 * cp-demint.c (cplus_demangle_fill_component): Likewise. 3672 36732004-01-12 Ian Lance Taylor <ian@wasabisystems.com> 3674 3675 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is 3676 defined, rename some functions which are to become static via 3677 #define. 3678 (CP_STATIC_IF_GLIBCPP_V3): Define. 3679 (struct d_operator_info): Move definition to cp-demangle.h, and 3680 rename to demangle_operator_info. Change all uses. 3681 (enum d_builtin_type_print): Move definition to cp-demangle.h. 3682 (struct d_builtin_type_info): Move definition to cp-demangle.h, 3683 and rename to demangle_builtin_type_info. Change all uses. 3684 (enum d_comp_type): Move definition to include/demangle.h, and 3685 rename to demangle_component_type, and change all enums to start 3686 with DEMANGLE_COMPONENT_ instead of D_. Change all uses. 3687 (struct d_comp): Move definition to include/demangle.h, and rename 3688 to demangle_component. Change all uses. 3689 (struct d_info): Move definition to cp-demangle.h. 3690 (cplus_demangle_fill_name): New function. 3691 (cplus_demangle_fill_extended_operator): New function. 3692 (cplus_demangle_fill_ctor): New function. 3693 (cplus_demangle_fill_dtor): New function. 3694 (d_make_empty): Remove type parameter. Change all callers. 3695 (d_make_name): Use cplus_demangle_fill_name. 3696 (d_make_extended_operator): Use 3697 cplus_demangle_fill_extended_operator. 3698 (d_make_ctor): Use cplus_demangle_fill_ctor. 3699 (d_make_dtor): Use cplus_demangle_fill_dtor. 3700 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make 3701 non-static by default. Change all callers. 3702 (cplus_demangle_operators): Rename from d_operators. Change all 3703 uses. Make non-static by default. Add sentinel at end of array. 3704 (d_operator_name): Adjust initialization of high for new sentinel 3705 in cplus_demangle_operators. 3706 (cplus_demangle_builtin_types): Rename from d_builtin_types. 3707 Change all uses. Make non-static by default. Change initializer 3708 to use D_BUILTIN_TYPE_COUNT instead of magic number 26. 3709 (cplus_demangle_type): Rename from d_type. Make non-static by 3710 default. Change all callers. 3711 (cplus_demangle_init_info): Rename from d_init_info. Make 3712 non-static by default. Change all callers. 3713 * cp-demangle.h: New file. 3714 * cp-demint.c: New file. 3715 * Makefile.in: Rebuild dependencies. 3716 (CFILES): Add cp-demint.c. 3717 (REQUIRED_OFILES): Add cp-demint.o. 3718 37192004-01-09 Kelley Cook <kcook@gcc.gnu.org> 3720 3721 * configure.in: Rename file to ... 3722 * configure.ac: ... this. 3723 * Makefile.in: Update a comment for above change. 3724 * README: Likewise. 3725 * config.in: Regenerate. 3726 37272004-01-02 Ian Lance Taylor <ian@wasabisystems.com> 3728 3729 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip 3730 CV-qualifiers from D_COMP_LOCAL_NAME right subtree. 3731 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when 3732 demangling template parameters. 3733 * testsuite/test-demangle.c (fail): New static function. 3734 (main): Support new options in input file: --no-params, 3735 --is-v3-ctor, and --is-v3-dtor. 3736 * testsuite/demangle-expected: Add --no-params to most tests, and 3737 add the correct result when parameters are not demangled. Add 3738 some simple tests for V3 constructor/destructor recognition. 3739 37402003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 3741 3742 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change. 3743 37442003-12-22 Daniel Jacobowitz <drow@mvista.com> 3745 3746 PR debug/13272 3747 * Makefile.in (lbasename.o): Depend on filenames.h. 3748 * lbasename.c: Include "filenames.h" instead of defining 3749 its macros locally. 3750 37512003-12-22 Ian Lance Taylor <ian@wasabisystems.com> 3752 3753 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports 3754 dynamic arrays. 3755 (struct d_operator_info): Add len field. 3756 (struct d_builtin_type_info): Add len and java_len fields. 3757 (struct d_standard_sub_info): Add simple_len, full_len, and 3758 set_last_name_len fields. 3759 (struct d_comp): Add len field to s_string. 3760 (struct d_info): Add send, did_subs, and expansion fields. 3761 (d_append_string_constant): Define. 3762 (d_append_string): Remove. Change all users to use 3763 d_append_string_constant or d_append_buffer instead. 3764 (d_make_sub): Add len parameter. Change all callers. 3765 (d_name): Increase expansion when substituting std::. 3766 (d_unqualified_name): Increase expansion for an operator. 3767 (d_number): Don't use multiplication for negative numbers. 3768 (d_identifier): Make sure there are enough characters in the 3769 string for the specified length. Adjust expansion for an 3770 anonymous namespace. 3771 (d_operators): Initialize len field. 3772 (d_special_name, d_ctor_dtor_name): Increase expansion. 3773 (d_builtin_types): Initialize len and java_len fields. 3774 (d_type): Increase expansion for a builtin type. 3775 (d_cv_qualifiers): Increase expansion for each qualifier. 3776 (d_bare_function_type): Decrease expansion when removing single 3777 void parameter. 3778 (d_template_param): Increment did_subs. 3779 (d_expression): Increase expansion for an operator. 3780 (d_expr_primary): Decrease expansion for a type we will print 3781 specially. 3782 (standard_subs): Initialize new fields. 3783 (d_substitution): Increment did_subs when doing a normal 3784 substitution. Increase expansion for a special substitution. 3785 (d_print): Add estimate parameter. Change all callers. 3786 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline. 3787 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call. 3788 (d_print_java_identifier): Rename from d_print_identifier. Handle 3789 only Java case. Change caller. 3790 (d_init_info): Change return type to void. Change all callers. 3791 Initialize send, did_subs, and expansion fields. Do not 3792 initialize comps and subs fields. 3793 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs 3794 arrays on stack. Make an estimate of the length of the demangled 3795 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures. 3796 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and 3797 subs arrays on stack. 3798 37992003-12-20 Ian Lance Taylor <ian@wasabisystems.com> 3800 3801 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$' 3802 after the identifier. 3803 * testsuite/demangle-expected: Add test case. 3804 38052003-12-19 Ian Lance Taylor <ian@wasabisystems.com> 3806 3807 Fix for PR c++/13447: 3808 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME. 3809 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME. 3810 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like 3811 D_COMP_QUAL_NAME. 3812 (is_ctor_or_dtor): Likewise. 3813 (d_local_name): Use D_COMP_LOCAL_NAME rather than 3814 D_COMP_QUAL_NAME. 3815 (d_print_comp) [D_COMP_LOCAL_NAME]: New. 3816 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is 3817 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree. 3818 (d_print_mod_list): Handle D_COMP_LOCAL_NAME. 3819 * testsuite/demangle-expected: Add two test cases. 3820 3821 * cp-demangle.c (d_print_function_type): Clear the global modifier 3822 list when printing the modifiers, not just when printing the 3823 function parameters. 3824 * testsuite/demangle-expected: Add two test cases. 3825 38262003-12-15 Ian Lance Taylor <ian@wasabisystems.com> 3827 3828 * cp-demangle.c (d_print_function_type): Print the function 3829 parameters with no modifiers. 3830 * testsuite/demangle-expected: Add test case. 3831 3832 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't 3833 expect that we've read the entire string. 3834 (is_ctor_or_dtor): Don't expect that we've read the entire 3835 string--reverse patch of 2003-11-29. 3836 38372003-12-15 Brendan Kehoe <brendan@zen.org> 3838 3839 * Makefile.in (floatformat.o): Add dependency on 3840 config.h to accompany change of 2003-12-03. 3841 38422003-12-15 Ian Lance Taylor <ian@wasabisystems.com> 3843 3844 Fix handling of constructor/destructor of standard substitution: 3845 * cp-demangle.c (struct d_standard_sub_info): Define. 3846 (d_substitution): Add prefix argument. Change all callers. 3847 Rework handling of standard substitutions to print full name when 3848 qualifying a constructor/destructor, or when DMGL_VERBOSE is set. 3849 * testsuite/demangle-expected: Add test case. 3850 3851 Fix handling of negative literal constants: 3852 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG. 3853 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG. 3854 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number. 3855 (d_print_comp): Handle D_COMP_LITERAL_NEG. 3856 * testsuite/demangle-expected: Add test case. 3857 38582003-12-04 Ian Lance Taylor <ian@wasabisystems.com> 3859 3860 * cp-demangle.c (IS_UPPER, IS_LOWER): Define. 3861 (d_last_char): Define new macro. 3862 (d_make_name): Reject an empty name. 3863 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros. 3864 (d_substitution, d_print_identifier): Likewise. 3865 (d_print_comp) [D_COMP_OPERATOR]: Likewise. 3866 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro. 3867 (d_print_mod) Use new d_last_char macro. 3868 (d_print_cast): Use new d_last_char macro. 3869 (is_ctor_or_dtor): Don't leak memory. 3870 3871 Fix handling of member function modifiers: 3872 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS, 3873 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS. 3874 (d_dump): Dump new d_comp_type values. 3875 (d_make_comp): Accept new d_comp_type values. 3876 (has_return_type): Only accept _THIS variants of qualifiers. 3877 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of 3878 qualifiers. 3879 (d_cv_qualifiers): Add member_fn parameter. Change all callers. 3880 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing 3881 qualifiers and printing them at the end, add _THIS qualifiers to 3882 the modifier list. 3883 (d_print_comp) [D_COMP_*_THIS]: New cases. 3884 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of 3885 qualifiers. 3886 (d_print_mod_list): Add suffix parameter. Change all callers. 3887 Keep walking the list even if the current modifier has been 3888 printed. 3889 (d_print_mod): Handle new _THIS qualifiers. 3890 (d_print_function_type): Handle new _THIS qualifiers when deciding 3891 whether to print a parenthesis. Put a space before the 3892 parenthesis in some cases. Call d_print_mod_list again at the 3893 end, passing suffix as 1. 3894 (is_ctor_or_dtor): Look for new _THIS qualifiers. 3895 * testsuite/demangle-expected: Add test case. 3896 3897 Fix for PR gcc/13304: 3898 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character 3899 before the '<' is itself a '<', insert a space. 3900 (d_print_cast): Likewise. 3901 * testsuite/demangle-expected: Add test case. 3902 3903 Fix for PR gcc/13244: 3904 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression 3905 which uses the '>' operator in an extra layer of parens. 3906 * testsuite/demangle-expected: Add test case. 3907 39082003-12-03 Ian Lance Taylor <ian@wasabisystems.com> 3909 3910 * floatformat.c: Include "config.h" and <string.h> if available. 3911 (INFINITY, NAN): Define if not defined by <math.h>. 3912 (floatformat_to_double): Handle NaN, infinity, and denormalized 3913 numbers. 3914 (floatformat_from_double): Likewise. 3915 (ieee_test): In debugging code, use little endian rather than big 3916 endian. Correct tests to handle NaN and to check correct sign of 3917 zero. Omit m68k extended test. 3918 (main): Add more debugging cases. 3919 39202003-11-29 Ian Lance Taylor <ian@wasabisystems.com> 3921 3922 * cp-demangle.c (d_demangle): Only return success if we consumed 3923 the entire demangled string. 3924 (is_ctor_or_dtor): Likewise. 3925 3926 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch 3927 to restore expected result of EDG test case to original expected 3928 result. 3929 39302003-11-26 Ian Lance Taylor <ian@wasabisystems.com> 3931 3932 * cp-demangle.c (struct d_print_mod): Add templates field. 3933 (d_make_builtin_type): Check for NULL type. 3934 (d_make_extended_operator): Check for NULL name. 3935 (d_make_ctor, d_make_dtor): Likewise. 3936 (d_mangled_name): Add top_level parameter. Change all callers. 3937 (d_encoding): If DMGL_PARAMS is not set, strip off initial 3938 CV-qualifiers. 3939 (d_type): Check some return values we rely on. 3940 (d_bare_function_type, d_array_type): Likewise. 3941 (d_pointer_to_member_type, d_template_args): Likewise. 3942 (d_add_substitution): Fail if argument is NULL. 3943 (d_print_resize): Check whether buf is NULL. 3944 (d_print_comp): Save current templates list with each modifier. 3945 Don't pass the modifier list down when printing a template. 3946 (d_print_cast): Don't pass the modifier list down when printing a 3947 template. 3948 (d_print_mod_list): Temporarily set templates list while printing 3949 a modifier. 3950 (d_print_mod): Check that buf is not NULL before using it. 3951 (d_print_function_type): Print parens if there is no modifier. 3952 (d_init_info): Permit as many substitutions as there are 3953 characters in the mangled name. 3954 * testsuite/demangle-expected: Add two new test cases. 3955 39562003-11-25 Ian Lance Taylor <ian@wasabisystems.com> 3957 3958 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to 3959 d_demangle. 3960 39612003-11-22 Ian Lance Taylor <ian@wasabisystems.com> 3962 3963 * cp-demangle.c (d_encoding): Add top_level parameter. Change all 3964 callers. 3965 (print_usage): Display new -p option. 3966 (long_options): Add --no-params. 3967 (main): Accept and handle -p. 3968 39692003-11-21 Ian Lance Taylor <ian@wasabisystems.com> 3970 3971 * cp-demangle.c (has_return_type): Skip qualifiers when checking 3972 whether we have a template. 3973 * testsuite/demangle-expected: Add four new tests. 3974 39752003-11-20 Ian Lance Taylor <ian@wasabisystems.com> 3976 3977 * testsuite/demangle-expected: Minor changes to match output of 3978 new demangler: adjust whitespace in four tests, and change order 3979 of qualifiers in one test. 3980 3981 * cp-demangle.c: Complete rewrite. 3982 39832003-11-19 Mark Mitchell <mark@codesourcery.com> 3984 3985 * cp-demangle.c (demangle_type): Correct thinko in substitution 3986 processing. 3987 39882003-11-18 Ian Lance Taylor <ian@wasabisystems.com> 3989 3990 * cp-demangle.c (demangle_operator_name): Remove space before 3991 "sizeof". 3992 (demangle_type_ptr): Put qualifiers in the right place. Handle 3993 qualifiers in pointer to member specially. 3994 (demangle_type): Handle qualifiers for pointer or reference 3995 specially. Handle function type. 3996 (demangle_local_name): Save and restore caret around demangling of 3997 initial encoding. 3998 3999 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to 4000 cplus_demangle. 4001 4002 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a. 4003 40042003-10-31 Andreas Jaeger <aj@suse.de> 4005 4006 * floatformat.c (floatformat_always_valid): Add unused attribute. 4007 40082003-10-30 Josef Zlomek <zlomekj@suse.cz> 4009 4010 Jan Hubicka <jh@suse.cz> 4011 * vasprintf.c (int_vasprintf): Pass va_list by value. 4012 Use va_copy for copying va_list. 4013 (vasprintf): Pass va_list by value. 4014 40152003-10-30 Josef Zlomek <zlomekj@suse.cz> 4016 4017 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted 4018 instead of increasing n_elements when inserting to deleted slot. 4019 40202003-10-20 J. Brobecker <brobecker@gnat.com> 4021 4022 * cplus-dem.c (demangle_template): Register a new Btype only 4023 when needed. 4024 * testsuite/demangle-expected: Add a new test. 4025 40262003-10-16 H.J. Lu <hongjiu.lu@intel.com> 4027 4028 * testsuite/demangle-expected: Update the expected output of 4029 _GLOBAL__I__Z2fnv. 4030 40312003-10-02 Daniel Jacobowitz <drow@mvista.com> 4032 4033 * strerror.c: Revert last change. Declare static sys_nerr 4034 and sys_errlist using different names. 4035 40362003-10-01 Daniel Jacobowitz <drow@mvista.com> 4037 4038 * strerror.c: Don't provide or reference sys_errlist if 4039 strerror is available. 4040 40412003-10-01 H.J. Lu <hongjiu.lu@intel.com> 4042 4043 * configure.in: Check if $MAKEINFO is missing. 4044 * configure: Regenerated. 4045 40462003-09-24 Daniel Jacobowitz <drow@mvista.com> 4047 4048 * configure.in: Use AC_PROG_CPP_WERROR. 4049 * configure: Regenerated. 4050 40512003-09-22 Andrew Cagney <cagney@redhat.com> 4052 4053 * floatformat.c (floatformat_i387_ext_is_valid): New function. 4054 (floatformat_always_valid): New function. 4055 (floatformat_i387_ext): Initialize new "is_valid" field to 4056 "floatformat_i387_ext_is_valid". 4057 (floatformat_ieee_single_little): Initialize "is_valid" field to 4058 floatformat_always_valid. 4059 (floatformat_ieee_double_big): Ditto. 4060 (floatformat_ieee_double_little): Ditto. 4061 (floatformat_ieee_double_little): Ditto. 4062 (floatformat_ieee_double_littlebyte_bigword): Ditto. 4063 (floatformat_i960_ext): Ditto. 4064 (floatformat_m88110_ext): Ditto. 4065 (floatformat_m88110_harris_ext): Ditto. 4066 (floatformat_arm_ext_big): Ditto. 4067 (floatformat_arm_ext_littlebyte_bigword): Ditto. 4068 (floatformat_ia64_spill_big): Ditto. 4069 (floatformat_ia64_spill_little): Ditto. 4070 (floatformat_ia64_quad_big): Ditto. 4071 (floatformat_ia64_quad_little): Ditto. 4072 (floatformat_ia64_quad_little): Ditto. 4073 (floatformat_is_valid): Call "is_valid". 4074 40752003-09-15 Andrew Cagney <cagney@redhat.com> 4076 4077 * floatformat.c (get_field): Make "data" constant. 4078 (floatformat_is_valid, floatformat_to_double): Make "from" 4079 constant, fix casts. 4080 (floatformat_from_double): Make "from" constant. 4081 40822003-09-15 Daniel Jacobowitz <drow@mvista.com> 4083 4084 * floatformat.c (floatformat_is_valid): New function. 4085 (get_field, put_field): Correct comments. 4086 40872003-09-06 Josef Zlomek <zlomekj@suse.cz> 4088 4089 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to 4090 FIBHEAPKEY_T. 4091 40922003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 4093 4094 PR bootstrap/12100 4095 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define. 4096 * configure: Rebuilt. 4097 40982003-08-27 Daniel Jacobowitz <drow@mvista.com> 4099 4100 * aclocal.m4: Include acx.m4 and no-executables.m4. 4101 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ. 4102 (LIB_AC_PROG_CC): Remove. 4103 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES. 4104 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using 4105 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if 4106 performing link tests. 4107 * configure: Regenerated. 4108 41092003-08-12 Nathanael Nerode <neroden@gcc.gnu.org> 4110 4111 * cp-demangle.c: Clarify what package(s) this is part of. 4112 41132003-07-05 Danny Smith <dannysmith@users.sourceforge.net> 4114 4115 * pex-win32.c (pexecute): Mark parameters this_pname and 4116 temp_base as unused. Remove unused variables retries, 4117 sleep_interval. Initialize org_stdin, org_stdout. 4118 (pwait): Mark parameter flags as unused. 4119 41202003-07-02 Danny Smith <dannysmith@users.sourceforge.net> 4121 4122 * pex-win32.c (fix_argv): Ensure that the executable pathname 4123 uses Win32 backslashes. 4124 (pexecute): Cast away constness when assigning *errmsg_arg. 4125 41262003-06-26 H.J. Lu <hongjiu.lu@intel.com> 4127 4128 * testsuite/demangle-expected: Add more GNU V3 testcases. 4129 41302003-06-22 Zack Weinberg <zack@codesourcery.com> 4131 4132 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC, 4133 not HC_ASCII and HC_EBCDIC. 4134 Add documentation in form expected by gather-docs. 4135 * hex.c: Use HOST_CHARSET, not hand-coded check of character set. 4136 * Makefile.in, functions.texi: Regenerate. 4137 41382003-06-21 Zack Weinberg <zack@codesourcery.com> 4139 4140 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET 4141 for charset determination. 4142 41432003-06-19 Dara Hazeghi <dhazeghi@yahoo.com> 4144 4145 * configure.in: Add check for malloc.h needed by 4146 m68k for function free(). 4147 * configure: Regenerated. 4148 * config.in: Add HAVE_MALLOC_H. 4149 * hashtab.c: include malloc.h were available for 4150 free(). 4151 41522003-06-09 Albert Chin-A-Young <china@thewrittenword.com> 4153 4154 PR bootstrap/10974 4155 * physmem.c: Update comment. 4156 * configure.in: Modify test for _system_configuration for older 4157 AIX systems. 4158 4159 * config.in, configure: Regenerated. 4160 41612003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 4162 4163 PR other/10810 4164 * test-demangle.c (getline): Fix fence-post error. 4165 41662003-06-03 Nick Clifton <nickc@redhat.com> 4167 4168 * asprintf.c: Change comment to note that -1 is returned upon 4169 error. 4170 * vasprintf.c: Likewise. 4171 (vasprintf): Return -1 upon error. 4172 * functions.texi: Document changes to asprintf and vasprintf. 4173 41742003-05-19 Kelley Cook <kelleycook@wideopenwest.com> 4175 4176 * config.table: Accept i[345867]86 variant. 4177 41782003-05-15 Jim Blandy <jimb@redhat.com> 4179 4180 * hex.c (_hex_value): Make this unsigned. 4181 (hex_value): Update documentation for new return type. hex_value 4182 now expands to an unsigned int expression, to avoid unexpected 4183 sign extension when we store it in a bfd_vma, which is larger than 4184 int on some platforms. 4185 * functions.texi: Regenerated. 4186 41872003-05-07 Josef Zlomek <zlomekj@suse.cz> 4188 4189 * splay-tree.c (splay_tree_predecessor): Fix comment. 4190 (splay_tree_successor): Fix comment. 4191 41922003-05-07 Jason Merrill <jason@redhat.com> 4193 4194 * hashtab.c (iterative_hash): New fn. 4195 * configure.in: Add AC_C_BIGENDIAN_CROSS. 4196 * aclocal.m4: Include accross.m4. 4197 * configure, config.in: Regenerate. 4198 41992003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4200 4201 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls. 4202 * configure: Regenerate. 4203 42042003-05-03 Carlo Wood <carlo@alinoe.com> 4205 4206 * cp-demangle.c: Fix typo in "char_traints" string-literal. 4207 42082003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4209 4210 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls. 4211 (main): Test that we don't write too much data. 4212 42132003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4214 4215 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and 4216 vsnprintf. 4217 * snprintf.c, vsnprintf.c: New files. 4218 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c. 4219 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o. 4220 Regenerate dependencies. 4221 4222 * functions.texi, configure, config.in: Regenerated. 4223 42242003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4225 4226 * mempcpy.c, stpcpy.c, stpncpy.c: New files. 4227 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy 4228 and stpncpy. 4229 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c. 4230 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o. 4231 Regenerate dependencies. 4232 4233 * functions.texi, configure, config.in: Regenerated. 4234 42352003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4236 4237 * argv.c: Fix comments. 4238 * calloc.c: Don't unnecessarily include "libiberty.h". 4239 (bzero): Add prototype. 4240 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES. 4241 * getcwd.c (getcwd): Use standard definition to avoid conflicts 4242 with system headers. 4243 * hashtab.c (htab_traverse): Delete unused variables. 4244 * rename.c: Include "ansidecl.h". 4245 (rename): Use standard definition to avoid conflicts with system 4246 headers. 4247 * strsignal.c: Rely on ANSI_PROTOTYPES. 4248 * strstr.c: Check GNUC >= 2, not GNUC == 2. 4249 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES. 4250 * vprintf.c: Include "ansidecl.h" earlier, rely on 4251 ANSI_PROTOTYPES. 4252 * vsprintf.c: Include "ansidecl.h" earlier, rely on 4253 ANSI_PROTOTYPES and possibly include <stdarg.h>. 4254 4255 * Makefile.in: Regenerate dependencies. 4256 42572003-04-15 DJ Delorie <dj@redhat.com> 4258 4259 * maint-tool (deps): Scan for headers in $srcdir also. 4260 42612003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4262 4263 PR target/10338 4264 PR bootstrap/10198 4265 PR bootstrap/10140 4266 * getopt.c (exchange, _getopt_initialize): Use mempcpy not 4267 __mempcpy. 4268 * regex.c (regerror): Likewise. 4269 42702003-04-14 Roger Sayle <roger@eyesopen.com> 4271 4272 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__. 4273 * memchr.c: Likewise. 4274 * strcasecmp.c: Likewise. 4275 * strncasecmp.c: Likewise. 4276 * strncmp.c: Likewise. 4277 * xatexit.c: Likewise. 4278 * xmalloc.c: Likewise. 4279 4280 * copysign.c: Use traditional function declaration instead of DEFUN. 4281 * sigsetmask.c: Likewise. 4282 4283 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN. 4284 * memset.c: Likewise. 4285 4286 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy. 4287 * memmove.c: Likewise. 4288 42892003-04-14 Roger Sayle <roger@eyesopen.com> 4290 4291 * strdup.c (strdup): Tweak implementation to use memcpy. 4292 42932003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4294 4295 * configure.in (HAVE_UINTPTR_T): Always define. 4296 * configure: Regenerated. 4297 42982003-03-23 Alexandre Oliva <aoliva@redhat.com> 4299 4300 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS) 4301 instead of $$CC alone. 4302 (install_to_tooldir): Use it. 4303 43042003-17-03 Jan Hubicka <jh@suse.cz> 4305 4306 * hashtab.c (htab_traverse_noresize): Break out from ... 4307 * hashtab.c (htab_traverse): ... here. 4308 43092003-12-03 Jan Hubicka <jh@suse.cz> 4310 4311 * hashtab.c (htab_expand): Fix warning. 4312 4313 * hashtab.c (htab_expand): Compute the size of hashtable based 4314 on the number of elements actually used. 4315 (htab_traverse): Call htab_expand when table is too empty. 4316 43172003-03-11 Carlo Wood <carlo@gnu.org> 4318 4319 * cplus-dem.c (demangle_integral_value): Correction to reflect 4320 patch of 2002-01-10 in order to also make negative multi-digits 4321 without leading underscore work. 4322 43232003-03-03 Mark Mitchell <mark@codesourcery.com> 4324 4325 * cplus-dem.c: Add license exception to copyright notice. 4326 43272003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4328 4329 * physmem.c: Formatting changes from upstream. 4330 43312003-02-24 Danny Smith <dannysmith@users.source.forge.net> 4332 4333 * physmem.c (physmem_total): Add _WIN32 support. 4334 (physmem_available): Likewise. 4335 43362003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 4337 4338 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for 4339 GSI_PHYSMEM. 4340 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS. 4341 43422003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4343 4344 * configure.in: Check for sys/systemcfg.h and 4345 _system_configuration. 4346 * physmem.c: Add support for AIX. Tweek formatting as per 4347 upstream coreutils beta. 4348 43492003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4350 Richard Earnshaw <rearnsha@arm.com> 4351 Geoffrey Keating <geoffk@apple.com> 4352 4353 * configure.in: Check for sys/sysctl.h and sysctl. 4354 * physmem.c: Add support for *bsd and darwin. 4355 * Makefile.in: Generate depedency for physmem.o. 4356 43572003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> 4358 4359 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on 4360 Tru64 UNIX. 4361 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on 4362 Tru64 UNIX. 4363 4364 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h, 4365 machine/hal_sysinfo.h, sys/table.h. 4366 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table. 4367 * configure, config.in: Regenerate. 4368 43692003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4370 4371 * configure.in: Check for sys/sysmp.h and sysmp. 4372 * physmem.c: Pull upstream copy, add support for irix6. 4373 4374 * config.in, configure: Regenerated. 4375 43762003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4377 4378 * physmem.c (physmem_total, physmem_available): De-ANSI-fy. 4379 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and 4380 pstat_getdynamic. 4381 43822003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4383 4384 * Makefile.in (CFILES): Add physmem.c. 4385 (REQUIRED_OFILES): Add physmem.o. 4386 * configure.in: Check for sys/pstat.h. 4387 (checkfuncs): Add pstat_getstatic and pstat_getdynamic. 4388 * physmem.c: New file, copied from textutils. 4389 4390 * config.in, configure: Regenerated. 4391 43922003-02-20 Daniel Jacobowitz <drow@mvista.com> 4393 4394 * Makefile.in (CFILES): Add lrealpath.c. 4395 (REQUIRED_OFILES): Add lrealpath.o. 4396 (lrealpath.o): Add rule. 4397 * aclocal.m4 (libiberty_NEED_DECLARATION): Add. 4398 * configure.in: Add realpath and canonicalize_file_name to 4399 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION 4400 for canonicalize_file_name. 4401 * lrealpath.c: New file. 4402 * make-relative-prefix.c: Update documentation. 4403 (make_relative_prefix): Simplify. Use lbasename and lrealpath. 4404 * config.in: Regenerated. 4405 * configure: Regenerated. 4406 * functions.texi: Regenerated. 4407 44082003-02-20 jmc <jmc@prioris.mini.pw.edu.pl> 4409 4410 * cplus_dem.c: Fix typo: intializes -> initializes. 4411 44122003-02-20 Alexandre Oliva <aoliva@redhat.com> 4413 4414 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to 4415 config.status. 4416 * configure: Rebuilt. 4417 44182003-02-13 Daniel Jacobowitz <drow@mvista.com> 4419 4420 Fix PR c++/7612. 4421 * cplus-dem.c (demangle_signature): Call string_delete. 4422 Remove extra string_init. 4423 (demangle_arm_hp_template): Call string_delete instead of 4424 string_clear. Add missing string_delete call. 4425 (demangle_qualified): Add missing string_delete call. 4426 (do_type): Remove unused variable btype. Add missing string_delete 4427 call. Call string_delete instead of string_clear. 4428 (demangle_fund_type): Move variable btype inside of the switch 4429 statement. Add missing string_delete call. 4430 (do_arg): Call string_delete instead of string_clear. Remove extra 4431 string_init. 4432 (demangle_nested_args): Free work->previous_argument. 4433 44342003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4435 4436 * acconfig.h: New file. Add uintptr_t. 4437 * config.in: Regenerated. 4438 44392003-02-04 Joseph S. Myers <jsm@polyomino.org.uk> 4440 4441 * libiberty.texi: Update to GFDL 1.2. 4442 44432003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de> 4444 4445 * Makefile.in (libiberty_topdir): New subst. 4446 (mkinstalldirs): Redefine in terms of the above. 4447 * configure.in: AC_SUBST it. 4448 * configure: Regenerate. 4449 44502003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de> 4451 4452 * Makefile.in (all-subdir, check-subdir, installcheck-subdir) 4453 (info-subdir, install-info-subdir, clean-info-subdir) 4454 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir) 4455 (clean-subdir, distclean-subdir, maintainer-clean-subdir): 4456 Pass $(FLAGS_TO_PASS). 4457 44582003-01-27 Alexandre Oliva <aoliva@redhat.com> 4459 4460 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use 4461 /`$$CC -print-multi-os-directory`. 4462 44632003-01-26 Daniel Jacobowitz <drow@mvista.com> 4464 4465 * hashtab.c (htab_create_alloc_ex): New function. 4466 (hatab_set_functions_ex): New function. 4467 (htab_delete, htab_expand): Support alternate allocation functions. 4468 44692003-01-24 Christopher Faylor <cgf@redhat.com> 4470 4471 * configure.in: Remove special pex-cygwin consideration. 4472 * configure: Regenerate. 4473 * pex-cygwin.c: Remove. 4474 * Makefile.in: Remove pex-cygwin.[co] lines. 4475 44762003-01-24 Zack Weinberg <zack@codesourcery.com> 4477 4478 * Makefile.in (CFILES): Add pex-*.c. 4479 (REQUIRED_OFILES): Change pexecute.o to @pexecute@ 4480 (CONFIGURED_OFILES): Add pex-*.o. 4481 (TEXIFILES): Add pexecute.txh. 4482 (pexecute.o): Delete rule. 4483 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o, 4484 pex-unix.o, pex-win32.o): New rules. 4485 * configure.in: Change AC_INIT argument to xmalloc.c. 4486 Compute appropriate pexecute implementation and substitute it 4487 as @pexecute@. 4488 4489 * pexecute.c: Split up into... 4490 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c, 4491 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these 4492 new files. 4493 4494 * functions.texi: Regenerate. 4495 * configure: Regenerate. 4496 44972003-01-20 Josef Zlomek <zlomekj@suse.cz> 4498 4499 * hashtab.c (htab_expand): Fix allocation of new entries. 4500 45012003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de> 4502 4503 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR. 4504 4505 * Makefile.in (install_to_libdir, install_to_tooldir): Add a 4506 mkinstalldirs command. 4507 45082002-12-04 Danny Smith <dannysmith@users.sourceforge.net> 4509 4510 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX): 4511 Define for hosts with HOST_EXECUTABLE_SUFFIX. 4512 45132002-11-24 Nick Clifton <nickc@redhat.com> 4514 4515 * make-relative-prefix.c (make_relative_prefix): Ensure return 4516 string is empty before using strcat to construct it. 4517 45182002-11-22 Daniel Jacobowitz <drow@mvista.com> 4519 4520 * Makefile.in: Add make-relative-prefix.c. 4521 * make-relative-prefix.c: New file. 4522 * functions.texi: Rebuilt. 4523 45242002-11-16 Jakub Jelinek <jakub@redhat.com> 4525 4526 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be 4527 used with arguments in traditional C' warnings. 4528 45292002-10-16 Jakub Jelinek <jakub@redhat.com> 4530 4531 * config.table: Use mh-s390pic for s390x too. 4532 45332002-10-06 Andreas Jaeger <aj@suse.de> 4534 4535 * cplus-dem.c (ada_demangle): Get rid of unneeded 4536 variable and of strict-aliasing warning. 4537 (grow_vect): Use char as first parameter. 4538 45392002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4540 4541 * Makefile.in (all): Fix multilib parallel build. 4542 45432002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca> 4544 4545 * cp-demangle.c (demangling_new): Cast 0 to enum. 4546 (demangle_char): Cast return of strdup to char *. 4547 (is_gnu_v3_mangled_ctor): Cast 0 to enum. 4548 (is_gnu_v3_mangled_dtor): Likewise. 4549 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *. 4550 (work_stuff_copy_to_from): Cast return of xmalloc to char **. 4551 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t. 4552 * md5.c (md5_process_bytes): Cast results back to const void *. 4553 (md5_process_block): Add cast to const md5_uint32 *. 4554 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T. 4555 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to 4556 unsigned short. 4557 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc 4558 to void *. 4559 * vasprintf.c (int_vasprintf): Cast return of malloc to char *. 4560 45612002-09-19 Nick Clifton <nickc@redhat.com> 4562 4563 * README: Update email addresses for bugs and patches. 4564 45652002-09-10 Mike Stump <mrs@apple.com> 4566 4567 * splay-tree.c (splay_tree_successor): Fix comments. 4568 45692002-09-11 Zack Weinberg <zack@codesourcery.com> 4570 4571 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c. 4572 * testsuite/Makefile.in: Adjust for test-demangle. 4573 * testsuite/regress-demangle: Deleted. 4574 * testsuite/test-demangle.c: New file. 4575 * testsuite/demangle-expected: Change \$ to $ throughout, now that 4576 this file is not being read by a shell script. 4577 45782002-09-05 Roger Sayle <roger@eyesopen.com> 4579 4580 * regex.c: Only use "#pragma alloca" on AIX when not using gcc. 4581 45822002-08-07 DJ Delorie <dj@redhat.com> 4583 4584 * regex.c (re_error_msgid): Just use a simple array of strings. 4585 (re_compile_pattern): Compensate. 4586 (re_comp): Likewise. 4587 (re_comp): Likewise. 4588 (regerror): Likewise. 4589 45902002-07-29 Neil Booth <neil@daikokuya.co.uk> 4591 4592 * cplus-dem.c (PREPEND_BLANK): Remove. 4593 45942002-07-10 Jason Merrill <jason@redhat.com> 4595 4596 * cp-demangle.c (demangle_identifier): Support extended Unicode 4597 characters. 4598 45992002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4600 4601 * cp-demangle.c (demangle_v3_with_details): Wrap in 4602 !defined IN_GLIBCPP_V3. 4603 46042002-07-01 Mark Mitchell <mark@codesourcery.com> 4605 4606 * cp-demangle.c (demangle_operator_name): Add type_arg parameter. 4607 Set it for the "st" operator. 4608 (demangle_expression): Handle expressions with types as arguments. 4609 46102002-06-30 Douglas Rupp <rupp@gnat.com> 4611 4612 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure. 4613 * Makefile.in (OUTPUT_OPTION): Use. 4614 46152002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de> 4616 4617 * Makefile.in (install_to_libdir): Add $(DESTDIR). 4618 (install_to_tooldir): Likewise. 4619 46202002-06-17 Douglas Rupp <rupp@gnat.com> 4621 4622 * lbasename.c: Add 2002 to copyright. 4623 (IS_DIR_SEPARATOR): Remove VMS junk. 4624 46252002-06-05 Geoffrey Keating <geoffk@redhat.com> 4626 4627 * hashtab.c (htab_create): New stub function for backward 4628 compatibility. 4629 (htab_try_create): Likewise. 4630 46312002-06-03 Geoffrey Keating <geoffk@redhat.com> 4632 4633 * hashtab.c (htab_create): Delete. 4634 (htab_try_create): Delete. 4635 (htab_create_alloc): New. 4636 (htab_delete): Support user-specified memory allocation. 4637 (htab_expand): Likewise. 4638 46392002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de> 4640 4641 * configure.in: Fix typo in the code checking for sys_errlist. 4642 * configure: Regenerated. 4643 46442002-05-13 Andreas Schwab <schwab@suse.de> 4645 4646 * config.table: Use mh-x86pic also for x86-64. 4647 46482002-05-08 Alexandre Oliva <aoliva@redhat.com> 4649 4650 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at 4651 script entry, and set LD to it when configuring multilibs. 4652 * configure: Rebuilt. 4653 46542002-05-07 Mark Mitchell <mark@codesourcery.com> 4655 4656 * configure.in (AC_TYPE_PID_T): Use it. 4657 * configure: Regenerated. 4658 * getruntime.c: Include <sys/types.h>. 4659 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid". 4660 46612002-04-09 Richard Henderson <rth@redhat.com> 4662 4663 * hashtab.c (higher_prime_number): Use 7 as minimum. 4664 (find_empty_slot_for_expand): Don't compute hash2 unless needed. 4665 (htab_find_slot_with_hash): Likewise. 4666 46672002-04-01 Phil Edwards <pme@gcc.gnu.org> 4668 4669 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3. 4670 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally 4671 not compile if IN_GLIBCPP_V3 defined. 4672 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme. 4673 46742002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz> 4675 4676 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled" 4677 if it is NULL. 4678 46792002-03-27 DJ Delorie <dj@redhat.com> 4680 4681 * hex.c: Add documentation. 4682 (_hex_value): Provide non-ASCII empty table. 4683 (hex_init): Initialize the non-ASCII table. 4684 * functions.texi: Regenerate. 4685 46862002-03-27 Mark Mitchell <mark@codesourcery.com> 4687 4688 * dyn-string.c: Add libgcc exception to copyright notice. 4689 46902002-03-26 H.J. Lu (hjl@gnu.org) 4691 4692 * config.table: Support --with-build-subdir. 4693 * configure.in: Likewise. 4694 * configure: Rebuild. 4695 46962002-03-18 Stuart Griffith <Stuart_Griffith@credence.com> 4697 4698 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity' 4699 seen. 4700 47012002-03-12 Mark Mitchell <mark@codesourcery.com> 4702 4703 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright 4704 notice. 4705 47062002-03-11 Douglas B Rupp <rupp@gnat.com> 4707 4708 * xatexit.c [VMS]: Include stdlib.h and unixlib.h. 4709 47102002-03-06 Jim Blandy <jimb@redhat.com> 4711 4712 * splay-tree.c (splay_tree_xmalloc_allocate, 4713 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not 4714 prototyped definitions. Mark `data' arguments as unused. 4715 47162002-03-06 Andrew Cagney <ac131313@redhat.com> 4717 4718 * floatformat.c (floatformat_arm_ext_big): Delete definition. 4719 47202002-03-04 Phil Edwards <pme@gcc.gnu.org> 4721 4722 * configure.in: Add --enable-install-libiberty option. 4723 * Makefile.in (INSTALLED_HEADERS): New variable. 4724 (install_to_libdir): Possibly also copy headers. 4725 * configure: Regenerated. 4726 47272002-03-04 Neil Booth <neil@daikokuya.demon.co.uk> 4728 4729 * xmalloc.c (xmalloc_fail): Clarify error message further. 4730 47312002-03-03 Neil Booth <neil@daikokuya.demon.co.uk> 4732 4733 * xmalloc.c (xmalloc_fail): Clarify error message. 4734 47352002-02-22 Jim Blandy <jimb@redhat.com> 4736 4737 * splay-tree.c (splay_tree_xmalloc_allocate, 4738 splay_tree_xmalloc_deallocate): New functions. 4739 (splay_tree_new): Call splay_tree_new_with_allocator, passing the 4740 above functions and a dummy data pointer. 4741 (splay_tree_new_with_allocator): New function. 4742 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert, 4743 splay_tree_remove): Use the splay tree's allocation and 4744 deallocation functions. 4745 47462002-02-19 Scott Snyder <snyder@fnal.gov> 4747 4748 * testsuite/demangle-expected: Add test case for infinite loop in 4749 demangler. 4750 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle 4751 if do_type() doesn't make any progress --- prevents an infinite 4752 loop. 4753 47542002-02-18 Carlo Wood <carlo@gnu.org> 4755 4756 PR c++/5390 4757 * cplus-dem.c (demangle_integral_value): Accept multi-digit 4758 numbers that do not start with an underscore; This is needed 4759 for integer template parameters. This doesn't break anything 4760 because multi-digit numbers are never followed by a digit. 4761 * testsuite/demangle-expected: Corrected all mangled test 4762 cases with multi-digit template parameters: g++ 2.95.x does 4763 not generate underscores around these parameters. 4764 47652002-02-05 Jason Merrill <jason@redhat.com> 4766 4767 * cplus-dem.c (flags): Add DMGL_VERBOSE 4768 (cplus_demangle_v3_p): Remove. 4769 (demangle_it): Add DMGL_TYPES to passed flags. 4770 * cp-demangle.c (cplus_demangle_v3_all): Remove. 4771 (cplus_demangle_v3_type): Remove. 4772 (cplus_demangle_v3): Add options parm. 4773 47742002-02-02 H.J. Lu (hjl@gnu.org) 4775 4776 * cp-demangle.c (cp_demangle_type): Do not protect with 4777 IN_LIBGCC2. 4778 (cplus_demangle_v3_all): New. 4779 (cplus_demangle_v3): Call cplus_demangle_v3_all. 4780 (cplus_demangle_v3_type): Call cplus_demangle_v3_all. 4781 4782 * cplus-dem.c (cplus_demangle_v3_p): New function pointer. 4783 Initialized to cplus_demangle_v3. 4784 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead 4785 of cplus_demangle_v3. 4786 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for 4787 command line symbol. 4788 4789 * testsuite/regress-demangle: Pass the mangled name at the 4790 command line. 4791 47922002-02-01 H.J. Lu <hjl@gnu.org> 4793 4794 * cp-demangle.c (cp_demangle_type): Call demangling_new with 4795 DMGL_GNU_V3. 4796 47972002-01-31 Phil Edwards <pme@gcc.gnu.org> 4798 4799 * cp-demangle.c: Revert yesterday's change. 4800 48012002-01-31 Adam Megacz <adam@xwt.org> 4802 4803 * configure.in: Treat mingw the same as cywin 4804 wrt HAVE_SYS_ERRLIST. 4805 48062002-01-30 Phil Edwards <pme@gcc.gnu.org> 4807 4808 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2. 4809 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on 4810 cp_demangle_type. 4811 * testsuite/demangle-expected: New gnu-v3 test. 4812 48132002-01-22 Momchil Velikov <velco@fadata.bg> 4814 4815 * configure.in (variable detection): Use arrays of unspecified 4816 size instead of plain integers. 4817 48182002-01-18 DJ Delorie <dj@redhat.com> 4819 4820 * Makefile.in (TESTLIB): New. This library is for future 4821 testsuites. 4822 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize, 4823 break down by letter. 4824 (REQUIRED_OFILES): List long-to-compile files first. 4825 (maint-deps): New, target for updating dependencies. 4826 (dependencies): Update. 4827 * maint-tool: Add dependency-generating option. 4828 * configure.in: Check for _doprnt even if we're not providing it. 4829 * configure: Regenerate. 4830 4831 * _doprnt.c: Modifications to allow compiling on any platform. 4832 * copysign.c: Likewise. 4833 * putenv.c: Likewise. 4834 * setenv.c: Likewise. 4835 * vsprintf.c: Likewise. 4836 48372002-01-15 Douglas B Rupp <rupp@gnat.com> 4838 4839 * mkstemps.c (mkstemps): On VMS, open temp file with option 4840 that causes it to be deleted when closed. 4841 48422002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4843 4844 * cp-demangle.c (long_options): Const-ify. 4845 * cplus-dem.c (long_options): Likewise. 4846 4847 * cplus-dem.c (mystrstr): Delete. All callers changed to use 4848 strstr instead. 4849 48502001-12-31 Ira Ruben <ira@apple.com> 4851 4852 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try. 4853 * configure: Regenerated. 4854 48552001-12-24 Douglas B. Rupp <rupp@gnat.com> 4856 4857 * configure.in (uintptr_t): Use AC_CHECK_TYPE. 4858 * configure: Regenerated. 4859 48602001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org> 4861 4862 PR other/2719 4863 * cplus-dem.c (consume_count): Treat negative count as an error. 4864 * testsuite/demangle-expected: Added testcase. 4865 4866Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com> 4867 4868 * configure.in: Hardcode that vfork works on VMS host. 4869 * configure: Regenerated. 4870 48712001-12-06 Richard Henderson <rth@redhat.com> 4872 4873 * cplus-dem.c (libiberty_demanglers): Add no_demangling case. 4874 (cplus_demangle): Support no_demangling. 4875 48762001-11-27 Zack Weinberg <zack@codesourcery.com> 4877 4878 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build 4879 in libiberty context. Fix typo in leading comment. 4880 * configure.in: Fix various AC_DEFINEs so autoheader works. 4881 If any of vprintf, vsprintf, vfprintf is missing from libc, 4882 then AC_REPLACE_FUNCS(_doprnt). 4883 48842001-11-26 DJ Delorie <dj@redhat.com> 4885 Daniel Jacobowitz <drow@mvista.com> 4886 4887 * Makefile.in (stamp-h): Depend on Makefile for proper 4888 serialization. 4889 (*-subdir): Depend on config.h for proper serialization. 4890 48912001-11-26 DJ Delorie <dj@redhat.com> 4892 4893 * configure.in: Check for alloca.h (for regex.c and putenv.c). 4894 * configure: Regenerate. 4895 * config.h: Add HAVE_ALLOCA_H. 4896 48972001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4898 4899 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) || 4900 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting 4901 is available. 4902 4903Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com) 4904 4905 * config.in (HAVE_UINTPTR_T): Provide autoconf stub. 4906 * configure.in (HAVE_UINTPTR_T): Test for system defining 4907 uintptr_t and define HAVE_UINTPTR_T appropriately. 4908 * regex.c (uintptr_t): Do not provide a definition if the 4909 system provided one. 4910 4911 * regex.c (PREFIX): Provide an alternate definition for 4912 non-ANSI/ISO compilers. 4913 (ARG_PREFIX): Likewise. 4914 49152001-11-12 Jim Meyering <meyering@lucent.com> 4916 4917 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise, 4918 this code would end up calling gettext even in packages built 4919 with --disable-nls. 4920 * getopt.c (_): Likewise. 4921 * regex.c (_): Likewise. 4922 49232001-11-03 Alan Modra <amodra@bigpond.net.au> 4924 4925 * configure.in: Cope with missing makeinfo. 4926 * configure: Regenerate. 4927 49282001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4929 4930 * hex.c (hex_init): Provide empty stub. 4931 4932 * hex.c (hex_init): Delete. 4933 (_hex_value): Const-ify and initialize at compile-time. 4934 49352001-10-19 H.J. Lu <hjl@gnu.org> 4936 4937 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if 4938 necessary. 4939 49402001-10-17 DJ Delorie <dj@redhat.com> 4941 4942 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c, 4943 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c, 4944 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c: 4945 Improve manual formatting. 4946 * functions.texi: Regenerate. 4947 49482001-10-15 DJ Delorie <dj@redhat.com> 4949 4950 * Makefile.in (TEXIFILES): Add fnmatch.txh. 4951 (maint-undoc): New. 4952 maint-tool: Add "undoc" tool. 4953 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c, 4954 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c, 4955 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c, 4956 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update 4957 documentation. 4958 * fnmatch.txh: New. 4959 * functions.texi: Regenerate. 4960 49612001-10-10 Joseph S. Myers <jsm28@cam.ac.uk> 4962 4963 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero". 4964 * strtod.c: Use "ISO C" instead of "ANSI C". 4965 * functions.texi: Regenerate. 4966 49672001-10-07 Joseph S. Myers <jsm28@cam.ac.uk> 4968 4969 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c, 4970 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c, 4971 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c, 4972 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix 4973 spelling. Give names to function arguments in documentation. Use 4974 (void) prototypes in documentation. 4975 * functions.texi: Regenerate. 4976 49772001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4978 4979 * argv.c (buildargv, tests, main): Const-ify. 4980 * cp-demangle.c (operator_code): Likewise. 4981 * cplus-dem.c (optable, libiberty_demanglers, 4982 cplus_demangle_set_style, cplus_demangle_name_to_style, 4983 print_demangler_list): Likewise. 4984 * hashtab.c (higher_prime_number): Likewise. 4985 * strcasecmp.c (charmap): Likewise. 4986 * strerror.c (error_info, strerror, main): Likewise. 4987 * strncasecmp.c (charmap): Likewise. 4988 * strsignal.c (signal_info): Likewise. 4989 49902001-09-29 DJ Delorie <dj@redhat.com> 4991 4992 * configure: Regenerate. 4993 49942001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 4995 4996 * concat.c: Include stdlib.h. 4997 49982001-09-27 Eli Zaretskii <eliz@is.elta.co.il> 4999 5000 * libiberty.texi: (Top level): Add syncodeindex pg. Add 5001 @dircategory and @direntry directives. Add @finalout. 5002 (many nodes): Lose the next,prev,up pointers on the @nide line. 5003 (Using, Supplemental Functions, Replacement Functions): Fix 5004 markup. 5005 (Functions): Move around, to allow makeinfo to build the manual 5006 without next,prev,up pointers in thye node lines. 5007 (Licenses): Fix typos. 5008 5009 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c, 5010 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup. 5011 * functions.texi: Regenerate. 5012 5013 * copying-lib.texi: Lose the next,prev,up pointers on the @node 5014 line. 5015 50162001-09-27 DJ Delorie <dj@redhat.com> 5017 5018 * configure.in: Don't use in-tree texinfo, because libiberty must 5019 be built before it. Check for makeinfo version 4 or higher. 5020 * functions.texi: Regenerate. 5021 50222001-09-20 DJ Delorie <dj@redhat.com> 5023 Phil Edwards <pedwards@disaster.jaj.com> 5024 5025 * configure.in (MAKEINFO, PERL): Detect these. 5026 (--enable-maintainer-mode): Add. 5027 * configure: Regenerate. 5028 * Makefile.in (MAKEINFO, PERL): Define. 5029 (libiberty.info, libiberty.dvi, libiberty.html): New. 5030 (CFILES): Add bsearch.c. 5031 (CONFIGURED_OFILES): New, list of objects configure might add. 5032 (maint-missing, maint-buildall): New, for maintainers only. 5033 (clean, mostlyclean): Add info/dvi/html files. 5034 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New. 5035 * gather-docs: New, for maintainers. 5036 * maint-tool: New, for maintainers. 5037 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c, 5038 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c, 5039 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c, 5040 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c, 5041 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c, 5042 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c, 5043 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c, 5044 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update 5045 documentation. 5046 50472001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5048 5049 * concat.c (reconcat): Fix for traditional C. 5050 50512001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5052 5053 * concat.c (reconcat): New function. 5054 50552001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5056 5057 * concat.c (vconcat_length, vconcat_copy, concat_length, 5058 concat_copy, concat_copy2): New functions. 5059 (concat): Use vconcat_length/vconcat_copy. 5060 5061 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len): 5062 Define. 5063 50642001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5065 5066 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN, 5067 VA_FIXEDARG & VA_CLOSE. 5068 5069 * vasprintf.c: Check HAVE_STRING_H when including string.h. 5070 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1. 5071 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string. 5072 50732001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5074 5075 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE. 5076 50772001-08-23 Ulrich Drepper <drepper@redhat.com> 5078 5079 * regex.c (truncate_wchar): Use wcrtomb not wctomb. 5080 50812001-08-23 Ulrich Drepper <drepper@redhat.com> 5082 5083 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc 5084 instead of mbrtowc. 5085 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of 5086 wcslen, and __wcscoll instead of wcscoll. 5087 50882001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu> 5089 5090 * fibheap.c (fibheap_init, fibnode_init): Remove. 5091 (fibheap_new, fibnode_new): Use xcalloc to allocate and 5092 initialize memory. 5093 (fibheap_insert): Remove check for node allocation failure. 5094 50952001-08-21 Richard Henderson <rth@redhat.com> 5096 5097 * Makefile.in (fibheap.o): Depend on config.h. 5098 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some 5099 functions for inlining. 5100 5101Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com> 5102 5103 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever 5104 hosting on cygwin. 5105 * configure: Regenerate. 5106 51072001-08-20 Andrew Cagney <ac131313@redhat.com> 5108 5109 * floatformat.c (floatformat_m88110_ext): Remove #ifdef 5110 HARRIS_FLOAT_FORMAT. 5111 (floatformat_ia64_spill_little, floatformat_ia64_quad_little) 5112 (floatformat_ia64_spill_big, floatformat_ia64_quad_big) 5113 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword) 5114 (floatformat_m88110_harris_ext): New float formats. 5115 51162001-08-20 Daniel Berlin <dan@cgsoftware.com> 5117 5118 * fibheap.c: New file. Fibonacci heap. 5119 5120 * Makefile.in (CFILES): Add fibheap.c. 5121 (REQUIRED_OFILES): Add fibheap.o. 5122 (fibheap.o): Add dependencies for fibheap.o. 5123 51242001-08-17 Christopher Faylor <cgf@cygnus.com> 5125 5126 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin. 5127 * configure: Regenerate. 5128 51292001-08-16 Richard Henderson <rth@redhat.com> 5130 5131 * hashtab.c (htab_hash_string): New. 5132 51332001-08-13 Andrew Cagney <ac131313@redhat.com> 5134 5135 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix 5136 name. 5137 51382001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com> 5139 5140 * regex.c (wcs_regex_compile): Use appropriate string 5141 to compare with collating element. 5142 Fix the padding for the alignment. 5143 51442001-08-10 Andrew Cagney <ac131313@redhat.com> 5145 5146 * lbasename.c (lbasename): Change function definition to return a 5147 const char pointer. 5148 51492001-08-07 Jason Merrill <jason_merrill@redhat.com> 5150 5151 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary 5152 for". 5153 51542001-08-03 Richard Henderson <rth@redhat.com> 5155 5156 * Makefile.in (concat.o): Depend on config.h. 5157 51582001-07-30 Andreas Jaeger <aj@suse.de> 5159 5160 * concat.c: Include "config.h". 5161 51622001-07-30 Andreas Jaeger <aj@suse.de> 5163 5164 * regex.c: Declare wcs functions only if compiling with 5165 MBS_SUPPORT. 5166 Don't use #elif for traditional C. 5167 51682001-07-23 Ulrich Drepper <drepper@redhat.com> 5169 5170 * regex.c: Revamp memory allocation for WCHAR functions to 5171 not use too much stack. 5172 51732001-07-30 Andreas Jaeger <aj@suse.de> 5174 5175 * regex.c: Declare wcs functions only if compiling with 5176 MBS_SUPPORT. 5177 Don't use #elif for traditional C. 5178 51792001-07-25 Daniel Jacobowitz <drow@mvista.com> 5180 5181 * Makefile.in (regex.o): Add dependency on config.h. 5182 51832001-07-18 Andreas Schwab <schwab@suse.de> 5184 5185 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the 5186 underscore character. 5187 51882001-07-18 Ulrich Drepper <drepper@redhat.com> 5189 5190 * regex.c: Limit string length printed in debug messages to 100 5191 chars. 5192 51932001-07-18 Andreas Jaeger <aj@suse.de> 5194 5195 * regex.c: Place under LGPL version 2.1. 5196 51972001-07-10 Jeff Johnston <jjohnstn@redhat.com> 5198 5199 * Makefile.in: Add support for regex code. 5200 * regex.c: New file. 5201 52022001-07-05 Mark Klein <mklein@dis.com> 5203 5204 * Makefile.in: Add ffs.c dependency. 5205 * configure.in: Add ffs.c. 5206 * ffs.c: New file. 5207 52082001-06-18 Richard Henderson <rth@redhat.com> 5209 5210 * concat.c: Include <sys/types.h>. 5211 52122001-06-11 Loren J. Rittle <ljrittle@acm.org> 5213 5214 bootstrap/3106 5215 * strerror.c (sys_nerr): Hide the OS header version. 5216 * strsignal.c (sys_nsig): Likewise. 5217 52182001-06-10 Richard Henderson <rth@redhat.com> 5219 5220 * concat.c: Include string.h. Fix int vs size_t usage. 5221 Simplify the iteration loops. Use memcpy. 5222 52232001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu> 5224 5225 * partition.c: Fix misspelling of `implementation'. 5226 52272001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de> 5228 5229 * md5.c (md5_init_ctx): Declare constants as unsigned. 5230 (md5_process_block): Likewise. 5231 52322001-05-07 Zack Weinberg <zackw@stanford.edu> 5233 5234 * cp-demangle.c (demangle_v3_with_details, 5235 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style 5236 function definition. 5237 * ternary.c: Use K+R style function definitions. Use PTR, not 5238 void *. Make arguments constant where possible. 5239 52402001-05-07 Mark Mitchell <mark@codesourcery.com> 5241 5242 * splay-tree.h (splay_tree_max): New function. 5243 (splay_tree_min): Likewise. 5244 52452001-04-15 Daniel Berlin <dan@cgsoftware.com> 5246 5247 * ternary.c: New file - Ternary search tree implementation. 5248 5249 * Makefile.in: Add ternary.o, and ternary.c dependencies. 5250 52512001-04-03 Zack Weinberg <zackw@stanford.edu> 5252 5253 * make-temp-file.c (try): Inline. 5254 52552001-02-28 Richard Henderson <rth@redhat.com> 5256 5257 * Makefile.in (make-temp-file.o): Depend on config.h. 5258 52592001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5260 5261 * memchr.c (memchr): Adjust condition to avoid infinite loop. 5262 52632001-03-23 Jakub Jelinek <jakub@redhat.com> 5264 5265 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1, 5266 `_' not followed by a digit is invalid. 5267 52682001-03-22 Jim Blandy <jimb@redhat.com> 5269 5270 * cp-demangle.c (string_list_delete): Use dyn_string_delete 5271 instead of free, to free the contents as well as the string 5272 structure. 5273 52742001-03-21 Zack Weinberg <zackw@stanford.edu> 5275 5276 * make-temp-file.c: Always default DIR_SEPARATOR to '/'. 5277 Don't default P_tmpdir to anything. Try /var/tmp before 5278 /usr/tmp. 5279 52802001-03-20 Zack Weinberg <zackw@stanford.edu> 5281 5282 * choose-temp.c: Split off make_temp_file, and the code 5283 duplicated between it and choose_temp_base, into... 5284 * make-temp-file.c: ... here; new file. 5285 5286 * Makefile.in (CFILES): Add make-temp-file.c. 5287 (REQUIRED_OFILES): Add make-temp-file.o. 5288 52892001-03-20 Jim Blandy <jimb@redhat.com> 5290 5291 * cp-demangle.c (struct demangling_def): New fields: 5292 is_constructor and is_destructor. 5293 (demangling_new): Initialize them. 5294 (demangle_ctor_dtor_name): Set them, if we detect a constructor 5295 or destructor. 5296 (demangle_v3_with_details, is_gnu_v3_mangled_ctor, 5297 is_gnu_v3_mangled_dtor): New functions. 5298 52992001-03-20 Jason Merrill <jason@redhat.com> 5300 5301 * cplus-dem.c (main): Skip initial $. 5302 53032001-03-15 Michael Meissner <meissner@redhat.com> 5304 5305 * hashtab.c (higher_prime_number): Silence warning that 4294967291 5306 might be a signed integer under pre-ISO C systems. 5307 53082001-03-10 Neil Booth <neil@daikokuya.demon.co.uk> 5309 John David Anglin <dave@hiauly1.hia.nrc.ca> 5310 5311 * lbasename.c: New file. 5312 * Makefile.in: Update for lbasename. 5313 53142001-03-06 Zack Weinberg <zackw@stanford.edu> 5315 5316 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New. 5317 * configure.in: Replace all alloca logic with a simple use of 5318 the above new macro. 5319 * config.table: Kill *-*-beos* entry. 5320 * config/mh-beos: Delete. 5321 * configure, config.in: Regenerate. 5322 5323 * Makefile.in (ALLOCA, HFILES): Kill. 5324 (REQUIRED_OFILES): Add alloca.o. 5325 (alloca.o): Depend on libiberty.h. 5326 (argv.o): Don't depend on alloca-conf.h. 5327 * alloca-conf.h: Delete. 5328 * alloca.c: Include libiberty.h. Kill all #ifdef emacs 5329 blocks. Provide the C alloca unconditionally. Use PTR where 5330 appropriate. Make i00afunc static. 5331 * argv.c: Don't include alloca-conf.h. 5332 53332001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca> 5334 5335 * cplus-dem.c (main): Cast enum style to int. 5336 53372001-02-16 Loren J. Rittle <ljrittle@acm.org> 5338 5339 * cplus-dem.c (main): Initialize style. 5340 53412001-02-02 Phil Edwards <pme@sources.redhat.com> 5342 5343 * COPYING.LIB: Update to LGPL 2.1 from the FSF. 5344 53452001-01-31 Bryce McKinlay <bryce@albatross.co.nz> 5346 5347 Add support for Java demangling under the v3 ABI: 5348 * cp-demangle.c (NAMESPACE_SEPARATOR): New define. 5349 (struct demangling_def): Add `style' field. 5350 (demangling_new): New parameter `style'. Set it in demangling_t. 5351 (demangle_prefix): Use NAMESPACE_SEPARATOR. 5352 (demangle_type_ptr): Don't emit pointer symbol if doing Java output. 5353 (cp_demangle): New parameter `style'. Pass it to demangling_new(). 5354 (main): Call cp_demangle with extra parameter. 5355 (java_demangle_v3): New function. 5356 (java_builtin_type_names): New. Table of primitive type names used 5357 for Java demangling. 5358 (demangle_builtin_type): Look up in java_builtin_type_names if doing 5359 Java output. 5360 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java 5361 demangling. 5362 (long_options): Remove obsolete `java' option. 5363 (main): Remove explicit handling of `java' option. Instead, pass style 5364 parameter in cplus_demangle flags as gdb does. 5365 * testsuite/demangle.expected: Add some Java test cases. 5366 53672000-12-29 DJ Delorie <dj@redhat.com> 5368 5369 * fnmatch.c: Make the note about the origins of this file more 5370 accurate, at least until we can sync with glibc. 5371 * getopt.c: Ditto. 5372 * getopt1.c: Ditto. 5373 * md5.c: Ditto. 5374 * obstack.c: Ditto. 5375 53762000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5377 5378 * bsearch.c: New file. 5379 * configure.in (funcs): Add bsearch. 5380 (AC_CHECK_FUNCS): Likewise. 5381 * configure, config.in: Regenerate. 5382 53832000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5384 5385 * safe-ctype.c: #include "ansidecl.h". 5386 * strtod.c: Likewise. 5387 53882000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5389 5390 * strtoul.c: Include safe-ctype.h, not ctype.h. 5391 53922000-12-07 Zack Weinberg <zack@wolery.stanford.edu> 5393 5394 * safe-ctype.c: New file. 5395 * Makefile.in (CFILES): Add safe-ctype.c. 5396 (REQUIRED_OFILES): Add safe-ctype.o. 5397 5398 * argv.c: Define ISBLANK and use it, not isspace. 5399 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c, 5400 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use 5401 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c) 5402 before calling TOLOWER(c)/TOUPPER(c). 5403 54042000-12-07 Mike Stump <mrs@wrs.com> 5405 5406 * Makefile.in (distclean): When cleaning, remove testsuite. 5407 54082000-12-05 Jason Merrill <jason@redhat.com> 5409 5410 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled 5411 name before allocating the dyn_string. 5412 54132000-12-04 Jason Merrill <jason@redhat.com> 5414 5415 * cp-demangle.c: s/new_abi/v3/. 5416 * cplus-dem.c: Likewise. 5417 (current_demangling_style): Now auto_demangling. 5418 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING. 5419 (main): Use standard symbol chars for auto_demangling. 5420 54212000-11-26 Mark Mitchell <mark@codesourcery.com> 5422 5423 * hashtab.c (higher_prime_number): Use a table, rather than a 5424 seive, to find the next prime. 5425 54262000-11-22 H.J. Lu <hjl@gnu.org> 5427 5428 * cplus-dem.c (main): Handle gnat_demangling. 5429 54302000-11-22 Zack Weinberg <zack@wolery.stanford.edu> 5431 5432 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in. 5433 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader. 5434 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three 5435 argument form of AC_DEFINE in dummy definitions block. Use 5436 AC_DEFINE_NOAUTOHEADER for real definitions of things defined 5437 in dummy block. Preload cache variables instead of bypassing 5438 tests, where possible. 5439 * acconfig.h: Removed. 5440 5441 * xmalloc.c (xmalloc_failed): New function, does error 5442 reporting on failed allocation. 5443 (xmalloc, xcalloc, xrealloc): Use it. 5444 54452000-11-21 Hans-Peter Nilsson <hp@bitrange.com> 5446 5447 * cplus-dem.c (cplus_demangle): Fix formatting. 5448 (grow_vect): Ditto. 5449 (ada_demangle): Ditto. 5450 (internal_cplus_demangle): Ditto. 5451 (mop_up): Ditto. 5452 54532000-11-21 H.J. Lu <hjl@gnu.org> 5454 5455 * cplus-dem.c (main): Handle java_demangling. 5456 54572000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5458 5459 * cplus-dem.c (grow_vect): Prototype. 5460 (ada_demangle): Cast the arg of ctype macros to unsigned char. 5461 54622000-11-15 Hans-Peter Nilsson <hp@bitrange.com> 5463 5464 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for 5465 parameter `option'. 5466 54672000-11-15 Kenneth Block <kenneth.block@compaq.com> 5468 5469 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot 5470 be used in GCC. 5471 54722000-11-15 Kenneth Block <kenneth.block@compaq.com> 5473 5474 * cplus-dem.c: Add gnat demangler. Add java to demangle style 5475 list. 5476 54772000-11-04 Hans-Peter Nilsson <hp@bitrange.com> 5478 5479 * hashtab.c (htab_expand): Change to return int. Use calloc or 5480 xcalloc depending on htab->return_allocation_failure. Return zero 5481 if calloc fails. 5482 (htab_create): Update comment to cover memory allocation. 5483 (htab_try_create): New. 5484 (htab_find_slot_with_hash): Return NULL if htab_expand fails. 5485 Update comment to cover this. 5486 54872000-11-03 Hans-Peter Nilsson <hp@bitrange.com> 5488 5489 * hashtab.c: Change void * to PTR where necessary. 5490 (htab_create, htab_expand): Correct formatting of comment before 5491 function. 5492 54932000-10-22 Alex Samuel <samuel@codesourcery.com> 5494 5495 * cp-demangle.c (string_list_def): Add caret_position and comments. 5496 (result_caret_pos): New macro. 5497 (result_append_string): Rename to... 5498 (result_add_string): ... this, and insert at caret position. 5499 Rename throughout. 5500 (result_append): Rename to... 5501 (result_add): ... this, and insert at caret position. Rename 5502 throughout. 5503 (result_append_char): Rename to... 5504 (result_add_char): ... this, and insert at caret position. Rename 5505 throughout. 5506 (result_append_space): Remove. 5507 (string_list_new): Initialize caret position. 5508 (result_add_separated_char): Use caret position. 5509 (result_get_caret): New funtion. 5510 (result_set_caret): Likewise. 5511 (result_shift_caret): Likewise. 5512 (result_previous_char_is_space): Likewise. 5513 (substitution_start): Use caret position. 5514 (substitution_add): Likewise. 5515 (demangling_new): Initialize caret position. 5516 (demangle_encoding): Use caret position. 5517 (demanglin_nested_name): Put CV qualifiers after name. 5518 (demangle_type_ptr): Use switch statement. Handle pointers to 5519 arrays. Don't use result_append_space. Use caret position. 5520 (demangle_type): Emit CV qualifiers after underlying type. Adjust 5521 call to demangle_array_type. 5522 (demangle_array_type): Add parameter to handle pointers to arrays. 5523 55242000-10-01 Mark Mitchell <mark@codesourcery.com> 5525 5526 * splay-tree.c (splay_tree_insert): Fix formatting. 5527 55282000-09-16 Mark Mitchell <mark@codesourcery.com> 5529 5530 * splay-tree.c (splay_tree_predecessor): Fix typo in comment. 5531 55322000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5533 5534 * splay-tree.c: #include <stdio.h>. 5535 55362000-09-14 Hans-Peter Nilsson <hp@axis.com> 5537 5538 * testsuite/demangle-expected: Add two tests for anonymous 5539 namespaces. 5540 * cplus-dem.c (gnu_special): Handle anonymous namespaces. 5541 55422000-09-10 Mark Mitchell <mark@codesourcery.com> 5543 5544 * splay-tree.c (splay_tree_predecessor): New function. 5545 (splay_tree_successor): Likewise. 5546 55472000-09-10 Hans-Peter Nilsson <hp@axis.com> 5548 5549 * testsuite/demangle-expected: Add four tests for type_info 5550 mangling. 5551 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type, 5552 for a non-template non-qualified type_info function or node. 5553 55542000-09-08 Alex Samuel <samuel@codesourcery.com> 5555 5556 * cp-demangle.c: Fix copyright banner. 5557 55582000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5559 5560 * md5.c: #include "ansidecl.h". 5561 55622000-09-06 Alex Samuel <samuel@codesourcery.com> 5563 5564 * cp-demangle.c (status_allocation_failed): Rearrange whitespace. 5565 (demangle_type): Handle substitution candidates correctly in the 5566 face of special substitutions. 5567 55682000-09-05 Alex Samuel <samuel@codesourcery.com> 5569 5570 * cp-demangle.c (demangle_encoding): Rename variable. 5571 (demangle_name): Rename parameter. Handle return type 5572 suppression. 5573 (demangle_nested_name): Rename parameter. 5574 (demangle_prefix): Likewise. Change return type suppression. 5575 (demangle_unqualified_name): Add parameter. Flag constructors and 5576 conversion operators. 5577 (demangle_special_name): Fix comment. 5578 (demangle_type): Rename variable. 5579 (demangle_bare_function_type): Check for missing return type and 5580 parameter. 5581 (demangle_class_enum_type): Rename parameter. 5582 (demangle_discriminator): Fix misspelling in comment. 5583 55842000-08-31 DJ Delorie <dj@redhat.com> 5585 5586 * configure.in (Cygwin): special case cygwin only when we're 5587 building cygwin, not when we're hosting cygwin. 5588 55892000-09-04 Alex Samuel <samuel@codesourcery.com> 5590 5591 * cp-demangle.c (demangle_template_arg): Eat an `E' after an 5592 <expression>. 5593 55942000-09-04 Alex Samuel <samuel@codesourcery.com> 5595 5596 * cp-demangle.c (demangle_type_ptr): Increment position past 5597 pointer and reference characters. 5598 55992000-09-04 Alex Samuel <samuel@codesourcery.com> 5600 5601 * cp-demangle.c (demangle_nv_offset): New function. 5602 (demangle_v_offset): Likewise. 5603 (demangle_call_offset): Likewise. 5604 (demangle_special_name): Update thunk demangling to comply with 5605 ABI changes. 5606 56072000-09-03 Alex Samuel <samuel@codesourcery.com> 5608 5609 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro. 5610 (substitution_def): Remove template_parm_number. 5611 (NOT_TEMPLATE_PARM): Remove. 5612 (result_insert_string): New macro. 5613 (result_insert): Likewise. 5614 (result_insert_char): Likewise. 5615 (substitution_add): Remove last parameter. Don't store template 5616 parm number. 5617 (BFT_NO_RETURN_TYPE): Define as NULL. 5618 (demangle_encoding): Adjust call to demangle_bare_function_type. 5619 (demangle_name): Adjust substitution. Adjust call to 5620 substitution_add. 5621 (demangle_prefix): Adjust call to substitution_add. 5622 (demangle_identifier): Handle anonymous namespaces. 5623 (demangle_operator_name): Change demangling of vendor-extended 5624 operator to match ABI changes. 5625 (demangle_type_ptr): Change parameters. Make recursive. Handle 5626 substitutions here. 5627 (demangle_type): Adjust calls to demangle_template_param, 5628 substitution_add, and demangle_type_ptr. Fix substitution of 5629 templated types. 5630 (demangle_function_type): Change parameter to a pointer. 5631 (demangle_bare_function_type): Likewise. Adjust insertion point. 5632 (demangle_template_param): Remove last parameter. 5633 (demangle_expr_primary): Remove unused variable. Adjust call to 5634 demangle_template_param. 5635 (is_mangled_char): Accept `$' and `.'. 5636 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'. 5637 * dyn-string.c (dyn_string_insert_char): New function. 5638 56392000-08-31 Hans-Peter Nilsson <hp@axis.com> 5640 5641 * testsuite/demangle-expected: Add nine tests for 5642 underscore-after-number followed by five tests for name-signature 5643 delimiter. 5644 56452000-08-28 Richard Henderson <rth@cygnus.com> 5646 5647 * Makefile.in (md5.o): Depend on config.h. 5648 56492000-08-28 Jason Merrill <jason@redhat.com> 5650 5651 * Makefile.in (REQUIRED_OFILES): Add md5.o. 5652 (CFILES): Add md5.c. 5653 * md5.c: New file. 5654 56552000-08-27 Alex Samuel <samuel@codesourcery.com> 5656 5657 * cp-demangle.c (demangle_name): Initialize template_p in local 5658 name case. Don't re-add substitutions as candidates. 5659 (demangle_nested_name): Use <unqualified-name>. 5660 (demangle_prefix): Likewise. Don't add template names as 5661 substitution candidates twice, or re-add a substitution or the 5662 last prefix component. 5663 (demangle_local_name): Adjust output format. 5664 56652000-08-25 Alex Samuel <samuel@codesourcery.com> 5666 5667 * cp-demangle.c (result_add_separated_char): Change parameter to 5668 int. 5669 (substitution_add): Don't check for duplicates. Check if 5670 previously allocated size is zero. 5671 (demangle_name): Remove duplicate check for std substitution. 5672 Clear template flag appropriately. 5673 (demangle_prefix): Remove argument to demangle_substitution. 5674 Don't check that template flag is already set. 5675 (demangle_operator_name): Add pt operator. 5676 (demangle_type): Don't treat r as built-in type. Remove argument 5677 to demangle_substitution. Fix substitution candidate mechanics. 5678 Handle <template-template-parm>s. Improve comments. 5679 (demangle_template_param): Don't handle template arg lists here. 5680 (demangle_substitution): Remove parameter. 5681 (print_usage): Remove extra fprintf option. 5682 56832000-08-24 Greg McGary <greg@mcgary.org> 5684 5685 * random.c (end_ptr): Revert previous change. 5686 56872000-08-24 Greg McGary <greg@mcgary.org> 5688 5689 * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname, 5690 demangle_expression, demangle_function_name): Use ARRAY_SIZE. 5691 * random.c (end_ptr): Likewise. 5692 56932000-08-23 Alex Samuel <samuel@codesourcery.com> 5694 5695 * cp-demangle.c (result_close_template_list): Remove function. 5696 (result_add_separated_char): New function. 5697 (result_open_template_list): New macro. 5698 (result_close_template_list): Likewise. 5699 (demangle_prefix): Don't set template_p if the 5700 prefix ends with a ctor name. 5701 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR. 5702 (demangle_type): Check for template args after substitution. 5703 (demangle_template_args): Use result_open_template_list. 5704 57052000-08-02 Zack Weinberg <zack@wolery.cumb.org> 5706 5707 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop. 5708 57092000-07-26 Dave Pitts <dpitts@cozx.com> 5710 5711 * config/mh-openedition.h: Added -DLE370 definition. 5712 57132000-07-26 Mark Elbrecht <snowball3@bigfoot.com> 5714 5715 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to 5716 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call. 5717 Cast program to 'char *' in errmsg_arg assignment. 5718 (PWAIT_ERROR): Define. 5719 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform 5720 to DJGPP's WIF* macros. 5721 57222000-07-27 RodneyBrown <RodneyBrown@pmsc.com> 5723 Jeff Law <law@cygnus.com> 5724 5725 * getcwd.c: Include string.h, stdlib.h for prototypes 5726 5727 * Makefile.in (rename.o, waitpid.o): Depend on config.h 5728 * rename.c: Include config.h, unistd.h 5729 * waitpid.c: Include config.h, sys/wait.h 5730 57312000-07-24 Hans-Peter Nilsson <hp@axis.com> 5732 5733 * cplus-dem.c (work_stuff_copy_to_from): New. 5734 (delete_non_B_K_work_stuff): New. 5735 (delete_work_stuff): New. 5736 (mop_up): Break out work_stuff partly destruction to 5737 delete_non_B_K_work_stuff. 5738 (iterate_demangle_function): New. 5739 (demangle_prefix): Call iterate_demangle_function instead of 5740 demangle_function_name. Leave handling of name-signature 5741 __-delimiters to iterate_demangle_function. 5742 (demangle_integral_value): Strip an optional 5743 following underscore cautiously. Handle negative numbers. 5744 57452000-07-24 Daniel Berlin <dberlin@redhat.com> 5746 5747 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to 5748 if (AUTO_DEMANGLING || GNU_DEMANGLING) 5749 57502000-07-21 Alex Samuel <samuel@codesourcery.com> 5751 5752 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge 5753 allocating ctor mangling. 5754 (demangle_array_type): Handle empty and non-constant array length. 5755 57562000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG> 5757 Jeff Law <law@cygnus.com> 5758 5759 * configure.in (AC_CHECK_HEADERS): Add time.h. 5760 (AC_HEADER_TIME): Add check. 5761 * configure, config.in: Regenerate. 5762 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>. 5763 5764 * configure.in (AC_CHECK_HEADERS): Add limits.h. 5765 * configure, config.in: Regenerate. 5766 * sort.c: Portably #include <limits.h> and/or <sys/param.h>. 5767 * strtol.c, strtoul.c: #include "config.h". Portably #include 5768 <limits.h> and/or <sys/param.h>. 5769 * Makefile.in (strtol.o, strtoul.o): Update dependencies. 5770 5771 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro. 5772 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check. 5773 * configure, config.in: Regenerate. 5774 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary. 5775 5776 * cp-demangle.c, mkstemps.c: #include <sys/types.h>. 5777 57782000-07-21 Mike Stump <mrs@wrs.com> 5779 5780 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c. 5781 * (vasprintf.o): Add dependency for config.h in vasprintf.c. 5782 57832000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5784 5785 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2. 5786 5787 * setenv.c (setenv): Initialize variable `ep'. 5788 5789 * sigsetmask.c (abort): Prototype. 5790 5791 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not 5792 __STDC__ for stdarg.h include. 5793 (int_vasprintf): Prototype. 5794 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in 5795 definition. Cast `global_total_width' in comparison. 5796 (main): Prototype. Return a value. 5797 5798 * vfork.c (fork): Prototype. 5799 5800 * xexit.c: Include config.h. 5801 58022000-07-20 Joseph S. Myers <jsm28@cam.ac.uk> 5803 5804 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int, 5805 and print it with %u. 5806 58072000-07-17 Hans-Peter Nilsson <hp@axis.com> 5808 5809 * testsuite/regress-demangle (failed test): Show result and 5810 expected output. 5811 58122000-07-07 Andrew Haley <aph@cygnus.com> 5813 5814 * cplus-dem.c (main): fflush() after emitting last char before 5815 waiting for input. 5816 58172000-06-28 Alex Samuel <samuel@codesourcery.com> 5818 5819 * cp-demangle.c (demangle_encoding): Accept no substitutions. 5820 (demangle_name): Handle <substitution> followed by 5821 <unqualified-template-name>. 5822 (demangle_type): Follow special substitutions with 5823 <class-enum-type> 5824 (demangle_subtitution): Set template_p for special substitutions. 5825 (main): Fix typos. 5826 58272000-06-27 Alex Samuel <samuel@codesourcery.com> 5828 5829 * cp-demangle.c (demangle_special_name): Swap base and derived 5830 class when demangling construction vtables. 5831 58322000-06-21 Alex Samuel <samuel@codesourcery.com> 5833 5834 * cp-demangle.c: Don't include ctype.h. 5835 (IS_DIGIT): New macro. 5836 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout 5837 instead of isdigit and isalpanum. 5838 (demangling_def): Make name and next const pointers. 5839 (STATUS_ALLOCATION_FAILED): New status code. 5840 (dyn_string_append_space): Handle failure in 5841 dyn_string_append_char. 5842 (int_to_dyn_string): Likewise. Change return value to status_t. 5843 (string_list_new): Handle failure of dyn_string_init. 5844 (result_close_template_list): Change return type to status_t. 5845 Handle failure in dyn_string_append. 5846 (result_push): Change return value to status_t. Handle failure in 5847 string_list_new. Handle failure of result_push throughout. 5848 (substitution_add): Change return value to status_t. Handle 5849 dyn_string failures. Handle failure of substitution_add 5850 throughout. 5851 (template_arg_list_new): Return NULL on allocation failure. 5852 (result_append_string): Return STATUS_ALLOCATION_FAILED on error. 5853 Handle error result throughout. 5854 (result_append): Likewise. 5855 (result_append_char): Likewise. 5856 (result_append_space): Likewise. 5857 (demangling_new): Make argument a const pointer. Handle 5858 allocation failures. 5859 (demangle_template_args): Handle failure in template_arg_list_new 5860 and result_close_template_list. 5861 (demangle_discriminator): Return if int_to_dyn_string fails. 5862 (cp_demangle): Likewise. 5863 (cp_demangle_type): New function. 5864 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on 5865 memory allocation failure. 5866 (main): Likewise. 5867 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if 5868 IN_LIBGCC2. 5869 (dyn_string_init): Change return value to int. Handle 5870 RETURN_ON_ALLOCATION_FAILURE case. 5871 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case. 5872 (dyn_string_release): Delete the dyn_string. 5873 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case. 5874 (dyn_string_copy): Change return type to int. 5875 (dyn_string_copy_cstr): Likewise. 5876 (dyn_string_prepend): Likewise. 5877 (dyn_string_prepend_cstr): Likewise. 5878 (dyn_string_insert): Likewise. 5879 (dyn_string_insert_cstr): Likewise. 5880 (dyn_string_append): Likewise. 5881 (dyn_string_append_cstr): Likewise. 5882 (dyn_string_append_char): Likewise. 5883 (dyn_string_substring): Likewise. 5884 58852000-06-09 Zack Weinberg <zack@wolery.cumb.org> 5886 5887 * cp-demangle.c (demangle_operator_name): Add spaces before 5888 names beginning with a letter: delete, delete[], new, new[], 5889 sizeof. 5890 (demangle_special_name): Handle TF <type> and TJ <type>. 5891 5892Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be> 5893 5894 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch. 5895 5896Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be> 5897 5898 * cp-demangle.c (stdio.h): File included unconditionaly. 5899 (template_arg_list_new): Parameter list is PARAMS ((void)), not (). 5900 * dyn-string.c (stdio.h): File included. 5901 * partition.c (partition_print): No `&' needed to take the address of 5902 a function. 5903 59042000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5905 5906 * configure.in (ac_libiberty_warn_cflags): Add -pedantic. 5907 5908 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify. 5909 5910 * cp-demangle.c (demangle_char): Change parameter from char to int. 5911 (demangle_expression, demangle_expr_primary): Remove extra 5912 semi-colon in prototype. 5913 5914 * dyn-string.c (dyn_string_append_char): Change parameter from 5915 char to int. 5916 5917 * memcmp.c (memcmp): Constify. 5918 5919 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with 5920 __extension__. 5921 5922 * partition.c (elem_compare): Prototype. Don't cast away 5923 const-ness. 5924 5925 * setenv.c (setenv): Use braces to avoid ambiguous `else'. 5926 59272000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 5928 5929 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h. 5930 5931 * cp-demangle.c: Include demangle.h. 5932 (template_arg_list_new): DeANSIfy. 5933 (cp_demangle): Make static and add prototype. 5934 (operator_code, operators): Constify. 5935 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'. 5936 59372000-06-05 Alex Samuel <samuel@codesourcery.com> 5938 5939 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to 5940 unsigned char. 5941 (demangle_unqualified_name): Likewise. 5942 (demangle_number_literally): Likewise. 5943 (demangle_type): Likewise. 5944 (demangle_substitution): Likewise. 5945 (is_mangled_char): Likewise, for isalnum. 5946 59472000-06-04 Alex Samuel <samuel@codesourcery.com> 5948 5949 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c. 5950 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o. 5951 (cp-demangle.o): New dependency. 5952 (dyn-string.o): Likewise. 5953 5954 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions. 5955 5956 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI 5957 demangler. 5958 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI 5959 demangling mode. 5960 (gnu_new_abi_symbol_characters): New function. 5961 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New 5962 file. 5963 * cp-demangle.c: New file. 5964 5965Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com> 5966 5967 * floatformat.c: Add name to each floatformat field. 5968 5969Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com) 5970 5971 * Makefile.in (objalloc.o): Depend on config.h 5972 59732000-05-29 Zack Weinberg <zack@wolery.cumb.org> 5974 5975 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h 5976 if HAVE_STRING_H. 5977 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H. 5978 * objalloc.c: Include config.h. Include stdlib.h and don't 5979 declare malloc or free if HAVE_STDLIB_H. 5980 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H, 5981 else declare malloc without prototype. Include string.h if 5982 HAVE_STRING_H, else declare memset without prototype. Don't 5983 include stddef.h. 5984 59852000-05-23 Mike Stump <mrs@wrs.com> 5986 5987 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make 5988 -j3. 5989 59902000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca> 5991 5992 * xmalloc.c: Include config.h for HAVE_SBRK definition. 5993 59942000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl> 5995 5996 * hashtab.c (hash_pointer): Delete low-order bits which are 5997 probably zero, also eliminate a warning on alpha. 5998 59992000-05-15 David Edelsohn <edelsohn@gnu.org> 6000 6001 * Makefile.in: Change "pic" to depend on $(PICFLAG), not 6002 on $(enable_shared). 6003 60042000-05-10 Jakub Jelinek <jakub@redhat.com> 6005 6006 * config.table: Use mh-sparcpic for sparc*-*-*. 6007 60082000-05-08 Nick Clifton <nickc@cygnus.com> 6009 6010 * Makefile.in (CFILES): Add strncmp.c. 6011 (NEEDED): Add strncmp. 6012 60132000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6014 6015 * cplus-dem.c (cplus_demangle_opname, demangle_function_name): 6016 Cast the arguments to `islower' to `unsigned char'. 6017 (print_demangler_list): Prototype. 6018 6019Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be> 6020 6021 * sort.c (UCHAR_MAX): Provide fallback definition. 6022 60232000-04-29 Alexandre Oliva <aoliva@cygnus.com> 6024 6025 * Makefile.in (maintainer-clean-subdir): Fix handling of empty 6026 SUBDIRS. 6027 60282000-04-28 Kenneth Block <block@zk3.dec.com> 6029 Jason Merrill <jason@casey.cygnus.com> 6030 6031 * cplus-dem.c (libiberty_demanglers): New table for demangle styles. 6032 (cplus_demangle_set_style): New function for setting style. 6033 (cplus_demangle_name_to_style): New function to translate name. 6034 60352000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6036 6037 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP. 6038 6039 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h. 6040 (libiberty_AC_FUNC_STRNCMP): Invoke. 6041 6042 * strncmp.c: New file. 6043 6044Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz> 6045 6046 * hashtab.c (htab_expand): Add prototype. 6047 (find_empty_slot_for_expand): Likewise. 6048 60492000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6050 6051 * hashtab.c (hash_pointer, eq_pointer): Make definition static to 6052 match prototype. 6053 (htab_expand): Cast the return value of xcalloc. 6054 60552000-04-24 Mark Mitchell <mark@codesourcery.com> 6056 6057 * hashtab.c (hash_pointer): New function. 6058 (eq_pointer): Likewise. 6059 (htab_hash_pointer): New variable. 6060 (htab_eq_pointer): Likewise. 6061 60622000-04-23 Mark Mitchell <mark@codesourcery.com> 6063 6064 * sort.c (sort_pointers): Fix endianness bugs. 6065 6066 * sort.c: New file. 6067 * Makefile.in (CFILES): Add sort.c 6068 (REQUIRED_OFILES): Add sort.o. 6069 (sort.o): New target. 6070 60712000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG> 6072 6073 * Makefile.in (*-subdir): Revamp slightly to avoid losing on 6074 4.3BSD systems. 6075 6076Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> 6077 6078 * hashtab.c: Various minor cleanups. 6079 (htab_find_slot_with_hash): INSERT is now enum insert_option. 6080 (htab_find_slot): Likewise. 6081 60822000-04-16 Dave Pitts <dpitts@cozx.com> 6083 6084 * cplus-dem.c (cplus_demangle_opname): Changed to use islower. 6085 60862000-04-05 Richard Henderson <rth@cygnus.com> 6087 6088 * splay-tree.c (splay_tree_remove): New. 6089 60902000-03-30 Mark Mitchell <mark@codesourcery.com> 6091 6092 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash 6093 codes. 6094 (htab_find_with_hash): Likewise. 6095 (htab_find_slot_with_hash): Likewise. 6096 60972000-03-29 Zack Weinberg <zack@wolery.cumb.org> 6098 6099 * hashtab.c (htab_find_with_hash): Avoid calculating hash2 6100 unless it will be used. Rearrange loop for better 6101 optimization. 6102 (higher_prime_number): Add static prototype. 6103 6104Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com) 6105 6106 * Makefile.in (partition.o): Depend on config.h 6107 61082000-03-14 Bernd Schmidt <bernds@cygnus.co.uk> 6109 6110 * hashtab.c (find_empty_slot_for_expand): New function. 6111 (htab_expand): Use it instead of htab_find_slot. 6112 (htab_find_with_hash): Renamed from htab_find; now accepts extra 6113 argument HASH. 6114 (htab_find_slot_with_hash): Likewise for htab_find_slot. 6115 (htab_find): New wrapper function. 6116 (htab_find_slot): Likewise. 6117 (htab_traverse): Pass slot, not entry, to called function. 6118 61192000-03-09 Alex Samuel <samuel@codesourcery.com> 6120 6121 * Makefile.in (CFILES): Add partition.c. 6122 (REQUIRED_OFILES): Add partition.o. 6123 (partition.o): New rule. 6124 * partition.c: New file. 6125 61262000-03-09 Zack Weinberg <zack@wolery.cumb.org> 6127 6128 * hashtab.c (htab_create): Set del_f. 6129 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot): 6130 Use it. 6131 61322000-03-08 Zack Weinberg <zack@wolery.cumb.org> 6133 6134 * hashtab.c: Remove debugging variables (all_searches, 6135 all_collisions, all_expansions). Delete 6136 all_hash_table_collisions. 6137 (create_hash_table, delete_hash_table, empty_hash_table, 6138 find_hash_table_entry, remove_element_from_hash_table_entry, 6139 clear_hash_table_slot, traverse_hash_table, hash_table_size, 6140 hash_table_elements_number, hash_table_collisions): Rename to: 6141 htab_create, htab_delete, htab_empty, htab_find_slot, 6142 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size, 6143 htab_elements, htab_collisions. 6144 (htab_find): New function, handles common case where you don't 6145 plan to add or delete an entry. 6146 (htab_expand): Don't create a whole new table, just a new 6147 entry vector. 6148 (htab_find_slot): Simplify logic. 6149 61501999-08-03 Ian Lance Taylor <ian@zembu.com> 6151 6152 * floatformat.c: Add casts to avoid signed/unsigned warnings. 6153 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix. 6154 6155 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to 6156 $(TARGETLIB)n so it works on MSDOS. 6157 (install_to_tooldir): Likewise. 6158 61591999-07-21 Ian Lance Taylor <ian@zembu.com> 6160 6161 From Mark Elbrecht: 6162 * makefile.dos: Remove; obsolete. 6163 * configure.bat: Remove; obsolete. 6164 61651999-07-11 Ian Lance Taylor <ian@zembu.com> 6166 6167 * splay-tree.c (splay_tree_insert): Add initialization to avoid 6168 warning. 6169 61702000-01-04 Mumit Khan <khan@xraylith.wisc.edu> 6171 6172 * pexecute.c: Conditionally include string.h. 6173 (fix_argv): Handle embedded whitespace in args for Mingw32. 6174 61752000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6176 6177 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if 6178 we're using gcc. 6179 6180 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@ 6181 61821999-12-27 Geoff Keating <geoffk@cygnus.com> 6183 6184 * vasprintf.c (int_vasprintf): Don't re-read the format character 6185 as this mishandles strings like '%%s'. 6186 61871999-12-05 Mark Mitchell <mark@codesourcery.com> 6188 6189 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s 6190 rather than struct splay_tree_node. 6191 (splay_tree_insert): Use struct splay_tree_s rather than struct 6192 splay_tree. 6193 6194Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be> 6195 6196 * hashtab.c (sys/types.h): File included. 6197 61981999-11-22 Jason Merrill <jason@casey.cygnus.com> 6199 6200 * strtoul.c, strtol.c, random.c: Remove advertising clause from 6201 BSD license, pursuant with 6202 6203 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change 6204 6205Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com) 6206 6207 * hashtab.c: Include stdio.h. 6208 6209Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com) 6210 6211 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS. 6212 6213Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be> 6214 6215 * xstrdup (sys/types.h): Include this file. 6216 62171999-10-28 Nathan Sidwell <nathan@acm.org> 6218 6219 * Makefile.in (SUBDIRS): New macro. 6220 (mostlyclean, clean, distclean, maintainer-clean): Adjust to 6221 avoid multiple subdirectory cleaning. 6222 (*-subdir): Use SUBDIRS. 6223 62241999-10-25 Jim Kingdon <http://developer.redhat.com/> 6225 6226 * cplus-dem.c: Move declarations of standard_symbol_characters and 6227 hp_symbol_characters inside #ifdef MAIN to avoid compiler 6228 warnings. 6229 62301999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com> 6231 6232 * hashtab.c (find_hash_table_entry): When returning a 6233 DELETED_ENTRY slot, change it to EMPTY_ENTRY first. 6234 (clear_hash_table_slot): New function which deletes an entry 6235 by its position in the table, not its value. 6236 (traverse_hash_table): New function which calls a hook 6237 function for every live entry in the table. 6238 62391999-10-19 Mark Mitchell <mark@codesourcery.com> 6240 6241 * cplus-dem.c (INTBUF_SIZE): New macro. 6242 (string_append_template_idx): New function. 6243 (demangle_expression): Likewise. 6244 (demangle_integral_value): Use it. 6245 (demangle_real_value): New function, split out from ... 6246 (demangle_template_value_parm): ... here. Use 6247 string_append_template_idx. Use demangle_real_value. 6248 (demangle_template): Use string_append_template_idx. 6249 (demangle_qualified): Use consume_count_with_underscores. 6250 (get_count): Tweak formatting. 6251 (do_type): Use string_append_template_idx. 6252 62531999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6254 6255 * calloc.c: Add a public domain notice. 6256 6257Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be> 6258 6259 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly. 6260 6261Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com> 6262 6263 * Makefile.in (CFILES): Add hashtab.c 6264 (REQUIRED_OFILES): Add hashtab.o 6265 (hashtab.o): Add dependencies. 6266 * hashtab.c: New file 6267 6268Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu> 6269 6270 * basename.c (DIR_SEPARATOR): New macro. 6271 (DIR_SEPARATOR_2): Likewise. 6272 (HAVE_DOS_BASED_FILESYSTEM): Likewise. 6273 (IS_DIR_SEPARATOR): Likewise. 6274 (main): Handle MSDOS style pathname. 6275 62761999-10-11 Mark Mitchell <mark@codesourcery.com> 6277 6278 * cplus-dem.c (do_type): Handle pointer to member types whose 6279 enclosing classes have namespace scope. 6280 6281Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org> 6282 6283 * config.table: Provide a backup shell for executing move-if-change. 6284 62851999-10-02 Mark Mitchell <mark@codesourcery.com> 6286 6287 * xmalloc.c (xmalloc): Fix spelling error. 6288 (xcalloc, xrealloc): Likewise. 6289 62901999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6291 6292 * cplus-dem.c (fancy_abort, demangle_integral_value, 6293 demangle_arm_hp_template, recursively_demangle, 6294 standard_symbol_characters, hp_symbol_characters, main): Add prototype. 6295 (program_name, program_version, fatal): Constify a char*. 6296 (usage, fatal): Mark with ATTRIBUTE_NORETURN. 6297 (main): Call return, not exit. 6298 62991999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6300 6301 * choose-temp.c: Remove obsolete comment about gcc. 6302 (make_temp_file): Constify a char*. 6303 6304Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6305 6306 * xmemdup.c: Include sys/types.h. 6307 63081999-09-07 Jeff Garzik <jgarzik@pobox.com> 6309 6310 * xmemdup.c: New xmemdup function. 6311 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co]. 6312 6313Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org> 6314 6315 * config.table: Add openedition target. 6316 * config/mh-openedition: New file. 6317 6318Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org> 6319 6320 * pexecute.c (pexecute): Fill in temp_base when needed. 6321 63221999-08-31 Richard Henderson <rth@cygnus.com> 6323 6324 * getpwd.c: Check HAVE_GETCWD before defining it away. 6325 63261999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6327 6328 * Makefile.in (CFILES): Add calloc.c and getpwd.c. 6329 (REQUIRED_OFILES): Add getpwd.o. 6330 (getpwd.o): Add target. 6331 6332 * configure.in (AC_PREREQ): Bump to 2.13. 6333 (AC_CHECK_HEADERS): Add check for <sys/stat.h>. 6334 6335 * getpwd.c: New file, moved here from gcc. 6336 63371999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6338 6339 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when 6340 comparing against a signed quantity. 6341 (arm_special): Likewise. 6342 (demangle_fund_type): Likewise. 6343 (do_hpacc_template_const_value): Mark parameter `work' with 6344 ATTRIBUTE_UNUSED. 6345 (main): Constify variable `valid_symbols'. 6346 6347Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be> 6348 6349 * strtoul.c (strtoul): Add parentheses around && within ||. 6350 6351Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org> 6352 6353 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix, 6354 libdir, libsubdir and tooldir. 6355 63561999-08-01 Mark Mitchell <mark@codesourcery.com> 6357 6358 * splay-tree.c (splay_tree_insert): Return the new node. 6359 63601999-07-14 Richard Henderson <rth@cygnus.com> 6361 6362 * argv.c: Include stdlib.h and string.h instead of 6363 prototyping directly. 6364 * choose-temp.c: Conditionally include string.h. 6365 63661999-07-12 Jason Merrill <jason@yorick.cygnus.com> 6367 6368 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero. 6369 63701999-07-11 Ian Lance Taylor <ian@zembu.com> 6371 6372 * splay-tree.c (splay_tree_insert): Add initialization to avoid 6373 warning. 6374 63751999-07-07 Jason Merrill <jason@yorick.cygnus.com> 6376 6377 * Makefile.in (needed-list): Only include stuff we actually need 6378 for libstdc++. 6379 63801999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 6381 6382 * configure.in (checkfuncs): Add gettimeofday. 6383 * config.in, configure: Regenerated. 6384 6385Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu> 6386 6387 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if 6388 the test fails. 6389 * configure: Regenerate. 6390 63911999-06-10 Mike Stump <mrs@wrs.com> 6392 6393 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix 6394 parallel builds. 6395 63961999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6397 6398 * putenv.c: Include ansidecl.h to define `const'. 6399 * setenv.c: Likewise. 6400 6401Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca> 6402 6403 * Makefile.in (CFILES): Add putenv.c and setenv.c. 6404 * configure.in (funcs): Add putenv and setenv. 6405 (AC_CHECK_FUNCS): Check for putenv and setenv. 6406 * configure: Rebuilt. 6407 * putenv.c setenv.c: New files. 6408 6409 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE 6410 bytes of space using malloc. 6411 6412Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com> 6413 6414 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance 6415 the *mangled pointer beyond the end of the string. Clean up code to 6416 match prevailing coding style. 6417 64181999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz> 6419 6420 * tmpnam.c (L_tmpnam): Fix typo. 6421 6422Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org> 6423 6424 * cplus-dem.c (standard_symbol_characters): Renamed from 6425 standard_symbol_alphabet. No longer modify TABLE. 6426 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer 6427 modify TABLE. 6428 (main): Corresponding changes. Use strchr to determine if a 6429 character is valid. 6430 64311999-05-11 Jim Blandy <jimb@zwingli.cygnus.com> 6432 6433 * cplus-dem.c (main): Use table lookup to distinguish identifier 6434 characters from non-identifier characters. 6435 (standard_symbol_alphabet, hp_symbol_alphabet): New functions. 6436 6437Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com> 6438 6439 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list. 6440 * getruntime.c: Only attempt to include sys/resource.h and 6441 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H 6442 are defined. 6443 6444Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com) 6445 6446 * configure.in (alloca detection): Handle alloca directly for interix. 6447 * configure: Rebuilt. 6448 6449Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu> 6450 6451 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32. 6452 64531999-04-20 Jim Blandy <jimb@zwingli.cygnus.com> 6454 6455 Fix from Dale Hawkins: 6456 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be 6457 reallocated properly if we use it again. 6458 6459 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be 6460 stricter about syntax. Always null-terminate string. 6461 6462Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu> 6463 6464 * configure.in (checkfuncs): Check for sbrk. 6465 * config.in: Rebuilt. 6466 * configure: Likewise. 6467 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions. 6468 64691999-04-12 Jim Blandy <jimb@zwingli.cygnus.com> 6470 6471 Fix from Marcus Daniels: 6472 * cplus-dem.c (demangle_fund_type): Don't run off the end of the 6473 identifier looking for another underscore. 6474 6475Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu> 6476 6477 * pexecute.c: Change all references to __UWIN__ to _UWIN. 6478 * xmalloc.c: Likewise. 6479 (xcalloc): UWIN has sbrk. 6480 (xrealloc): Fix guard macro. 6481 64821999-04-11 Richard Henderson <rth@cygnus.com> 6483 6484 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin 6485 or <alloca.h>. 6486 * clock.c (GNU_HZ): New definition. 6487 (clock): Use it. 6488 * getruntime.c: Likewise. 6489 6490 * config.table: Use mh-beos. 6491 * config/mh-beos: New file. 6492 64931999-04-11 Mark Mitchell <mark@codesourcery.com> 6494 6495 * cplus-dem.c (demangle_template_value_parm): Handle 6496 pointers-to-members. 6497 (do_type): Handle template parameters as qualifiers. 6498 64991999-04-01 Jim Blandy <jimb@zwingli.cygnus.com> 6500 6501 * cplus-dem.c: Attempt to handle overflows in counts with some 6502 semblance of grace. 6503 (consume_count): Detect overflows. Return -1 to indicate errors, 6504 instead of zero. 6505 (demangle_template_value_parm, demangle_template): Handle change 6506 to consume_count's return convention. 6507 65081999-04-05 Tom Tromey <tromey@cygnus.com> 6509 6510 * testsuite/regress-demangle: New file. 6511 * testsuite/demangle-expected: New file. 6512 6513 * Makefile.in (all, check, installcheck, info, install-info, 6514 clean-info, dvi, install, etags, tags, mostlyclean, clean, 6515 distclean, maintainer-clean, realclean): Depend on corresponding 6516 `-subdir' target. 6517 (all-subdir check-subdir installcheck-subdir info-subdir 6518 install-info-subdir clean-info-subdir dvi-subdir 6519 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir 6520 distclean-subdir maintainer-clean-subdir): New target. 6521 * testsuite/Makefile.in: New file. 6522 * configure: Rebuilt. 6523 * configure.in: Create testsuite/Makefile. 6524 65251999-04-02 Mark Mitchell <mark@codesourcery.com> 6526 6527 * splay-tree.h (splay_tree_compare_pointers): Define. 6528 65291999-03-30 Mark Mitchell <mark@codesourcery.com> 6530 6531 * splay-tree.c (splay_tree_compare_ints): Define. 6532 65331999-03-30 Tom Tromey <tromey@cygnus.com> 6534 6535 * cplus-dem.c (consume_count): If `count' wraps, return 0 and 6536 don't advance input pointer. 6537 (demangle_class_name): If consume_count didn't find a count, do 6538 nothing. Don't bother with `strlen' sanity check; consume_count 6539 does it for us. 6540 65411999-03-16 Stan Shebs <shebs@andros.cygnus.com> 6542 6543 From Art Haas <ahaas@neosoft.com>: 6544 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings 6545 when doing arm or hp style. 6546 (demangle_nested_args): Decr forgetting_types field when done. 6547 6548Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu> 6549 6550 * pexecute.c (__CYGWIN32__): Rename to 6551 (__CYGWIN__): this. 6552 * xmalloc.c: Likewise. 6553 6554 Changes to support i386-pc-uwin. 6555 * configure.in (*-*-uwin*): Workaround for vfork bug. 6556 * configure: Regenerate. 6557 * pexecute.c (pexecute): Be like standard Unix. 6558 (pwait): Likewise. 6559 * xmalloc.c (first_break): Define. 6560 (xmalloc_set_program_name): Use. 6561 (xmalloc): Use. 6562 6563Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 6564 6565 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc 6566 6567Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com> 6568 6569 * config.table: Check cygwin*, not cygwin32*. 6570 6571Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com> 6572 6573 * Makefile.in: Change mkstemp -> mkstemps. 6574 6575Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr> 6576 6577 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o 6578 * configure.in (funcs): Check for and conditionally add mkstemps to 6579 the list of functions libiberty will provide. 6580 * configure: Rebuilt. 6581 6582Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu> 6583 6584 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on 6585 platforms that don't have HZ. 6586 * getruntime.c (HZ): Likewise. 6587 6588Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com> 6589 6590 * Makefile.in (xstrdup.o): Depend on config.h. 6591 6592Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org) 6593 6594 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after 6595 freeing it. 6596 6597Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6598 6599 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed. 6600 6601Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com> 6602 6603 * Makefile.in (CFILES): fix typo, splay-tree.c instead of 6604 splay-tree.o. 6605 66061999-01-04 Jason Molenda (jsm@bugshack.cygnus.com) 6607 6608 * configure.in: Require autoconf 2.12.1 or higher. 6609 66101998-12-30 Michael Meissner <meissner@cygnus.com> 6611 6612 * random.c (NULL): Don't redefine NULL if it is already defined. 6613 6614Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6615 6616 * argv.c (buildargv): Cast the result of alloca in assignment. 6617 6618 * choose-temp.c: Include stdlib.h. 6619 6620 * cplus-dem.c (demangle_arm_pt): Remove unused prototype. 6621 (snarf_numeric_literal): Constify first parameter. 6622 (code_for_qualifier): Avoid a gcc extension, make the parameter an 6623 int, not a char. 6624 (demangle_qualifier): Likewise. 6625 (demangle_signature): Cast the argument of a ctype function to 6626 unsigned char. 6627 (arm_pt): Add parens around assignment used as truth value. 6628 (demangle_arm_hp_template): Constify variable `args'. 6629 (do_hpacc_template_const_value): Cast the argument of a ctype 6630 function to unsigned char. 6631 (do_hpacc_template_literal): Remove unused variable `i'. 6632 (snarf_numeric_literal): Constify parameter `args'. 6633 Cast the argument of a ctype function to unsigned char. 6634 6635 * floatformat.c (floatformat_to_double): Add explicit braces to 6636 avoid ambiguous `else'. 6637 6638 * fnmatch.c (fnmatch): Change type of variables `c', `c1', 6639 `cstart' and `cend' to unsigned char. Cast the argument of macro 6640 `FOLD', which uses ctype functions, to unsigned char. 6641 6642 * objalloc.c (free): Add prototype. 6643 6644Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se> 6645 6646 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o 6647 6648Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com> 6649 6650 * cplus-dem.c (demangle_arm_pt): remove declaration -- function 6651 doesn't exist. 6652 (do_hpacc_template_literal): remove unused variable `i'. 6653 6654Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com> 6655 6656 * cplus-dem.c (demangle_fund_type): Process CV and u codes before 6657 bumping the pointer we read from. Also prepend these codes, 6658 as we do in other places. 6659 66601998-12-18 Nick Clifton <nickc@cygnus.com> 6661 6662 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be 6663 'const char *' in order to match its usage when calling siblings. 6664 (snarf_numeric_literal): Make first arg 'const char **' in order 6665 to match usage. 6666 6667Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6668 6669 * choose-temp.c: Don't check IN_GCC anymore. 6670 6671 * floatformat.c (floatformat_from_double): Use `const', not `CONST'. 6672 * memchr.c (memchr): Likewise. 6673 * memcpy.c (memcpy): Likewise. 6674 * memmove.c (memmove): Likewise. 6675 6676 * mkstemp.c: Don't check IN_GCC anymore. 6677 * pexecute.c: Likewise. 6678 * splay-tree.c: Likewise. 6679 6680 * strchr.c (strchr): Use `const', not `CONST'. 6681 * strrchr.c (strrchr): Likewise. 6682 * strtol.c (strtol): Likewise. 6683 * strtoul.c (strtoul): Likewise. 6684 6685Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com> 6686 Elena Zannoni <ezannoni@cygnus.com> 6687 Stan Shebs <shebs@cygnus.com> 6688 Edith Epstein <eepstein@cygnus.com> 6689 Andres MacLeod <amacleod@cygnus.com> 6690 Satish Pai <pai@apollo.hp.com> 6691 6692 * HP aCC demangling support. 6693 * cplus-dem.c 6694 (main): Remove default to HP style demangling, set to EDG 6695 demangling correctly when -edg specified; set the demangling style 6696 when user specifies 'edg'. Set strip_underscore to 6697 prepends_underscore, if not HPUXHPPA. Set 6698 current_demangling_style to hp_demangling if HPUXHPPA. Set 6699 current demangling style correctly if the switch is hp. Read 6700 label correctly also in the HP style case. 6701 (work_stuff): add temp_start field; add field for volatile member 6702 function. 6703 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP 6704 style for this case is the same as ARM. 6705 (demangle_args): handle EDG_DEMANGLING style; support HP style. 6706 (demangle_arm_hp_template): new function. (It was 6707 demangle_arm_pt.); check and set value of temp_start field in 6708 multiple places. Also, when ceching for end of template args, 6709 check to see if at end of static member of template class. 6710 (demangle_class): new local variable : save_class_name_end Don't 6711 include template args in string defining class. 6712 (demangle_class_name): use demangel_arm_hp_template. 6713 (demangle_function_name): handle case where demangling style is 6714 HP_DEMANGLING and currently point at an 'X' in the mangled name. 6715 Handle EDG_DEMANGLING style. Handle constructor and destructor 6716 ops for HP style. 6717 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING 6718 styles. global destructor and constructor for HP style are same 6719 as for ARM style. Same for local variables. 6720 (demangle_qualified): handle EDG_DEMANGLING style. 6721 (demangle_signature): add case for volatile member function. For 6722 cases '1' - '9' : initialize the temp_start field to -1 and handle 6723 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING 6724 and AUTO_DEMANGLING styles. If expecting a function and managed 6725 to demangle the funct args, then handle the LUCID_DEMANGLING, 6726 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local 6727 class name after "Lnnn_ in HP style case. HP style too needs to 6728 forget types. _nnn is OK for HP style, so don't report failure. 6729 (do_hpacc_template_const_value): new function. Handle template's 6730 value param for HP/aCC. 6731 (do_hpacc_template_literal): new function. Handle a template's 6732 literal parameter for HP aCC. 6733 (recursively_demangle): new function 6734 (snarf_numeric_literal): new function. 6735 (usage): add 'edg' to the list of demangling styles; add hp switch 6736 to message. 6737 6738Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com> 6739 6740 * pexecute.c: Remove obsolete ifdefed cygwin code. 6741 6742Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6743 6744 * choose-temp.c: Always include libiberty.h. Avoid redundancies. 6745 * cplus-dem.c: Likewise. Conform to libiberty.h. 6746 * pexecute.c: Likewise. 6747 * splay-tree.c: Likewise. 6748 67491998-11-25 Mike Stump <mrs@wrs.com> 6750 6751 * Makefile.in (splay-tree.o): Add config.h dependency. 6752 6753Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6754 6755 * configure.in: Use AC_PREREQ(2.12.1). 6756 67571998-11-16 Benjamin Kosnik <bkoz@haight.constant.com> 6758 6759 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types. 6760 6761Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com) 6762 6763 * mpw.c (mpw_access): Add missing parens. 6764 6765Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6766 6767 * configure.in: Call AC_HEADER_SYS_WAIT. 6768 6769 * pexecute.c: Include sys/wait.h when !IN_GCC. 6770 6771Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com> 6772 6773 * pexecute.c: revert back to checking old Cygwin 6774 preprocessor symbol until some time has passed. 6775 6776Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com> 6777 6778 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin 6779 since it will now support similar constructs. 6780 6781Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6782 6783 * configure.in: Check for calloc. 6784 6785 * calloc.c: New file. 6786 6787 * xmalloc.c (xcalloc): New function. 6788 6789Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com> 6790 6791 *cplus-dem.c (demangle_prefix): Use the last "__" 6792 in the mangled name when looking for the signature. This allows 6793 template names to begin with "__". 6794 67951998-11-08 Mark Mitchell <mark@markmitchell.com> 6796 6797 * cplus-dem.c (type_kind_t): Add tk_reference. 6798 (demangle_template_value_parm): Handle it. 6799 (do_type): Use it for references, instead of tk_pointer. 6800 6801 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle, 6802 not internal_cplus_demangle. 6803 6804Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6805 6806 * choose-temp.c: Don't include gansidecl.h. 6807 * mkstemp.c: Likewise. 6808 * pexecute.c: Likewise. 6809 6810Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com> 6811 6812 * configure.in: detect cygwin* instead of cygwin32* 6813 * configure: regenerate 6814 6815Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6816 6817 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining 6818 whether to include config.h. Possibly include unistd.h in the 6819 !IN_GCC case. Define VFORK_STRING as a printable function call 6820 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is 6821 defined, include vfork.h. If VMS is defined, define vfork() 6822 appropriately. Remove vfork check on USG, we're using autoconf. 6823 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking 6824 locally what string to use. 6825 68261998-10-26 Mark Mitchell <mark@markmitchell.com> 6827 6828 * splay-tree.c: Tweak include directives to make sure declarations of 6829 xmalloc and free are available. 6830 68311998-10-25 Mark Mitchell <mark@markmitchell.com> 6832 6833 * cplus-dem.c (gnu_special): Fix handling of virtual tables in 6834 anonymous namespaces. 6835 68361998-10-23 Mark Mitchell <mark@markmitchell.com> 6837 6838 * cplus-dem.c (work_stuff): Replace const_type and volatile_type 6839 with type_quals. 6840 (TYPE_UNQUALIFIED): New macro. 6841 (TYPE_QUAL_CONST): Likewise. 6842 (TYPE_QUAL_VOLATILE): Likewise. 6843 (TYPE_QUAL_RESTRICT): Likewise. 6844 (code_for_qualifier): New function. 6845 (qualifier_string): Likewise. 6846 (demangle_qualifier): Likewise. 6847 (internal_cplus_demangle): Use them. 6848 (demangle_signature): Likewise. 6849 (demangle_template_value_parm): Likewise. 6850 (do_type): Likewise. 6851 (demangle_fund_type)): Likewise. 6852 6853Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6854 6855 * splay-tree.c (splay_tree_foreach_helper): Make definition static 6856 to match prototype. 6857 68581998-10-21 Mark Mitchell <mark@markmitchell.com> 6859 6860 * splay-tree.c: New file. 6861 * Makefile.in (CFILES): Add it. 6862 (REQUIRED_OFILES): Likewise. 6863 (splay-tree.o): Add dependencies. 6864 6865Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de> 6866 6867 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking 6868 range of 'K' index. 6869 6870Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6871 6872 * choose-temp.c: Prototype mkstemps() when IN_GCC. 6873 6874 * cplus-dem.c (consume_count): Cast argument of ctype macro to 6875 `unsigned char'. 6876 (cplus_demangle_opname): Cast the result of `strlen' to (int) when 6877 comparing against one. 6878 (cplus_mangle_opname): Likewise. 6879 (demangle_integral_value): Cast argument of ctype macro to 6880 `unsigned char'. 6881 (demangle_template_value_parm): Likewise. 6882 (demangle_template): Initialize variable `bindex'. Cast the 6883 result of `strlen' to (int) when comparing against one. Remove 6884 unused variable `start_of_value_parm'. 6885 (demangle_class_name): Cast the result of `strlen' to (int) when 6886 comparing against one. 6887 (demangle_prefix): Cast argument of ctype macro to `unsigned char'. 6888 (gnu_special): Likewise. Cast the result of `strlen' to (int) 6889 when comparing against one. 6890 (demangle_qualified): Cast argument of ctype macro to `unsigned char'. 6891 (get_count): Likewise. 6892 (do_type): Likewise. Cast the result of `strlen' to (int) when 6893 comparing against one. 6894 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'. 6895 (demangle_function_name): Cast the result of `strlen' to (int) 6896 when comparing against one. 6897 6898 * mkstemp.c (mkstemps): Cast variable `len' to (int) when 6899 comparing against one. 6900 6901Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com) 6902 6903 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h 6904 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too. 6905 * config.in, configure: Rebuilt. 6906 6907 * getopt.c: Check HAVE_STRINGS_H before including strings.h. 6908 * configure.in (AC_CHECK_HEADERS): Check for strings.h too. 6909 * config.in, configure: Rebuilt. 6910 6911Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com> 6912 6913 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT 6914 6915Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com> 6916 6917 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h. 6918 6919Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com) 6920 6921 * Merge egcs & devo libiberty. 6922 69231998-09-08 Martin von L��wis <loewis@informatik.hu-berlin.de> 6924 6925 * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces. 6926 6927Mon Sep 7 23:29:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6928 6929 * mkstemp.c: Include config.h even when not IN_GCC. Wrap header 6930 inclusions inside HAVE_*_H macros. Include ansidecl.h when not 6931 IN_GCC. 6932 6933 * vasprintf.c: Include stdarg.h/varargs.h first. 6934 6935 * vprintf.c: Likewise. 6936 6937Sat Sep 5 03:24:49 1998 Jeffrey A Law (law@cygnus.com) 6938 6939 * pexecute.c: Updates from gcc. Copy in gcc has been removed. This 6940 is the canonical copy. Define ISSPACE if !IN_GCC. 6941 * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly. 6942 * getopt1.c, obstack.c: Similarly. 6943 * Makefile.in: Build mkstemp.o 6944 6945Tue Sep 1 23:12:47 1998 Christopher Faylor <cgf@cygnus.com> 6946 6947 * configure.in: Include asprintf in list of functions known not 6948 to be in newlib. 6949 * configure: Rebuild. 6950 6951Wed Aug 19 14:05:01 1998 Mumit Khan <khan@xraylith.wisc.edu> 6952 6953 * cplus-dem.c (work_stuff): Add dllimported. 6954 (demangled_prefix): Mark symbols imported from PE DLL. 6955 (internal_cplus_demangled): Handle. 6956 69571998-08-17 Jason Merrill <jason@yorick.cygnus.com> 6958 6959 * cplus-dem.c (do_type): Fix simple array handling. If we fail, 6960 stay failed. 6961 6962Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6963 6964 * cplus-dem.c: Include config.h if it exists. Also, only 6965 prototype malloc/realloc if we can't get stdlib.h. 6966 6967Sat Aug 15 16:15:01 1998 Ian Lance Taylor <ian@cygnus.com> 6968 6969 * configure.in: Switch back to checking --with-target-subdir when 6970 deciding whether to check for newlib, undoing part of July 15 6971 change. 6972 * configure: Rebuild. 6973 6974Thu Aug 13 16:47:38 1998 Mark Mitchell <mark@markmitchell.com> 6975 6976 * cplus-dem.c (type_kind_t): New type. 6977 (demangle_template_value_parm): Add type_kind_t parameter. Rely 6978 on this paramter, rather than demangling the type again. 6979 (demangle_integral_value): Pass tk_integral. 6980 (demangle_template_: Pass the value returned from do_type. 6981 (do_type): Return a type_kind_t. Pass tk_integral to 6982 demangle_template_value_parm for array bounds. 6983 (demangle_fund_type): Likewise. 6984 6985 Also incorporate from GCC version: 6986 6987 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com> 6988 6989 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays. 6990 6991Thu Aug 13 16:47:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 6992 6993 * cplus-dem.c (demangle_nested_args): Make function definition 6994 static to match the prototype. 6995 6996Tue Jul 28 11:33:09 1998 Mark Mitchell <mark@markmitchell.com> 6997 6998 * cplus-dem.c (type_kind_t): New type. 6999 (demangle_template_value_parm): Add type_kind_t parameter. Rely 7000 on this paramter, rather than demangling the type again. 7001 (demangle_integral_value): Pass tk_integral. 7002 (demangle_template_: Pass the value returned from do_type. 7003 (do_type): Return a type_kind_t. Pass tk_integral to 7004 demangle_template_value_parm for array bounds. 7005 (demangle_fund_type): Likewise. 7006 7007 Also incorporate from GCC version: 7008 7009 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com> 7010 7011 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays. 7012 7013Mon Jul 27 12:16:08 1998 Ian Lance Taylor <ian@cygnus.com> 7014 7015 * Makefile.in (ALLOCA): New variable. 7016 ($(TARGETLIB)): Add $(ALLOCA) to library. 7017 (needed-list): Add $(ALLOCA). 7018 ($(ALLOCA)): Depend upon stamp-picdir. 7019 7020Sun Jul 19 08:23:17 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7021 7022 * cplus-dem.c (demangle_nested_args): Make function definition 7023 static to match the prototype. 7024 7025Wed Jul 15 00:12:58 1998 Ian Lance Taylor <ian@cygnus.com> 7026 7027 * configure.in: Check --with-cross-host rather than 7028 --with-target-subdir when deciding whether build uses a cross 7029 compiler, and when deciding where to install the library. 7030 * configure: Rebuild. 7031 7032Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com> 7033 7034 * cplus-dem.c (demangle_nested_args): Return a value. 7035 7036Sat Jul 11 16:19:48 1998 Mark Mitchell <mark@markmitchell.com> 7037 7038 * cplus-dem.c (string): Move definition before work_stuff. 7039 (work_stuff): Add volatile_type, forgetting_types, 7040 previous_argument, and nrepeats fields. 7041 (SCOPE_STRING): New macro. 7042 (demangle_template): Add `remember' parameter. Add comment. 7043 Register the `B' code type here, if remembering. Tidy. Fix crash 7044 on NULL tmpl_argvec. Be consistent with use of tname/trawname. 7045 (demangle_nested_args): New function. 7046 (internal_cplus_demangle): Handle volatile-qualified member 7047 functions. 7048 (mop_up): Delete the previous_argument string if present. 7049 (demangle_signature): Tidy. Handle volatile-qualified member 7050 functions. Handle back-references using the `B' code. Use extra 7051 parameter to demangle_template and SCOPE_STRING where appropriate. 7052 (demangle_template_value_parm): Fix thinko; 'B' is not an integral 7053 code. 7054 (demangle_class): Use SCOPE_STRING. 7055 (gnu_special): Pass additional argument to demangle_template. 7056 Use SCOPE_STRING. 7057 (demangle_qualified): Save qualified types for later 7058 back-references. Handle constructors and destructors for template 7059 types correctly. 7060 (do_type): Tidy. Use SCOPE_STRING. Pass extra argument to 7061 demangle_template. Use demangled_nested_args. Don't remember 7062 qualified types here; that's now done in demangle_qualified. 7063 Similarly for templates. 7064 (do_arg): Improve commment. Handle 'n' repeat code. 7065 (remember_type): Check forgetting_types. 7066 (demangle_args): Deal with 'n' repeat codes. Tidy. 7067 7068Thu Jul 2 16:26:24 1998 Ian Lance Taylor <ian@cygnus.com> 7069 7070 * config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on 7071 *-*-freebsd2.2.*. From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>. 7072 7073Mon Jun 15 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com> 7074 7075 * configure.in (setobjs): Correct quoting error in cygwin32 case. 7076 From Chris Faylor <cgf@cygnus.com>. 7077 7078Mon Jun 1 13:47:55 1998 Jason Molenda (crash@bugshack.cygnus.com) 7079 7080 * obstack.c: Update to latest FSF version. 7081 7082Mon Jun 1 14:17:36 1998 Mike Stump <mrs@wrs.com> 7083 7084 * Makefile.in: Add a dependency on stamp-picdir for the 7085 objects, so that we can do a parallel build. 7086 7087Sat May 30 22:17:13 1998 Mumit Khan <khan@xraylith.wisc.edu> 7088 7089 * configure.in (checkfuncs): Add missing "'". 7090 7091Fri May 29 12:40:41 1998 Jason Molenda (crash@bugshack.cygnus.com) 7092 7093 * obstack.c (_obstack_memory_used): Elide this function if we're 7094 on a system with GNU libc. 7095 7096Tue May 26 18:28:43 1998 Ian Lance Taylor <ian@cygnus.com> 7097 7098 * Makefile.in (distclean): Remove config.log. 7099 7100Tue May 26 15:01:52 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 7101 7102 * Makefile.in (distclean): Don't remove alloca-conf.h. 7103 7104Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se> 7105 7106 * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767. 7107 71081998-05-21 Mark Mitchell <mmitchell@usa.net> 7109 7110 * cplus-dem.c (do_type): Handle volatile qualification. 7111 71121998-05-21 Manfred Hollstein <manfred@s-direktnet.de> 7113 7114 * configure.in: Check for unistd.h as well. 7115 * configure: Rebuild. 7116 * config.in: Rebuild. 7117 * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE 7118 is defined in unistd.h. Reformat conditional block for easier reading. 7119 7120 * config.table (shared): Default to no if ${enable_shared} 7121 is unset or empty; this logic is used by the toplevel 7122 configure scripts, too. 7123 7124Sat May 16 14:01:26 1998 Jeffrey A Law (law@cygnus.com) 7125 7126 * config.table: Add line to set enable_shared in the Makefile 7127 as needed. 7128 7129Wed May 13 14:24:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 7130 7131 * cplus-dem.c (squangle_mop_up): Change return type to void. 7132 (internal_cplus_demangle): Remove unused parameter `options'. 7133 All callers changed. 7134 (cplus_demangle_opname): Remove function wide variable `int i' and 7135 replace with `size_t i' at each location where it is used. 7136 (cplus_mangle_opname): change type of `i' from int to size_t. 7137 7138Wed May 13 13:39:38 1998 Ian Lance Taylor <ian@cygnus.com> 7139 7140 * alloca-conf.h: Include config.h. Check HAVE_ALLOCA_H rather 7141 than sparc or sun. 7142 * Makefile.in (argv.o): Depend upon config.h and alloca-conf.h. 7143 7144Fri May 8 00:23:51 1998 Ian Lance Taylor <ian@cygnus.com> 7145 7146 * configure.in: Set libiberty_topdir correctly when srcdir is 7147 "." and with_target_subdir is not set. 7148 * configure: Rebuild. 7149 7150Thu May 7 13:01:44 1998 Ian Lance Taylor <ian@cygnus.com> 7151 7152 * configure.in: Add *-*-mingw32* case. 7153 * configure: Rebuild. 7154 7155Wed May 6 11:33:51 1998 Ian Lance Taylor <ian@cygnus.com> 7156 7157 * config.table: Never use a PIC file for *-*-cygwin32*. 7158 7159 * Makefile.in (config.status): Depend upon config.table. 7160 7161 * configure.in: On a cygwin32 host, always compile random, and 7162 don't test for sys_siglist, strsignal, or psignal. 7163 * configure: Rebuild. 7164 7165 * clock.c: Check HAVE_SYS_PARAM_H rather than NO_SYS_PARAM_H. 7166 * getcwd.c: Likewise. 7167 * getpagesize.c: Likewise. 7168 * getruntime.c: Likewise. 7169 7170Tue May 5 18:08:32 1998 Ian Lance Taylor <ian@cygnus.com> 7171 7172 Use autoconf tests rather than the old dummy.c test: 7173 * configure.in: Add AC_ARG_WITH calls for --with-target-subdir and 7174 --with-newlib. Add AC_CONFIG_HEADER. Use AC_REPLACE_FUNCS for 7175 most functions. Add special cases to handle newlib and VxWorks. 7176 Remove target_makefile_frag. Create stamp-h in AC_OUTPUT if 7177 CONFIG_HEADERS is set. Only call config-ml.in in AC_OUTPUT if 7178 CONFIG_FILES is set; set ac_file before calling it. 7179 * config.table (arm-*-riscix*, *-*-cygwin32): Remove. 7180 (*-*-hpux*, *-*-hiux*, *-*-irix4*, *-*-solaris2*): Remove. 7181 (*-*-sysv4*, *-*-go32, *-*-vxworks5*, *-*-vxworks): Remove 7182 (i[3456]-*-mingw32*): Remove. 7183 * Makefile.in (ERRORS_CC, CONFIG_H, NEEDED_LIST): Remove. 7184 (LIBOBJS): New variable. 7185 (HOST_OFILES, DO_ALSO, STAGESTUFF): Remove. 7186 (all): Depend upon needed-list. Don't check RULE1. 7187 (@target_makefile_frag@): Remove. 7188 (COMPILE.c): Include @DEFS@. 7189 (HFILES): Add alloca-conf.h. 7190 (REQUIRED_OFILES): Remove basename.o. 7191 ($(TARGETLIB)): New target. 7192 (stamp-needed, lneeded-list, needed.awk, stamp-config): Remove. 7193 (lconfig.h, needed2.awk, dummy.o, errors): Remove. 7194 (needed-list, config.h): Rewrite. 7195 (RULE1, $(RULE1), RULE2, $(RULE2)): Remove. 7196 (.always.): Remove. 7197 (Makefile): Set CONFIG_FILES and CONFIG_HEADERS. 7198 (stamp-h): New target. 7199 (atexit.o, clock.o, getcwd.o, getpagesize.o): New targets. 7200 (basename.o): Don't depend upon config.h. 7201 (getruntime.o): Depend upon config.h. 7202 * atexit.c: Include config.h. Check HAVE_ON_EXIT rather than 7203 NEED_on_exit. 7204 * basename.c: Don't include config.h. Don't check NEED_basename. 7205 * clock.c: Include config.h. 7206 * getcwd.c: Likewise. 7207 * getpagesize.c: Likewise. 7208 * getruntime.c: Likewise. Fix checks which set HAVE_GETRUSAGE and 7209 HAVE_TIMES. 7210 * strerror.c: Change uses of NEED_sys_errlist to 7211 HAVE_SYS_ERRLIST. Likewise for NEED_strerror and HAVE_STRERROR. 7212 * strsignal.c: Likewise for NEED_sys_siglist and HAVE_SYS_SIGLIST, 7213 and for NEED_strsignal and HAVE_STRSIGNAL and for NEED_psignal and 7214 HAVE_PSIGNAL. 7215 * acconfig.h: New file. 7216 * dummy.c: Remove. 7217 * functions.def: Remove. 7218 * config/mh-cxux7 (HDEFINES): Remove -DHAVE_SYSCONF. 7219 * config/mh-windows (HDEFINES): Remove. 7220 * config/mh-cygwin32: Remove. 7221 * config/mh-go32: Remove. 7222 * config/mh-irix4: Remove. 7223 * config/mh-riscix: Remove. 7224 * config/mh-sysv4: Remove. 7225 * config/mt-mingw32: Remove. 7226 * config/mt-vxworks5: Remove. 7227 * config.in: New file, generated using autoheader. 7228 * configure: Rebuild. 7229 7230Mon May 4 13:00:28 1998 Ian Lance Taylor <ian@cygnus.com> 7231 7232 * configure.in: Rewrite to use autoconf. 7233 * configure: Generate using autoconf. 7234 * config/mh-a68bsd: Remove. 7235 * config/mh-apollo68: Remove. 7236 * config/mh-hpbsd: Remove. 7237 * config/mh-ncr3000: Remove. 7238 * config/mh-sysv: Remove. 7239 * config/mh-aix (RANLIB, INSTALL): Don't define. 7240 * config/mh-cxux7 (RANLIB, INSTALL): Don't define. 7241 * config/mh-irix4 (CC, RANLIB, INSTALL): Don't define. 7242 * config/mh-sysv4 (RANLIB, INSTALL): Don't define. 7243 * config.table: Change config_shell to CONFIG_SHELL, and use 7244 libiberty_topdir to find move-if-change. 7245 (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove. 7246 (i[3456]86-ncr-sysv4*, *-*-dgux*, hppa*-hp-bsd*): Remove. 7247 (*-*-irix*, *-*-m88kbcs*, *-*-sysv*): Remove. 7248 * Makefile.in (srcdir): Set to @srcdir@. 7249 (VPATH): Likewise. 7250 (prefix, exec_prefix, bindir, libdir): Set to autoconf variables. 7251 (SHELL, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Likewise. 7252 (CC, CFLAGS, RANLIB)): Likewise. 7253 (datadir, man*dir, infodir, includedir, MAKEINFO): Remove. 7254 (target_makefile_frag, host_makefile_frag): Add substitutions. 7255 (INSTALL_DEST): Set to @INSTALL_DEST@. 7256 (Makefile): Depend upon config.status. Don't depend upon 7257 $(host_makefile_frag) or $(target_makefile_frag). 7258 (config.status): New target. 7259 7260Sun May 3 17:58:49 1998 Ian Lance Taylor <ian@cygnus.com> 7261 7262 * config/mt-sunos4: Remove. Should be handled by --with-headers 7263 and --with-libraries options at top level. 7264 * config.table: Never use mt-sunos4. 7265 7266 * alloca-conf.h: New file, combining alloca-norm.h and 7267 alloca-botch.h. 7268 * alloca-norm.h: Remove. 7269 * alloca-botch.h: Remove. 7270 * configure.in: Set shell variables files and links to empty. 7271 * config.table: Don't set shell variable files. 7272 * configure.bat: Don't create alloca-conf.h. 7273 * makefile.vms: Likewise. 7274 * mpw-config.in: Likewise. 7275 * vmsbuild.com: Likewise. 7276 7277Fri May 1 11:41:42 1998 Ian Lance Taylor <ian@cygnus.com> 7278 7279 * Makefile.in ($(HOST_OFILES) $(REQUIRED_OFILES)): Remove old 7280 target depending upon config.h. 7281 (alloca.o): Add target depending upon config.h 7282 (basename.o, choose-temp.o, fnmatch.o): Likewise. 7283 (getopt.o, getopt1.o, pexecute.o, strerror.o): Likewise. 7284 (strsignal.o, xstrerror.o): Likewise. 7285 7286Fri May 1 04:26:25 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 7287 7288 * cplus-dem.c (cplus_demangle_opname): Initialize work. 7289 7290Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com> 7291 7292 * cplus-dem.c (demangle_qualified): Replace missing else. 7293 7294Sun Apr 26 15:38:50 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> 7295 7296 * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the 7297 length in the name of a virtual table. 7298 7299Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod <amacleod@cygnus.com> 7300 7301 * cplus-dem.c (struct work stuff): Add field for B and K mangle codes. 7302 (cplus_demangle_opname): Call mop_up_squangle. 7303 (cplus_demangle): Initialize squangle info, then call 7304 internal_cplus_demangle. (Most code moved there as well) 7305 (internal_cplus_demangle): New function, performs most of what use 7306 to be done in cplus_demangle, but is only called with this file. 7307 (squangle_mop_up): New function to clean up B and K code data. 7308 (mop_up): set pointers to NULL after freeing. 7309 (demangle_signature, demangle_template, demangle_class): Add 7310 switch elements to handle K and B codes. 7311 (demangle_prefix, gnu_special, demangle_qualified): Add 7312 code to handle K and B codes. 7313 (do_type, demangle_fund_type): Handle B and K codes. 7314 (remember_Ktype): New function to store K info. 7315 (register_Btype, remember_Btype): New functions for B codes. 7316 (forget_B_and_K_types): New function to destroy B and K info. 7317 7318Fri Apr 10 01:49:10 1998 Jeffrey A Law (law@cygnus.com) 7319 7320 * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc. 7321 7322Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de> 7323 7324 * config.table: Make locating frag files failsafe even for the 7325 special case if configuring and building in srcdir. 7326 7327Mon Feb 23 14:33:15 1998 Ian Lance Taylor <ian@cygnus.com> 7328 7329 * choose-temp.c: Fix handling of sys/file.h to work in libiberty. 7330 7331Sun Feb 22 18:03:23 1998 Jeffrey A Law (law@cygnus.com) 7332 7333 * choose-temp.c: Sync with copy in gcc. 7334 7335Thu Feb 12 16:29:49 1998 Ian Lance Taylor <ian@cygnus.com> 7336 7337 * getopt.c: Update to latest FSF version. 7338 * getopt1.c: Likewise. 7339 7340Tue Feb 10 16:58:33 1998 Stan Shebs <shebs@andros.cygnus.com> 7341 7342 * cplus-dem.c (gnu_special): Don't get confused by .<digits> 7343 strings that are not actually lengths. 7344 7345Fri Feb 6 01:35:17 1998 Manfred Hollstein <manfred@s-direktnet.de> 7346 7347 * Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG. 7348 (.c.o): Check value of enable_shared, not PICFLAG. 7349 (stamp-picdir): Dito. 7350 7351Thu Feb 5 18:48:56 1998 Geoffrey Noer <noer@cygnus.com> 7352 7353 * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES 7354 since it gets built automatically 7355 7356Sun Feb 1 02:52:32 1998 Mike Stump <mrs@wrs.com> 7357 7358 * config.table (vxworks configs): Default to VxWorks 5.x, as that is 7359 the currently shipping OS. 7360 7361Tue Jan 27 16:08:20 1998 Pat Rankin <rankin@eql.caltech.edu> 7362 7363 * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in: 7364 Add fnmatch.o and objalloc.o; remove vasprintf.o. 7365 [config.h]: Define NEED_strsignal. 7366 7367Mon Jan 19 12:20:01 1998 Ian Lance Taylor <ian@cygnus.com> 7368 7369 * functions.def: Correct argument types for strerror and 7370 strsignal. Reported by Alex Gutman <agutman@emc.com>. 7371 7372Sun Jan 18 15:57:28 1998 Michael Snyder <msnyder@cleaver.cygnus.com> 7373 7374 * vasprintf.c (int_vasprintf): Increase buffer size for float/double 7375 values. 7376 7377Sat Jan 17 22:28:38 1998 Mumit Khan <khan@xraylith.wisc.edu> 7378 J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl> 7379 7380 Add mingw32 support. 7381 * pexecute.c (pexecute): New function for mingw32. Supports pipes. 7382 (pwait): New function for mingw32. 7383 7384 * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32. 7385 * config/mt-mingw32: New file. 7386 * xmalloc.c (first_break): Not used for mingw32. 7387 (xmalloc_set_program_name): Don't use sbrk on mingw32. 7388 (xmalloc): Likewise. 7389 (xrealloc): Likewise. 7390 7391Sat Jan 17 22:28:05 1998 Jeffrey A Law (law@cygnus.com) 7392 7393 * choose-temp.c: Sync with gcc version. 7394 7395Tue Jan 13 18:34:39 1998 Jim Wilson <wilson@cygnus.com> 7396 7397 * Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR 7398 to all filenames in libdir and tooldir. 7399 (distclean): Do MULTICLEAN before deleting Makefile. 7400 (stamp-needed, stamp-config): Add MULTISRCTOP to 7401 pathname for move-if-change. 7402 7403Thu Dec 4 17:25:19 1997 Jeffrey A Law (law@cygnus.com) 7404 7405 * strsignal.c (sys_nsig): Try NSIG and _NSIG. 7406 7407Wed Nov 19 13:37:06 1997 Michael Meissner <meissner@cygnus.com> 7408 7409 * alloca-norm.h (alloca, GCC case): Don't redefine alloca if it 7410 was already defined previously. 7411 7412Mon Nov 10 12:48:03 1997 Philippe De Muyter <phdm@macqel.be> 7413 7414 * Makefile.in (INSTALL): Use ../install-sh, not install. 7415 7416Tue Oct 28 23:41:15 1997 Judy Goldberg <jodyg@idt.net> 7417 7418 * Makefile.in (CFILES): Add pexecute.c. 7419 7420Wed Oct 15 19:13:48 1997 Ian Lance Taylor <ian@cygnus.com> 7421 7422 * asprintf.c: Consistently use either stdarg or varargs. 7423 7424Tue Oct 14 12:01:00 1997 Mark Mitchell <mmitchell@usa.net> 7425 7426 * cplus-dem.c (demangle_signature): Don't look for return types on 7427 constructors. Handle member template constructors. 7428 7429Fri Oct 3 17:53:30 1997 Ian Lance Taylor <ian@cygnus.com> 7430 7431 * README: Fix configuration instructions. 7432 7433Mon Sep 29 12:28:41 1997 Ian Lance Taylor <ian@cygnus.com> 7434 7435 * pexecute.c: Update to current version from /gd/gnu/lib: 7436 7437 Mon Sep 29 12:27:59 1997 Ian Lance Taylor <ian@cygnus.com> 7438 7439 * pexecute.c: Use spawn if __CYGWIN32__. 7440 7441 1997-08-08 Paul Eggert <eggert@twinsun.com> 7442 7443 * pexecute.c: Include "config.h" first, as per autoconf manual. 7444 7445 Fri Jun 27 15:20:29 1997 Scott Christley <scottc@net-community.com> 7446 7447 * pexecute.c (fix_argv): New function. 7448 (pexecute): Win32 but not Cygwin32 needs its arguments fixed. 7449 Add underscore to cwait function call. 7450 7451Sun Sep 28 12:00:52 1997 Mark Mitchell <mmitchell@usa.net> 7452 7453 * cplus-dem.c (demangle_template): Add new parameter. Handle new 7454 template-function mangling. 7455 (consume_count_with_underscores): New function. 7456 (demangle_signature): Handle new name-mangling scheme. 7457 7458Wed Sep 24 00:31:59 1997 Felix Lee <flee@yin.cygnus.com> 7459 7460 * asprintf.c: stdarg.h when ALMOST_STDC 7461 * config/mh-windows (EXTRA_OFILES): add asprintf.o and 7462 strncasecmp.o. 7463 7464Thu Aug 28 14:27:15 1997 Andrew Cagney <cagney@b1.cygnus.com> 7465 7466 * vasprintf.c (vasprintf): Allow for _BSD_VA_LIST_. 7467 7468 * config.table: Add case for FreeBSD 2.1 and 2.2, needs mh-fbsd21. 7469 7470 * config/mh-fbsd21 (EXTRA_OFILES): Force vasprintf.o 7471 7472Wed Sep 10 12:43:10 1997 Jason Merrill <jason@yorick.cygnus.com> 7473 7474 * cplus-dem.c (demangle_fund_type): Change "complex" to "__complex". 7475 7476Fri Sep 5 16:34:42 1997 Andrew Cagney <cagney@b1.cygnus.com> 7477 7478 * asprintf.c (asprintf): New file. 7479 * Makefile.in (CFILES): Add asprintf.c 7480 * functions.def: Ditto. 7481 7482Thu Aug 28 18:53:34 1997 Andrew Cagney <cagney@b1.cygnus.com> 7483 7484 * argv.c (dupargv): New function, duplicate an argument vector. 7485 7486Tue Aug 19 20:28:45 1997 Geoffrey Noer <noer@cygnus.com> 7487 7488 * config/mh-cygwin32: also build random.o 7489 7490Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com> 7491 7492 * cplus-dem.c: Add 'extern' to prepends_underscore. 7493 7494Wed Jul 30 11:42:19 1997 Per Bothner <bothner@cygnus.com> 7495 7496 * cplus-dem.c: Various changes to produce Java output when passed 7497 DMGL_JAVA. Thus "::" becomes "." and "JArray<Foo>" becomes "Foo[]". 7498 (main): Support --java and -j flags to set DMGL_JAVA. 7499 7500Tue Jul 22 19:05:23 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE> 7501 7502 * config/mh-go32 (CC, AR, RANLIB): Don't define. 7503 7504Tue Jul 22 17:49:54 1997 Ian Lance Taylor <ian@cygnus.com> 7505 7506 * Makefile.in (REQUIRED_OFILES): Add pexecute.o. 7507 (pexecute.o): New target. 7508 7509 * Makefile.in (stamp-needed): New target, replacing needed-list. 7510 (needed-list): Just depend upon stamp-needed. 7511 (stamp-config): New target, replacing config.h. 7512 (config.h): Just depend upon stamp-config. 7513 (mostlyclean): Remove stamp-*. 7514 7515Thu Jun 12 11:00:18 1997 Angela Marie Thomas (angela@cygnus.com) 7516 7517 * Makefile.in (FLAGS_TO_PASS): pass INSTALL, INSTALL_PROGRAM and 7518 INSTALL_DATA for multilibbed installs 7519 7520Tue Jun 3 13:21:05 1997 Doug Evans <dje@canuck.cygnus.com> 7521 7522 Tue Dec 10 09:44:57 1996 Paul Eggert <eggert@twinsun.com> 7523 7524 * choose-temp.c (choose_temp_base): Don't dump core if TMPDIR is empty. 7525 7526 * choose-temp.c (try): Insist that temp dir be searchable. 7527 7528 Wed Oct 23 17:36:39 1996 Doug Rupp (rupp@gnat.com) 7529 7530 * choose-temp.c (choose_temp_base): On VMS, use proper syntax 7531 for current directory. 7532 7533 Sat Feb 15 19:03:48 1997 Geoffrey Noer (noer@cygnus.com) 7534 7535 * pexecute.c: Remove special cases for cygwin32. 7536 (pwait): Remove local definition of `pid'. 7537 7538 Tue Nov 12 18:26:15 1996 Doug Rupp (rupp@gnat.com) 7539 7540 * pexecute.c (vfork): Supply new definition for VMS. 7541 (pwait): Use waitpid instead of wait for VMS. 7542 7543Tue May 20 14:02:20 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 7544 7545 * cplus-dem.c (do_type): Handle `J'. 7546 (demangle_fund_type): Print "complex" for it. 7547 7548Wed Apr 30 12:15:45 1997 Jason Merrill <jason@yorick.cygnus.com> 7549 7550 * configure.in: Don't turn on multilib here. 7551 7552Mon Apr 28 19:04:31 1997 Michael Snyder <msnyder@cleaver.cygnus.com> 7553 7554 * obstack.c: move _obstack_memory_used outside of ifdef. Cannot be 7555 elided; needed by gdb and not present in libc. 7556 7557Thu Apr 24 19:33:47 1997 Ian Lance Taylor <ian@cygnus.com> 7558 7559 * Makefile.in (clean): Remove tmpmulti.out. 7560 7561Tue Apr 22 10:25:15 1997 Fred Fish <fnf@cygnus.com> 7562 7563 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): 7564 Add new floatformat, mainly for ARM doubles. 7565 7566Mon Apr 14 12:11:16 1997 Ian Lance Taylor <ian@cygnus.com> 7567 7568 * config.table: Use ${config_shell} with ${moveifchange}. From 7569 Thomas Graichen <graichen@rzpd.de>. 7570 7571Fri Apr 4 03:09:24 1997 Ulrich Drepper <drepper@cygnus.com> 7572 7573 * configure.in: Enable multilibing by default. 7574 Update multilib template to read config-ml.in. 7575 7576Tue Apr 1 16:26:39 1997 Klaus Kaempf <kkaempf@progis.de> 7577 7578 * makefile.vms: Add objalloc. 7579 7580Mon Mar 31 23:57:51 1997 H.J. Lu <hjl@gnu.ai.mit.edu> 7581 7582 * cplus-dem.c (demangle_it): Add prototype declaration. 7583 (usage, fatal): Likewise. 7584 7585 * xexit.c (_xexit_cleanup): Add prototype. 7586 7587 * strerror.c (init_error_tables): Declare. 7588 7589Fri Mar 28 11:43:20 1997 H.J. Lu <hjl@lucon.org> 7590 7591 * functions.def: Add DEF of vasprintf, and DEFFUNC of strsignal. 7592 * strsignal.c: Only define strsignal if NEED_strsignal. 7593 * Makefile.in (REQUIRED_OFILES): Remove vasprintf.o. 7594 * configure.in: Add NEED_strsignal to xconfig.h. Add vasprintf.o 7595 to xneeded-list. 7596 * config/mh-cygwin32 (HDEFINES): Add -DNEED_strsignal. 7597 (EXTRA_OFILES): Define to vasprintf.o. 7598 * config/mh-windows (HDEFINES): Add -DNEED_strsignal. 7599 (EXTRA_OFILES): Add vasprintf.o. 7600 * config/mt-vxworks5 (vxconfig.h): Define NEED_strsignal. 7601 (vxneeded-list): Add vasprintf.o. 7602 7603Thu Mar 20 17:02:09 1997 Ian Lance Taylor <ian@cygnus.com> 7604 7605 * objalloc.c: Include <stdio.h>. 7606 7607Mon Mar 17 19:23:11 1997 Ian Lance Taylor <ian@cygnus.com> 7608 7609 * objalloc.c: New file. 7610 * Makefile.in (CFILES): Add objalloc.c 7611 (REQUIRED_OFILES): Add objalloc.o. 7612 (objalloc.o): New target. 7613 7614Sat Mar 15 18:49:41 1997 Ian Lance Taylor <ian@cygnus.com> 7615 7616 * obstack.c: Update to current FSF version. 7617 7618Fri Mar 14 14:18:47 1997 Ian Lance Taylor <ian@cygnus.com> 7619 7620 * cplus-dem.c: Add prototypes for all static functions. 7621 (mystrstr): Make static. Make arguments and result const. 7622 (cplus_match): Remove; not used. 7623 7624Tue Mar 11 14:20:31 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 7625 7626 * cplus-dem.c (gnu_special): Call demangled_fund_type for other 7627 __t* symbols. 7628 7629Tue Mar 11 15:41:21 1997 H.J. Lu <hjl@lucon.org> 7630 7631 * spaces.c: Declare malloc and free properly. 7632 * strsignal.c (init_signal_tables): Add prototype. 7633 * xatexit.c (_xexit_cleanup): Add parameter declarations. 7634 7635Wed Feb 19 15:43:24 1997 Brendan Kehoe <brendan@lisa.cygnus.com> 7636 7637 * Makefile.in (lneeded-list): If alloca.o is needed, xexit.o is 7638 also required because of xmalloc.o. 7639 7640Fri Feb 14 13:43:38 1997 Ian Lance Taylor <ian@cygnus.com> 7641 7642 * strsignal.c: Unconditionally redefine sys_siglist around the 7643 inclusion of the system header files. 7644 7645Thu Feb 13 22:01:04 1997 Klaus Kaempf <kkaempf@progis.de> 7646 7647 * makefile.vms: Remove 8 bit characters. Update to latest 7648 gcc release. 7649 7650Tue Feb 4 11:52:19 1997 Ian Lance Taylor <ian@cygnus.com> 7651 7652 * strsignal.c: Use NEED_sys_siglist instead of 7653 LOSING_SYS_SIGLIST. 7654 * config.table: Don't use mh-lynxos. 7655 * config/mh-lynxos: Remove. 7656 7657Thu Jan 16 14:51:03 1997 Bob Manson <manson@charmed.cygnus.com> 7658 7659 * cplus-dem.c: Fix indenting; make identical to the copy 7660 in GCC. 7661 (do_type, case 'M'): Check for a template as well as a class. 7662 7663Thu Dec 19 13:51:33 1996 Brendan Kehoe <brendan@lisa.cygnus.com> 7664 7665 * config/mt-vxworks5 (vxneeded-list): Remove sigsetmask.o, since 7666 vxworks 5.[0-3] all have sigsetmask in them; the one provided by 7667 libiberty is incorrect, as well. 7668 7669Mon Dec 2 15:03:42 1996 Michael Meissner <meissner@tiktok.cygnus.com> 7670 7671 * alloca.c (alloca): When compiled with an ANSI/ISO compiler, 7672 alloca takes a size_t argument, not just unsigned. 7673 7674Mon Nov 18 15:42:08 1996 Jason Merrill <jason@yorick.cygnus.com> 7675 7676 * cplus-dem.c: Note that this file also lives in GCC. 7677 7678Mon Nov 18 15:19:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 7679 7680 * alloca.c: Remove include of libiberty.h for hpux. 7681 * argv.c: Replace defs from libiberty.h. 7682 * spaces.c: Put back externs from removed from libiberty.h. 7683 * vasprintf.c: Remove include of libiberty.h for hpux. 7684 7685Mon Nov 18 14:08:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 7686 7687 * cplus-dem.c: Checking in again; last checkin filed due to sticky tag. 7688 7689Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 7690 7691 * cplus-dem.c: Revert last two commits due to conflicts with 7692 hpux system headers. 7693 7694Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 7695 7696 * alloca.c, argv.c, spaces.c, strcasecmp.c, vasprintf.c, vprintf.c: 7697 Revert last commit due to conflicts with hpux system headers. 7698 7699Wed Nov 13 10:36:50 1996 Michael Meissner <meissner@tiktok.cygnus.com> 7700 7701 * cplus-dem.c (x{m,re}alloc): Make declarations compatibile with 7702 libiberty.h when compiled with a standard compiler. 7703 7704Tue Nov 12 16:31:00 1996 Dawn Perchik <dawn@critters.cygnus.com> 7705 7706 * alloca.c: Include libiberty.h for definition of xmalloc. 7707 Don't redefine NULL. 7708 * argv.c: Move prototypes to libiberty.h. 7709 * cplus-dem.c: Include libiberty.h for definition of xmalloc. 7710 Don't redefine NULL. 7711 Use casts to eliminate compiler warnings. 7712 * spaces.c: Remove prototypes for malloc and free which are 7713 already in libibrty.h. 7714 * strcasecmp.c: Use casts to eliminate compiler warnings. 7715 * vasprintf.c: Include libiberty.h for definition of malloc. 7716 Don't redefine NULL. 7717 * vprintf.c: Include stdarg.h if __STDC__. 7718 7719Fri Oct 11 15:42:12 1996 Stu Grossman (grossman@critters.cygnus.com) 7720 7721 * config/mh-windows: Add strcasecmp.o to EXTRA_OFILES. 7722 7723Fri Oct 11 11:16:31 1996 Stan Shebs <shebs@andros.cygnus.com> 7724 7725 * mpw.c (mpwify_filename): Rewrite to simplify, and to handle 7726 upward components correctly. 7727 7728Tue Oct 8 08:55:34 1996 Stu Grossman (grossman@critters.cygnus.com) 7729 7730 * config.table, config/mh-windows: Add support for building under 7731 MSVC (the Microsoft build environment). 7732 7733Mon Oct 7 10:50:27 1996 Ian Lance Taylor <ian@cygnus.com> 7734 7735 * fnmatch.c: Undef const if not __STDC__. 7736 7737Thu Oct 3 13:46:39 1996 Ian Lance Taylor <ian@cygnus.com> 7738 7739 * fnmatch.c: New file. 7740 * Makefile.in (CFILES): Add fnmatch.c. 7741 (REQUIRED_OFILES): Add fnmatch.o. 7742 (fnmatch.o): New target. 7743 7744Wed Sep 18 14:49:13 1996 Jason Merrill <jason@yorick.cygnus.com> 7745 7746 * cplus-dem.c (demangle_template): Fix handling of address args. 7747 (gnu_special): Handle type_info stuff. 7748 7749Fri Sep 13 17:52:55 1996 Stan Shebs <shebs@andros.cygnus.com> 7750 7751 * mpw.c (DebugPI): Make settable from the env var DEBUG_PATHNAMES. 7752 (mpwify_filename): Handle "::/" case. 7753 7754Thu Sep 12 13:30:40 1996 Geoffrey Noer <noer@cygnus.com> 7755 7756 * config/mh-cygwin32: new file (need -DNEED_basename and 7757 -DNEED_sys_siglist for native NT rebuilding) 7758 * config.table (*-*-cygwin32): new entry 7759 * choose-temp.c: bring in sync with gcc (revert Aug 17 change) 7760 7761Thu Aug 29 16:48:45 1996 Michael Meissner <meissner@tiktok.cygnus.com> 7762 7763 * config.table (i[345]86-*-*): Recognize i686 for pentium pro. 7764 7765Tue Aug 27 13:47:58 1996 Stan Shebs <shebs@andros.cygnus.com> 7766 7767 * pexecute.c (pexecute) [MPW]: Remove old bogus code that 7768 messed with arguments that included a '/', add escape chars 7769 to double quotes, remove const decl from arg that Mac 7770 compilers don't seem to like. 7771 7772Sat Aug 17 04:44:27 1996 Geoffrey Noer <noer@cygnus.com> 7773 7774 * pexecute.c: Update test for win32 (&& ! cygwin32). 7775 * choose-temp.c: fix WIN32 preprocessor defines 7776 7777Thu Aug 15 12:26:48 1996 Stan Shebs <shebs@andros.cygnus.com> 7778 7779 * mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG({Default})@ 7780 to editing of default makefile rule. 7781 7782Sun Aug 11 21:03:27 1996 Stu Grossman (grossman@critters.cygnus.com) 7783 7784 * alloca-norm.h: Include <malloc.h> if _WIN32. 7785 * argv.c: Include non-prototyped decls for malloc and string 7786 functions if ! _WIN32 or if __GNUC__. 7787 7788Thu Aug 8 12:42:40 1996 Klaus Kaempf <kkaempf@progis.de> 7789 7790 * config.h-vms: New file. 7791 * makefile.vms: Use it. 7792 7793Wed Aug 7 17:16:12 1996 Stu Grossman (grossman@critters.cygnus.com) 7794 7795 * getopt.c (_getopt_internal): If argc is 0, just return (before 7796 we reference *argv and segfault). 7797 7798Mon Aug 5 01:29:08 1996 Jason Merrill <jason@yorick.cygnus.com> 7799 7800 * Makefile.in (distclean): Add multilib.out. 7801 7802Thu Jul 18 17:40:55 1996 Ian Lance Taylor <ian@cygnus.com> 7803 7804 * alloca-norm.h: Change #ifdef sparc to #if defined (sparc) && 7805 defined (sun). From Andrew Gierth <ANDREWG@microlise.co.uk>. 7806 7807Mon Jul 1 13:40:44 1996 Ken Raeburn <raeburn@cygnus.com> 7808 7809 Tue May 28 15:29:03 1996 Pat Rankin <rankin@eql.caltech.edu> 7810 7811 * vmsbuild.com (REQUIRD_OFILES): Add choose-temp.o and xstrdup.o. 7812 7813 Thu Jan 25 18:20:04 1996 Pat Rankin <rankin@eql.caltech.edu> 7814 7815 * vmsbuild.com: Changes to handle DEFFUNC(on_exit). 7816 (do_ofiles): Allow nonexistent source file in pass 3. 7817 (chk_deffunc): New routine. 7818 7819Tue Jun 25 19:24:43 1996 Doug Evans <dje@canuck.cygnus.com> 7820 7821 * pexecute.c (PEXECUTE_VERBOSE): Define. 7822 (MPW pexecute): Check flags & PEXECUTE_VERBOSE instead of verbose_flag. 7823 7824Tue Jun 25 23:11:48 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) 7825 7826 * Makefile.in (docdir): Removed. 7827 7828Tue Jun 25 23:01:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) 7829 7830 * Makefile.in (oldincludedir): Removed. 7831 7832Tue Jun 25 22:50:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) 7833 7834 * Makefile.in (datadir): Set to $(prefix)/share. 7835 7836Thu Jun 20 21:17:52 1996 Ian Lance Taylor <ian@cygnus.com> 7837 7838 * cplus-dem.c (demangle_arm_pt): Reindent. Avoid endless loop by 7839 checking for errors from do_type. 7840 7841Tue Jun 18 14:36:19 1996 Klaus Kaempf <kkaempf@progis.de> 7842 7843 * makefile.vms: New file. 7844 * xmalloc.c: If VMS, include <stdlib.h> and <unixlib.h> rather 7845 than declaring malloc, realloc, and sbrk. 7846 7847Mon Jun 10 13:17:17 1996 Doug Evans <dje@canuck.cygnus.com> 7848 7849 * pexecute.c: New file. 7850 7851Wed Jun 5 16:57:45 1996 Richard Henderson <rth@tamu.edu> 7852 7853 * xmalloc.c: Declare sbrk. 7854 7855Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 7856 7857 * alloca-norm.h: Add SPARCworks cc compatible __builtin_alloca 7858 declaration. 7859 7860Mon Apr 22 18:41:49 1996 Ian Lance Taylor <ian@cygnus.com> 7861 7862 * xstrerror.c: Include <stdio.h>. 7863 7864Sun Apr 21 11:55:12 1996 Doug Evans <dje@canuck.cygnus.com> 7865 7866 * Makefile.in (CFILES): Add atexit.c. 7867 7868Sun Apr 21 09:50:09 1996 Stephen L Moshier (moshier@world.std.com) 7869 7870 * choose-temp.c: Include sys/types.h before sys/file.h for sco3.2v5. 7871 7872Wed Apr 17 11:17:55 1996 Doug Evans <dje@canuck.cygnus.com> 7873 7874 * choose-temp.c: Don't #include sys/file.h ifdef NO_SYS_FILE_H. 7875 #include <stdio.h> 7876 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_FILE_H. 7877 7878Tue Apr 16 11:27:16 1996 Jeffrey A Law (law@cygnus.com) 7879 7880 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o. 7881 Reverts Feb 8, 1995 change. 7882 7883Mon Apr 15 12:53:26 1996 Doug Evans <dje@canuck.cygnus.com> 7884 7885 * choose-temp.c: New file. 7886 * Makefile.in (CFILES): Add choose-temp.c. 7887 (REQUIRED_OFILES): Add choose-temp.o. 7888 7889Sat Apr 13 14:19:30 1996 Stu Grossman (grossman@critters.cygnus.com) 7890 7891 * floatformat.c (floatformat_to_double): Don't bias exponent when 7892 handling zero's, denorms or NaNs. 7893 7894Thu Apr 11 13:36:56 1996 Stu Grossman (grossman@critters.cygnus.com) 7895 7896 * floatformat.c (floatformat_to_double): Fix bugs with handling 7897 numbers with fractions < 32 bits. 7898 7899Mon Apr 8 14:48:34 1996 Ian Lance Taylor <ian@cygnus.com> 7900 7901 * config.table: Permit --enable-shared to specify a list of 7902 directories. 7903 7904Tue Mar 19 22:02:07 1996 Jason Merrill <jason@yorick.cygnus.com> 7905 7906 * cplus-dem.c (demangle_template): Fix for non-mangled pointer 7907 arguments. 7908 7909Fri Mar 8 17:24:18 1996 Ian Lance Taylor <ian@cygnus.com> 7910 7911 * configure.in: If srcdir is `.' and with_target_subdir is not 7912 `.', then set MULTISRCTOP before calling config-ml.in. 7913 7914Thu Mar 7 13:37:10 1996 Stan Shebs <shebs@andros.cygnus.com> 7915 7916 * mpw.c (mpw_open): Add debugging output option. 7917 7918Wed Mar 6 17:36:03 1996 Jason Merrill <jason@yorick.cygnus.com> 7919 7920 * cplus-dem.c (demangle_template): Fix for address-of-extern arguments. 7921 7922Tue Feb 27 12:00:50 1996 Raymond Jou <rjou@mexican.cygnus.com> 7923 7924 * mpw.c (mpwify_filename): Change 6 to 5 in 7925 strncmp (unixname, "/tmp/", 5). 7926 7927Tue Feb 20 10:55:53 1996 Ian Lance Taylor <ian@cygnus.com> 7928 7929 * cplus-dem.c (demangle_template): Initialize is_bool. Correctly 7930 handle 0 as a pointer value parameter. 7931 7932Mon Feb 5 16:41:44 1996 Ian Lance Taylor <ian@cygnus.com> 7933 7934 * Makefile.in (all): Depend upon required-list. 7935 (required-list): New target. 7936 (clean): Remove required-list. 7937 7938Wed Jan 31 10:19:41 1996 Steve Chamberlain <sac@slash.cygnus.com> 7939 7940 * win32.c: Deleted. 7941 * config.table (i386-*-win32): Deleted. 7942 * config/mh-i386win32: Deleted. 7943 7944Thu Jan 18 11:34:17 1996 Ian Lance Taylor <ian@cygnus.com> 7945 7946 * cplus-dem.c (cplus_demangle_opname): Change opname parameter to 7947 const char *. 7948 (cplus_mangle_opname): Change return type and opname parameter to 7949 const char *. Don't cast return value. 7950 7951Tue Jan 16 12:13:11 1996 Stan Shebs <shebs@andros.cygnus.com> 7952 7953 * mpw.c: Include Timer.h, in order to get m68k Microseconds trap 7954 definition. 7955 7956Wed Jan 3 13:15:04 1996 Fred Fish <fnf@cygnus.com> 7957 7958 * obstack.c: Update copyright to 1996. 7959 (_obstack_memory_used): Define new function. Called via 7960 obstack_memory_used macro. 7961 7962Thu Dec 28 11:39:40 1995 Ian Lance Taylor <ian@cygnus.com> 7963 7964 * xstrdup.c: New file. 7965 * Makefile.in (CFILES): Add xstrdup.c. 7966 (REQUIRED_OFILES): Add xstrdup.o. 7967 (xstrdup.o): New target. 7968 7969Mon Dec 11 18:18:52 1995 Mike Stump <mrs@cygnus.com> 7970 7971 * atexit.c: New stub to provide atexit on systems that have 7972 on_exit, like SunOS 4.1.x systems. 7973 * functions.def (on_exit, atexit): Ditto. 7974 7975Mon Dec 11 15:42:14 1995 Stan Shebs <shebs@andros.cygnus.com> 7976 7977 * mpw.c (mpw_abort): Remove decl. 7978 (mpw_access): Move debugging printf. 7979 7980Sat Dec 2 01:25:23 1995 Ian Lance Taylor <ian@cygnus.com> 7981 7982 * config.table: Consistently use ${host} rather than ${xhost} or 7983 ${target}. 7984 * configure.in: Don't bother to set ${xhost} before calling 7985 config.table. 7986 7987Tue Nov 28 14:16:57 1995 Brendan Kehoe <brendan@lisa.cygnus.com> 7988 7989 * Makefile.in (.c.o): Use test instead of the left bracket, to 7990 avoid problems with some versions of make. 7991 7992Tue Nov 28 11:45:17 1995 Stan Shebs <shebs@andros.cygnus.com> 7993 7994 * mpw-make.sed: Fix INCDIR edit to work with Nov 14 change. 7995 7996Tue Nov 21 11:26:34 1995 Fred Fish <fnf@rtl.cygnus.com> 7997 7998 * config/mh-hpux: Remove. It was only used to define EXTRA_OFILES, 7999 which was set to just alloca.o, which is now automatically marked 8000 as needed by the autoconfiguration process. 8001 8002Tue Nov 21 14:15:06 1995 Ian Lance Taylor <ian@cygnus.com> 8003 8004 * config.table: Check ${with_cross_host} rather than comparing 8005 ${host} and ${target}. 8006 8007Thu Nov 16 14:34:42 1995 Ian Lance Taylor <ian@cygnus.com> 8008 8009 * configure.in: If with_target_subdir is empty, set xhost to 8010 ${host} rather than ${target} before calling config.table. 8011 8012Tue Nov 14 01:38:30 1995 Doug Evans <dje@canuck.cygnus.com> 8013 8014 * Makefile.in (MULTITOP): Deleted. 8015 (MULTISRCTOP, MULTIBUILDTOP): New. 8016 (FLAGS_TO_PASS): Delete INCDIR. 8017 (INCDIR): Add $(MULTISRCTOP). 8018 (install_to_libdir): Add $(MULTISUBDIR). Call $(MULTIDO). 8019 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in 8020 instead of cfg-ml-pos.in. 8021 (cross-compile check): Change to test for with_target_subdir. 8022 (EXTRA_LINKS): Delete. 8023 8024Sun Nov 12 12:13:04 1995 Stan Shebs <shebs@andros.cygnus.com> 8025 8026 * mpw-make.sed: Add getpagesize.c.o to needed-list. 8027 * mpw.c [USE_MW_HEADERS]: Conditionalize compiling of 8028 functions that are supplied by Metrowerks libraries. 8029 (fstat): Clean up descriptor->pointer conversion code. 8030 (InstallConsole, etc): Empty definitions, for when linking 8031 with SIOUX. 8032 8033Sun Nov 5 19:25:27 1995 Per Bothner <bothner@kalessin.cygnus.com> 8034 8035 * Makefile.in (FLAGS_TO_PASS): Also pass PICFLAGS. 8036 (.c.o): Stylistic change. 8037 8038Thu Nov 2 12:06:29 1995 Ian Lance Taylor <ian@cygnus.com> 8039 8040 * strtol.c, strtoul.c: Don't include <stdlib.h>. From 8041 phdm@info.ucl.ac.be (Philippe De Muyter). 8042 8043Wed Nov 1 11:59:36 1995 Ian Lance Taylor <ian@cygnus.com> 8044 8045 * configure.in: Correct sed call. 8046 8047Mon Oct 30 13:03:45 1995 Per Bothner <bothner@kalessin.cygnus.com> 8048 8049 * configure.in: Clean up / simplify for native. 8050 8051 * configure.in: Merge in stuff from ../xiberty/configure.in. 8052 * Makefile.in (CC): Add definition (so it can be overrridden 8053 by ../configure). 8054 8055Tue Oct 24 17:57:27 1995 Stan Shebs <shebs@andros.cygnus.com> 8056 8057 * mpw-make.sed: Leave strerror.c.o in standard list of functions. 8058 * mpw.c (R_OK, ENOENT, EACCESS, ENOSYS): Remove. 8059 (link): Remove useless definition with error return. 8060 (last_microseconds, warn_if_spin_delay, record_for_spin_delay): 8061 Use UnsignedWide type for microsecond counts. 8062 8063Thu Oct 19 10:52:07 1995 Michael Meissner <meissner@wogglebug.tiac.net> 8064 8065 * memcmp.c (memcmp): Argument types are const void *, not void 8066 *const. 8067 8068 * strncasecmp.c (strncasecmp): Include ansidecl.h/stdarg.h, not 8069 sys/types.h. 8070 * strcasecmp.c (strcasecmp): Ditto. 8071 8072Tue Oct 10 11:03:24 1995 Fred Fish <fnf@cygnus.com> 8073 8074 * Makefile.in (BISON): Remove macro. 8075 8076Tue Sep 26 15:06:46 1995 Stan Shebs <shebs@andros.cygnus.com> 8077 8078 * Makefile.in (HFILES): Add default empty definition. 8079 * mpw-config.in (config.h): Only update if changed. 8080 * mpw-make.in: Remove. 8081 * mpw-make.sed: New file, edits Makefile.in into MPW makefile. 8082 * mpw.c: Remove semi-clone of strerror code. 8083 (sys_nerr, sys_errlist): Define here. 8084 (Microseconds): Only define as A-line trap if m68k Mac. 8085 8086Wed Sep 20 12:53:32 1995 Ian Lance Taylor <ian@cygnus.com> 8087 8088 * Makefile.in (maintainer-clean): New synonym for distclean. 8089 8090Mon Aug 28 19:47:52 1995 Per Bothner <bothner@kalessin.cygnus.com> 8091 8092 * config.table: For host, generalize rs6000-ibm-aix* 8093 to *-ibm-aix* so we also include powerpc. 8094 8095Tue Aug 22 03:18:05 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 8096 8097 Fri Jun 16 18:35:40 1995 Pat Rankin (rankin@eql.caltech.edu) 8098 8099 * xstrerror.c: New file. 8100 * Makefile.in, vmsbuild.com: Compile it. 8101 8102Mon Jul 31 12:16:32 1995 steve chamberlain <sac@slash.cygnus.com> 8103 8104 * config.table (i386-*-win32): New. 8105 8106Fri Jul 21 11:35:52 1995 Doug Evans <dje@canuck.cygnus.com> 8107 8108 * Makefile.in (MULTITOP): New variable. 8109 (MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): Likewise. 8110 (all): Add multilib support. 8111 (install_to_tooldir, *clean): Likewise. 8112 8113Mon Jul 10 11:47:27 1995 Ken Raeburn <raeburn@cygnus.com> 8114 8115 * makefile.dos (OBJS): Add hex.o. From DJ Delorie. 8116 8117Fri Jun 30 17:28:59 1995 Pat Rankin (rankin@eql.caltech.edu) 8118 8119 * vmsbuild.com: create "new-lib.olb", build libiberty under that 8120 name, and then make it become "liberty.olb" when done, so that an 8121 incomplete build attempt never leaves behind something which looks 8122 like a complete library. 8123 8124Thu Jun 29 00:22:02 1995 Steve Chamberlain <sac@slash.cygnus.com> 8125 8126 * config/mh-i386pe: New file for PE hosts. 8127 * config.table: Understand PE hosts. 8128 8129Wed Jun 28 19:13:23 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8130 8131 * cplus-dem.c: Update from gcc. 8132 8133 * argv.c, dummy.c: If __STDC__, #include "alloca-conf.h" after 8134 <stddef.h>. 8135 * alloca-norm.h: If __STDC__, declare alloca with its parameter. 8136 8137Thu Jun 22 18:57:47 1995 Stan Shebs <shebs@andros.cygnus.com> 8138 8139 * mpw-make.in (ALL_CFLAGS): Define NEED_basename. 8140 * mpw.c: Only test DebugPI once whenever printing debug info. 8141 (mpwify_filename): If filename is /tmp/foo, change it into :_foo, 8142 also fix to not write on input filename buffer. 8143 (mpw_access): Use stat() instead of open(), works for directories 8144 as well as files. 8145 8146Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8147 8148 * Makefile.in: Massage broken shells that require 'else true'. 8149 8150Sat Jun 17 23:21:58 1995 Fred Fish <fnf@cygnus.com> 8151 8152 * alloca-norm.h: Declare alloca as type "PTR" to match functions.def. 8153 Declare __builtin_alloca in the sparc case, as argv.c did. 8154 * argv.c: Replace inline version of alloca-norm.h at start of file with 8155 a #include of alloca-conf.h. Precede it with an include of ansidecl.h 8156 because alloca-norm.h needs to declare alloca as "PTR". 8157 8158Mon Jun 12 14:24:26 1995 Steve Chamberlain <sac@slash.cygnus.com> 8159 8160 * win32.c: New file. 8161 8162Fri Jun 9 15:16:14 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8163 8164 * dummy.c: #include "alloca-conf.h". 8165 8166Wed Jun 7 11:46:23 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8167 8168 * Makefile.in (mostlyclean): Remove stamp-picdir. 8169 (clean): Don't. 8170 8171Mon Jun 5 18:46:06 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8172 8173 * config.table (frags): Use toplevel pic frags. 8174 8175 * Makefile.in (PICFLAG): New macro. 8176 (all): Depend on stamp-picdir. 8177 (needed-list): Ditto. 8178 (.c.o): Also build pic object. 8179 (stamp-picdir): New rule. 8180 (mostlyclean): Remove pic. 8181 (clean): Remove stamp-picdir. 8182 8183Fri Mar 24 16:55:48 1995 Pat Rankin (rankin@eql.caltech.edu) 8184 8185 * vmsbuild.com (config.h): Add `#define NEED_basename'. 8186 8187Tue May 23 10:12:46 1995 Per Bothner <bothner@kalessin.cygnus.com> 8188 8189 * clock.c, getopt.c, strtod.c, vsprintf.c: Change from using LGPL 8190 to libio-style copyright. 8191 * getpagesize.c: Remove FSF copyright. 8192 8193Sat May 20 12:30:23 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 8194 8195 Added improved VMS support from Pat Rankin: 8196 8197 Fri Mar 17 18:40:36 1995 Pat Rankin (rankin@eql.caltech.edu) 8198 8199 * vmsbuild.com: new file. 8200 8201 * getpagesize.c (getpagesize): implement for VMS; 8202 * strerror.c (strerror, strerrno, strtoerrno): add rudimentary 8203 support for EVMSERR. 8204 8205Thu May 18 17:01:42 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com> 8206 8207 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk) 8208 8209 * floatformat.c (floatformat_arm_ext): Define. 8210 8211Tue May 16 13:30:59 1995 Per Bothner <bothner@kalessin.cygnus.com> 8212 8213 * basename.c, bcmp.c, getcwd.c, insque.c, rename.c, sigsetmask.c, 8214 strerror.c, strsignal.c: Remove FSF copyright. 8215 * sigsetmask.c: #include <sys/types.h> - seems to be needed by ISC. 8216 8217Mon May 15 19:53:17 1995 Per Bothner <bothner@kalessin.cygnus.com> 8218 8219 * bcopy.c, bzero.c, memcmp.c, memcpy.c, memset.c, strchr.c, 8220 strrchr.c, strstr.c, vfork.c: Remove FSF Copyright, because this 8221 might contaminate libstdc++ with the LGPL. (OK'd by RMS 11 Oct 94.) 8222 * strchr.c, strrchr.c: Add cast to suppress const warning. 8223 8224Thu May 4 14:36:42 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8225 8226 * cplus-dem.c: Use const instead of CONST. Don't include 8227 ansidecl.h directly. 8228 8229Wed Apr 19 01:30:27 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8230 8231 * cplus-dem.c: Don't include libiberty.h. Do declare xmalloc and 8232 xrealloc. 8233 (-DMAIN): Don't rely on an externally-defined version number; 8234 instead, require the version number to be defined as a 8235 preprocessor macro. Handle the RS/6000 leading dot. Define 8236 xmalloc, xrealloc and fatal. Don't strip a leading underscore 8237 if we couldn't demangle the word. 8238 8239Tue Apr 4 13:03:51 1995 Stan Shebs <shebs@andros.cygnus.com> 8240 8241 (Old mpw.c change descriptions retained for informational value.) 8242 * mpw.c (warning_threshold): Default to .4 sec. 8243 (overflow_count, current_progress): New globals. 8244 (warn_if_spin_delay): Include current progress type, 8245 such as program name, in message. 8246 (mpw_start_progress): Set current_progress variable from arg. 8247 (mpw_end_progress): Report spin delays by power-of-two-size 8248 buckets instead of constant-size buckets. 8249 8250 * mpw.c: Clean up formatting, types, returns, etc. 8251 (ENOSYS): Define. 8252 (mpw_fread, mpw_fwrite): Define. 8253 (sleep): Define correctly. 8254 8255 * mpw.c: New code to implement cursor spinning support. 8256 (umask): New function. 8257 (mpw_fopen, mpw_fseek, stat, fstat): Call PROGRESS. 8258 8259 * mpw.c (mpw_basename, mpw_mixed_basename): New functions, find 8260 basenames for MPW and MPW/Unix filenames. 8261 (mpw_special_init): New function, calls Macsbug if desired. 8262 8263 * mpw.c: Add GPL notice. 8264 (mpwify_filename): Add more transformations. 8265 (mpw_fopen): Call mpwify_filename on file names. 8266 (rename): Remove. 8267 (chdir, getcwd): Add simple definitions. 8268 8269 * mpw.c: Random cleanups, remove unused code bits. 8270 Added copy of strerror.c for gcc's use. 8271 (stat, fstat, _stat): New versions based on Guido van Rossum code. 8272 8273 * mpw.c (mpw_fseek): Make it work correctly when doing SEEK_CUR. 8274 8275 * mpw.c (stat): Remove hack definition, get from sys/stat.h. 8276 (fork, vfork, etc): Print error messages if called. 8277 (getrusage, sbrk, environ, isatty, link, utime, mkdir, rmdir, 8278 rename, chown): Define. 8279 8280 * mpw-config.in: New file, MPW version of configure.in. 8281 * mpw-make.in: New file, MPW version of Makefile.in. 8282 * mpw.c: New file, MPW compatibility routines. 8283 8284Fri Mar 24 14:10:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com) 8285 8286 * basename.c: Include config.h before checking for NEED_basename. 8287 8288Thu Mar 23 19:09:54 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8289 8290 * functions.def: Add DEFFUNC for basename. 8291 8292 * basename.c: Only define basename if NEED_basename. 8293 8294Thu Mar 16 13:36:05 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8295 8296 * config.table: Fix --enable-shared logic for native builds. 8297 8298Mon Mar 13 11:05:11 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8299 8300 * cplus-dem.c (demangle_template): Demangle bool literals properly. 8301 8302Mon Mar 6 23:57:28 1995 Stu Grossman (grossman@cygnus.com) 8303 8304 * strtol.c strtoul.c: Replace these with less buggy versions from 8305 NetBSD. (strtoul in particular couldn't handle base 16.) 8306 8307Wed Mar 1 15:59:01 1995 Ian Lance Taylor <ian@cygnus.com> 8308 8309 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_PARAM_H. 8310 8311 * clock.c: If NO_SYS_PARAM_H is defined, don't include 8312 <sys/param.h>. 8313 * getcwd.c, getpagesize.c, getruntime.c: Likewise. 8314 8315Fri Feb 17 15:40:55 1995 Ian Lance Taylor <ian@cygnus.com> 8316 8317 * getruntime.c (get_run_time): Don't assume that CLOCKS_PER_SEC is 8318 a number; ANSI appears to permit any expression, including a 8319 function call. 8320 8321 * config.table (*-*-vxworks5*): Use mt-vxworks5 when configuring 8322 xiberty. 8323 * config/mt-vxworks5: New file. 8324 8325Thu Feb 9 14:19:45 1995 Ian Lance Taylor <ian@cygnus.com> 8326 8327 * basename.c (basename): Change argument to be const. 8328 8329Wed Feb 8 18:06:52 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8330 8331 * Makefile.in (lneeded-list): Don't worry about xmalloc. 8332 8333Sun Jan 15 00:40:36 1995 Jeff Law (law@snake.cs.utah.edu) 8334 8335 * Makefile.in (distclean): Delete xhost-mkfrag. 8336 8337Thu Jan 12 16:54:18 1995 Jason Merrill <jason@phydeaux.cygnus.com> 8338 8339 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o. 8340 8341Wed Jan 11 22:39:56 1995 Ken Raeburn <raeburn@cujo.cygnus.com> 8342 8343 * hex.c: New file. 8344 * Makefile.in (REQUIRED_OFILES, CFILES): List it. 8345 (hex.o): Add dependencies. 8346 8347 * cplus-dem.c (demangle_prefix): For GNU style constructor and 8348 destructor names, try demangling the remainder of the string. 8349 8350Wed Dec 28 00:49:15 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com> 8351 8352 * vasprintf.c (int_vasprintf): New static function. 8353 (vasprintf): Use int_vasprintf. Removes assumption that va_list 8354 is assignment compatible. 8355 8356Sat Nov 5 19:29:12 1994 Jason Merrill (jason@phydeaux.cygnus.com) 8357 8358 * Makefile.in (LIBCFLAGS): New variable. 8359 (FLAGS_TO_PASS): Pass it. 8360 (.c.o): Use it. 8361 8362Thu Nov 3 19:09:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com> 8363 8364 * getopt.c, getopt1.c: Do compile these functions under Linux, 8365 since many native versions are based on glibc but are buggy. 8366 8367Mon Oct 24 15:16:46 1994 Per Bothner <bothner@kalessin.cygnus.com> 8368 8369 * vasprintf.c: Make 'format' arg be const, to avoid a mismatch 8370 with prototype in GNU libc. Support stdarg.h as well as varargs.h. 8371 8372Tue Oct 11 17:48:27 1994 Jason Merrill (jason@phydeaux.cygnus.com) 8373 8374 * Makefile.in (REQUIRED_OFILES): Add vasprintf.o. 8375 * functions.def: Remove vasprintf. 8376 8377Wed Sep 14 17:04:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 8378 8379 * xmalloc.c (first_break): New static variable. 8380 (xmalloc_set_program_name): Record sbrk (0) in first_break. 8381 (xmalloc): If memory allocation fails, try to report how much 8382 memory was allocated by the program up to this point. 8383 (xrealloc): Likewise. 8384 8385Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org) 8386 8387 * Makefile.in (ERRORS_CC): New variable, defaulted to $(CC). Use it 8388 when linking dummy. 8389 * config.table: Add host RISCiX Makefile frag. 8390 * config/mh-riscix: New file. 8391 8392Thu Aug 25 17:29:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 8393 8394 * Makefile.in (FLAGS_TO_PASS): Define. 8395 ($(RULE1)): Use $(FLAGS_TO_PASS). 8396 8397Wed Aug 24 17:08:47 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 8398 8399 * vasprintf.c: Include <string.h>. 8400 (vasprintf): Add casts to void for va_arg to avoid gcc warnings. 8401 * xatexit.c: Declare malloc. 8402 8403Fri Aug 19 15:29:12 1994 Kung Hsu (kung@mexican.cygnus.com) 8404 8405 * cplus-dem.c (demangle_args): Fix a bug in previous patch (the 8406 one below). 8407 8408Thu Aug 18 14:37:14 1994 Kung Hsu (kung@mexican.cygnus.com) 8409 8410 * cplus-dem.c (demangle args): Handle ARM repeat encoding where 8411 the type index is greater than 9. 8412 8413Wed Aug 17 16:13:49 1994 Kung Hsu (kung@mexican.cygnus.com) 8414 8415 * cplus-dem.c (demangle_qualified): accept optional '_' between 8416 qualified name. This is baecause the template name may end with 8417 numeric and can mixed up with the length of next qualified name. 8418 8419Wed Aug 3 05:52:14 1994 D. V. Henkel-Wallace (gumby@cygnus.com) 8420 8421 * config/mt-sunos4: Use our standard location for cross-includes 8422 and cross-libs when the target is also a "host" environment (ie no 8423 newlib; includes and such don't belong to us). This is specific 8424 to the Cygnus Support environment. 8425 8426Tue Aug 2 15:25:12 1994 Kung Hsu (kung@mexican.cygnus.com) 8427 8428 * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not 8429 xxx<ch=81>. 8430 8431Mon Aug 1 17:02:48 1994 Kung Hsu (kung@mexican.cygnus.com) 8432 8433 * cplus-dem.c (main): flush stdout to make pipe work. 8434 8435Sat Jul 16 12:56:32 1994 Stan Shebs (shebs@andros.cygnus.com) 8436 8437 * config.table (*-*-cxux7*): Recognize. 8438 * floatformat.c (floatformat_m88110_ext) [HARRIS_FLOAT_FORMAT]: 8439 Harris-specific float format. 8440 * config/mh-cxux7: New file. 8441 8442Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8443 8444 * cplus-dem.c (demangle_template): Make sure that the result of 8445 consume_count doesn't index beyond the end of the string. 8446 8447Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8448 8449 * cplus-dem.c (gnu_special): Handle vtable mangling of gcc-2.4.5 and 8450 earlier. Improve test for new vtable mangling. Change output back 8451 to `virtual table'. 8452 8453Mon Jun 20 11:37:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) 8454 8455 * obstack.c: Always compile this code, even if using the GNU 8456 library. Avoids problems with relatively recent binary 8457 incompatibility. 8458 8459Thu Jun 16 17:54:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8460 8461 * cplus-dem.c: Include libiberty.h. 8462 (xmalloc, xrealloc, free): Don't declare. 8463 (strstr): Don't declare parameters. 8464 (xmalloc, xrealloc): Don't define. 8465 (long_options): Add no-strip-underscores. 8466 (main): Call xmalloc_set_program_name. Pass n in short options to 8467 getopt_long. Handle option 'n' to not strip underscores. 8468 (usage): Mention -n and --no-strip-underscores. 8469 8470Sun Jun 12 01:37:09 1994 Jason Merrill (jason@deneb.cygnus.com) 8471 8472 * cplus-dem.c (demangle_template): Separate consecutive >'s with a 8473 space. 8474 (gnu_special): Demangle template and qualified names in a vtable name. 8475 8476Fri May 27 12:27:52 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 8477 8478 From gas-2.3 and binutils-2.4 net releases: 8479 8480 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com) 8481 8482 * makefile.dos: [new] Makefile for dos/go32 8483 * configure.bat: update for latest files 8484 * msdos.c: remove some functions now in libc.a 8485 8486Fri May 20 18:53:32 1994 Per Bothner (bothner@kalessin.cygnus.com) 8487 8488 * cplus-dem.c (gnu_special): Recognize thunks, as well as 8489 the new naming style for vtables (when -fvtable-thunks). 8490 8491Wed May 18 13:34:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8492 8493 * Makefile.in (XTRAFLAGS): Don't define. 8494 (.c.o, dummy.o): Don't use XTRAFLAGS. 8495 ($(RULE1)): Don't pass XTRAFLAGS down in recursive call. 8496 8497Fri May 13 16:02:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com) 8498 8499 * vasprintf.c: New file. 8500 * Makefile.in, functions.def: Add it. 8501 8502Fri May 13 16:20:28 1994 Jason Merrill (jason@deneb.cygnus.com) 8503 8504 * cplus-dem.c (demangle_fund_type): Grok bool. 8505 8506Fri May 6 14:44:21 1994 Steve Chamberlain (sac@cygnus.com) 8507 8508 * config.table: Add go32 8509 * config/mh-go32: New template. 8510 8511Fri May 6 11:01:59 1994 D. V. Henkel-Wallace (gumby@rtl.cygnus.com) 8512 8513 * config.table, config/mt-sunos4: config for when sun4 is cross target. 8514 8515Mon Apr 11 00:54:33 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu) 8516 8517 * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]: 8518 Declare strlen to return int. Don't include stddef.h. 8519 8520Fri Apr 1 00:38:17 1994 Jim Wilson (wilson@mole.gnu.ai.mit.edu) 8521 8522 * getopt.c: Delete use of IN_GCC to control whether 8523 stddef.h or gstddef.h is included. 8524 8525Thu Apr 14 14:00:56 1994 Kung Hsu (kung@mexican.cygnus.com) 8526 8527 * cplus-dem.c (demangle_signature): Fix a bug in template function 8528 type numbering. 8529 8530Wed Apr 13 17:23:03 1994 Kung Hsu (kung@mexican.cygnus.com) 8531 8532 * cplus-dem.c (demangle_signature): Fix template function with arm 8533 style argument type number, Tn. 8534 8535Wed Apr 13 17:11:15 1994 Jason Merrill (jason@deneb.cygnus.com) 8536 8537 * cplus-dem.c (optable): Add new[] and delete[]. 8538 8539Fri Apr 8 11:21:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com) 8540 8541 * argv.c (buildargv): Don't produce empty argument just because 8542 there is trailing whitespace. 8543 8544Wed Apr 6 11:42:14 1994 Kung Hsu (kung@mexican.cygnus.com) 8545 8546 * cplus-dem.c (demangle_template): fix 'Q' qualified name bug. 8547 Handle 'p' same as 'P'. 8548 * cplus-dem.c (do_type): Handle 'p' same as 'P'. 8549 8550Sat Mar 26 12:00:13 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8551 8552 * floatformat.c (get_field, put_field): Fix off by one error in 8553 little endian case. 8554 8555Thu Mar 24 10:40:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com) 8556 8557 * floatformat.c (floatformat_from_double): Pass unsigned char *, 8558 not char *, to put_field. 8559 8560Fri Mar 18 12:34:33 1994 Per Bothner (bothner@kalessin.cygnus.com) 8561 8562 * memmove.c: Re-wrote; placed in public domain. 8563 8564Wed Mar 16 10:33:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com) 8565 8566 * cplus-dem.c (demangle_prefix): If ARM demangling, don't treat 8567 __Q* as a constructor. 8568 8569Mon Mar 14 12:26:02 1994 Ian Lance Taylor (ian@cygnus.com) 8570 8571 * ieee-float.c: Removed; no longer used. 8572 * Makefile.in: Changed accordingly. 8573 8574Mon Mar 7 12:28:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8575 8576 * floatformat.c (get_field): Removed unused local variable i. 8577 (put_field): Removed unused local variable i. 8578 8579Sun Feb 27 21:50:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com) 8580 8581 * floatformat.c: New file, intended to replace ieee-float.c. 8582 * Makefile.in: Change accordingly. 8583 8584Thu Feb 24 11:51:12 1994 David J. Mackenzie (djm@rtl.cygnus.com) 8585 8586 * getopt.c: Remove #ifdef GETOPT_COMPAT and #if 0 code. 8587 (_getopt_initialize): New function, broken out of _getopt_internal. 8588 (_getopt_internal): 8589 If long_only and the ARGV-element has the form "-f", where f is 8590 a valid short option, don't consider it an abbreviated form of 8591 a long option that starts with f. Otherwise there would be no 8592 way to give the -f short option. 8593 8594Thu Feb 10 14:44:16 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu) 8595 8596 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]: 8597 Test just __STDC__, not emacs. 8598 8599Wed Feb 9 00:14:00 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu) 8600 8601 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC] 8602 [emacs] [not __STDC__]: Don't include stddef.h. Don't declare strlen. 8603 8604Fri Dec 24 19:43:00 1993 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu) 8605 8606 * getopt.c (_NO_PROTO): Define before config.h is included. 8607 8608Mon Sep 20 15:59:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu) 8609 8610 * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include 8611 <config.h> only under these, else "config.h". 8612 8613Thu Aug 12 18:16:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu) 8614 8615 * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include 8616 <config.h> instead of "config.h". 8617 8618Sun Feb 20 17:17:01 1994 Ian Lance Taylor (ian@lisa.cygnus.com) 8619 8620 * concat.c: Check ANSI_PROTOTYPES rather than __STDC__ to decide 8621 whether to use prototypes or not. 8622 * strerror.c (const): Never undefine; let ansidecl.h handle it. 8623 * strsignal.c (const): Likewise. 8624 8625Thu Feb 17 13:27:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8626 8627 * xatexit.c (_xexit_cleanup): Declare as extern; don't initialize. 8628 Merging common and initialized variables need not be supported by 8629 ANSI C compilers. 8630 (xatexit): Initialize _xexit_cleanup if not already set. 8631 * xexit.c: Comment fix. 8632 8633Wed Feb 16 01:15:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8634 8635 * xmalloc.c: Don't declare xexit; it's declared in libiberty.h. 8636 (xrealloc): If oldmem is NULL, allocate with malloc, rather than 8637 assuming that realloc works correctly. 8638 8639Tue Feb 15 09:26:16 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8640 8641 * concat.c, ieee-float.c: Replace inclusion of <string.h> 8642 with explicit function declarations, as recommended by Ian Taylor. 8643 8644Sat Feb 12 10:31:11 1994 David J. Mackenzie (djm@rtl.cygnus.com) 8645 8646 * xmalloc.c (xmalloc, xrealloc): Use PTR and size_t throughout. 8647 (malloc, realloc): Declare. 8648 8649Thu Feb 10 17:08:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8650 8651 * argv.c, basename.c: Include ansidecl.h and libiberty.h. 8652 * concat.c, fdmatch.c, getruntime.c, spaces.c: Likewise. 8653 * strerror.c, strsignal.c, xatexit.c, xexit.c: Likewise. 8654 * xmalloc.c: Likewise. 8655 * concat.c: Don't declare xmalloc. If __STDC__, use <stdarg.h> 8656 macros, not <varargs.h> macros. 8657 * spaces.c (spaces): Make return type const. Don't crash if 8658 malloc returns NULL. 8659 * strerror.c (struct error_info): Make name and msg fields const. 8660 (error_names): Make const. 8661 (strerrno): Make const. 8662 (strtoerrno): Make argument const. 8663 * strsignal.c (struct signal_info): Make name and msg fields 8664 const. 8665 (signal_names, sys_siglist): Make const. 8666 (strsignal, strsigno): Make const. 8667 (strtosigno): Make argument const. 8668 * xatexit.c: Declare parameter types. 8669 * xmalloc.c (name): Make const. 8670 (xmalloc_set_program_name): Make argument const. 8671 * Makefile.in (INCDIR): Define. 8672 (.c.o): Use $(INCDIR). 8673 (dummy.o): Likewise. 8674 (argv.o, basename.o): New targets; depend on libiberty.h. 8675 (concat.o, fdmatch.o, getruntime.o, spaces.o): Likewise. 8676 (strerror.o, strsignal.o, xatexit.o, xexit.o): Likewise. 8677 (xmalloc.o): Likewise. 8678 (cplus-dem.o): New target; depend on demangle.h. 8679 (getopt.o, getopt1.o): New targets; depend on getopt.h. 8680 (ieee-float.o): New target; depend on ieee-float.h. 8681 (obstack.o): New target; depend on obstack.h. 8682 8683Tue Feb 8 05:29:08 1994 David J. Mackenzie (djm@thepub.cygnus.com) 8684 8685 Handle obstack_chunk_alloc returning NULL. This allows 8686 obstacks to be used by libraries, without forcing them 8687 to call exit or longjmp. 8688 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk): 8689 If CALL_CHUNKFUN returns NULL, set alloc_failed, else clear it. 8690 (_obstack_begin, _obstack_begin_1): Return 1 if successful, 0 if not. 8691 8692Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8693 8694 * concat.c, ieee-float.c: Include <string.h>. 8695 8696Sun Feb 6 21:28:46 1994 David J. Mackenzie (djm@thepub.cygnus.com) 8697 8698 * xmalloc.c (xmalloc_set_program_name): New function. 8699 (xmalloc, xrealloc): Include the name in the error message, if set. 8700 8701 * Replace atexit.c with xatexit.c. 8702 * Makefile.in (CFILES), functions.def: Change references. 8703 8704Sat Feb 5 14:02:32 1994 Stan Shebs (shebs@andros.cygnus.com) 8705 8706 * getruntime.c (get_run_time): Use getrusage or times if 8707 HAVE_GETRUSAGE or HAVE_TIMES are defined. 8708 8709Fri Feb 4 15:49:38 1994 David J. Mackenzie (djm@thepub.cygnus.com) 8710 8711 * atexit.c: New file. 8712 * Makefile.in (CFILES), functions.def: Add it. 8713 * xexit.c: New file. 8714 * Makefile.in (CFILES, REQUIRED_OFILES): Add it. 8715 * xmalloc.c (xmalloc, xrealloc): Call xexit instead of exit. 8716 Change request for 0 bytes into request for 1 byte. 8717 8718Wed Feb 2 11:36:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8719 8720 * xmalloc.c (xmalloc, xrealloc): Print size using %lu, and cast to 8721 unsigned long, to avoid warnings. 8722 8723Fri Jan 28 17:49:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com) 8724 8725 * dummy.c: Don't include time.h ever; always define clock_t as 8726 "unsigned long". Until gcc/fixincludes ensures that clock_t 8727 exists, __STDC__ isn't a sufficient test. And if clock() doesn't 8728 exist, clock_t probably doesn't either. 8729 8730Mon Jan 24 11:52:31 1994 Stan Shebs (shebs@andros.cygnus.com) 8731 8732 * clock.c, getruntime.c: New files. 8733 * Makefile.in: Add to file lists. 8734 * functions.def (clock): Add to list. 8735 * dummy.c (time.h): Add if __STDC__. 8736 (clock_t): #define as "unsigned long" if not __STDC__. 8737 8738Tue Jan 11 11:27:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8739 8740 * strtod.c: Declare atof. From edler@jan.ultra.nyu.edu (Jan 8741 Edler). 8742 8743Tue Dec 28 14:17:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8744 8745 * Makefile.in (errors): Use CFLAGS as well as LDFLAGS when 8746 linking. 8747 8748Fri Dec 17 12:26:07 1993 Kung Hsu (kung@cirdan.cygnus.com) 8749 8750 * cplus-dem.c (demangle_arm_pt): New function. Common code 8751 for ARM template demangling. 8752 * cplus-dem.c (demangle_class_name): Use demangle_arm_pt. 8753 * cplus-dem.c (demangle_prefix): Likewise. 8754 8755Tue Nov 30 15:47:48 1993 Jason Merrill (jason@deneb.cygnus.com) 8756 8757 * cplus-dem.c (cplus_demangle_opname): Add CONST to please gcc. 8758 8759Sat Nov 27 11:05:50 1993 Fred Fish (fnf@cygnus.com) 8760 8761 Merge changes from tom@basil.icce.rug.nl (Tom R.Hageman) 8762 * strerror.c, strsignal.c: As a small space optimization, don't 8763 include messages when they aren't actually used. 8764 8765 Merge changes from takefive.co.at!joe (Josef Leherbauer) 8766 * cplus-dem.c (demangle_prefix, demangle_function_name, 8767 cplus_demangle_opname): Fixes for systems where cplus_marker 8768 is something other than '$'. 8769 8770Fri Nov 26 13:51:11 1993 Per Bothner (bothner@kalessin.cygnus.com) 8771 8772 * waitpid.c: Simple-minded approcimation to waitpid 8773 using vanilla wait. 8774 * functions.def, Makefile.in: Update accordingly, 8775 8776Thu Nov 18 18:01:15 1993 Kung Hsu (kung@cirdan.cygnus.com) 8777 8778 * cplus-dem.c(demangle_template): fix bug template instantiation 8779 with value of user defined type. 8780 8781Wed Nov 17 18:30:21 1993 Kung Hsu (kung@cirdan.cygnus.com) 8782 8783 * cplus-dem.c(cplus_demangle_opname): add the subject new function 8784 to support unified search of operator in class. 8785 8786Wed Nov 10 09:47:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 8787 8788 gcc -Wall lint: 8789 * strtoul.c (strtoul): use "(digit = *s) != '\0'" not just 8790 "digit = *s" as condition in while loop. 8791 8792Tue Nov 9 15:52:22 1993 Mark Eichin (eichin@cygnus.com) 8793 8794 * Makefile.in: pass SHELL to recursive make 8795 8796Thu Nov 4 12:09:26 1993 Per Bothner (bothner@kalessin.cygnus.com) 8797 8798 * vfprintf.c, vprintf.c, vsprintf.c: Make format arg 8799 be (const char*), for ANSI (and gcc w/fixproto) consistency. 8800 8801Thu Nov 4 08:29:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 8802 8803 * config.table: Make *-*-hiux* use mh-hpux. 8804 8805Fri Oct 22 07:53:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 8806 8807 * config.table: Add * to end of all OS names. 8808 8809Tue Oct 19 17:12:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 8810 8811 * Makefile.in (lneeded-list): ensure that object file names are 8812 not duplicated, as multiple instances of the same object file in 8813 a library causes problems on some machines 8814 8815Mon Oct 18 21:59:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 8816 8817 * strcasecmp.c, strncasecmp.c: Change u_char to unsigned char. 8818 8819Fri Oct 15 22:17:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 8820 8821 * strncasecmp.c: new file, implements strncasecmp 8822 * strcasecmp.c: new file, implement strcasecmp 8823 8824 * Makefile.in (CFILES): list these two new source files 8825 8826 * functions.def: add strcasecmp and strncasecmp entries 8827 8828Fri Oct 15 14:53:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8829 8830 * strtoul.c (strtoul), strtol.c (strtol): Handle overflow 8831 according to ANSI C. 8832 8833Thu Oct 14 16:34:19 1993 Kung Hsu (kung@cirdan.cygnus.com) 8834 8835 * cplus-dem.c: add support of ARM global constructor/destructor, 8836 and 'G' for passing record or union in parameter. 8837 8838Wed Oct 13 13:36:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 8839 8840 * Makefile.in: Fix comment to clarify that stuff in REQUIRED_OFILES 8841 should not be in functions.def. 8842 8843Wed Oct 13 13:13:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 8844 8845 * functions.def: Removed xmalloc. Stuff in REQUIRED_OFILES should 8846 not be in functions.def. 8847 8848Mon Oct 4 18:26:39 1993 Kung Hsu (kung@cirdan.cygnus.com) 8849 8850 * cplus-dem.c: change globl constructor/destructor to proper name 8851 8852Tue Sep 28 18:11:07 1993 Kung Hsu (kung@cirdan.cygnus.com) 8853 8854 * cplus-dem.c: fix bug in constructor/destructor 8855 8856Tue Sep 28 16:20:49 1993 Kung Hsu (kung@cirdan.cygnus.com) 8857 8858 * cplus-dem.c: support both old and new _vt$... vtbl mangled names 8859 8860Fri Sep 24 19:07:16 1993 Jason Merrill (jason@deneb.cygnus.com) 8861 8862 * cplus-dem.c: Fix demangle_template prototype 8863 8864Fri Sep 24 17:32:55 1993 Kung Hsu (kung@cirdan.cygnus.com) 8865 8866 * cplus-dem.c: fix template demangling 8867 * cplus-dem.c: fix const type demangling 8868 * cplus-dem.c: fix constructor/destructor, virtual table, 8869 qualifier, global constructor/destructor demangling 8870 8871Wed Sep 1 23:13:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 8872 8873 * strsignal.c, strerror.c: Use fully-bracketed initializer to 8874 keep gcc -Wall happy. 8875 8876Fri Aug 27 10:30:09 1993 Jason Merrill (jason@deneb.cygnus.com) 8877 8878 * cplus-dem.c (do_type): Add CONSTS to make gcc happy with last 8879 patch. 8880 8881Fri Aug 27 11:24:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 8882 8883 Patch from Paul Flinders: 8884 * cplus-dem.c (do_type): Deal with arrays. 8885 8886Tue Aug 24 14:23:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 8887 8888 * cplus-dem.c (demangle_qualified: Deal with GNU format for more 8889 than 9 classes. 8890 8891Wed Aug 18 19:50:29 1993 Jason Merrill (jason@deneb.cygnus.com) 8892 8893 * Makefile.in (dummy.o): Redirect to /dev/null to avoid "variable 8894 not initialized" warnings under HP/UX 8895 8896Sun Aug 15 20:42:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 8897 8898 * strerror.c: Move include of stdio.h after sys_errlist #define. 8899 Also remove NULL definition (stdio.h always defines NULL, so it 8900 never did anything but clutter up the code). 8901 8902Sat Aug 14 14:21:49 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 8903 8904 * Makefile.in, functions.def: handle xmalloc.c 8905 8906 * xmalloc.c: provide xmalloc and xrealloc functions 8907 8908Thu Aug 12 17:38:57 1993 David J. Mackenzie (djm@thepub.cygnus.com) 8909 8910 * cplus-dem.c: Fix a comment. 8911 8912Sat Aug 7 13:56:35 1993 David J. Mackenzie (djm@thepub.cygnus.com) 8913 8914 * getopt1.c: Declare const the way getopt.c does. 8915 8916Fri Aug 6 17:03:13 1993 David J. Mackenzie (djm@thepub.cygnus.com) 8917 8918 * obstack.c, alloca.c: Update from FSF. 8919 * getopt.c, getopt1.c: Update to current FSF version, which 8920 doesn't use alloca. 8921 8922Tue Jul 27 14:03:57 1993 Brendan Kehoe (brendan@lisa.cygnus.com) 8923 8924 * Makefile.in (demangle): Add the target with a message saying 8925 where demangle went. 8926 8927Mon Jul 26 15:49:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 8928 8929 * Makefile.in: Remove obsolete `demangle' target. 8930 8931Thu Jul 22 08:31:01 1993 Fred Fish (fnf@deneb.cygnus.com) 8932 8933 * cplus-dem.c (arm_special): Apply patch from arg@lucid.com to 8934 avoid infinite loop on vtbl symbols with disambiguating "junk" 8935 tacked on the end. 8936 8937Mon Jul 19 14:10:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com) 8938 8939 * strsignal.c: work around some systems losing definitions of 8940 sys_siglist 8941 8942 * config/mh-lynxos: this system has a losing definition of 8943 sys_siglist 8944 8945 * config.table: use mh-lynxos for *-*-lynxos 8946 8947Mon Jul 19 17:08:52 1993 Ken Raeburn (raeburn@rtl.cygnus.com) 8948 8949 * config.table: Add support for HPPA BSD hosts. 8950 8951 * config/mh-hpbsd: New file. 8952 8953Mon Jul 12 18:00:40 1993 K. Richard Pixley (rich@cygnus.com) 8954 8955 * Makefile.in (TAGS): make work when srcdir != objdir. 8956 8957Sun Jun 27 15:35:31 1993 David J. Mackenzie (djm@thepub.cygnus.com) 8958 8959 * cplus-dem.c (main): Add long options, including --help and 8960 --version. 8961 (usage): New function from code in main. 8962 8963Tue Jun 22 11:37:38 1993 Per Bothner (bothner@deneb.cygnus.com) 8964 8965 * config.table: New shell scipt, sourced by both ./configure,in 8966 and ../xiberty/configure.in, to avoid maintainance lossages. 8967 * configure.in and ../xiberty/configure.in: Use config.table. 8968 8969 * configure.in: Don't use mh-aix for AIX 3.2, only for 3.1. 8970 * configure.in: Map *-*-irix* (except irix4) to mh-sysv. 8971 * ../xiberty/configure.in: Update from ./configure.in. 8972 8973Tue Jun 15 17:05:31 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 8974 8975 * Makefile.in: remove parentdir support 8976 8977Wed May 26 12:59:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8978 8979 * cplus-dem.c (xrealloc): Match definition with prototype. 8980 8981Tue May 25 14:27:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 8982 8983 * cplus-dem.c (demangle_prefix): Demangle cfront 8984 local variables as an extension to ARM demangling. 8985 8986Fri May 21 09:53:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com) 8987 8988 * ieee-float.c: Don't require pointers to double to be aligned. 8989 8990Tue May 18 17:12:10 1993 Fred Fish (fnf@cygnus.com) 8991 8992 (merge changes from dlong@cse.ucsc.edu) 8993 * cplus-dem.c (consume_count): Simplify. 8994 * cplus-dem.c (arm_pt, demangle_class_name): New functions. 8995 * cplus-dem.c (various): Calls to arm_pt, demangle_class_name. 8996 8997 * cplus-dem.c (xmalloc, xrealloc, strstr): Make extern decls into 8998 full prototypes. 8999 * cplus-dem.c (free): Add prototype. 9000 * cplus-dem.c (optable): Fully bracketize initializer. 9001 9002Fri May 14 17:13:05 1993 Per Bothner (bothner@cygnus.com) 9003 9004 * cplus-dem.c: Whether initial underscores are stripped 9005 depends on the external variable prepends_underscore 9006 (which is generated by the binutils Makefile). 9007 9008Fri May 14 07:32:20 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 9009 9010 * cplus-dem.c (mop_up, arm_special): Remove some unused variables. 9011 9012Tue May 4 20:31:59 1993 Fred Fish (fnf@cygnus.com) 9013 9014 * cplus-dem.c (consume_count): Return zero if arg does not 9015 start with digit, and don't consume any input. 9016 9017Tue May 4 08:10:28 1993 Jim Kingdon (kingdon@cygnus.com) 9018 9019 * Makefile.in (demangle): Use ${srcdir} not $^. 9020 9021 * strtod.c: New file, needed at least for BSD 4.3. 9022 9023Sun May 2 11:30:42 1993 Fred Fish (fnf@cygnus.com) 9024 9025 * strsignal.c (sys_siglist): For ANSI compilations, type is 9026 "const char *const". Also remove conditionalization on __STDC__ 9027 since const is defined away for non-ANSI. 9028 9029Wed Apr 28 19:29:55 1993 Ken Raeburn (raeburn@deneb.cygnus.com) 9030 9031 * configure.in: Recognize *-*-hpux. 9032 * config/mh-hpux: New file. 9033 9034Tue Apr 27 15:22:19 1993 Per Bothner (bothner@cygnus.com) 9035 9036 * tmpnam.c: Added ANSI tmpnam() function. 9037 * functions.def, Makefile.in: Update accordingly. 9038 9039Tue Apr 27 13:38:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 9040 9041 * cplus-dem.c (demangle_function_name): Get the demangling of 9042 stop__1A right. 9043 9044Fri Apr 16 23:48:24 1993 Jim Kingdon (kingdon at calvin) 9045 9046 * cplus-dem.c: Declare strstr return type. 9047 9048Fri Mar 26 12:01:26 1993 Jim Kingdon (kingdon@cygnus.com) 9049 9050 * strsignal.c: Add some AIX signals. 9051 9052Thu Mar 25 15:17:23 1993 Ian Lance Taylor (ian@cygnus.com) 9053 9054 * Makefile.in (MAKEOVERRIDES): Define to be empty. 9055 9056Wed Mar 24 01:59:25 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com) 9057 9058 * Makefile.in: add installcheck & dvi targets 9059 9060Thu Mar 18 14:05:44 1993 Per Bothner (bothner@rtl.cygnus.com) 9061 9062 * ieee-float.c: New file, moved from ../gdb (since it is 9063 needed by ../opcode/m68k-dis.c). 9064 9065Tue Mar 2 17:47:31 1993 Fred Fish (fnf@cygnus.com) 9066 9067 * cplus-dem.c: Replace all references to cfront with ARM. 9068 9069Fri Feb 26 00:17:07 1993 Per Bothner (bothner@rtl.cygnus.com) 9070 9071 * cplus-dem.c: Fix main program (when compiled with -DMAIN) 9072 to be more useful as a filter. 9073 9074Sat Feb 20 21:41:39 1993 Brendan Kehoe (brendan@lisa.cygnus.com) 9075 9076 * Makefile.in (install_to_libdir, install_to_tooldir): Go into the 9077 destination directory before running $(RANLIB), in case that 9078 program tries to create a file in the current directory as part of 9079 its work. 9080 9081Thu Feb 18 23:00:19 1993 John Gilmore (gnu@cygnus.com) 9082 9083 * strsignal.c (sys_siglist): Remove yet another *%^&%&$# "const" 9084 because BSD 4.4 lacks one. Isn't this fun? 9085 9086Thu Feb 18 11:24:25 1993 Fred Fish (fnf@cygnus.com) 9087 9088 * cplus-dem.c (demangle_signature): Set func_done after 9089 demangling a template. 9090 * cplus-dem.c (demangle_template): Fix several small bugs 9091 in demangling GNU style templates. 9092 * cplus-dem.c (demangle_prefix): Fix for templates in GNU 9093 style constructors. 9094 * cplus-dem.c (gnu_special): Fix for templates in GNU style 9095 static data members. 9096 9097Tue Feb 16 17:28:35 1993 Fred Fish (fnf@cygnus.com) 9098 9099 * cplus-dem.c (demangle_signature): Modify to include type 9100 modifiers like static and const in remembered types. 9101 9102Thu Feb 11 22:20:47 1993 Fred Fish (fnf@cygnus.com) 9103 9104 * cplus-dem.c (demangled_qualified): Add new parameter that tells 9105 whether to prepend or append the qualifiers. 9106 * cplus-dem.c (string_prepends): Used now, remove #if 0. 9107 * cplus-dem.c (demangle_signature): Call demangle_qualified 9108 with prepending. 9109 * cplus-dem.c (gnu_special): Recognize static data members that 9110 use qualified names. 9111 * cplus-dem.c (demangle_qualified): Accumulate qualifiers in a 9112 temporary buffer and the prepend or append them to the result, 9113 as specified by the new "append" flag. 9114 * cplus-dem.c (do_type): Call demangled_qualified with 9115 appending. 9116 9117Mon Dec 28 10:47:19 1992 Ken Raeburn (raeburn@cygnus.com) 9118 9119 * strsignal.c (signal_table): Now const. 9120 (init_signal_tables): Variable eip now points to const. 9121 9122 * strerror.c (error_table): Now const. 9123 (init_error_tables): Variable eip now points to const. 9124 9125Tue Dec 15 15:36:50 1992 Per Bothner (bothner@cygnus.com) 9126 9127 * memchr.c (memchr): New (ANSI standard) function. 9128 * Makefile.in, functions.def: Added memchr. 9129 * Makefile.in (AR_FLAGS): Use rc instad of non-standard cq. 9130 9131Wed Dec 2 22:49:10 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 9132 9133 * getopt.c: remove use of USG around <alloca.h>, which never meant 9134 anything anyway 9135 9136 * config/mh-{aix,apollo68,ncr3000,sysv,sysv4}: removed definitions 9137 of USG and USGr4 9138 9139Thu Nov 19 03:09:33 1992 Brendan Kehoe (brendan@lisa.cygnus.com) 9140 9141 * cplus-dem.c (demangle_fund_type): Recognize `w', a wide character; 9142 it's now a type according to the ANSI X3J16 working paper; output 9143 "wchar_t" for it. 9144 (demangle_template): Accept `w' as an integral type. 9145 (xmalloc, xrealloc): Use `char *', not `PTR'. Cast calls to their 9146 counterparts malloc and realloc to `char *'. 9147 (main): Exit with a 0 status. 9148 * Makefile.in (demangle): Don't expect the user to define 9149 DEMANGLE, instead force to be cplus-dem.c. Look in $(srcdir)/../include 9150 for demangle.h. Pass it any HDEFINES or XTRAFLAGS. 9151 9152Wed Nov 18 18:56:20 1992 John Gilmore (gnu@cygnus.com) 9153 9154 * Makefile.in (AR_FLAGS): Avoid verbosity. 9155 * config/mh-sysv4: Remove AR_FLAGS override, use INSTALL=cp, 9156 replace USGr4 with HAVE_SYSCONF. 9157 * config/mh-solaris: Remove; mh-sysv4 works now. 9158 * getpagesize.c: Replace USGr4 with HAVE_SYSCONF. 9159 * configure.in: Simplify host matching table, remove separate 9160 solaris config file. 9161 9162Sun Nov 15 09:35:16 1992 Fred Fish (fnf@cygnus.com) 9163 9164 * configure.in (i[34]86-*-solaris2*): Add, use mh-sysv4. 9165 9166Tue Nov 3 21:27:03 1992 Brendan Kehoe (brendan@cygnus.com) 9167 9168 * cplus-dem.c (xmalloc, xrealloc): Add decls. 9169 (remember_type): Don't cast xmalloc. 9170 (string_need): Likewise; don't cast xrealloc either. 9171 9172Fri Oct 23 08:52:01 1992 Ian Lance Taylor (ian@cygnus.com) 9173 9174 * Makefile.in, functions.defs, rename.c: added simple 9175 implementation of rename, since some binutils programs use it. 9176 9177Thu Oct 15 15:18:22 1992 Per Bothner (bothner@cygnus.com) 9178 9179 * strsignal.c: Add appropriate 'const' to sys_siglist 9180 extern declaration (if __STDC__). (Needed for Linux.) 9181 * strsignal.c (strsignal): Add cast to remove const-ness. 9182 9183Fri Oct 9 03:22:55 1992 John Gilmore (gnu@cygnus.com) 9184 9185 * Makefile.in (needed.awk, needed2.awk): Remove erroneous \'s 9186 before "'s, diagnosed by BSD 4.4 awk. 9187 9188Thu Oct 8 15:25:12 1992 Ian Lance Taylor (ian@cygnus.com) 9189 9190 * Makefile.in: create config.h and needed-list through $(CONFIG_H) 9191 and $(NEEDED_LIST), to give some hooks for xiberty. 9192 9193Thu Oct 1 23:31:42 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 9194 9195 * configure.in: use cpu-vendor-triple instead of nested cases 9196 9197Wed Sep 30 11:26:59 1992 Per Bothner (bothner@rtl.cygnus.com) 9198 9199 * Makefile.in, argv.c, basename.c, bcmp.c, bcopy.c, bzero.c, 9200 concat.c, cplus-dem.c, fdmatch.c, getcwd.c, getopt.c, getopt1.c, 9201 getpagesize.c, insque.c, memcmp.c, memcpy.c, memmove.c, memset.c, 9202 obstack.c, sigsetmask.c, spaces.c, strchr.c, strerror.c, 9203 strrchr.c, strsignal.c, strstr.c, vfork.c, vsprintf.c: 9204 Convert from using GPL to LGPL. 9205 9206Sat Sep 26 04:01:30 1992 John Gilmore (gnu@cygnus.com) 9207 9208 * Makefile.in (errors): Leave dummy.o and dummy around so that 9209 we can see how the needed list was generated (it's sometimes wrong). 9210 (mostlyclean): Remove them. 9211 9212Mon Sep 21 14:50:42 1992 Ian Lance Taylor (ian@cygnus.com) 9213 9214 * getcwd.c: supply a default if MAXPATHLEN is not defined. 9215 9216 * config/mh-irix4: set EXTRA_OFILES to alloca.o, from WRS. 9217 9218Wed Sep 9 12:41:48 1992 Ian Lance Taylor (ian@cygnus.com) 9219 9220 * Makefile.in: Use XTRAFLAGS when compiling, so that xiberty works 9221 when cross-compiling. 9222 9223Thu Sep 3 13:29:39 1992 K. Richard Pixley (rich@sendai.cygnus.com) 9224 9225 * cplus-dem.c: (demangle_prefix): reduction in strength of strstr 9226 as a time optimization. 9227 9228 * cplus-dem.c (cplus_demangle): remove strpbrk test. Appears to 9229 be more expensive than simply demangling. 9230 9231 * cplus-dem.c (cplus_match): new function. 9232 9233Tue Sep 1 15:24:04 1992 Per Bothner (bothner@rtl.cygnus.com) 9234 9235 * cplus-dem.c: #include <stdio.h>, to define NULL. 9236 Define current_demangling_style. 9237 9238Sun Aug 30 17:58:19 1992 Per Bothner (bothner@rtl.cygnus.com) 9239 9240 * cplus-dem.c: New file, moved from ../gdb. 9241 * cplus-dem.c (set_cplus_marker_for_demangling): New exported 9242 function, to avoid compiling in target-dependency for CPLUS_MARKER. 9243 * cplus-dem.c (cplus_demangle): Allow demangling style option 9244 to be passed as a parameter, but using the global variable 9245 current_demangling_style as a default. 9246 * Makefile.in: Update for cplus-dem.c 9247 9248Sat Aug 29 10:44:09 1992 Fred Fish (fnf@cygnus.com) 9249 9250 * obstack.c: Merge in comment changes from FSF version. Now 9251 matches the FSF version exactly. 9252 9253Fri Aug 28 18:39:08 1992 John Gilmore (gnu@cygnus.com) 9254 9255 * obstack.c (CALL_FREEFUN): Can't use ?: with void values (at 9256 least on losing DECstations!); use if-then-else instead. 9257 9258Wed Aug 19 14:40:34 1992 Ian Lance Taylor (ian@cygnus.com) 9259 9260 * Makefile.in: always create installation directories. 9261 9262Mon Aug 10 17:33:40 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) 9263 9264 * Makefile.in: clean up definition of CFILES, more comments 9265 9266Sat Aug 8 23:10:59 1992 Fred Fish (fnf@cygnus.com) 9267 9268 * getopt.c (my_index): Make first arg const to match strchr, 9269 which it sometimes is remapped to. 9270 9271Sat Aug 1 13:48:50 1992 Fred Fish (fnf@cygnus.com) 9272 9273 * obstack.c (DEFAULT_ALIGNMENT): Update to match FSF version. 9274 * obstack.c (_obstack_begin): Initialize use_extra_arg. 9275 * obstack.c (_obstack_begin_1): New, from FSF version. 9276 9277Mon Jul 20 21:07:58 1992 Fred Fish (fnf@cygnus.com) 9278 9279 * obstack.c (CALL_CHECKFUN, CALL_FREEFUN): Use use_extra_arg and 9280 extra_arg. 9281 * obstack.c (_obstack_begin): Remove area_id and flags arguments 9282 (previously added for mmalloc support, interface has changed). 9283 Also convert flags usage to use use_extra_arg and maybe_empty_object. 9284 9285Fri Jul 10 00:41:53 1992 Fred Fish (fnf@cygnus.com) 9286 9287 * argv.c: Move expandargv inline and eliminate static variables. 9288 Rewrite to always allocate in powers of two. Fix to return an 9289 argv with a single null string arg if passed a null string. 9290 9291Fri Jul 3 20:27:29 1992 Fred Fish (fnf@cygnus.com) 9292 9293 * random.c, sigsetmask.c, strerror.c, strsignal.c: Remove 9294 "(void)" casts from function calls where the return value is 9295 ignored, in accordance with GNU coding standards. 9296 9297Mon Jun 29 10:54:19 1992 Fred Fish (fnf at cygnus.com) 9298 9299 * bcopy.c, strerror.c, strsignal.c: Lint. 9300 9301Thu Jun 25 09:18:41 1992 K. Richard Pixley (rich@rtl.cygnus.com) 9302 9303 * getopt.c: merge changes from make. 9304 9305Thu Jun 25 04:43:22 1992 John Gilmore (gnu at cygnus.com) 9306 9307 * alloca.c: Incorporate fixes from gdb/alloca.c. 9308 FIXME: Eventually move gdb's alloca configuration files here, 9309 and remove gdb/alloca.c and its Makefile.in support. 9310 9311Tue Jun 23 21:56:30 1992 Fred Fish (fnf@cygnus.com) 9312 9313 * dummy.c: Define NOTHING to /*nothing*/, change return type 9314 of main to int and return zero. 9315 * functions.def: Supply NOTHING as the fourth arg to macros 9316 that don't have an explicit arg, to satisfy picky preprocessors. 9317 9318Wed Jun 17 18:13:58 1992 Per Bothner (bothner@rtl.cygnus.com) 9319 9320 * Makefile.in: Clean up *clean rules, as per standards.texi. 9321 9322Tue Jun 16 16:11:59 1992 K. Richard Pixley (rich@rtl.cygnus.com) 9323 9324 * getopt.c, getopt1.c: merged largely gratuitous, mostly 9325 whitespace diffs from other prep distributions. 9326 9327Mon Jun 15 12:25:46 1992 Fred Fish (fnf@cygnus.com) 9328 9329 * config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install, 9330 it is broken on ncr 3000's. 9331 9332Mon Jun 15 01:03:26 1992 John Gilmore (gnu at cygnus.com) 9333 9334 * sigsetmask.c: Rewrite. Old one was very confused about its 9335 arguments and result. New one can't do much, but at least knows 9336 what it can't do, and it's good enough for GDB's use. 9337 9338Sun Jun 14 15:17:40 1992 Stu Grossman (grossman at cygnus.com) 9339 9340 * functions.def: Use proper prototype for strtoul. 9341 9342Fri Jun 12 19:22:40 1992 John Gilmore (gnu at cygnus.com) 9343 9344 * Makefile.in: Add random.c. 9345 * config/mh-*: Use "true" rather than "echo >/dev/null" for ranlib. 9346 * configure.in: update solaris2 config. 9347 9348Wed Jun 10 16:31:29 1992 Fred Fish (fnf@cygnus.com) 9349 9350 * random.c: Add for random() and srandom(). 9351 * functions.def: Add random 9352 9353Tue Jun 9 17:27:18 1992 Fred Fish (fnf@cygnus.com) 9354 9355 * config/{mh-ncr3000, mh-sysv4}: Add definition for INSTALL 9356 using /usr/ucb/install. 9357 9358Mon Jun 1 13:20:17 1992 Per Bothner (bothner@rtl.cygnus.com) 9359 9360 * strerror.c: Kludge to guard against a conflict with 9361 possible declaration of sys_errlist in errno.h. 9362 9363Sun May 31 15:07:47 1992 Mark Eichin (eichin at cygnus.com) 9364 9365 * configure.in, config/mh-solaris: add solaris2 config support. 9366 9367Fri May 29 17:23:23 1992 Per Bothner (bothner@rtl.cygnus.com) 9368 9369 * sigsetmask.c: #ifdef out sigsetmask if SIG_SETMASK 9370 is not defined (should be defined in signal.h, says Posix.). 9371 9372Mon May 18 17:35:04 1992 K. Richard Pixley (rich@cygnus.com) 9373 9374 * getopt.c: merged changes from make-3.62.11. 9375 9376Fri May 8 14:53:07 1992 K. Richard Pixley (rich@cygnus.com) 9377 9378 * getopt.c: merged changes from bison-1.18. 9379 9380Tue May 5 11:51:40 1992 Per Bothner (bothner@rtl.cygnus.com) 9381 9382 * Makefile.in: Don't have $(EXTRA_OFILES) depend on config.h, 9383 since that introduces a circular dependency. 9384 ($(EXTRA_OFILES) are used to build config.h.) 9385 9386 * strtoul.c: Fixes to handle non-decimal bases better. 9387 9388Wed Apr 22 09:27:51 1992 Fred Fish (fnf@cygnus.com) 9389 9390 * config/mh-ncr3000: Replace MINUS_G with CFLAGS. 9391 * Makefile.dos: Finish MINUS_G eradication. 9392 * Makefile.in (CFILES): Add strsignal.c. 9393 * Makefile.in (REQUIRED_OFILES): Add strerror.o strsignal.o 9394 * Makefile.in (needed-list): Split creation of errors file to 9395 separate make target. 9396 * Makefile.in (config.h, needed2.awk, errors): New targets. 9397 * Makefile.in (clean): Split to multiple lines, add needed2.awk 9398 and config.h. 9399 * dummy.c (DEFFUNC, DEFVAR): Add defines and undefs. 9400 * functions.def (strerror): Remove from optional list. 9401 * functions.def (sys_nerr, sys_errlist, sys_siglist): DEFVAR's 9402 * functions.def (strerror, psignal): DEFFUNC's 9403 * strerror.c: Rewrite from scratch to use sys_errlist only if 9404 available, add errno_max(), add strerrno(), add strtoerrno(), 9405 add test driver. 9406 * strsignal.c: New file, signal equivalent to strerror.c. 9407 Uses sys_siglist if available, defines signo_max(), strsignal(), 9408 strsigno(), strtosigno(), psignal(), and test driver. 9409 9410Mon Apr 20 20:49:32 1992 K. Richard Pixley (rich@cygnus.com) 9411 9412 * Makefile.in: do not print recursion line. 9413 9414 * Makefile.in: allow CFLAGS to be passed in from command line. 9415 Removed MINUS_G. Default CFLAGS to -g. 9416 9417Mon Apr 20 12:57:46 1992 Per Bothner (bothner@rtl.cygnus.com) 9418 9419 * config/mh-aix: New. EXTRA_OFILES lists copysign.o, 9420 so libg++ users don't have to be inconvenienced by a 9421 libc.a bug (libc.a needs copysign, but doesn't define it!). 9422 * configure.in: Use config/mh-aix. 9423 * strtoul.c: Handle '-' as required by ANSI. 9424 Clean up radix handling. 9425 * strstr.c: Fix buggy algorithm. 9426 * Makefile.in: Change so that ${EXTRA_OFILES} is 9427 appended to needed-list (which is used by libg++). 9428 9429Fri Apr 10 22:51:41 1992 Fred Fish (fnf@cygnus.com) 9430 9431 * configure.in: Recognize new ncr3000 config. 9432 * config/mh-ncr3000: New config file. 9433 9434Wed Apr 1 23:31:43 1992 John Gilmore (gnu at cygnus.com) 9435 9436 * argv.c, dummy.c: Lint. 9437 9438Tue Mar 31 18:46:44 1992 Fred Fish (fnf@cygnus.com) 9439 9440 * config/mh-sysv4: New config file. 9441 * configure.in (host_makefile_frag): Set to config/mh-sysv4 for 9442 host_os == sysv4. 9443 * getpagesize.c: For SVR4, use sysconf(_SC_PAGESIZE) to get 9444 pagesize. 9445 9446Sun Mar 29 12:26:42 1992 John Gilmore (gnu at cygnus.com) 9447 9448 * getopt.c: Lint. 9449 9450Fri Mar 27 08:32:55 1992 Fred Fish (fnf@cygnus.com) 9451 9452 * functions.def (alloca): Fix return type and args to avoid 9453 type clash with gcc's builtin alloca. 9454 9455Tue Mar 24 23:33:42 1992 K. Richard Pixley (rich@cygnus.com) 9456 9457 * configure.in, config/mh-irix4: irix4 support. 9458 9459 * Makefile.in, functions.def, alloca.c: added alloca. 9460 9461Tue Mar 24 17:34:46 1992 Stu Grossman (grossman at cygnus.com) 9462 9463 * obstack.c (CALL_FREEFUN): Make it compile on DECstations. 9464 9465Thu Mar 19 13:57:42 1992 Fred Fish (fnf@cygnus.com) 9466 9467 * argv.c: Fix various external function definitions to be 9468 correct in an ANSI compilation environment. 9469 9470Sat Mar 14 17:28:17 1992 Fred Fish (fnf@cygnus.com) 9471 9472 * obstack.c: Changes to support calling mmalloc functions, 9473 which take an additional argument over malloc functions. 9474 9475Fri Mar 6 22:01:10 1992 K. Richard Pixley (rich@cygnus.com) 9476 9477 * added check target. 9478 9479Thu Feb 27 22:19:39 1992 Per Bothner (bothner@cygnus.com) 9480 9481 * argv.c: #include alloca-conf.h (needed by AIX). 9482 9483Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com) 9484 9485 * Makefile.in, configure.in: removed traces of namesubdir, 9486 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced 9487 copyrights to '92, changed some from Cygnus to FSF. 9488 9489Sat Feb 22 01:09:21 1992 Stu Grossman (grossman at cygnus.com) 9490 9491 * argv.c: Check in Fred's version which fixes problems with 9492 alloca(). 9493 9494Fri Feb 7 21:46:08 1992 Stu Grossman (grossman at cygnus.com) 9495 9496 * makefile.dos: Remove NUL to keep patch from failing. 9497 9498Thu Jan 30 22:48:41 1992 Stu Grossman (grossman at cygnus.com) 9499 9500 * getopt.c (_getopt_internal): Fix usage of enum has_arg. 9501 9502Mon Jan 20 18:53:23 1992 Stu Grossman (grossman at cygnus.com) 9503 9504 * getopt.c, getopt1.c, ../include/getopt.h: Get latest versions. 9505 9506Sat Jan 18 16:53:01 1992 Fred Fish (fnf at cygnus.com) 9507 9508 * argv.c: New file to build and destroy standard argument 9509 vectors from a command string. 9510 9511 * Makefile.in: Add argv.c and argv.o to appropriate macros. 9512 9513Fri Dec 20 12:12:57 1991 Fred Fish (fnf at cygnus.com) 9514 9515 * configure.in: Change svr4 references to sysv4. 9516 9517 * rindex.c: Declare return type of externally used function 9518 strrchr(). 9519 9520Thu Dec 19 18:35:03 1991 John Gilmore (gnu at cygnus.com) 9521 9522 * Makefile.in: Remove "***" in normal output, since Make produces 9523 this on errors, and it's convenient to search for. 9524 9525Tue Dec 17 23:21:30 1991 Per Bothner (bothner at cygnus.com) 9526 9527 * memcmp.c, memcpy.c, memmove.c, memset.c, strchr.c, strrchr.c: 9528 New ANSI functions. The old non-ANSI functions (such as bcopy) 9529 should be avoided. 9530 * bcopy.c: Fix to correctly handle overlapping regions. 9531 * index.c, rindex.c: Re-write in terms of strchr() and strrchr(). 9532 * functions.def: Add the new functions. 9533 * functions.def: Add 4th parameter to DEF macro, 9534 an ansidecl.h-style prototype. 9535 * dummy.c: Use expanded DEF macro to create a dummy function 9536 call, with correct parameter types. (This avoids some 9537 complaints from gcc about predefined builtins.) 9538 9539 Move the functionality of config/mh-default into Makefile.in. 9540 This avoid duplication, and simplifies things slightly. 9541 * Makefile.in: Tweak so we don't need config/mh-default. 9542 * README: Update. 9543 * configure.in: No longer need config/mh-default. 9544 * config/mh-default: Deleted. 9545 * config/mh-sysv: Remove lines copied from old mh-default. 9546 9547Tue Dec 17 05:46:46 1991 John Gilmore (gnu at cygnus.com) 9548 9549 * fdmatch.c (fdmatch): Don't compare st_rdev, which is for 9550 'mknod' device numbers. 9551 9552Mon Dec 16 12:25:34 1991 Fred Fish (fnf at cygnus.com) 9553 9554 * fdmatch.c, Makefile.in: Add new function that takes two 9555 open file descriptors and returns nonzero if they refer to 9556 the same file, zero otherwise. (used in gdb) 9557 9558Wed Dec 11 17:40:39 1991 Steve Chamberlain (sac at rtl.cygnus.com) 9559 From DJ: 9560 * msdos.c: stub functions for dos. 9561 * makefile.dos, configdj.bat: new. 9562 * getopt.c: Don't include alloca-conf.h in a GO32 world. 9563 9564 9565Tue Dec 10 04:14:49 1991 K. Richard Pixley (rich at rtl.cygnus.com) 9566 9567 * Makefile.in: infodir belongs in datadir. 9568 9569Fri Dec 6 23:26:45 1991 K. Richard Pixley (rich at rtl.cygnus.com) 9570 9571 * Makefile.in: remove spaces following hyphens because bsd make 9572 can't cope. added standards.text support. install using 9573 INSTALL_DATA. 9574 9575 * configure.in: remove commontargets as it is no longer a 9576 recognized hook. 9577 9578Thu Dec 5 22:46:46 1991 K. Richard Pixley (rich at rtl.cygnus.com) 9579 9580 * Makefile.in: idestdir and ddestdir go away. Added copyrights 9581 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir 9582 and mandir now keyed off datadir by default. 9583 9584Fri Nov 22 19:15:29 1991 John Gilmore (gnu at cygnus.com) 9585 9586 * Makefile.in: find-needed.awk does not fit in 14 chars. 9587 9588 * Makefile.in: Suppress error checking when compiling the test 9589 program, because Ultrix make/sh aborts there due to a bug. 9590 9591Fri Nov 22 12:23:17 1991 Per Bothner (bothner at cygnus.com) 9592 9593 * Makefile.in: Re-did how EXTRA_OFILES is used to be more useful. 9594 * README: Explained how the auto-configuration works, 9595 and how to add new files and/or configurations. 9596 9597Fri Nov 22 09:45:23 1991 John Gilmore (gnu at cygnus.com) 9598 9599 * strtoul.c: Avoid defining ULONG_MAX if already defined; 9600 cast a const char * to char * for pedants. 9601 9602 * getopt.c: Only define "const" after local include files get to, 9603 and only if they haven't defined it. 9604 9605Thu Nov 21 16:58:53 1991 John Gilmore (gnu at cygnus.com) 9606 9607 * getcwd.c (remove getwd.c): GNU code should call getcwd(). We 9608 emulate it with getwd() if available. This avoids callers having 9609 to find a MAXPATHLEN or PATH_MAX value from somewhere. 9610 * Makefile.in, functions.def: getwd->getcwd. 9611 * configure.in: Use generic case for every system. 9612 * config/mh-{delta88,mach,rs6000,svr4}: Remove. 9613 * config/mh-sysv: Use default handling, just add -DUSG. 9614 9615Thu Nov 14 10:58:05 1991 Per Bothner (bothner at cygnus.com) 9616 9617 * Makefile.in, config/mh-default: Re-do make magic 9618 so that for the default ("automatic") mode we only 9619 compile the files we actually need. Do this using 9620 a recursive make: The top-level generates the list 9621 of needed files (loosely, the ones missing in libc), 9622 and then passes that list to the recursive make. 9623 * config/mh-mach: Remove obsolete STRERROR-{C,O} macros. 9624 9625Tue Nov 12 19:10:57 1991 John Gilmore (gnu at cygnus.com) 9626 9627 RS/6000 host support (grumble). 9628 9629 * configure.in: Build alloca-conf.h file from alloca-norm.h 9630 (everything else) or alloca-botch.h (rs/6000). 9631 * Makefile.in: Include . on the include path. 9632 * getopt.c: Use alloca-conf.h. 9633 * alloca-norm.h: How to declare alloca on reasonable machines. 9634 * alloca-botch.h: How to declare alloca on braindead machines. 9635 9636Tue Nov 12 09:21:48 1991 Fred Fish (fnf at cygnus.com) 9637 9638 * concat.c : New file, like concat() in gdb but can take a 9639 variable number of arguments rather than fixed at 3 args. For 9640 now, client applications must supply an xmalloc(), which is a 9641 front end function to malloc() that deals with out-of-memory 9642 conditions. 9643 9644 * Makefile.in: Add concat.c and concat.o to appropriate macros. 9645 9646Sat Nov 9 13:29:59 1991 Fred Fish (fnf at cygnus.com) 9647 9648 * config/mh-svr4: Add sigsetmask to list of required functions. 9649 9650Sun Nov 3 11:57:56 1991 Per Bothner (bothner at cygnus.com) 9651 9652 * vsprintf.c: New file. 9653 * functions.def, Makefile.in: Add vsprintf. 9654 9655Sun Oct 27 16:31:22 1991 John Gilmore (gnu at cygnus.com) 9656 9657 * configure.in, config/mh-rs6000: Add rs/6000 host support. 9658 * Makefile.in: Compile with debug info. 9659 9660Fri Oct 25 17:01:12 1991 Per Bothner (bothner at cygnus.com) 9661 9662 * Makefile.in, configure.in, and new files: dummy.c, functions.def, 9663 config/mf-default: Added a default configuration mode, 9664 which includes into libiberty.a functions that are "missing" in libc. 9665 * strdup.c, vprintf.c, vfprintf.c: New files. 9666 9667Thu Oct 24 02:29:26 1991 Fred Fish (fnf at cygnus.com) 9668 9669 * config/hmake-svr4: New file. 9670 9671 * config/hmake-sysv: Add HOST_CFILES and HOST_OFILES. 9672 9673 * basename.c, bcmp.c, bcopy.c, bzero.c, getpagesize.c getwd.c, 9674 index.c, insque.c, rindex.c, spaces.c, strstr.c, vfork.c: New 9675 files containing either portable C versions or emulations using 9676 native library calls. 9677 9678 * strerror.c: Add copyright, internal documentation, etc. 9679 9680 * strtol.c: Replace hardwired hex constants with some more 9681 portable macros. Remove illegal (according to gcc) cast. 9682 9683 * strtoul.c: Replace hardwired hex constant with more portable 9684 macro. 9685 9686 * Makefile.in: Move TARGETLIB and CFLAGS where makefile fragments 9687 can override them. Add new source and object file names to CFILES 9688 and OFILES respectively. 9689 9690 * configure.in: Add support for SVR4 makefile fragments. 9691 9692Tue Oct 22 19:00:23 1991 Steve Chamberlain (steve at cygnus.com) 9693 9694 * Makefile.in: Move RANLIB, AR and AR_FLAGS to where they can be 9695 over-ridden by config/hmake-* 9696 * configure.in: added m88kcvs to sysv list 9697 9698Fri Oct 4 01:29:08 1991 John Gilmore (gnu at cygnus.com) 9699 9700 * Makefile.in: Most hosts need strerror, but one or two don't, 9701 and they override these definitions in the host-dependent makefile 9702 fragment. 9703 * config/hmake-mach: The odd man out on strerror -- it's supplied. 9704 * strerror.c: New file. 9705 9706 * strtol.c, strtoul.c: Add strtol to libiberty, since Mach lacks 9707 it and bfd uses it. 9708 * configure.in, Makefile.in, config/hmake-mach: Only configure 9709 strtol & strotoul in on Mach. 9710 9711Tue Sep 3 06:36:23 1991 John Gilmore (gnu at cygint.cygnus.com) 9712 9713 * obstack.c: Merge with latest FSF version. 9714 9715 9716Local Variables: 9717version-control: never 9718End: 9719