1. 07 Jul, 2000 1 commit
  2. 30 Jun, 2000 1 commit
    • in libiberty/ChangeLog: · bece74bd
      	* 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.
      
      in gcc/cp/ChangeLog:
      
      	* mangle.c (find_substitution): Use same_type_p.
      	(write_encoding): Don't check for substitutions.
      
      in libio/ChangeLog:
      
      	* libioP.h (VTABLE_LABEL): Update for new vtable mangling.
      	* stdstrbufs.cc (filebuf_vtable): Likewise.
      	(stdiobuf_vtable): Likewise.
      
      From-SVN: r34811
      Alex Samuel committed
  3. 28 Jun, 2000 1 commit
  4. 23 Jun, 2000 1 commit
    • in include/ChangeLog: · 051664b0
      	* dyn-string.h (dyn_string_init, dyn_string_new,
      	dyn_string_delete, dyn_string_release, dyn_string_resize,
      	dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
      	dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
      	dyn_string_insert_cstr, dyn_string_append, dyn_string_append_cstr,
      	dyn_string_append_char, dyn_string_substring_dyn_string_eq):
      	Define as same name with __cxa_ prepended, if IN_LIBGCC2.
      	(dyn_string_init, dyn_string_copy, dyn_string_copy_cstr,
      	dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
      	dyn_string_insert_cstr, dyn_string_append, dyn_string_append_cstr,
      	dyn_string_append_char, dyn_string_substring): Change return type
      	to int.
      
      in libiberty/ChangeLog:
      
      	* 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.
      
      in gcc/cp/ChangeLog:
      
      	* Make-lang.in (CXX_LIB2FUNCS): Add cp-demangle.o and dyn-string.o.
      	(CXX_LIB2SRCS): Add cp-demangle.c and dyn-string.c.
      	(cp-demangle.o): New rule.
      	(dyn-string.o): Likewise.
      	* inc/cxxabi.h (__cxa_demangle): New declaration.
      
      From-SVN: r34657
      Alex Samuel committed
  5. 09 Jun, 2000 1 commit
  6. 08 Jun, 2000 2 commits
  7. 07 Jun, 2000 2 commits
    • configure.in (ac_libiberty_warn_cflags): Add -pedantic. · 69197e7e
      libiberty:
      	* 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'.
      
      include:
      	* demangle.h (demangling_styles): Remove trailing comma in enum.
      
      	* dyn-string.h (dyn_string_append_char): Change parameter from
      	char to int.
      
      From-SVN: r34447
      Kaveh R. Ghazi committed
    • Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h. · 7eb23b1f
      	* 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'.
      
      From-SVN: r34446
      Kaveh R. Ghazi committed
  8. 05 Jun, 2000 2 commits
    • cp-demangle.c (demangle_prefix): Cast argument to isdigit to unsigned char. · 3faa108c
      	* 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.
      
      From-SVN: r34411
      Alex Samuel committed
    • In include, · 69afa80d
      	* dyn-string.h: Move here from gcc/dyn-string.h.  Add new functions.
      
      	* demangle.h (DMGL_GNU_NEW_ABI): New macro.
      	(DMGL_STYLE_MASK): Or in DMGL_GNU_NEW_ABI.
      	(current_demangling_style): Add gnu_new_abi_demangling.
      	(GNU_NEW_ABI_DEMANGLING_STYLE_STRING): New macro.
      	(GNU_NEW_ABI_DEMANGLING): Likewise.
      	(cplus_demangle_new_abi): New declaration.
      
      In libiberty,
      
      	* Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
      	(REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
      	(cp-demangle.o): New dependency.
      	(dyn-string.o): Likewise.
      
      	* dyn-string.c: Move here from gcc/dyn-string.c.  Add new functions.
      
      	* cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
      	demangler.
      	(cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
      	demangling mode.
      	(gnu_new_abi_symbol_characters): New function.
      	(main): Use gnu_new_abi_symbol_characters.  * cp-demangle.c: New
      	file.
      	* cp-demangle.c: New file.
      
      From-SVN: r34397
      Alex Samuel committed
  9. 31 May, 2000 1 commit
  10. 30 May, 2000 2 commits
  11. 29 May, 2000 1 commit
    • hashtab.c, [...]: Include string.h if HAVE_STRING_H. · d11ec6f0
      	* hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
      	if HAVE_STRING_H.
      	* pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
      	* objalloc.c: Include config.h.  Include stdlib.h and don't
      	declare malloc or free if HAVE_STDLIB_H.
      	* strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
      	else declare malloc without prototype.  Include string.h if
      	HAVE_STRING_H, else declare memset without prototype.  Don't
      	include stddef.h.
      
      From-SVN: r34254
      Zack Weinberg committed
  12. 24 May, 2000 1 commit
  13. 18 May, 2000 1 commit
  14. 16 May, 2000 3 commits
  15. 11 May, 2000 1 commit
  16. 09 May, 2000 1 commit
  17. 04 May, 2000 2 commits
  18. 29 Apr, 2000 1 commit
  19. 28 Apr, 2000 2 commits
    • * libiberty/cplus-dem.c · 24eaa47a
              (libiberty_demanglers): new table for demangle styles
              (cplus_demangle_set_style): New function for setting style
              (cplus_demangle_name_to_style): New function to translate name
              * include/demangle.h
              (libiberty_demanglers): new table for different styles
              (cplus_demangle_set_style): New function for setting style
              (cplus_demangle_name_to_style): New function to translate name
      
      Co-Authored-By: Jason Merrill <jason@casey.cygnus.com>
      
      From-SVN: r33525
      Kenneth Block committed
    • aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP. · a9266bfa
      	* aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
      
      	* configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
      	(libiberty_AC_FUNC_STRNCMP): Invoke.
      
      	* strncmp.c: New file.
      
      From-SVN: r33498
      Kaveh R. Ghazi committed
  20. 27 Apr, 2000 1 commit
  21. 24 Apr, 2000 4 commits
  22. 21 Apr, 2000 1 commit
  23. 18 Apr, 2000 1 commit
    • conflict.c (conflict_graph_add): Pass enum type to htab_find_slot. · e38992e8
      	* gcc/conflict.c (conflict_graph_add): Pass enum type to
      	htab_find_slot.
      	* gcc/cpperror.c (hashtab.h): Now include.
      	* gcc/cppexp.c (hashtab.h): Likewise.
      	* gcc/cpplex.c (hashtab.h): Likewise.
      	* gcc/cppfiles.c (hashtab.h): Likewise.
      	(find_include_file, _cpp_calc_hash, cpp_read_file): Pass enum type
      	to htab_find_slot_with_hash.
      	* gcc/cpphash.c (hashtab.h): Now include.
      	(_cpp_lookup_slot): INSERT is now enum insert_option.
      	* gcc/cpphash.h (_cpp_lookup_slot): Likewise.
      	* gcc/cppinit.c (hashtab.h): Include earlier.
      	(initialize_builtins): Pass enum to htab_find_slot.
      	* gcc/cpplib.c (hashtab.h): Now include.
      	(do_define, do_undef): Pass enum type to _cpp_lookup_slot.
      	(do_pragma_poison, do_assert): Likewise.
      	* gcc/emit-rtl.c (gen_rtx_CONST_INT): Pass enum to
      	htab_find_slot_with_hash.
      	* gcc/simplify-rtx.c (cselib_lookup_mem, cselib_lookup): Likewise.
      	* gcc/tree.c (type_hash_add): Likewise.
      	(build1): Minor cleanup.
      	* include/hashtab.h (enum insert_option): New type.
      	(htab_find_slot, htab_find_slot_with_hash): Use it.
      	* libiberty/hashtab.c: Various minor cleanups.
      	(htab_find_slot_with_hash): INSERT is now enum insert_option.
      	(htab_find_slot): Likewise.
      
      From-SVN: r33236
      Richard Kenner committed
  24. 17 Apr, 2000 1 commit
  25. 06 Apr, 2000 1 commit
  26. 05 Apr, 2000 1 commit
  27. 31 Mar, 2000 1 commit
    • hashtab.h (hashval_t): New type. · b13eb66b
      	* hashtab.h (hashval_t): New type.
      	(htab_find_with_hash): Use it as an argument.
      	(htab_find_slot_with_hash): Likewise.
      
      	* hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
      	codes.
      	(htab_find_with_hash): Likewise.
      	(htab_find_slot_with_hash): Likewise.
      
      From-SVN: r32842
      Mark Mitchell committed
  28. 29 Mar, 2000 1 commit
  29. 24 Mar, 2000 1 commit