aboutsummaryrefslogtreecommitdiff
path: root/libiberty
AgeCommit message (Collapse)AuthorFilesLines
2008-03-31cp-demangle.c (d_substitution): Correct overflow check to avoid ↵Ian Lance Taylor2-5/+13
-fstrict-overflow optimizations. * cp-demangle.c (d_substitution): Correct overflow check to avoid -fstrict-overflow optimizations. From-SVN: r133761
2008-03-27configure.ac (frags): Don't set, use frag instead.Paolo Bonzini4-46/+50
2008-03-27 Paolo Bonzini <bonzini@gnu.org> * configure.ac (frags): Don't set, use frag instead. (PICFLAG): Set here and substitute. * Makefile.in (PICFLAG): Substitute from autoconf. * configure: Regenerate. From-SVN: r133639
2008-03-25sha1.h: New file, from gnulib.Ian Lance Taylor3-5/+436
include/: * sha1.h: New file, from gnulib. libiberty/: * sha1.c: New file, from gnulib. * Makefile.in: Rebuild dependencies. (CFILES): Add sha1.c. (REQUIRED_OFILES): Add sha1.o. From-SVN: r133503
2008-03-24make-relative-prefix.c (make_relative_prefix_1): Handle NULL return from strdup.Doug Evans2-7/+10
* make-relative-prefix.c (make_relative_prefix_1): Handle NULL return from strdup. From-SVN: r133482
2008-03-13cplus-dem.c (malloc, realloc): Use void * instead of char * as return type.Seongbae Park2-2/+7
2008-03-12 Seongbae Park <seongbae.park@gmail.com> * cplus-dem.c (malloc, realloc): Use void * instead of char * as return type. From-SVN: r133181
2008-03-11md5.c (md5_process_bytes): Do not assume that memcpy will provide a return ↵Nick Clifton2-1/+7
value. * md5.c (md5_process_bytes): Do not assume that memcpy will provide a return value. From-SVN: r133107
2008-02-19re PR other/12618 (core not cleaned up by 'make distclean')Ben Elliston2-1/+7
PR other/12618 * testsuite/Makefile.in (mostlyclean): Remove any core file. From-SVN: r132405
2008-01-27demangle.h (demangle_component_type): Add DEMANGLE_COMPONENT_JAVA_RESOURCE...David Daney3-0/+145
include/ 2008-01-26 David Daney <ddaney@avtrex.com> * demangle.h (demangle_component_type): Add DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_COMPOUND_NAME, and DEMANGLE_COMPONENT_CHARACTER as new enum values. (demangle_component): Add struct s_character to union u. libiberty/ 2008-01-26 David Daney <ddaney@avtrex.com> * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_COMPOUND_NAME, and DEMANGLE_COMPONENT_CHARACTER cases. (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and DEMANGLE_COMPONENT_JAVA_RESOURCE cases. (d_make_character): New function. (d_java_resource): Same. (d_special_name): Handle "Gr" case. (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_COMPOUND_NAME, and DEMANGLE_COMPONENT_CHARACTER cases. * testsuite/demangle-expected: Add test for java resource name mangling. From-SVN: r131883
2008-01-23cplus-dem.c (demangle_function_name): Changed to return value indicating if ↵Thiago Jung Bauermann2-12/+27
a name was correctly demangled. 2008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com> * cplus-dem.c (demangle_function_name): Changed to return value indicating if a name was correctly demangled. (iterate_demangle_function): Use demangle_function_name return value. From-SVN: r131754
2008-01-19re PR other/33768 (splay-tree.c typo)Manuel López-Ibáñez2-2/+8
2008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR other/33768 * splay-tree.c (rotate_left): Fix minor typo in comment. (rotate_right): Likewise. From-SVN: r131650
2007-11-13floatformat.c (floatformat_ibm_long_double_is_valid): Fix compiler warnings.Joseph Myers2-7/+11
* floatformat.c (floatformat_ibm_long_double_is_valid): Fix compiler warnings. (floatformat_ibm_long_double): Use floatformat_ibm_long_double_is_valid. From-SVN: r130131
2007-11-08floatformat.h (struct floatformat): Add split_half field.Joseph Myers2-39/+191
include: 2007-11-07 Joseph Myers <joseph@codesourcery.com> Daniel Jacobowitz <dan@codesourcery.com> * floatformat.h (struct floatformat): Add split_half field. (floatformat_ibm_long_double): New. libiberty: 2007-11-07 Joseph Myers <joseph@codesourcery.com> Daniel Jacobowitz <dan@codesourcery.com> * floatformat.c (mant_bits_set): New. (floatformat_to_double): Use it. Note no special handling of split formats. (floatformat_from_double): Note no special handing of split formats. (floatformat_ibm_long_double_is_valid, floatformat_ibm_long_double): New. (floatformat_ieee_single_big, floatformat_ieee_single_little, floatformat_ieee_double_big, floatformat_ieee_double_little, floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f, floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext, floatformat_m68881_ext, floatformat_i960_ext, floatformat_m88110_ext, floatformat_m88110_harris_ext, floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword, floatformat_ia64_spill_big, floatformat_ia64_spill_little, floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update for addition of split_half field. Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com> From-SVN: r129977
2007-09-06pexecute.txh (pex_free): Document process killing.Tom Tromey2-1/+7
libiberty: * pexecute.txh (pex_free): Document process killing. include: * libiberty.h (pex_free): Document process killing. From-SVN: r128192
2007-08-31mangle.c (write_type): Change mangling of rvalue reference from `RR' to `O'.Doug Gregor2-1/+27
2007-08-31 Douglas Gregor <doug.gregor@gmail.com> * mangle.c (write_type): Change mangling of rvalue reference from `RR' to `O'. 2007-08-31 Douglas Gregor <doug.gregor@gmail.com> * demangle.h (enum demangle_component_type): Add DEMANGLE_COMPONENT_RVALUE_REFERENCE. 2007-08-31 Douglas Gregor <doug.gregor@gmail.com> * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_RVALUE_REFERENCE. (d_make_comp): Ditto. (cplus_demangle_type): Ditto. (d_print_comp): Ditto. (d_print_mod): Ditto. (d_print_function_type): Ditto. 2007-08-31 Douglas Gregor <doug.gregor@gmail.com> * testsuite/abi/demangle/cxx0x/rref.cc: New. From-SVN: r127999
2007-08-24[patch]: libiberty pex for _WIN64.Kai Tietz6-55/+69
From-SVN: r127761
2007-08-17make-relative-prefix.c (make_relative_prefix_1): Resource leaks.Michael Snyder2-27/+18
2007-08-17 Michael Snyder <msnyder@access-company.com> * make-relative-prefix.c (make_relative_prefix_1): Resource leaks. From-SVN: r127595
2007-08-03make-relative-prefix.c (make_relative_prefix_1): Fix resource leak.Michael Snyder2-2/+13
* make-relative-prefix.c (make_relative_prefix_1): Fix resource leak. From-SVN: r127183
2007-08-01* cp-demangle.c (d_print_comp): Guard against null.Michael Snyder2-0/+10
From-SVN: r127139
2007-07-25ternary.h: Remove.Ben Elliston3-178/+15
include/ * ternary.h: Remove. libiberty/ * Makefile.in (CFILES): Remove ternary.c. (REQUIRED_OFILES): Remove ./ternary.o. (INSTALLED_HEADERS): Remove ternary.h. (ternary.o): Remove. * ternary.c: Remove. From-SVN: r126902
2007-07-23argv.c (writeargv): Fix typo in inline documentation.DJ Delorie3-8/+23
* argv.c (writeargv): Fix typo in inline documentation. * functions.texi: Regenerate. From-SVN: r126855
2007-07-17configure.ac (target_header_dir, msdosdjgpp): Remove duplicate gettimeofday ↵DJ Delorie3-2/+8
entry. * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate gettimeofday entry. * configure: Likewise. From-SVN: r126704
2007-07-12maint-tool (deps): Output stamp-h instead of config.h.Alexandre Oliva3-80/+82
* maint-tool (deps): Output stamp-h instead of config.h. * Makefile.in: Rebuild deps. (maintainer-clean-subdir): Depend on stamp-h rather than config.h. From-SVN: r126569
2007-07-02argv.c (writeargv): Removed declaration of unused variable.Simon Baldwin2-1/+4
2007-07-02 Simon Baldwin <simonb@google.com> * argv.c (writeargv): Removed declaration of unused variable. From-SVN: r126217
2007-06-14configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.Paolo Bonzini3-2/+73
2007-06-14 Paolo Bonzini <bonzini@gnu.org> * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too. * configure: Regenerate. From-SVN: r125716
2007-06-14acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.Paolo Bonzini4-39/+36
gcc: 2007-06-14 Paolo Bonzini <bonzini@gnu.org> * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove. * aclocal.m4: Regenerate. * configure.ac: Use ACX_PROG_CC_WARNING_OPTS, ACX_PROG_CC_WARNINGS_ARE_ERRORS, ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER. * configure: Regenerate. * Makefile.in (LOOSE_WARN): Subst loose_warn. * Makefile.in (quickstrap): Build libgcc too. libiberty: 2007-06-14 Paolo Bonzini <bonzini@gnu.org> * aclocal.m4: Include config/warnings.m4. * configure.ac: Use ACX_PROG_CC_WARNING_OPTS. * configure: Regenerate. config: 2007-06-14 Paolo Bonzini <bonzini@gnu.org> * acx.m4 (ACX_CHECK_PROG_VER): Remove duplicate lines. From-SVN: r125700
2007-06-07configure.ac: Non-default multilibs can be cross compilations.Geoffrey Keating3-0/+48
* configure.ac: Non-default multilibs can be cross compilations. * configure: Regenerate From-SVN: r125536
2007-05-08libiberty.h (writeargv): Declare.Nathan Froyd2-0/+60
include/ 2007-05-07 Nathan Froyd <froydnj@codesourcery.com> * libiberty.h (writeargv): Declare. libiberty/ 2007-05-07 Nathan Froyd <froydnj@codesourcery.com> * argv.c (writeargv): New function. gcc/ 2007-05-07 Nathan Froyd <froydnj@codesourcery.com> * gcc.c (at_file_supplied): New variable. (main): Set it if we expanded argv. (do_spec_1): Pass an @-file to the linker if we were called with an @-file argument and HAVE_GNU_LD. * collect2.c (at_file_supplied): New variable. (response_file): New variable. (collect_exit): Unlink response_file if necessary. (handler): Likewise. (do_wait): Likewise. (main): Set at_file_supplied if we expanded argv. (collect_execute): Pass an @-file to subprocesses if we were called with an @-file argument. * configure.ac: Add define for HAVE_GNU_LD. * configure: Regenerate. * config.in: Regenerate. From-SVN: r124532
2007-05-06Index: libiberty/ChangeLogGeoffrey Keating3-1/+43
2007-05-04 Geoffrey Keating <geoffk@apple.com> * cp-demangle.c (d_name): Detect local-source-name. (d_prefix): Likewise. (d_unqualified_name): Implement local-source-name. Index: gcc/cp/ChangeLog 2007-05-04 Geoffrey Keating <geoffk@apple.com> PR 31775 * mangle.c (write_mangled_name): Mangle static variable names. (write_unqualified_name): Use local-source-name for namespace-scope static variables. Index: gcc/testsuite/ChangeLog 2007-05-04 Geoffrey Keating <geoffk@apple.com> PR 31775 * g++.dg/other/nested-extern.cc: New. * g++.dg/other/nested-extern-1.C: New. * g++.dg/other/nested-extern-2.C: New. From-SVN: r124467
2007-05-03filename_cmp.c: Replace include of ctype.h by include of safe-ctype.h.Joel Brobecker3-4/+13
* filename_cmp.c: Replace include of ctype.h by include of safe-ctype.h. (filename_cmp): Use TOLOWER instead of tolower for conversions that are locale-independent. * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h. From-SVN: r124399
2007-04-11argv.c: Use ANSI C declarations.Thomas Neumann3-11/+11
* argv.c: Use ANSI C declarations. * make-relative-prefix.c: Likewise. From-SVN: r123722
2007-04-06* filename_cmp.c (filename_cmp): Improve documentation.Joel Brobecker2-5/+10
From-SVN: r123537
2007-04-02* filename_cmp.c: Include "config.h".Andreas Schwab2-0/+8
From-SVN: r123425
2007-03-29filename_cmp.c: New file.Joel Brobecker4-5/+108
* filename_cmp.c: New file. * Makefile.in (CFILES): Add filename_cmp.c. (REQUIRED_OFILES): Add filename_cmp.o (filename_cmp.o): New rule. * functions.texi: Regenerate. From-SVN: r123342
2007-03-16cp-demangle.c (d_encoding): Exit early on error.Geoffrey Keating3-2/+16
* cp-demangle.c (d_encoding): Exit early on error. (d_pointer_to_member_type): Exit early if cplus_demangle_type returns NULL. (cplus_demangle_type): Likewise. * testsuite/demangle-expected: New testcase. From-SVN: r122972
2007-03-01Makefile.in: Add install-pdf target as copied from automake v1.10 rules.Brooks Moses3-2/+26
* Makefile.in: Add install-pdf target as copied from automake v1.10 rules. * testsuite/Makefile.in: Add dummy install-pdf target. From-SVN: r122438
2007-03-01re PR other/16513 (Libiberty doesn't honor the multi-os-directory settings)Peter Breitenlohner2-10/+17
PR other/16513 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR). Install headers in multilib independent location. Co-Authored-By: Eric Botcazou <ebotcazou@libertysurf.fr> From-SVN: r122430
2007-02-26configure.ac: add djgpp-specific results, so we don't have to link during a ↵DJ Delorie3-0/+43
cross compilation. * configure.ac: add djgpp-specific results, so we don't have to link during a cross compilation. * configure: Regenerated. From-SVN: r122343
2007-01-31hex.c: Fix typo.Ralf Wildenhues4-4/+10
* hex.c: Fix typo. * choose-temp.c: Likewise. * functions.texi: Regenerate. From-SVN: r121435
2007-01-31libiberty.h (PEX_STDERR_TO_PIPE): New define.Vladimir Prus5-19/+126
include/ * libiberty.h (PEX_STDERR_TO_PIPE): New define. (PEX_BINARY_ERROR): New define. (pex_read_err): New function. libiberty/ * pex-common.h (struct pex_obj): New fields stderr_pipe and read_err. * pex-common.c (pex_init_common): Initialize stderr_pipe. From-SVN: r121430
2007-01-31strsignal.c (psignal): Change type of signo to int.Ben Elliston3-4/+9
* strsignal.c (psignal): Change type of signo to int. * functions.texi: Regenerate. From-SVN: r121364
2007-01-29demangle.h: New cplus_demangle_print_callback...Simon Baldwin3-315/+486
include/: * demangle.h: New cplus_demangle_print_callback, cplus_demangle_v3_callback, and java_demangle_v3_callback function prototypes, and demangle_callbackref type definition. libiberty/: * cp-demangle.h (cplus_demangle_operators): External definition suppressed if not building for libstdc++. * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface to demangling, provides a malloc-less version of __cxa_demangle. (cplus_demangle_print_callback): Public callback version of cplus_demangle_print. (struct d_growable_string): New growable string structure. (d_growable_string_init): New function, provides support for growable strings separate from print info. (d_growable_string_resize): Likewise. (d_growable_string_append_buffer): Likewise. (d_growable_string_callback_adapter):): Likewise. (d_print_init): New print info initialization function. (d_print_error): Macro replace by inline function. (d_print_saw_error): Likewise. (d_append_char): Likewise. (d_append_buffer): Likewise. (d_append_string): New inline function, replaces the d_append_string_constant macro. (d_flush_buffer): New function, flushes buffer to callback. (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback for unsupported dynamic arrays replaced by alloca(). (d_demangle): Return string length estimating removed. (d_dump): Moved error case handling from call site into function. (d_print_resize): Function removed. (d_print_append_char): Likewise. (d_print_append_buffer): Likewise. (d_print_error): Likewise. (d_print_comp): Added special case handling for Java arrays. (java_demangle_v3): Removed string post-processing for Java arrays, now replaced by special case handling in d_print_comp. (cplus_demangle_v3_callback): Augmented interface to demangling, provides a malloc-less version of cplus_demangle_v3. (java_demangle_v3_callback): Augmented interface to demangling, provides a malloc-less version of java_demangle_v3. From-SVN: r121305
2007-01-12* pex-unix.c (writeerr): Cast write result to void.Ben Elliston2-1/+3
From-SVN: r120702
2007-01-12Typo fix.Ben Elliston1-2/+2
From-SVN: r120699
2007-01-12choose-temp.c (choose_temp_base): Check the result of the call to mktemp ↵Ben Elliston2-2/+6
rather than testing the length of the... * choose-temp.c (choose_temp_base): Check the result of the call to mktemp rather than testing the length of the modified string. From-SVN: r120698
2006-12-21cp-demangle.h: Add comment explaining what to do to avoid overrunning string.Geoffrey Keating5-34/+136
* cp-demangle.h: Add comment explaining what to do to avoid overrunning string. (d_check_char): New. (d_next_char): Don't advance past trailing '\0'. * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char. (d_nested_name): Likewise. (d_special_name): Likewise. (d_call_offset): Likewise. (d_function_type): Likewise. (d_array_type): Likewise. (d_pointer_to_member_type): Likewise. (d_template_param): Likewise. (d_template_args): Likewise. (d_template_arg): Likewise. (d_expr_primary): Likewise. (d_local_name): Likewise. (d_substitution): Likewise. (d_ctor_dtor_name): Use d_advance rather than d_next_char. * testsuite/test-demangle.c: Include sys/mman.h. (MAP_ANONYMOUS): Define. (protect_end): New. (main): Use protect_end. * testsuite/demangle-expected: Add testcases for overrunning the end of the string. From-SVN: r120097
2006-11-30re PR driver/29931 (following argv[0] symlink in process_command breaks ↵Andrew Stubbs2-7/+52
symlinked-together toolchain) include: 2006-05-03 Andrew Stubbs <andrew.stubbs@st.com> J"orn Rennecke <joern.rennecke@st.com> PR driver/29931 * libiberty.h (make_relative_prefix_ignore_links): Declare. libiberty: 2006-05-03 Andrew Stubbs <andrew.stubbs@st.com> J"orn Rennecke <joern.rennecke@st.com> PR driver/29931 * make-relative-prefix.c (make_relative_prefix_1): New function, broken out of make_relative_prefix. Make link resolution dependent on new parameter. (make_relative_prefix): Use make_relative_prefix_1. (make_relative_prefix_ignore_links): New function. Co-Authored-By: J"orn Rennecke <joern.rennecke@st.com> From-SVN: r119366
2006-11-08pex-win32.c (no_suffixes): Remove.Vladimir Prus2-7/+15
2006-11-08 Vladimir Prus <vladimir@codesourcery.com> * pex-win32.c (no_suffixes): Remove. (std_suffixes): Add "" as first element. (find_executable): Remove detection of already-present extension. Try all suffixes in std_suffixes. From-SVN: r118595
2006-11-07floatformat.c (get_field): Fix segfault with little-endian word order on ↵Julian Brown2-60/+56
64-bit hosts. * floatformat.c (get_field): Fix segfault with little-endian word order on 64-bit hosts. (put_field): Likewise. (min): Move definition. From-SVN: r118552
2006-10-26pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.Danny Smith3-7/+15
(find_executable): Likewise. (win32_spawn): Cast alloca return to (char**). Replace malloc with XNEWVEC. bcopy.c (bcopy): Add explict casts in assignments. From-SVN: r118058
2006-10-25* pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.Ben Elliston2-1/+5
From-SVN: r118022