summaryrefslogtreecommitdiff
path: root/libiberty
Commit message (Collapse)AuthorAgeFilesLines
* * cp-demangle.h: Add comment explaining what to do to avoidgeoffk2006-12-215-34/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120097 138bc75d-0d04-0410-961f-82ee72b054a4
* include:amylaar2006-11-302-7/+52
| | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119366 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-11-08 Vladimir Prus <vladimir@codesourcery.com>vprus2006-11-082-7/+15
| | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118595 138bc75d-0d04-0410-961f-82ee72b054a4
* * floatformat.c (get_field): Fix segfault with little-endian wordjules2006-11-072-60/+56
| | | | | | | | | | order on 64-bit hosts. (put_field): Likewise. (min): Move definition. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118552 138bc75d-0d04-0410-961f-82ee72b054a4
* pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.dannysmith2006-10-263-7/+15
| | | | | | | | | | (find_executable): Likewise. (win32_spawn): Cast alloca return to (char**). Replace malloc with XNEWVEC. bcopy.c (bcopy): Add explict casts in assignments. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118058 138bc75d-0d04-0410-961f-82ee72b054a4
* * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.bje2006-10-252-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118022 138bc75d-0d04-0410-961f-82ee72b054a4
* --(top level)--------------------------------------------brooks2006-10-103-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117618 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/29176ian2006-09-223-0/+13
| | | | | | | | * cp-demangle.c (d_substitution): Check for overflow when computing substitution index. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117144 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix some whitespace issues in the changelog.pinskia2006-09-121-11/+11
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116880 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-08-30 Corinna Vinschen <corinna@vinschen.de>dj2006-08-303-0/+256
| | | | | | | | * configure.ac: Add case for Mingw as host. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116586 138bc75d-0d04-0410-961f-82ee72b054a4
* PR driver/27622ian2006-08-277-13/+46
| | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116494 138bc75d-0d04-0410-961f-82ee72b054a4
* PR other/28797ian2006-08-273-1/+23
| | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116493 138bc75d-0d04-0410-961f-82ee72b054a4
* PR rtl-optimization/28071hubicka2006-07-272-1/+28
| | | | | | | | * hashtab.c (htab_empty): Clear out n_deleted/n_elements; downsize the hashtable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115779 138bc75d-0d04-0410-961f-82ee72b054a4
* ChangeLog:aoliva2006-07-042-2/+6
| | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115183 138bc75d-0d04-0410-961f-82ee72b054a4
* * pex-unix.c (pex_unix_exec_child): Insert cast when assigningshinwell2006-06-022-1/+6
| | | | | | | to environ. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114326 138bc75d-0d04-0410-961f-82ee72b054a4
* Patch to provide pex_run_in_environment.shinwell2006-06-019-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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114302 138bc75d-0d04-0410-961f-82ee72b054a4
* Open temporary files in binary mode when using mkstemps.shinwell2006-05-282-1/+9
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114165 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (demangle_fund_type): Ensure buf is large enough todj2006-05-122-1/+6
| | | | | | | hold "int%u_t". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113728 138bc75d-0d04-0410-961f-82ee72b054a4
* * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.jules2006-04-242-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113228 138bc75d-0d04-0410-961f-82ee72b054a4
* src/libiberty/ChangeLog:jimb2006-04-129-9/+277
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112883 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-04-10 Jim Blandy <jimb@codesourcery.com>jimb2006-04-122-43/+66
| | | | | | | | | | * pex-common.c (temp_file): New function, containing guts of pex-style temporary file name generation. (pex_run): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112882 138bc75d-0d04-0410-961f-82ee72b054a4
* libiberty/carlos2006-04-065-5/+81
| | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112741 138bc75d-0d04-0410-961f-82ee72b054a4
* * pex-win32.c (<errno.h>): Include.mmitchel2006-03-312-258/+335
| | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112592 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-03-24 Jim Blandy <jimb@codesourcery.com>jimb2006-03-242-11/+8
| | | | | | | | | * pex-common.c (pex_run): Simplify output name handling. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112363 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-03-12 Jim Blandy <jimb@red-bean.com>jimb2006-03-132-12/+19
| | | | | | | | | * pex-common.h (struct pex_obj): Doc fixes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112022 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-03-11 Jim Blandy <jimb@red-bean.com>jimb2006-03-132-1/+25
| | | | | | | | | * functions.texi: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112021 138bc75d-0d04-0410-961f-82ee72b054a4
* * pexecute.c (pwait): Syntax fix for previous change.bje2006-02-212-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111326 138bc75d-0d04-0410-961f-82ee72b054a4
* * pexecute.c (pwait): Free vector pointer.dj2006-02-213-1/+10
| | | | | | | * partition.c (partition_print): Free class_elements pointer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@111325 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-02-11 Roger Sayle <roger@eyesopen.com>sayle2006-02-112-1/+18
| | | | | | | | | | | | | R. Scott Bailey <scott.bailey@eds.com> Bill Northcott <w.northcott@unsw.edu.au> PR bootstrap/16787 * floatformat.c: Include <float.h> where available. (NAN): Use value of DBL_QNAN if defined, and NAN isn't. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110873 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflagsgdr2006-01-293-68/+205
| | | | | | | | where supported. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110375 138bc75d-0d04-0410-961f-82ee72b054a4
* libiberty/carlos2006-01-204-5/+327
| | | | | | | | | | | | | 2006-01-20 Carlos O'Donell <carlos@codesourcery.com> * testsuite/Makefile.in: Add test-expandargv test. * testsuite/test-expandargv.c: New test. * argv.c (expandargv): Check for errors with ferror, rather than just by looking at return value from fread. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110047 138bc75d-0d04-0410-961f-82ee72b054a4
* * floatformat.c (floatformat_i387_ext_is_valid): Use explicit castgdr2005-12-172-3/+10
| | | | | | | | | to convert from "from". (floatformat_to_double): Likewise. (floatformat_from_double): Use explicit cast to convert from "to". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108717 138bc75d-0d04-0410-961f-82ee72b054a4
* Fixes java/PR9861tlaurenzo2005-12-114-7/+68
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@108374 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-11-07 Richard Guenther <rguenther@suse.de>rguenth2005-11-072-111/+87
| | | | | | | | | | * splay-tree.c (rotate_left): New function. (rotate_right): Likewise. (splay_tree_splay_helper): Remove. (splay_tree_splay): Re-implement. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106584 138bc75d-0d04-0410-961f-82ee72b054a4
* from Mark Kettenis <kettenis@gnu.org>dj2005-10-312-0/+29
| | | | | | | | | | | | * floatformat.c (floatformat_vax_aingle, floatformat_vax_double): New variables. * floatformat.h (enum floatformat_byteorders): Add floatformat_vax. (floatformat_vax_aingle, floatformat_vax_double): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106281 138bc75d-0d04-0410-961f-82ee72b054a4
* * at-file.texi: Fix typo.mmitchel2005-10-072-3/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@105088 138bc75d-0d04-0410-961f-82ee72b054a4
* * at-file.texi: New file.mmitchel2005-10-042-0/+20
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104937 138bc75d-0d04-0410-961f-82ee72b054a4
* * argv.c (expandargv): Do not use xmalloc_failed.mmitchel2005-09-272-3/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104695 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in: Regenerated.mmitchel2005-09-261-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104666 138bc75d-0d04-0410-961f-82ee72b054a4
* * libiberty.h (expandargv): New function.mmitchel2005-09-263-8/+127
| | | | | | | | | | | * argv.c (safe-ctype.h): Include it. (ISBLANK): Remove. (stdio.h): Include. (buildargv): Use ISSPACE instead of ISBLANK. (expandargv): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104664 138bc75d-0d04-0410-961f-82ee72b054a4
* * pex-win32.c: Include "windows.h".cgf2005-09-152-14/+307
| | | | | | | | | | | | | | | | | (backslashify): New function. (fix_argv): Use backslashify to convert path to windows format. Allocate one more place in new argv for potential executable from '#!' parsing. (tack_on_executable): New function. Conditional on USE_MINGW_MSYS (openkey): Ditto. (mingw_rootify): Ditto. (msys_rootify): Ditto. (spawn_script): New function. (pex_win32_exec_child): Save translated argv in newargv. Pass to spawn_script if spawnv* fails. (main): New function. Conditional on MAIN. Useful for testing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104292 138bc75d-0d04-0410-961f-82ee72b054a4
* [libiberty]dj2005-08-172-17/+30
| | | | | | | | | | | | | | | | | | | | | | | | | * floatformat.c (floatformat_always_valid): Change type of last argument to `void *'. (floatformat_i387_ext_is_valid): Likewise. (floatformat_to_double): Change type of second argument to `const void *'. (floatformat_from_double): Change type of last argument to `void *'. (floatformat_is_valid): Change type of last argument to `const void *'. (ieee_test): Remove redundant casts. [include] * floatformat.h (struct floatformat): Change type of large argument for is_valid member to `const void *'. (floatformat_to_double): Change type of second argument to `const void *'. (floatformat_from_double): Change type of last argument to `void *'. (floatformat_is_valid): Change type of last argument to `const void *'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103218 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>kcook2005-08-175-6/+13
| | | | | | | | | | * strverscmp.c: Update FSF address. * testsuite/Makefile.in: Likewise. * testsuite/test-demangle.c: Likewise. * testsuite/test-pexecute.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103199 138bc75d-0d04-0410-961f-82ee72b054a4
* * getopt.c: Include ansidecl.h before system headers.ghazi2005-07-232-1/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102308 138bc75d-0d04-0410-961f-82ee72b054a4
* * getopt.c: Include "ansidecl.h".bje2005-07-222-3/+11
| | | | | | | (_getopt_initialize): Mark argc and argv parameters as unused. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102271 138bc75d-0d04-0410-961f-82ee72b054a4
* * regex.c (regcomp): Change type of `i' from unsigned to int.bje2005-07-222-2/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102270 138bc75d-0d04-0410-961f-82ee72b054a4
* Recover patch lost in the sourceware repository:bje2005-07-224-10/+8
| | | | | | | | | | 2005-07-09 Ben Elliston <bje@au.ibm.com> * memcpy.c: Remove ANSI_PROTOTYPES conditional code. * memmove.c: Likewise. * objalloc.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102268 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Check for a getopt(3) declaration.bje2005-07-224-125/+145
| | | | | | | * configure, config.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102267 138bc75d-0d04-0410-961f-82ee72b054a4
* * regex.c (TRANSLATE): Cast rhs of ternary expression to char.bje2005-07-152-2/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102050 138bc75d-0d04-0410-961f-82ee72b054a4
* * floatformat.c (floatformat_to_double): Add a comment about abje2005-07-122-0/+12
| | | | | | | potential source of warnings when compiling this file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101914 138bc75d-0d04-0410-961f-82ee72b054a4