aboutsummaryrefslogtreecommitdiff
path: root/libiberty
AgeCommit message (Collapse)AuthorFilesLines
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
2006-10-10--(top level)--------------------------------------------Brooks Moses3-3/+12
2006-10-10 Brooks Moses <bmoses@stanford.edu> * Makefile.def: Added pdf target handling. * Makefile.tpl: Added pdf target handling. * Makefile.in: Regenerated. ---fixincludes-------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Makefile.in: Added empty "pdf" target. ---gcc---------------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * configure.ac: Added pdf to "Make-hooks" * Makefile.in: Added TEXI2PDF definition, and various pdf-file targets and *.pdf file patterns in cleanup targets. * configure: Regenerated. ---gcc/cp------------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Make-lang.in: Added "c++.pdf" target support. ---gcc/fortran-------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Make-lang.in: Added "fortran.pdf", "gfortran.pdf" target support. ---gcc/java----------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Make-lang.in: Added "java.pdf", "gcj.pdf" target support. ---gcc/objc----------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Make-lang.in: Added empty "objc.pdf" target. ---gcc/objcp---------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Make-lang.in: Added empty "obj-c++.pdf" target. ---gcc/treelang------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Make-lang.in: Added "treelang.pdf" target support. ---gnattools---------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Makefile.in: Added empty "pdf" target. ---libcpp------------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Makefile.in: Added empty "pdf" target. ---libdecnumber------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Makefile.in: Added empty "pdf" target. ---libiberty---------------------------------------------- 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Makefile.in: Added "pdf", "libiberty.pdf" target support. * testsuite/Makefile.in: Added empty "pdf" target. ---libobjc------------------------------------------------ 2006-10-10 Brooks Moses <bmoses@stanford.edu> * Makefile.in: Added empty "pdf" target. From-SVN: r117618
2006-09-22re PR other/29176 (Seg fault in demangler)Ian Lance Taylor3-0/+13
PR other/29176 * cp-demangle.c (d_substitution): Check for overflow when computing substitution index. From-SVN: r117144
2006-09-12Fix some whitespace issues in the changelog.Andrew Pinski1-11/+11
From-SVN: r116880
2006-08-30configure.ac: Add case for Mingw as host.Corinna Vinschen3-0/+256
2006-08-30 Corinna Vinschen <corinna@vinschen.de> * configure.ac: Add case for Mingw as host. * configure: Regenerate. From-SVN: r116586
2006-08-27re PR driver/27622 (gcc hang when compiling with -pipe)Ian Lance Taylor7-13/+46
PR driver/27622 * pex-common.h (struct pex_funcs): Add toclose parameter to exec_child field. * pex-common.c (pex_run_in_environment): Pass toclose to exec_child. * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter. * pex-unix.c (pex_unix_exec_child): Likewise. * pex-msdos.c (pex_msdos_exec_child): Likewise. * pex-win32.c (pex_win32_exec_child): Likewise. From-SVN: r116494
2006-08-27re PR other/28797 (Problems with demangling (__cxa_demangle()))Ian Lance Taylor3-1/+23
PR other/28797 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution for a qualified member which is not a function. * testsuite/demangle-expected: Add test case. From-SVN: r116493
2006-07-27re PR middle-end/28071 (A file that can not be compiled in reasonable ↵Jan Hubicka2-1/+28
time/space) PR rtl-optimization/28071 * hashtab.c (htab_empty): Clear out n_deleted/n_elements; downsize the hashtable. From-SVN: r115779
2006-07-04ltconfig: chmod 644 before ranlib during install.Peter O'Gorman2-2/+6
ChangeLog: * ltconfig: chmod 644 before ranlib during install. libiberty/ChangeLog: * Makefile.in: chmod 644 before ranlib during install. gcc/ChangeLog: * mklibgcc.in: chmod 644 before ranlib during install. libjava/classpath/ChangeLog: * ltconfig: chmod 644 before ranlib during install. From-SVN: r115183
2006-06-02pex-unix.c (pex_unix_exec_child): Insert cast when assigning to environ.Mark Shinwell2-1/+6
* pex-unix.c (pex_unix_exec_child): Insert cast when assigning to environ. From-SVN: r114326
2006-06-01Patch to provide pex_run_in_environment.Mark Shinwell9-36/+201
* include/libiberty.h: Declare pex_run_in_environment. libiberty: * pex-common.c: New function pex_run_in_environment. * pex-common.h: Add environment parameter to exec_child. * pex-msdos.c: Add environment parameter to pex_msdos_exec_child. * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child. (pex_djgpp_exec_child): Pass environment to child process. * pex-unix.c: Add environment parameter to pex_unix_exec_child. (pex_unix_exec_child): Pass environment to child process. * pex-win32.c: Add environment parameter to pex_win32_exec_child. New function env_compare for comparing VAR=VALUE pairs. (win32_spawn): Assemble environment block and pass to CreateProcess. (spawn_script): Pass environment through to win32_spawn. (pex_win32_exec_child): Pass environment through to spawn_script and win32_spawn. * functions.texi: Regenerate. * pexecute.txh: Document pex_run_in_environment. From-SVN: r114302
2006-05-28Open temporary files in binary mode when using mkstemps.Mark Shinwell2-1/+9
From-SVN: r114165
2006-05-12cplus-dem.c (demangle_fund_type): Ensure buf is large enough to hold "int%u_t".Anton Blanchard2-1/+6
* cplus-dem.c (demangle_fund_type): Ensure buf is large enough to hold "int%u_t". From-SVN: r113728
2006-04-24floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.Julian Brown2-1/+5
* floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case. From-SVN: r113228
2006-04-12pex-common.c (pex_input_file, [...]): New functions.Jim Blandy9-9/+277
src/libiberty/ChangeLog: 2006-03-29 Jim Blandy <jimb@codesourcery.com> * pex-common.c (pex_input_file, pex_input_pipe): New functions. (pex_init_common): Initialize obj->input_file. (pex_run): Close any file opened by pex_input_file. * pexecute.txh (pex_input_file, pex_input_pipe): New docs. * pex-common.h (struct pex_obj): New field input_file. (struct pex_funcs): New function ptr fdopenw. * pex-unix.c (pex_unix_fdopenw): New function. (funcs): List it as our fdopenw function. * pex-win32.c (pex_win32_fdopenw): New function. (funcs): List it as our fdopenw function. * pex-djgpp.c (funcs): Leave fdopenw null. * pex-msdos (funcs): Same. * functions.texi: Regenerated. src/include/ChangeLog: 2006-04-10 Jim Blandy <jimb@codesourcery.com> * libiberty.h (pex_input_file, pex_input_pipe): New declarations. From-SVN: r112883
2006-04-12pex-common.c (temp_file): New function, containing guts of pex-style ↵Jim Blandy2-43/+66
temporary file name generation. 2006-04-10 Jim Blandy <jimb@codesourcery.com> * pex-common.c (temp_file): New function, containing guts of pex-style temporary file name generation. (pex_run): Use it. From-SVN: r112882
2006-04-06Makefile.in: Add install-html, install-html-am, and install-html-recursive ↵Carlos O'Donell5-5/+81
targets. libiberty/ 2006-04-06 Carlos O'Donell <carlos@codesourcery.com> * Makefile.in: Add install-html, install-html-am, and install-html-recursive targets. Define mkdir_p and NORMAL_INSTALL. * configure.ac: AC_SUBST datarootdir, docdir, htmldir. * configure: Regenerate. * testsuite/Makefile.in: Add install-html and html targets. From-SVN: r112741
2006-03-31pex-win32.c (<errno.h>): Include.Mark Mitchell2-258/+335
* pex-win32.c (<errno.h>): Include. (fix_argv): Remove. (argv_to_cmdline): New function. (std_suffixes): New variable. (no_suffixes): Likewise. (find_executable): New function. (win32_spawn): Likewise. (spawn_script): Use win32_spawn instead of _spawnv[p]. (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls. (pex_win32_wait): Likewise. From-SVN: r112592
2006-03-24pex-common.c (pex_run): Simplify output name handling.Jim Blandy2-11/+8
2006-03-24 Jim Blandy <jimb@codesourcery.com> * pex-common.c (pex_run): Simplify output name handling. From-SVN: r112363
2006-03-13pex-common.h (struct pex_obj): Doc fixes.Jim Blandy2-12/+19
2006-03-12 Jim Blandy <jimb@red-bean.com> * pex-common.h (struct pex_obj): Doc fixes. From-SVN: r112022
2006-03-13functions.texi: Regenerate.Jim Blandy2-1/+25
2006-03-11 Jim Blandy <jimb@red-bean.com> * functions.texi: Regenerate. From-SVN: r112021
2006-02-21* pexecute.c (pwait): Syntax fix for previous change.Ben Elliston2-1/+5
From-SVN: r111326
2006-02-20pexecute.c (pwait): Free vector pointer.Uttam Pawar3-1/+10
* pexecute.c (pwait): Free vector pointer. * partition.c (partition_print): Free class_elements pointer. From-SVN: r111325