OSDN Git Service

* splay-tree.h (splay_tree_predecessor): Declare.
[pf3gnuchains/gcc-fork.git] / libiberty / ChangeLog
index cbb7b4e..ee879c4 100644 (file)
@@ -1,3 +1,409 @@
+2000-09-10  Mark Mitchell  <mark@codesourcery.com>
+
+       * splay-tree.c (splay_tree_predecessor): New function.
+       (splay_tree_successor): Likewise.
+
+2000-09-10  Hans-Peter Nilsson  <hp@axis.com>
+
+       * testsuite/demangle-expected: Add four tests for type_info
+       mangling.
+
+       * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
+       for a non-template non-qualified type_info function or node.
+
+2000-09-08  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c: Fix copyright banner.
+
+2000-09-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
+
+       * md5.c: #include "ansidecl.h".
+
+2000-09-06  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
+       (demangle_type): Handle substitution candidates correctly in the
+       face of special substitutions.
+
+2000-09-05  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c (demangle_encoding): Rename variable.
+       (demangle_name): Rename parameter.  Handle return type
+       suppression.
+       (demangle_nested_name): Rename parameter.
+       (demangle_prefix): Likewise.  Change return type suppression.
+       (demangle_unqualified_name): Add parameter.  Flag constructors and
+       conversion operators.
+       (demangle_special_name): Fix comment.
+       (demangle_type): Rename variable.
+       (demangle_bare_function_type): Check for missing return type and
+       parameter. 
+       (demangle_class_enum_type): Rename parameter.
+       (demangle_discriminator): Fix misspelling in comment.
+
+2000-08-31  DJ Delorie  <dj@redhat.com>
+
+       * configure.in (Cygwin): special case cygwin only when we're
+       building cygwin, not when we're hosting cygwin.
+
+2000-09-04  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c (demangle_template_arg): Eat an `E' after an
+       <expression>. 
+       
+2000-09-04  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c (demangle_type_ptr): Increment position past
+       pointer and reference characters.
+
+2000-09-04  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c (demangle_nv_offset): New function.
+       (demangle_v_offset): Likewise.
+       (demangle_call_offset): Likewise.
+       (demangle_special_name): Update thunk demangling to comply with
+       ABI changes.
+       
+2000-09-03  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
+       (substitution_def): Remove template_parm_number.
+       (NOT_TEMPLATE_PARM): Remove.
+       (result_insert_string): New macro.
+       (result_insert): Likewise.
+       (result_insert_char): Likewise.
+       (substitution_add): Remove last parameter.  Don't store template
+       parm number. 
+       (BFT_NO_RETURN_TYPE): Define as NULL.
+       (demangle_encoding): Adjust call to demangle_bare_function_type.
+       (demangle_name): Adjust substitution.  Adjust call to
+       substitution_add. 
+       (demangle_prefix): Adjust call to substitution_add.
+       (demangle_identifier): Handle anonymous namespaces.
+       (demangle_operator_name): Change demangling of vendor-extended
+       operator to match ABI changes.
+       (demangle_type_ptr): Change parameters.  Make recursive.  Handle
+       substitutions here.  
+       (demangle_type): Adjust calls to demangle_template_param,
+       substitution_add, and demangle_type_ptr.  Fix substitution of
+       templated types.
+       (demangle_function_type): Change parameter to a pointer.
+       (demangle_bare_function_type): Likewise.  Adjust insertion point.
+       (demangle_template_param): Remove last parameter.
+       (demangle_expr_primary): Remove unused variable.  Adjust call to
+       demangle_template_param. 
+       (is_mangled_char): Accept `$' and `.'.
+       * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
+       * dyn-string.c (dyn_string_insert_char): New function.
+
+2000-08-31  Hans-Peter Nilsson  <hp@axis.com>
+
+       * testsuite/demangle-expected: Add nine tests for
+       underscore-after-number followed by five tests for name-signature
+       delimiter.
+
+2000-08-28  Richard Henderson  <rth@cygnus.com>
+
+       * Makefile.in (md5.o): Depend on config.h.
+
+2000-08-28  Jason Merrill  <jason@redhat.com>
+
+       * Makefile.in (REQUIRED_OFILES): Add md5.o.
+       (CFILES): Add md5.c.
+       * md5.c: New file.
+
+2000-08-27  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c (demangle_name): Initialize template_p in local
+       name case.  Don't re-add substitutions as candidates.
+       (demangle_nested_name): Use <unqualified-name>.
+       (demangle_prefix): Likewise.  Don't add template names as
+       substitution candidates twice, or re-add a substitution or the
+       last prefix component.
+       (demangle_local_name): Adjust output format.
+
+2000-08-25  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c (result_add_separated_char): Change parameter to
+       int.
+       (substitution_add): Don't check for duplicates.  Check if
+       previously allocated size is zero.
+       (demangle_name): Remove duplicate check for std substitution.
+       Clear template flag appropriately.
+       (demangle_prefix): Remove argument to demangle_substitution.
+       Don't check that template flag is already set.
+       (demangle_operator_name): Add pt operator.
+       (demangle_type): Don't treat r as built-in type.  Remove argument
+       to demangle_substitution.  Fix substitution candidate mechanics.
+       Handle <template-template-parm>s.  Improve comments.
+       (demangle_template_param): Don't handle template arg lists here. 
+       (demangle_substitution): Remove parameter.
+       (print_usage): Remove extra fprintf option.
+
+2000-08-24  Greg McGary  <greg@mcgary.org>
+
+       * libiberty/random.c (end_ptr): Revert previous change.
+
+2000-08-24  Greg McGary  <greg@mcgary.org>
+
+       * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
+       demangle_expression, demangle_function_name): Use ARRAY_SIZE.
+       * libiberty/random.c (end_ptr): Likewise.
+
+2000-08-23  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c (result_close_template_list): Remove function.
+       (result_add_separated_char): New function.
+       (result_open_template_list): New macro.
+       (result_close_template_list): Likewise.
+       (demangle_prefix): Don't set template_p if the
+       prefix ends with a ctor name.
+       (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
+       (demangle_type): Check for template args after substitution.
+       (demangle_template_args): Use result_open_template_list.
+       
+2000-08-02  Zack Weinberg  <zack@wolery.cumb.org>
+
+       * pexecute.c:  Don't use vfork.  Initialize 'pid' before retry loop.
+
+2000-07-26  Dave Pitts  <dpitts@cozx.com>      
+
+       * config/mh-openedition.h: Added -DLE370 definition.
+
+2000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
+
+       * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
+       __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
+       Cast program to 'char *' in errmsg_arg assignment.
+       (PWAIT_ERROR): Define.
+       (pwait): Use PWAIT_ERROR.  Adjust DJGPP's status code to conform
+       to DJGPP's WIF* macros.
+
+2000-07-27  RodneyBrown  <RodneyBrown@pmsc.com>
+           Jeff Law <law@cygnus.com>
+
+       * getcwd.c: Include string.h, stdlib.h for prototypes
+
+       * Makefile.in (rename.o, waitpid.o): Depend on config.h
+       * rename.c: Include config.h, unistd.h
+       * waitpid.c: Include config.h, sys/wait.h
+
+2000-07-24  Hans-Peter Nilsson  <hp@axis.com>
+
+       * cplus-dem.c (work_stuff_copy_to_from): New.
+       (delete_non_B_K_work_stuff): New.
+       (delete_work_stuff): New.
+       (mop_up): Break out work_stuff partly destruction to
+       delete_non_B_K_work_stuff.
+       (iterate_demangle_function): New.
+       (demangle_prefix): Call iterate_demangle_function instead of
+       demangle_function_name.  Leave handling of name-signature
+       __-delimiters to iterate_demangle_function.
+       (demangle_integral_value): Strip an optional
+       following underscore cautiously.  Handle negative numbers.
+
+2000-07-24  Daniel Berlin <dberlin@redhat.com>
+
+       * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to 
+       if (AUTO_DEMANGLING || GNU_DEMANGLING)
+
+2000-07-21  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
+       allocating ctor mangling.
+       (demangle_array_type): Handle empty and non-constant array length.
+
+2000-07-23  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
+           Jeff Law <law@cygnus.com>
+
+       * configure.in (AC_CHECK_HEADERS): Add time.h.
+       (AC_HEADER_TIME): Add check.
+       * configure, config.in: Regenerate.
+       * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
+
+       * configure.in (AC_CHECK_HEADERS): Add limits.h.
+       * configure, config.in: Regenerate.
+       * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
+       * strtol.c, strtoul.c: #include "config.h". Portably #include
+       <limits.h> and/or <sys/param.h>.
+       * Makefile.in (strtol.o, strtoul.o): Update dependencies.
+
+       * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
+       * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
+       * configure, config.in: Regenerate.
+       * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
+
+       * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
+
+2000-07-21  Mike Stump  <mrs@wrs.com>
+
+       * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
+       * (vasprintf.o): Add dependency for config.h in vasprintf.c.
+
+2000-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
+
+       * setenv.c (setenv): Initialize variable `ep'.
+
+       * sigsetmask.c (abort): Prototype.
+
+       * vasprintf.c: Include config.h.  Check ANSI_PROTOTYPES, not
+       __STDC__ for stdarg.h include.
+       (int_vasprintf): Prototype.
+       (checkit): Prototype.  Use VPARAMS/ANSI_PROTOTYPES/VA_START in
+       definition.  Cast `global_total_width' in comparison.
+       (main): Prototype.  Return a value.
+
+       * vfork.c (fork): Prototype.
+
+       * xexit.c: Include config.h.
+
+2000-07-20  Joseph S. Myers  <jsm28@cam.ac.uk>
+
+       * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
+       and print it with %u.
+
+2000-07-17  Hans-Peter Nilsson  <hp@axis.com>
+
+       * testsuite/regress-demangle (failed test): Show result and
+       expected output.
+
+2000-07-07  Andrew Haley  <aph@cygnus.com>
+
+       * cplus-dem.c (main): fflush() after emitting last char before
+       waiting for input.
+
+2000-06-28  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c (demangle_encoding): Accept no substitutions.
+       (demangle_name): Handle <substitution> followed by
+       <unqualified-template-name>.
+       (demangle_type): Follow special substitutions with
+       <class-enum-type>
+       (demangle_subtitution): Set template_p for special substitutions.
+       (main): Fix typos.
+       
+2000-06-27  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c (demangle_special_name): Swap base and derived
+       class when demangling construction vtables.
+
+2000-06-21  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c: Don't include ctype.h.
+       (IS_DIGIT): New macro.
+       (IS_ALPHA): Likewise.  Use IS_DIGIT and IS_ALPHA throughout
+       instead of isdigit and isalpanum.
+       (demangling_def): Make name and next const pointers.
+       (STATUS_ALLOCATION_FAILED): New status code.
+       (dyn_string_append_space): Handle failure in
+       dyn_string_append_char.
+       (int_to_dyn_string): Likewise.  Change return value to status_t.
+       (string_list_new): Handle failure of dyn_string_init.
+       (result_close_template_list): Change return type to status_t.
+       Handle failure in dyn_string_append.
+       (result_push): Change return value to status_t.  Handle failure in
+       string_list_new.  Handle failure of result_push throughout.
+       (substitution_add): Change return value to status_t.  Handle
+       dyn_string failures.  Handle failure of substitution_add
+       throughout.
+       (template_arg_list_new): Return NULL on allocation failure.
+       (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
+       Handle error result throughout.
+       (result_append): Likewise.
+       (result_append_char): Likewise.
+       (result_append_space): Likewise.
+       (demangling_new): Make argument a const pointer.  Handle
+       allocation failures.
+       (demangle_template_args): Handle failure in template_arg_list_new
+       and result_close_template_list.
+       (demangle_discriminator): Return if int_to_dyn_string fails.
+       (cp_demangle): Likewise.
+       (cp_demangle_type): New function.
+       (cplus_demangle_new_abi): Don't call dyn_string_delete.  Abort on
+       memory allocation failure.
+       (main): Likewise.
+       * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
+       IN_LIBGCC2.
+       (dyn_string_init): Change return value to int.  Handle
+       RETURN_ON_ALLOCATION_FAILURE case.
+       (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
+       (dyn_string_release): Delete the dyn_string.
+       (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
+       (dyn_string_copy): Change return type to int.
+       (dyn_string_copy_cstr): Likewise.
+       (dyn_string_prepend): Likewise.
+       (dyn_string_prepend_cstr): Likewise.
+       (dyn_string_insert): Likewise.
+       (dyn_string_insert_cstr): Likewise.
+       (dyn_string_append): Likewise.
+       (dyn_string_append_cstr): Likewise.
+       (dyn_string_append_char): Likewise.
+       (dyn_string_substring): Likewise.
+       
+2000-06-09  Zack Weinberg  <zack@wolery.cumb.org>
+
+       * cp-demangle.c (demangle_operator_name): Add spaces before
+       names beginning with a letter: delete, delete[], new, new[],
+       sizeof.
+       (demangle_special_name): Handle TF <type> and TJ <type>.
+
+Thu Jun  8 18:52:24 2000  Philippe De Muyter  <phdm@macqel.be>
+
+       * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
+
+Thu Jun  8 09:25:54 2000  Philippe De Muyter  <phdm@macqel.be>
+
+       * cp-demangle.c (stdio.h): File included unconditionaly.
+       (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
+       * dyn-string.c (stdio.h): File included.
+       * partition.c (partition_print): No `&' needed to take the address of
+       a function.
+
+2000-06-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
+       
+       * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
+
+       * cp-demangle.c (demangle_char): Change parameter from char to int.
+       (demangle_expression, demangle_expr_primary): Remove extra
+       semi-colon in prototype.
+
+       * dyn-string.c (dyn_string_append_char): Change parameter from
+       char to int.
+
+       * memcmp.c (memcmp): Constify.
+
+       * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
+       __extension__.
+
+       * partition.c (elem_compare): Prototype.  Don't cast away
+       const-ness.
+
+       * setenv.c (setenv): Use braces to avoid ambiguous `else'.
+       
+2000-06-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
+
+       * cp-demangle.c: Include demangle.h.
+       (template_arg_list_new): DeANSIfy.
+       (cp_demangle): Make static and add prototype.
+       (operator_code, operators): Constify.
+       (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
+
+2000-06-05  Alex Samuel  <samuel@codesourcery.com>
+
+       * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
+       unsigned char.
+       (demangle_unqualified_name): Likewise.
+       (demangle_number_literally): Likewise.
+       (demangle_type): Likewise.
+       (demangle_substitution): Likewise.
+       (is_mangled_char): Likewise, for isalnum.
+
 2000-06-04  Alex Samuel  <samuel@codesourcery.com>
 
        * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.