aboutsummaryrefslogtreecommitdiff
path: root/libiberty/argv.c
AgeCommit message (Collapse)AuthorFilesLines
2019-01-01Update year range in copyright notice of binutils filesAlan Modra1-1/+1
2018-05-31* argv.c (expandargv): Fix memory leak for expanded arguments.law1-0/+2
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259775 138bc75d-0d04-0410-961f-82ee72b054a4
2018-04-17Resync libiberty sources with master version in GCC repository.Nick Clifton1-3/+3
2018-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> PR lto/81968 * simple-object.c (handle_lto_debug_sections): Keep .comment section. 2018-03-02 David Malcolm <dmalcolm@redhat.com> * cp-demangle.c: Update URL for g++ V3 ABI. 2018-01-20 Eli Zaretskii <eliz@gnu.org> * simple-object-xcoff.c (simple_object_xcoff_find_sections): Use ulong_type to avoid warning about 32-bit shift. 2018-01-11 Richard Biener <rguenther@suse.de> Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> PR lto/81968 * simple-object-common.h (struct simple_object_functions): Change copy_lto_debug_sections callback signature. * simple-object-elf.c (SHN_HIRESERVE, SHT_SYMTAB_SHNDX, SHF_INFO_LINK): Add defines. (simple_object_elf_copy_lto_debug_sections): Instead of leaving not to be copied sections empty unnamed SHT_NULL remove them from the target section headers and adjust section reference everywhere. Handle SHN_XINDEX in the symbol table processing properly. * simple-object.c (handle_lto_debug_sections): Change interface to return a modified string and handle renaming of relocation sections. 2018-01-10 Daniel van Gerpen <daniel@vangerpen.de> * argv.c (expandargv): Correct check for dynamically allocated argv.
2018-01-10Update the libiberty sources with the latest patches found in the master ↵Nick Clifton1-1/+1
sources. 2017-01-02 Richard Biener <rguenther@suse.de> PR lto/83452 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section): Do not use UNDEF locals for removed symbols but instead just define them in the first prevailing section and with no name. Use the same gnu_lto_v1 name for all removed globals we promote to WEAK UNDEFs so hpux can use a stub to provide this symbol. Clear sh_info and sh_link in removed sections. 2017-10-30 Richard Biener <rguenther@suse.de> PR lto/82757 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): Strip two leading _s from the __gnu_lto_* symbols. 2017-10-24 Alan Modra <amodra@gmail.com> PR lto/82687 PR lto/82575 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): Only make __gnu_lto symbols hidden. 2017-10-20 Alan Modra <amodra@gmail.com> PR lto/82575 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): Make discarded non-local symbols weak and hidden. 2017-10-18 Jakub Jelinek <jakub@redhat.com> PR lto/82598 * simple-object.c (handle_lto_debug_sections): Copy over also .note.GNU-stack section with unchanged name. * simple-object-elf.c (SHF_EXECINSTR): Define. (simple_object_elf_copy_lto_debug_section): Drop SHF_EXECINSTR bit on .note.GNU-stack section. 2017-09-25 Nathan Sidwell <nathan@acm.org> PR demangler/82195 * cp-demangle.c (d_encoding): Strip return type when name is a LOCAL_NAME. (d_local_name): Strip return type of enclosing TYPED_NAME. * testsuite/demangle-expected: Add and adjust tests. 2017-09-21 Nathan Sidwell <nathan@acm.org> PR demangler/82195 * cp-demangle.c (d_name): Revert addition of 'toplevel' parm. (has_return_type): Recurse for DEMANGLE_COMPONENT_LOCAL_NAME. (d_encoding): Revert d_name change. Use is_fnqual_component_type to strip modifiers that do not belong. (d_special_name, d_class_enum_type): Revert d_name call change. (d_expresion_1): Commonize DEMANGLE_COMPONENT_UNARY building. (d_local_name): Revert parsing of a function type. (d_print_comp_inner): An inner LOCAL_NAME might contain a TEMPLATE. * testsuite/demangle-expected: Add & adjust tests
2017-01-05Sync libiberty from gccAlan Modra1-1/+1
Picks up copyright year update and other recent fixes.
2016-12-06argv.c (expandargv): Check for directories passed as @-files.DJ Delorie1-0/+19
gcc pr 78584
2016-01-05libiberty: {count,dup,write}argv: constify argv input slightlyMike Frysinger1-6/+6
Would be more useful if we could use "const char * const *", but there's a long standing bug where gcc warns about incompatible pointers when you try to pass in "char **". We can at least constify the array itself as gcc will not warn in that case.
2016-01-05libiberty: dupargv: rewrite to use xstrdupMike Frysinger1-5/+1
This func is basically open coding the xstrdup function, so gut it and use it directly.
2012-08-29Replace malloc with xmallocH.J. Lu1-38/+9
* argv.c (dupargv): Replace malloc with xmalloc. Don't check xmalloc return. (buildargv): Likewise. Also replace strdup with xstrdup. (expandargv): Don't check dupargv return.
2012-08-29Replace alloca with xmalloc/freeH.J. Lu1-1/+3
PR binutils/14526 * argv.c (buildargv): Replace alloca with xmalloc/free.
2011-09-28merge from gccDJ Delorie1-0/+23
2010-08-13 * argv.c (expandargv): Limit the number of times that responseNick Clifton1-1/+10
files are opened in order to prevent infinite recursion.
2009-10-09merge from gccDJ Delorie1-11/+33
2007-07-23merge from gccDJ Delorie1-1/+1
2007-07-12merge from gccDJ Delorie1-1/+0
2007-05-08merge from gccDJ Delorie1-0/+56
2007-04-11merge from gccDJ Delorie1-3/+1
2006-01-21merge from gccDJ Delorie1-4/+13
2005-09-27 * argv.c (expandargv): Do not use xmalloc_failed.Mark Mitchell1-3/+4
2005-09-26 * libiberty.h (expandargv): New function.Mark Mitchell1-4/+114
* argv.c (safe-ctype.h): Include it. (ISBLANK): Remove. (stdio.h): Include. (buildargv): Use ISSPACE instead of ISBLANK. (expandargv): New function. * Makefile.in: Regenerated.
2005-05-10Update the address and phone number of the FSF organization.Nick Clifton1-2/+2
2005-04-16merge from gccDJ Delorie1-0/+3
2005-04-14merge from gccDJ Delorie1-1/+1
2005-03-27merge from gccDJ Delorie1-23/+5
2003-04-15merge from gccDJ Delorie1-2/+2
2003-04-15merge from gccDJ Delorie1-1/+1
2001-10-17merge from gccDJ Delorie1-2/+2
2001-10-16merge from gccDJ Delorie1-68/+40
2001-10-07merge from gccDJ Delorie1-5/+6
2001-03-06merge from gccDJ Delorie1-1/+0
2000-12-08* safe-ctype.c: New file.DJ Delorie1-7/+4
* Makefile.in (CFILES): Add safe-ctype.c. (REQUIRED_OFILES): Add safe-ctype.o. * argv.c: Define ISBLANK and use it, not isspace. * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c, strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c) before calling TOLOWER(c)/TOUPPER(c).
1999-07-14 * argv.c: Include stdlib.h and string.h instead ofRichard Henderson1-6/+2
prototyping directly. * choose-temp.c: Conditionally include string.h.
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+390