OSDN Git Service

* setproctitle.c (setproctitle): Use "GNU/Linux" in comment.
[pf3gnuchains/gcc-fork.git] / libiberty / ChangeLog
index f8ba8f7..6a93998 100644 (file)
@@ -1,3 +1,474 @@
+2011-10-28  Ian Lance Taylor  <iant@google.com>
+
+       * setproctitle.c (setproctitle): Use "GNU/Linux" in comment.
+
+2011-10-26  Iain Sandoe  <iains@gcc.gnu.org>
+
+       PR target/48108
+       * simple-object-mach-o.c  (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX,
+       GNU_WRAPPER_NAMES): New macros.
+       (simple_object_mach_o_segment): Handle wrapper scheme.
+       (simple_object_mach_o_write_section_header): Allow the segment name
+       to be supplied.
+       (simple_object_mach_o_write_segment): Handle wrapper scheme.  Ensure
+       that the top-level segment name in the load command is empty.
+       (simple_object_mach_o_write_to_file): Determine the number of
+       sections during segment output, use that in writing the header.
+
+2011-10-10  Ian Lance Taylor  <iant@google.com>
+
+       PR c++/48665
+       * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a
+       function type, change them to apply to the "this" parameter.
+       * testsuite/demangle-expected: Add test case.
+
+2011-09-28  Doug Evans  <dje@google.com>
+
+       * timeval-utils.c: New file.
+       * Makefile.in (CFILES): Add it.
+       (REQUIRED_OFILES): Add timeval-utils.$(objext).
+       (INSTALLED_HEADERS): Add timeval-utils.h.
+       (timeval-utils.$(objext)): Add rule.
+
+       * argv.c (countargv): New function.
+
+2011-09-23  Cary Coutant  <ccoutant@google.com>
+
+       PR 40831
+       * cp-demangle.c (d_make_comp): Add new component type.
+       (cplus_demangle_mangled_name): Check for clone suffixes.
+       (d_parmlist): Don't error out if we see '.'.
+       (d_clone_suffix): New function.
+       (d_print_comp): Print info for clone suffixes.
+       * testsuite/demangle-expected: Add new testcases.
+
+2011-09-23  Ian Lance Taylor  <iant@google.com>
+           Pierre Vittet  <piervit@pvittet.com>
+
+       * md5.c (md5_process_bytes): Correct handling of unaligned
+       buffer.
+
+2011-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * aclocal.m4: Include ../config/picflag.m4.
+       * configure.ac (GCC_PICFLAG): Call it.
+       (enable_shared): Clear PICFLAG unless shared.
+       * configure: Regenerate.
+
+2011-08-12  Steve Ellcey  <sje@cup.hp.com>
+
+       * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer.
+
+2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
+
+       * testsuite/test-expandargv.c (writeout_test): Check result of fwrite.
+
+2011-08-01  Jason Merrill  <jason@redhat.com>
+
+       PR c++/49932
+       * cp-demangle.c (d_prefix): Handle decltype.
+       * testsuite/demangle-expected: Test it.
+
+2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/demangle-expected: Remove an extra line.
+
+2011-07-26  Ian Lance Taylor  <iant@google.com>
+
+       * cp-demangle.c (d_print_init): Initialize pack_index field.
+       (d_print_comp): Check for NULL template argument.
+       * testsuite/demangle-expected: Add test case.
+
+2011-07-22  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       PR target/49817
+       * stack-limit.c: Include <stdint.h>.
+
+2011-07-22  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/49756
+       * stack-limit.c: New file.
+       * Makefile.in: Regenerate deps.
+       (CFILES): Add stack-limit.c.
+       (REQUIRED_OFILES): Add ./stack-limit.$(objext).
+       * configure.ac (checkfuncs): Add getrlimit and setrlimit.
+       (AC_CHECK_FUNCS): Likewise.
+       * configure: Regenerated.
+       * config.in: Regenerated.
+
+2011-07-04  Jason Merrill  <jason@redhat.com>
+
+       * cp-demangle.c (d_expression): Handle 'this'.
+       (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise.
+
+2011-07-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
+       HAVE_CASE_INSENSITIVE_FILE_SYSTEM.
+
+2011-07-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       PR debug/49408
+       * cp-demangle.c (d_print_comp): Suppress argument list for function
+       references by the '&' unary operator.  Keep also already processed
+       variant without the argument list.  Suppress argument list types for
+       function call used in an expression.
+       * testsuite/demangle-expected: Fix excessive argument list types in
+       `test for typed function in decltype'.  New testcase for no argument
+       list types printed.  3 new testcases for function references by the
+       '&' unary operator..
+
+2011-06-20  Jason Merrill  <jason@redhat.com>
+
+       PR c++/37089
+       * cp-demangle.c (d_print_comp): Handle reference smashing.
+       * testsuite/demangle-expected: Test it.
+
+2011-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>:
+       Suppress d_print_mod for DMGL_RET_POSTFIX.
+       * testsuite/demangle-expected: New testcases for --ret-postfix.
+
+2011-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do
+       not pass DMGL_RET_POSTFIX or DMGL_RET_DROP.  Support DMGL_RET_DROP.
+       * testsuite/demangle-expected: New testcases for --ret-drop.
+       * testsuite/test-demangle.c: Document --ret-drop in a comment.
+       (main): New variable ret_drop, fill it, call cplus_demangle with it.
+
+2011-06-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * cp-demangle.c (struct d_print_info): Remove field options.
+       (d_print_init): Remove parameter options.
+       (cplus_demangle_print_callback): Update all the callers.
+       (d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type)
+       (d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr):
+       Add parameter options, update all the callers.
+
+2011-04-20  Jim Meyering  <meyering@redhat.com>
+
+       * cp-demint.c (cplus_demangle_v3_components): Remove useless
+       if-before-free.
+       * cplus-dem.c (squangle_mop_up): Likewise.
+       (delete_non_B_K_work_stuff): Likewise.
+       * pex-common.c (pex_free): Likewise.
+       * pex-msdos.c (pex_msdos_cleanup): Likewise.
+       * pex-win32.c (mingw_rootify, msys_rootify): Likewise.
+       (win32_spawn): Likewise.
+       * regex.c (FREE_VAR, weak_alias): Likewise.
+       * spaces.c (spaces): Likewise.
+
+2011-04-10  Jim Meyering  <meyering@redhat.com>
+
+       Avoid memory overrun in a test leading to potential double-free.
+       * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error:
+       i.e., do copy the trailing NUL byte.
+
+2011-03-31  Tristan Gingold  <gingold@adacore.com>
+
+       * makefile.vms (OBJS): Add filename_cmp.obj
+
+2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
+
+       * filename_cmp.c (filename_ncmp): New function.
+       * functions.texi: Regenerated.
+
+2011-02-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * splay-tree.c: Escape wrapping newlines in texinfo markup
+       with '@', to fix function declaration output rendering.
+       * gather-docs: Relax and improve macro name matching to actually
+       match all current names and to allow input line wrapping.
+       * bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
+       hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
+       memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
+       pexecute.txh, random.c, setenv.c, setproctitle.c,
+       simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
+       strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
+       Wrap long texinfo input lines.
+       * functions.texi: Regenerate.
+
+2011-01-18  Mike Frysinger  <vapier@gentoo.org>
+
+       * .gitignore: New file.
+
+2010-12-08  Doug Evans  <dje@google.com>
+
+       * splay-tree.c (splay_tree_foreach_helper): Remove arg `sp',
+       all callers updated.  Rewrite to be non-recursive.
+
+2010-11-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.
+
+2010-11-20  Anthony Green  <green@moxielogic.com>
+
+       * configure.ac: Turn PR_SET_NAME link test into a test for
+       sys/prctl.h.
+       * configure, config.in: Rebuilt.
+       * setproctitle.c: Test for HAVE_SYS_PRCTL_H.
+       (setproctitle) Test for PR_SET_NAME definition.
+
+2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       PR other/46202
+       * Makefile.in (install-strip): New phony target.
+       (install): Also mark as phony.
+
+2010-11-16  Ian Lance Taylor  <iant@google.com>
+
+       * simple-object.c (simple_object_attributes_merge): Rename from
+       simple_object_attributes_compare.  Call merge field.
+       * simple-object-common.h (struct simple_object_functions): Rename
+       attributes_compare field to attribute_merge.
+       * simple-object-elf.c (EM_SPARC): Define.
+       (EM_SPARC32PLUS): Define.
+       (simple_object_elf_attributes_merge): Renamed from
+       simple_object_elf_attributes_compare.  Permit EM_SPARC and
+       EM_SPARC32PLUS objects to be merged.
+       (simple_object_elf_functions): Update function name.
+       * simple-object-coff.c (simple_object_coff_attributes_merge):
+       Rename from simple_object_coff_attributes_compare.
+       (simple_object_coff_functions): Update function name.
+       * simple-object-mach-o.c (simple_object_mach_o_attributes_merge):
+       Renamed from simple_object_mach_o_attributes_compare.
+       (simple_object_mach_o_functions): Update function name.
+
+2010-11-16  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR other/42670
+       PR binutils/11137
+       * cp-demangle.c (d_make_demangle_mangled_name): New.
+       (d_demangle_callback): Use it on DCT_GLOBAL_XTORS.
+
+       * testsuite/demangle-expected: Updated.
+
+2010-11-14  Kai Tietz  <kai.tietz@onevision.com>
+
+       * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading
+       offset.
+
+2010-11-12  Ian Lance Taylor  <iant@google.com>
+
+       PR other/46332
+       * cp-demangle.c (d_print_function_type): Don't print parentheses
+       if there are no modifiers to print.
+       * testsuite/demangle-expected: Tweak one test case, add another.
+
+2010-11-04  Richard Henderson  <rth@redhat.com>
+
+       * configure.ac (AC_CHECK_HEADERS): Add process.h.
+       (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
+       (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
+       * configure, config.in: Rebuild.
+       * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
+       [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
+
+2010-11-02  Ian Lance Taylor  <iant@google.com>
+           Dave Korn  <dave.korn.cygwin@gmail.com>
+           Iain Sandoe  <iains@gcc.gnu.org>
+
+       * simple-object.c: New file.
+       * simple-object-common.h: New file.
+       * simple-object-elf.c: New file.
+       * simple-object-mach-o.c: New file.
+       * simple-object-coff.c: New file.
+       * simple-object.txh: New file.
+       * configure.ac: Add AC_TYPE_SSIZE_T.
+       * Makefile.in: Rebuild dependencies.
+       (CFILES): Add simple-object.c, simple-object-coff,
+       simple-object-elf.c, and simple-object-mach-o.c.
+       (REQUIRED_OFILES): Add corresponding object files.
+       * configure: Rebuild.
+       * config.in: Rebuild.
+       * functions.texi: Rebuild.
+
+2010-10-29  Ian Lance Taylor  <iant@google.com>
+
+       * setproctitle.c: Add space after function name in @deftypefn
+       comment.
+       * functions.texi: Rebuild.
+
+2010-10-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete.
+       * configure: Regenerate.
+
+2010-10-07  Andi Kleen <ak@linux.intel.com>
+
+       * configure: Regenerate.
+       * configure.ac: Turn PR_SET_NAME check into link check.
+
+2010-10-06  Andi Kleen <ak@linux.intel.com>
+
+       * Makefile.in (CFILES): Add setproctitle.
+       (CONFIGURED_OFILES): Add setproctitle.
+       (setproctitle): Add rule.
+       * config.in: Regenerate.
+       * configure: Regenerate.
+       * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle.
+       * setproctitle.c: Add file.
+       * functions.texi: Regenerate.
+
+2010-09-22 Tristan Gingold  <gingold@adacore.com>
+
+       * cplus-dem.c (ada_demangle): Add comments.
+       Handle stream and controlled type operations.
+       Decoding of some uppercase letters moved before separators.
+       * testsuite/demangle-expected: Add tests.
+
+2010-09-10  James Lyon  <jameslyon0@googlemail.com>
+
+       http://sourceware.org/bugzilla/show_bug.cgi?id=11572
+       * cp-demangle.c (d_find_pack): Add case for
+       DEMANGLE_COMPONENT_LAMBDA.
+       * testsuite/demangle-expected: Add regression test.
+
+2010-09-08  Tristan Gingold  <gingold@adacore.com>
+
+       PR 44001
+       * maint-tool (missing): Fix pattern for object file.
+       (deps): Use $(objext) for object extension.
+       * Makefile.in (objext): New variable.
+       Replace all occurences of .o with .$(objext)
+       Regenerate with maint-deps
+       * configure.ac (pexecute): Set to the basename.
+       * configure: Regenerate.
+
+2010-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * pex-common.c (pex_read_err): Set stderr_pipe to -1 if a
+       corresponding stream has been opened.
+       (pex_free): Close pipe file descriptors corresponding to child's
+       stdout and stderr before waiting.
+
+2010-08-13  Nick Clifton  <nickc@redhat.com>
+
+       * argv.c (expandargv): Limit the number of times that response
+       files are opened in order to prevent infinite recursion.
+
+2010-07-21  Pascal Obry  <obry@adacore.com>
+
+       * make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed.
+
+2010-07-06  Ken Werner  <ken.werner@de.ibm.com>
+
+       * floatformat.c (floatformat_ieee_half_big): New variable.
+       (floatformat_ieee_half_little): Likewise.
+
+2010-06-14  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice).
+       Update copyright years.
+       Move to GFDL 1.3.
+
+2010-06-10  Jakub Jelinek  <jakub@redhat.com>
+
+       PR other/43838
+       * cp-demangle.c (struct d_print_info): Add flush_count field.
+       (d_print_init): Initialize it to 0.
+       (d_print_flush): Increment it.
+       (d_print_comp): If needed flush before appending ", ".  Only
+       decrement dpi->len if no flushes happened during the recursive
+       call.
+       * testsuite/demangle-expected: Add a test for this.
+
+2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
+
+       * splay-tree.c: Update copyright years.
+       (splay_tree_new_typed_alloc): New.
+       (splay_tree_new_with_allocator): Use it.
+
+       * hashtab.c: Update copyright years.
+       (htab_create_typed_alloc): New.
+       (htab_create_alloc): Use it.
+
+       * functions.texi: Regenerate.
+
+2010-06-03  Joern Rennecke <joern.rennecke@embecosm.com>
+           Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       PR bootstrap/42798
+       * configure.ac: Check for declaration of 'basename(char *)'.
+       * configure: Regenerate.
+
+2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
+
+       * testsuite/demangle-expected: Add tests for __int128
+       and unsigned __int128 types.
+
+2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
+           Jason Merrill  <jason@redhat.com>
+
+       * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr.
+       (cplus_demangle_type): Handle nullptr.
+       * testsuite/demangle-expected: Test it.
+
+2010-04-23  Pedro Alves  <pedro@codesourcery.com>
+
+       * lbasename.c (lbasename): Split into ...
+       (unix_lbasename, dos_basename): ... these.
+       (lbasename): ... and reimplement on top of them.
+       * Makefile.in (lbasename.o): Add dependency on
+       $(INCDIR)/filenames.h.
+
+2010-04-07  Jakub Jelinek  <jakub@redhat.com>
+
+       * regex.c (byte_re_match_2_internal): Avoid set but not used
+       warning.
+
+2010-03-22  Jason Merrill  <jason@redhat.com>
+
+       * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
+
+2010-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * Makefile.in (all): Do not use exec.
+
+2010-02-04  Tom Tromey  <tromey@redhat.com>
+
+       * testsuite/demangle-expected: Add missing --format=gnu-v3.
+
+2010-02-03  Jason Merrill  <jason@redhat.com>
+
+       * cp-demangle.c (d_expression): Handle dependent operator name.
+
+       PR c++/12909
+       * cp-demangle.c (d_number_component, d_vector_type): New.
+       (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors.
+
+2010-01-25  Ian Lance Taylor  <iant@google.com>
+
+       * cp-demangle.c (cplus_demangle_type): Check for invalid type
+       after "DF".
+       * testsuite/demangle-expected: Add test.
+
+2010-01-20  Jason Merrill  <jason@redhat.com>
+
+       PR c++/42338
+       * cp-demangle.c (d_print_comp): Fix array index printing.
+
+2010-01-11  Tristan Gingold  <gingold@adacore.com>
+
+       * cplus-dem.c (ada_demangle): Remove prototype.
+       (grow_vect): Removed.
+       (ada_demangle): Rewritten.
+       (cplus_demangle): Fix indentation.
+       * testsuite/demangle-expected: Add tests for Ada.
+
+2010-01-09  Ian Lance Taylor  <iant@google.com>
+
+       PR other/42230
+       * cp-demangle.c (d_demangle): Return dgs.alc on success.
+
+2010-01-04  Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
+
+       PR target/42316
+       * configure.ac (PICFLAG): Use -fPIC on SH hosts.
+       * configure: Regenerate.
+
 2009-12-07  Doug Evans  <dje@google.com>
 
        * pex-unix.c (pex_unix_exec_child): Save/restore environ.
 
 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
 
-        * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
+       * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
 
 2009-05-29  Michael Matz  <matz@suse.de>
 
 
 2009-04-29  Julian Brown  <julian@codesourcery.com>
 
-       * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.    
+       * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
        (pex_win32_exec_child): Ensure each process has only one handle open
        on pipe endpoints. Close standard input after creating child for
        symmetry with standard output/standard error.
        section, so that the native build does detect them at configure
        time.
        * configure: Regenerated.
-       
+
 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
 
-        PR target/39397
-        * pex-common.h (struct pex_obj): Store pid values as pid_t,
-        not as long (members *children and (*wait))
-        * pex-common.c (pex_run_in_environment): Likewise.
-        * pex-win32.c (pex_win32_wait): Return pid_t and properly check
-        returned pid value.
-        * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
-        * pex-msdos.c (pex_msdos_wait): Likewise.
+       PR target/39397
+       * pex-common.h (struct pex_obj): Store pid values as pid_t,
+       not as long (members *children and (*wait))
+       * pex-common.c (pex_run_in_environment): Likewise.
+       * pex-win32.c (pex_win32_wait): Return pid_t and properly check
+       returned pid value.
+       * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
+       * pex-msdos.c (pex_msdos_wait): Likewise.
 
 2009-04-07  Arnaud Patard <apatard@mandriva.com>
 
-       * libiberty/configure.ac: Fix Linux/MIPS matching rule.
-       * libiberty/configure: Regenerate.
+       * libiberty/configure.ac: Fix Linux/MIPS matching rule.
+       * libiberty/configure: Regenerate.
 
 2009-03-27  Ian Lance Taylor  <iant@google.com>
 
        with other than 1 operand.
        (d_print_comp): Handle function parameters.  Fix bug with
        function used in type of function.
-       * testsuite/demangle-expected: Upate tests.
+       * testsuite/demangle-expected: Update tests.
 
 2009-02-21  Mark Mitchell  <mark@codesourcery.com>
 
 2008-10-08  David Edelsohn  <edelsohn@gnu.org>
 
        * xstrdup.c: Include <sys/types.h> after "config.h"
+
 2008-10-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * configure.ac: Call AC_SYS_LARGEFILE.