X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libiberty%2FChangeLog;h=7ae91adb947520206455e0f51b4f04a21400bdef;hb=128e85e3ab36b8e30f6612fb50de3cbb4ede6824;hp=d7f1fd021bfde7cb08b6fbf952a019c617c20458;hpb=389d9b6c50d092412d34eff789c77b2510ebc416;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index d7f1fd021b..7ae91adb94 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,908 @@ +2016-11-03 David Tolnay + Mark Wielaard + + * Makefile.in (CFILES): Add rust-demangle.c. + (REQUIRED_OFILES): Add rust-demangle.o. + * cplus-dem.c (libiberty_demanglers): Add rust_demangling case. + (cplus_demangle): Handle RUST_DEMANGLING. + (rust_demangle): New function. + * rust-demangle.c: New file. + * testsuite/Makefile.in (really-check): Add check-rust-demangle. + (check-rust-demangle): New rule. + * testsuite/rust-demangle-expected: New file. + +2016-11-15 Mark Wielaard + + * cp-demangle.c (d_expression_1): Make sure third expression + exists for ?: and fold expressions. + * testsuite/demangle-expected: Add examples of strings that could + crash the demangler because of missing expression. + +2016-11-14 Mark Wielaard + + * cplus-dem.c (demangle_signature): After 'H', template function, + no success and don't advance position if end of string reached. + (demangle_template): After 'z', template name, return zero on + premature end of string. + (gnu_special): Guard strchr against searching for zero characters. + (do_type): If member, only advance mangled string when 'F' found. + * testsuite/demangle-expected: Add examples of strings that could + crash the demangler by reading past end of input. + +2016-11-06 Mark Wielaard + + * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local. + * configure: Regenerated. + +2016-11-07 Jason Merrill + + * cp-demangle.c (is_fnqual_component_type): New. + (d_encoding, d_print_comp_inner, d_print_mod_list): Use it. + (FNQUAL_COMPONENT_CASE): New. + (d_make_comp, has_return_type, d_print_comp_inner) + (d_print_function_type): Use it. + (next_is_type_qual): New. + (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec. + +2016-11-02 Mark Wielaard + + * cplus-dem.c (demangle_signature): Move fall through comment. + (demangle_fund_type): Add fall through comment between 'G' and 'I'. + * hashtab.c (iterative_hash): Add fall through comments. + * regex.c (regex_compile): Add Fall through comment after '+'/'?'. + (byte_re_match_2_internal): Add Fall through comment after jump_n. + Change "Note fall through" to "Fall through". + (common_op_match_null_string_p): Return false after set_number_at + instead of fall through. + +2016-11-01 Jason Merrill + + * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor. + +2016-10-31 Mark Wielaard + + * cplus-dem.c (ada_demangle): Initialize demangled to NULL and + XDELETEVEC demangled when unknown. + +2016-10-17 Nick Clifton + + * Sync with gcc. + +2016-09-19 Andrew Stubbs + + * pex-win32.c (argv_to_cmdline): Quote zero-length parameters. + * testsuite/test-pexecute.c (main): Insert check for zero-length parameters. + +2016-09-10 Mark Wielaard + + * cp-demangle.c (d_substitution): Change struct demangle_component + variable name from c to dc. + +2016-08-12 Marek Polacek + + PR c/7652 + * cp-demangle.c (d_print_mod): Add FALLTHRU. + +2016-08-04 Marcel Böhme + + PR c++/71696 + * cplus-dem.c: Prevent infinite recursion when there is a cycle + in the referencing of remembered mangled types. + (work_stuff): New stack to keep track of the remembered mangled + types that are currently being processed. + (push_processed_type): New method to push currently processed + remembered type onto the stack. + (pop_processed_type): New method to pop currently processed + remembered type from the stack. + (work_stuff_copy_to_from): Copy values of new variables. + (delete_non_B_K_work_stuff): Free stack memory. + (demangle_args): Push/Pop currently processed remembered type. + (do_type): Do not demangle a cyclic reference and push/pop + referenced remembered type. + +2016-07-29 Aldy Hernandez + + * make-relative-prefix.c (make_relative_prefix_1): Fall back to + malloc if alloca argument is greater than MAX_ALLOCA_SIZE. + +2016-07-15 Jason Merrill + + * cp-demangle.c (cplus_demangle_operators): Add f[lrLR]. + (d_expression_1): Handle them. + (d_maybe_print_fold_expression): New. + (d_print_comp_inner): Use it. + (d_index_template_argument): Handle negative index. + + * cp-demangle.c (cplus_demangle_operators): Add sP and sZ. + (d_print_comp_inner): Handle them. + (d_template_args_1): Split out from d_template_args. + (d_args_length): New. + +2016-07-13 Marcel Böhme + + PR c++/70926 + * cplus-dem.c: Handle large values and overflow when demangling + length variables. + (demangle_template_value_parm): Read only until end of mangled string. + (do_hpacc_template_literal): Likewise. + (do_type): Handle overflow when demangling array indices. + +2016-06-12 Brooks Moses + + * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length + VLAs. + +2016-05-31 Alan Modra + + * xmemdup.c (xmemdup): Use xmalloc rather than xcalloc. + +2016-05-19 Jakub Jelinek + + PR c++/70498 + * cp-demangle.c (d_expression_1): Formatting fix. + +2016-05-18 Artemiy Volkov + + * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference + constant. + (demangle_template_value_parm): Handle tk_rvalue_reference + type kind. + (do_type): Support 'O' type id (rvalue references). + + * testsuite/demangle-expected: Add tests. + +2016-05-02 Marcel Böhme + + PR c++/70498 + * cp-demangle.c: Parse numbers as integer instead of long to avoid + overflow after sanity checks. Include if available. + (INT_MAX): Define if necessary. + (d_make_template_param): Takes integer argument instead of long. + (d_make_function_param): Likewise. + (d_append_num): Likewise. + (d_identifier): Likewise. + (d_number): Parse as and return integer. + (d_compact_number): Handle overflow. + (d_source_name): Change variable type to integer for parsed number. + (d_java_resource): Likewise. + (d_special_name): Likewise. + (d_discriminator): Likewise. + (d_unnamed_type): Likewise. + * testsuite/demangle-expected: Add regression test cases. + +2016-04-30 Oleg Endo + + * configure: Remove SH5 support. + +2016-04-08 Marcel Böhme + + PR c++/69687 + * cplus-dem.c: Include if available. + (INT_MAX): Define if necessary. + (remember_type, remember_Ktype, register_Btype, string_need): + Abort if we detect cases where we the size of the allocation would + overflow. + + PR c++/70492 + * cplus-dem.c (gnu_special): Handle case where consume_count returns + -1. + +2016-03-31 Mikhail Maltsev + Marcel Bohme + + PR c++/67394 + PR c++/70481 + * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing + btypevec/ktypevec. + * testsuite/demangle-expected: Add coverage tests. + +2016-01-27 Iain Buclaw + + * d-demangle.c (dlang_call_convention): Handle extern Objective-C + function calling convention. + (dlang_call_convention_p): Likewise. + (dlang_type): Likewise. + * testsuite/d-demangle-expected: Add coverage tests. + +2016-01-27 Iain Buclaw + + * d-demangle.c (dlang_function_args): Append ',' for variadic functions + only if parameters were seen before the elipsis symbol. + * testsuite/d-demangle-expected: Add coverage test for parameter-less + variadic functions. + +2016-01-27 Iain Buclaw + + * d-demangle.c (dlang_type): Handle function types only in the context + of seeing a pointer type symbol. + * testsuite/d-demangle-expected: Update function pointer tests. + +2016-01-05 Mike Frysinger + + * argv.c (dupargv): Change arg to char * const *. Update comment. + (writeargv, countargv): Likewise. + * functions.texi (dupargv, writeargv, countargv): Likewise. + +2016-01-05 Mike Frysinger + + * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup. + +2015-12-28 Patrick Palka + + * crc32.c: In the documentation, don't refer to GDB's + now-nonexistent crc32 implementation. In the table-generation + program embedded within the documentation, change the type of + the induction variables i and j from int to unsigned int, to + avoid undefined behavior. + +2015-12-21 Nick Clifton + + PR 66827 + * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left + shifting. + +2015-11-27 Pedro Alves + + PR other/61321 + PR other/61233 + * cp-demangle.c (d_demangle_callback, d_make_comp): Handle + DEMANGLE_COMPONENT_CONVERSION. + (is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION + instead of DEMANGLE_COMPONENT_CAST. + (d_operator_name): Return a DEMANGLE_COMPONENT_CONVERSION + component if handling a conversion. + (d_count_templates_scopes, d_print_comp_inner): Handle + DEMANGLE_COMPONENT_CONVERSION. + (d_print_comp_inner): Handle DEMANGLE_COMPONENT_CONVERSION instead + of DEMANGLE_COMPONENT_CAST. + (d_print_cast): Rename as ... + (d_print_conversion): ... this. Adjust comments. + (d_print_cast): Rewrite - simply print the left subcomponent. + * cp-demint.c (cplus_demangle_fill_component): Handle + DEMANGLE_COMPONENT_CONVERSION. + + * testsuite/demangle-expected: Add tests. + +2015-11-12 Mike Stump + + * Makefile.in (etags tags TAGS): Use && instead of ;. + +2015-11-09 Alan Modra + + * configure.ac: Check size of size_t. + * configure: Regenerate. + * config.in: Regenerate. + +2015-11-09 Alan Modra + + * obstack.c (_obstack_newchunk): Silence -Wc++compat warning. + (_obstack_begin_worker): Likewise. Move assignment to h->chunk + after alloc failure check. + +2015-11-09 Alan Modra + + PR gdb/17133 + * obstack.c (__alignof__): Expand alignof_type from alignof.h. + (obstack_exit_failure): Don't use exitfail.h. + (_): Include libintl.h when HAVE_LIBINTL_H and nls enabled. + Provide default. Don't include gettext.h. + (_Noreturn): Define. + * obstacks.texi: Adjust node references to external libc info files. + +2015-11-09 Alan Modra + + PR gdb/17133 + * obstack.c: Import current gnulib file. + * obstacks.texi: Updated doc, from glibc's manual/memory.texi. + +2015-11-06 Joel Brobecker + + * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on + Android hosts. + * configure: Regenerate. + +2015-10-28 Jason Merrill + + * Makefile.in (TAGS): Fix for separate build directory. + +2015-10-18 Roland McGrath + Iain Sandoe + + PR other/63758 + * pex-unix.c: Obtain the environment interface from settings in + environ.h rather than in-line code. Update copyright date. + * setenv.c: Likewise. + * xmalloc.c: Likewise. + +2015-09-30 Jason Merrill + + * cp-demangle.c (d_cv_qualifiers): Dx means transaction_safe. + (cplus_demangle_type): Let d_cv_qualifiers handle it. + (d_dump, d_make_comp, has_return_type, d_encoding) + (d_count_templates_scopes, d_print_comp_inner) + (d_print_mod_list, d_print_mod, d_print_function_type) + (is_ctor_or_dtor): Handle DEMANGLE_COMPONENT_TRANSACTION_SAFE. + +2015-09-30 Nick Clifton + + Import the following patches from the GCC mainline: + + 2015-08-15 Ian Lance Taylor + + * cp-demangle.c (d_abi_tags): Preserve di->last_name across any + ABI tags. + +2015-08-11 Iain Buclaw + + * d-demangle.c (dlang_parse_real): Remove call to strtod. + (strtod): Remove declaration. + * testsuite/d-demangle-expected: Update float and complex literal + tests to check correct hexadecimal demangling. + +2015-07-14 H.J. Lu + + * configure: Regenerated. + +2015-07-13 Mikhail Maltsev + + * cp-demangle.c (d_dump): Fix syntax error. + (d_identifier): Adjust type of len to match d_source_name. + (d_expression_1): Fix out-of-bounds access. Check code variable for + NULL before dereferencing it. + (d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER. + (d_print_comp_inner): Add NULL pointer check. + * cp-demangle.h (d_peek_next_char): Define as inline function when + CHECK_DEMANGLER is defined. + (d_advance): Likewise. + * testsuite/demangle-expected: Add new testcases. + +2015-07-09 Uros Bizjak + + * getruntime.c (RUSAGE_SELF): Define if not already defined. + (get_runtime): Use RUSAGE_SELF as argument 1 of getrusage call. + +2015-06-01 Jason Merrill + + * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor + extended qualifier. + +2015-05-22 Yunlian Jiang + + * configure.ac: Add AC_GNU_SOURCE. + * Makefile.in (COMPILE.c): Add -D_GNU_SOURCE. + * configure, config.in: Rebuild. + * floatformat.c (_GNU_SOURCE): Don't define if already defined. + +2015-05-16 Iain Buclaw + + * d-demangle.c (dlang_symbol_kinds): New enum. + (dlang_parse_symbol): Update signature. Handle an ambiguity between + pascal functions and template value arguments. Only check for a type + if parsing a function, or at the top level. Return failure if the + entire symbol was not successfully demangled. + (dlang_identifier): Update signature. Handle an ambiguity between two + adjacent digits in a mangled symbol string. + (dlang_type): Update call to dlang_parse_symbol. + (dlang_template_args): Likewise. + (dlang_parse_template): Likewise. + (dlang_demangle): Likewise. + * testsuite/d-demangle-expected: Fix bad tests found, and add problematic + examples to the unittests. + +2015-05-16 Iain Buclaw + + * d-demangle.c (dlang_template_args): Skip over specialized template + parameters in mangled symbol. + * testsuite/d-demangle-expected: Add coverage and unittest for specialized + template parameters. + +2015-05-16 Iain Buclaw + + * d-demangle.c (dlang_type): Handle cent and ucent types. + * testsuite/d-demangle-expected: Add coverage tests for cent and ucent. + +2015-05-16 Iain Buclaw + + * d-demangle.c (dlang_attributes): Handle return attributes, ignoring + return parameters in the mangled string. Return NULL if have encountered + an unknown attribute. + (dlang_function_args): Handle return parameters in the mangled string. + * testsuite/d-demangle-expected: Add coverage tests for functions with + return parameters and return attributes. + +2015-05-16 Iain Buclaw + + * d-demangle.c (dlang_identifier): Check encoded length of identifier + to verify strncmp matches entire string. + * testsuite/d-demangle-expected: Fix wrong test for postblit symbol. + +2015-05-16 Iain Buclaw + + * d-demangle.c (dlang_type_modifiers): New function. + (dlang_type_modifier_p): New function. + (dlang_call_convention_p): Ignore any kind of type modifier. + (dlang_type): Handle and emit the type modifier after delegate types. + (dlang_parse_symbol): Handle and emit the type modifier after the symbol. + * testsuite/d-demangle-expected: Add coverage tests for all valid + usages of function symbols with type modifiers. + +2015-05-16 Iain Buclaw + + * d-demangle.c (dlang_call_convention): Return NULL if have reached the + end of the symbol, but expected something to read. + (dlang_attributes): Likewise. + (dlang_function_type): Likewise. + (dlang_type): Likewise. + (dlang_identifier): Likewise. + (dlang_value): Likewise. + +2015-05-16 Iain Buclaw + + * d-demangle.c (dlang_parse_string): Represent embedded whitespace or + non-printable characters as hex or escape sequences. + * testsuite/d-demangle-expected: Add test for templates with tabs and + newlines embedded into the signature. + +2015-05-08 Joel Brobecker + + * mkstemps.c: #include if HAVE_TIME_H is defined + but not HAVE_SYS_TIME_H. + +2015-04-22 Eli Zaretskii + + * setenv.c : Declare only if not a macro. + +2015-04-14 Max Ostapenko + + * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS. + +2015-04-10 Jakub Jelinek + Iain Sandoe + + PR target/65351 + * configure: Regenerate. + +2015-04-07 Jakub Jelinek + Iain Sandoe + + PR target/65351 + * configure: Regenerate. + +2015-01-19 Eli Zaretskii + + * strerror.c : Declare only if they aren't + macros. + +2014-12-24 Uros Bizjak + Ben Elliston + Manuel Lopez-Ibanez + + * xasprintf.c: New file. + * Makefile.in (CFILES): Add xasprintf.c. + (REQUIRED_OFILES): Add xasprintf.$(objext). + (xasprintf.$(objext)): New target. + * functions.texi: Regenerate. + +2014-12-11 Uros Bizjak + Ben Elliston + Manuel Lopez-Ibanez + + * xvasprintf.c: New file. + * vprintf-support.h: Likewise. + * vprintf-support.c: Likewise. + * Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c. + (REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext). + (vprintf-support.$(objext), xvasprintf.$(objext)): New targets. + (vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h. + * functions.texi: Regenerate. + * vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size. + +2014-11-22 John David Anglin + + PR other/63694 + * configure.ac: Check for strtol, strtoul, strtoll and strtoull + declarations. + * configure: Regenerated. + +2014-11-12 Kirill Yukhin + + * testsuite/test-strtol.c (run_tests): Cast strtol return to + unsigned long. + +2014-11-11 Anthony Brandon + Manuel López-Ibáñez + + PR driver/36312 + * filename_cmp.c (canonical_filename_eq): New function to check if + file names are the same. + * functions.texi: Updated with documentation for new function. + +2014-11-11 David Malcolm + + * ChangeLog.jit: New. + +2014-11-05 Rainer Orth + + * sigsetmask.c (_POSIX_SOURCE): Remove. + +2014-10-28 Yury Gribov + + * strtoll.c: New file. + * strtoull.c: New file. + * configure.ac: Add long long checks. Add harness for strtoll and + strtoull. Check decls for strtol, strtoul, strtoll, strtoull. + * Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull. + * config.in: Regenerate. + * configure: Regenerate. + * functions.texi: Regenerate. + * testsuite/Makefile.in (check-strtol): New rule. + (test-strtol): Likewise. + (mostlyclean): Clean up strtol test. + * testsuite/test-strtol.c: New test. + +2014-10-15 David Malcolm + + * choose-temp.c (choose_tmpdir): Remove now-redundant local + copy of prototype. + * functions.texi: Regenerate. + * make-temp-file.c (choose_tmpdir): Convert return type from + char * to const char * - given that this returns a pointer to + a memoized allocation, the caller must not touch it. + +2014-10-14 Joel Brobecker + + * d-demangle.c: Replace strtold with strtod in global comment. + (strtold): Remove declaration. + (strtod): New declaration. + (dlang_parse_real): Declare value as double instead of long + double. Replace call to strtold by call to strtod. + Update format in call to snprintf. + +2014-09-26 Jason Merrill + + * cp-demangle.c (d_substitution): Handle abi tags on abbreviation. + +2014-09-26 Max Ostapenko + + * pex-common.h (struct pex_funcs): Add new parameter for open_write field. + * pex-unix.c (pex_unix_open_write): Add support for new parameter. + * pex-djgpp.c (pex_djgpp_open_write): Likewise. + * pex-win32.c (pex_win32_open_write): Likewise. + * pex-common.c (pex_run_in_environment): Likewise. + +2014-09-23 Iain Buclaw + + * Makefile.in (CFILES): Add d-demangle.c. + (REQUIRED_OFILES): Add d-demangle.o. + * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case. + (cplus_demangle): Likewise. + * d-demangle.c: New file. + * testsuite/Makefile.in (really-check): Add check-d-demangle. + * testsuite/d-demangle-expected: New file. + +2014-09-19 Ian Lance Taylor + + * simple-object-elf.c (simple_object_elf_write_ehdr): Correctly + handle objects with more than SHN_LORESERVE sections. + (simple_object_elf_write_shdr): Add sh_link parameter. + (simple_object_elf_write_to_file): Correctly handle objects with + more than SHN_LORESERVE sections. + +2014-08-29 Andrew Burgess + + * cp-demangle.c (d_dump): Only access field from s_fixed part of + the union for DEMANGLE_COMPONENT_FIXED_TYPE. + (d_count_templates_scopes): Likewise. + +2014-08-13 Gary Benson + + * testsuite/demangler-fuzzer.c: New file. + * testsuite/Makefile.in (fuzz-demangler): New rule. + (demangler-fuzzer): Likewise. + (mostlyclean): Clean up demangler fuzzer. + +2014-06-11 Andrew Burgess + + * cplus-dem.c (do_type): Call string_delete even if the call to + demangle_template fails. + +2014-06-01 Ray Donnelly + + * pex-win32.c (argv_to_cmdline): Don't quote + args unnecessarily + +2014-05-28 Pedro Alves + + * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM + and DEMANGLE_COMPONENT_NUMBER. + +2014-05-22 Thomas Schwinge + + * testsuite/demangle-expected: Fix last commit. + +2014-05-14 Andrew Burgess + + * cplus-dmem.c (internal_cplus_demangle): Free any resources + allocated by possible previous call to gnu_special. + (squangle_mop_up): Reset pointers to NULL after calling free. + * testsuite/demangle-expected: New test case. + +2014-05-08 Gary Benson + + * cp-demangle.c (struct d_component_stack): New structure. + (struct d_print_info): New field component_stack. + (d_print_init): Initialize the above. + (d_print_comp_inner): Renamed from d_print_comp. + Do not restore template stack if it would cause a loop. + (d_print_comp): New function. + * testsuite/demangle-expected: New test cases. + +2014-04-17 Jakub Jelinek + + PR sanitizer/56781 + * maint-tool: Also emit rule for noasan/ subdirectory. + * configure.ac (NOASANFLAG): Set and substitute. + * Makefile.in: Regenerated. + (NOASANFLAG): Set. + (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic + subdir. + (stamp-noasandir): New goal. + * configure: Regenerated. + +2014-04-01 Richard Biener + + * simple-object.c (simple_object_internal_write): Handle + EINTR and short writes. + +2014-03-28 Richard Biener + + * simple-object.c (simple_object_internal_read): Handle + EINTR and short reads. + +2014-03-13 Uros Bizjak + + * regex.c (bzero) [!_LIBC]: Define without coma expression. + (regerror): Cast the call to memcpy to (void) to avoid unused + value warnings. + +2014-01-28 Thomas Schwinge + + * cp-demangle.c (d_demangle_callback): Put an abort call in place, + to help the compiler. + +2014-01-21 Tom Tromey + + * _doprint.c (checkit): Use stdarg, not VA_* macros. + * asprintf.c (asprintf): Use stdarg, not VA_* macros. + * concat.c (concat_length, concat_copy, concat_copy2, concat) + (reconcat): Use stdarg, not VA_* macros. + * snprintf.c (snprintf): Use stdarg, not VA_* macros. + * vasprintf.c (checkit): Use stdarg, not VA_* macros. + * vsnprintf.c (checkit): Use stdarg, not VA_* macros. + +2014-01-06 Mike Frysinger + + PR other/56780 + * configure.ac: Delete target_header_dir assignment. + * configure: Regenerated. + +2014-01-06 Gary Benson + + * cp-demangle.c (struct d_print_info): New fields + next_saved_scope, copy_templates, next_copy_template and + num_copy_templates. + (d_count_templates): New function. + (d_print_init): New parameter "dc". + Estimate numbers of templates and scopes required. + (d_print_free): Removed function. + (cplus_demangle_print_callback): Allocate stack for + templates and scopes. Removed call to d_print_free. + (d_copy_templates): Removed function. + (d_save_scope): New function. + (d_get_saved_scope): Likewise. + (d_print_comp): Replace state saving/restoring code with + calls to d_save_scope and d_get_saved_scope. + +2013-12-23 Bill Maddox + + * cp-demangle.c (cplus_demangle_fill_ctor,cplus_demangle_fill_dtor): + Handle unified ctor/dtor. + (d_ctor_dtor_name): Handle unified ctor/dtor. + +2013-11-22 Cary Coutant + + PR other/59195 + * cp-demangle.c (struct d_info_checkpoint): New struct. + (struct d_print_info): Add current_template field. + (d_operator_name): Set flag when processing a conversion + operator. + (cplus_demangle_type): When processing for + a conversion operator, backtrack if necessary. + (d_expression_1): Renamed from d_expression. + (d_expression): New wrapper around d_expression_1. + (d_checkpoint): New function. + (d_backtrack): New function. + (d_print_init): Initialize current_template. + (d_print_comp): Set current_template. + (d_print_cast): Put current_template in scope for + printing conversion operator name. + (cplus_demangle_init_info): Initialize is_expression and + is_conversion. + * cp-demangle.h (struct d_info): Add is_expression and + is_conversion fields. + * testsuite/demangle-expected: New test cases. + +2013-11-15 Andreas Schwab + + * configure: Regenerate. + +2013-11-12 Uros Bizjak + + * cp-demangle.c (d_copy_templates): Cast result of malloc + to (struct d_print_template *). + (d_print_comp): Cast result of realloc to (struct d_saved scope *). + +2013-10-29 Marc Glisse + + PR tree-optimization/58689 + * concat.c: Remove note about xmalloc. + +2013-10-27 Gerald Pfeifer + + * testsuite/test-demangle.c: Include unistd.h. + +2013-10-25 Gary Benson + + * cp-demangle.c (struct d_saved_scope): New structure. + (struct d_print_info): New fields saved_scopes and + num_saved_scopes. + (d_print_init): Initialize the above. + (d_print_free): New function. + (cplus_demangle_print_callback): Call the above. + (d_copy_templates): New function. + (d_print_comp): New variables saved_templates and + need_template_restore. + [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]: + Capture scope the first time the component is traversed, and use the + captured scope for subsequent traversals. + * testsuite/demangle-expected: Add regression test. + +2013-10-23 Gerald Pfeifer + + * testsuite/test-expandargv.c: Include unistd.h. + +2013-10-15 David Malcolm + + * configure.ac: If --enable-host-shared, use -fPIC. + * configure: Regenerate. + +2013-10-11 Paul Pluzhnikov + + * cp-demangle.c (d_name): Demangle local-source-names. + * testsuite/demangle-expected: New test. + +2013-09-10 Paolo Carlini + + PR bootstrap/58386 + Revert: + + 2013-09-10 Gary Benson + + * cp-demangle.c: Include hashtab.h. + (struct d_print_info): New field saved_scopes. + (d_print_init): Initialize the above. + (d_print_free): New function. + (cplus_demangle_print_callback): Call the above. + (struct d_saved_scope): New structure. + (d_store_scope): New function. + (d_free_scope) Likewise. + (d_restore_scope) Likewise. + (d_hash_saved_scope) Likewise. + (d_equal_saved_scope) Likewise. + (d_print_comp): New variable saved_scope. + [DEMANGLE_COMPONENT_REFERENCE, + DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first + time the component is traversed, and use the captured scope for + subsequent traversals. + * testsuite/demangle-expected: Add regression test. + +2013-09-10 Gary Benson + + * cp-demangle.c: Include hashtab.h. + (struct d_print_info): New field saved_scopes. + (d_print_init): Initialize the above. + (d_print_free): New function. + (cplus_demangle_print_callback): Call the above. + (struct d_saved_scope): New structure. + (d_store_scope): New function. + (d_free_scope) Likewise. + (d_restore_scope) Likewise. + (d_hash_saved_scope) Likewise. + (d_equal_saved_scope) Likewise. + (d_print_comp): New variable saved_scope. + [DEMANGLE_COMPONENT_REFERENCE, + DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first + time the component is traversed, and use the captured scope for + subsequent traversals. + * testsuite/demangle-expected: Add regression test. + +2013-08-20 Alan Modra + + * floatformat.c (floatformat_ibm_long_double): Rename to.. + (floatformat_ibm_long_double_big): ..this. + (floatformat_ibm_long_double_little): New. + +2013-07-09 Tristan Gingold + + * makefile.vms (OBJS): Add dwarfnames.obj + +2013-05-31 Matt Burgess + + PR other/56780 + * configure.ac: Move test for --enable-install-libiberty + outside of the 'with_target_subdir' test so that it actually gets + run. Add output messages to show the test result. + * configure: Regenerate. + * Makefile.in (install_to_libdir): Place the + installation of the libiberty library in the same guard as that + used for the headers to prevent it being installed unless + requested via --enable-install-libiberty. + +2013-05-06 David Edelsohn + Peter Bergner + Segher Boessenkool + Jakub Jelinek + + * hashtab.c (hash_pointer): Remove conditional and avoid + unexecuted shift equal to wordsize. + +2013-04-22 Andi Kleen + + * hashtab.c (hash_pointer): Move to end of file and reimplement. + +2013-04-03 Jason Merrill + + * cp-demangle.c (cplus_demangle_type): Fix function quals. + (d_pointer_to_member_type): Simplify. + + Demangle C++11 ref-qualifier. + * cp-demangle.c (d_ref_qualifier): New. + (d_nested_name, d_function_type): Use it. + (d_parmlist): Don't get confused by a ref-qualifier. + (cplus_demangle_type): Reorder ref-qualifier. + (d_pointer_to_member_type): Likewise. + (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and + DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS. + (d_make_comp, has_return_type, d_encoding): Likewise. + (d_print_comp, d_print_mod_list, d_print_mod): Likewise. + (d_print_function_type, is_ctor_or_dtor): Likewise. + +2013-03-27 Kai Tietz + + * configure: Regenerated. + +2013-03-06 Tobias Burnus + + * libiberty.texi: Update comment, remove lowersections. + * obstacks.texi: Regenerate. + +2013-03-05 Jakub Jelinek + + PR middle-end/56526 + * simple-object-mach-o.c (simple_object_mach_o_segment): Initialize + wrapper_sect_offset to avoid a warning. + +2013-03-01 Andreas Schwab + + * obstacks.texi (Obstacks): Trim @node to only contain the + node name. + * libiberty.texi (Obstacks): Lower section. + +2013-02-14 Jason Merrill + + * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG. + (d_print_comp): Likewise. + 2013-02-09 Jakub Jelinek PR other/56245 @@ -525,12 +1430,12 @@ * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete. * configure: Regenerate. -2010-10-07 Andi Kleen +2010-10-07 Andi Kleen * configure: Regenerate. * configure.ac: Turn PR_SET_NAME check into link check. -2010-10-06 Andi Kleen +2010-10-06 Andi Kleen * Makefile.in (CFILES): Add setproctitle. (CONFIGURED_OFILES): Add setproctitle. @@ -738,7 +1643,6 @@ Daniel Jacobowitz Pedro Alves - libiberty/ * argv.c (consume_whitespace): New function. (only_whitespace): New function. (buildargv): Always use ISSPACE by calling consume_whitespace. @@ -939,8 +1843,8 @@ 2009-04-07 Arnaud Patard - * libiberty/configure.ac: Fix Linux/MIPS matching rule. - * libiberty/configure: Regenerate. + * configure.ac: Fix Linux/MIPS matching rule. + * configure: Regenerate. 2009-03-27 Ian Lance Taylor @@ -1103,8 +2007,8 @@ 2008-04-21 Aurelien Jarno - * libiberty/configure.ac: use -fPIC on Linux/MIPS hosts. - * libiberty/configure: Regenerate. + * configure.ac: use -fPIC on Linux/MIPS hosts. + * configure: Regenerate. 2008-04-18 Kris Van Hees @@ -1310,7 +2214,7 @@ that are locale-independent. * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h. -2007-04-11 Thomas Neumann tneumann@users.sourceforge.net +2007-04-11 Thomas Neumann * argv.c: Use ANSI C declarations. * make-relative-prefix.c: Likewise. @@ -2882,7 +3786,7 @@ 2003-12-15 Brendan Kehoe - * libiberty/Makefile.in (floatformat.o): Add dependency on + * Makefile.in (floatformat.o): Add dependency on config.h to accompany change of 2003-12-03. 2003-12-15 Ian Lance Taylor @@ -3578,7 +4482,7 @@ 2002-10-06 Andreas Jaeger - * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded + * cplus-dem.c (ada_demangle): Get rid of unneeded variable and of strict-aliasing warning. (grow_vect): Use char as first parameter. @@ -3846,7 +4750,7 @@ 2002-01-31 Adam Megacz - * gcc/libiberty/configure.in: Treat mingw the same as cywin + * configure.in: Treat mingw the same as cywin wrt HAVE_SYS_ERRLIST. 2002-01-30 Phil Edwards @@ -4354,8 +5258,8 @@ Tue Aug 21 12:35:04 2001 Christopher Faylor 2001-03-10 Neil Booth John David Anglin - * libiberty/lbasename.c: New file. - * libiberty/Makefile.in: Update for lbasename. + * lbasename.c: New file. + * Makefile.in: Update for lbasename. 2001-03-06 Zack Weinberg @@ -4728,13 +5632,13 @@ Tue Aug 21 12:35:04 2001 Christopher Faylor 2000-08-24 Greg McGary - * libiberty/random.c (end_ptr): Revert previous change. + * random.c (end_ptr): Revert previous change. 2000-08-24 Greg McGary - * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname, + * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname, demangle_expression, demangle_function_name): Use ARRAY_SIZE. - * libiberty/random.c (end_ptr): Likewise. + * random.c (end_ptr): Likewise. 2000-08-23 Alex Samuel