aboutsummaryrefslogtreecommitdiff
path: root/libiberty/hashtab.c
AgeCommit message (Collapse)AuthorFilesLines
2019-04-07Merge libiberty from gccAlan Modra1-1/+1
2019-01-01Update year range in copyright notice of binutils filesAlan Modra1-1/+1
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-2/+1
Picks up copyright year update and other recent fixes.
2016-11-18libiberty: Fix -Wimplicit-fallthrough warnings.Mark Wielaard1-10/+10
Adjust some comments, add some explicit fall through comments or explicit returns where necessary to not get implicit-fallthrough warnings. All fall throughs were deliberate. In one case I added an explicit return false for clarity instead of falling through a default case (that also would return false). libiberty/ChangeLog: * cplus-dem.c (demangle_signature): Move fall through comment. (demangle_fund_type): Add fall through comment between 'G' and 'I'. * hashtab.c (iterative_hash): Add fall through comments. * regex.c (regex_compile): Add Fall through comment after '+'/'?'. (byte_re_match_2_internal): Add Fall through comment after jump_n. Change "Note fall through" to "Fall through". (common_op_match_null_string_p): Return false after set_number_at instead of fall through.
2013-05-10merge from gccDJ Delorie1-11/+2
2013-04-23merge from gccDJ Delorie1-8/+25
2011-02-03libiberty: documentation markup and order fixes.Ralf Wildenhues1-3/+3
libiberty/: * 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.
2010-06-10merge from gccDJ Delorie1-18/+49
2009-09-16merge from gccgdb_7_0-branchpointDJ Delorie1-0/+3
2009-09-032009-09-03 Ozkan Sezer <sezeroz@gmail.com>H.J. Lu1-1/+1
PR target/39065 * configure.ac: Also check for intptr_t. * config.h.in: Regenerated. * configure: Regenerated. * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t instead of of long.
2009-06-21merge from gccDJ Delorie1-2/+3
2006-07-27merge from gccDJ Delorie1-1/+22
2005-06-30merge from gccDJ Delorie1-32/+23
2005-05-24merge from gccDJ Delorie1-16/+21
2005-05-10Update the address and phone number of the FSF organization.Nick Clifton1-2/+2
2005-03-28merge from gccDJ Delorie1-104/+44
2005-03-01merge from gccDJ Delorie1-5/+5
2004-04-22merge from gccDJ Delorie1-62/+171
2004-04-13merge from gccDJ Delorie1-2/+16
2004-04-01merge from gccDJ Delorie1-49/+71
2003-10-30merge from gccDJ Delorie1-2/+2
2003-06-19merge from gccDJ Delorie1-0/+4
2003-05-07s/burtle/iterativeJason Merrill1-1/+1
2003-05-07libiberty/Jason Merrill1-0/+138
* hashtab.c (burtle_hash): New fn. * configure.in: Add AC_C_BIGENDIAN_CROSS. * aclocal.m4: Include accross.m4. * configure, config.in: Regenerate. include/ * hashtab.h (burtle_hash): Prototype. (burtle_hash_object): New macro.
2003-04-15merge from gccDJ Delorie1-3/+0
2003-03-17merge from gccDJ Delorie1-4/+19
2003-03-12merge from gccDJ Delorie1-2/+2
2003-03-12merge from gccDJ Delorie1-3/+16
2003-01-26include/Daniel Jacobowitz1-2/+70
* hashtab.h (htab_alloc_with_arg, htab_free_with_arg): Add new types. (struct htab): Add alloc_arg, alloc_with_arg_f, free_with_arg_f. (htab_create_alloc_ex): New prototype. (htab_set_functions_ex): New prototype. libiberty/ * hashtab.c (htab_create_alloc_ex): New function. (hatab_set_functions_ex): New function. (htab_delete, htab_expand): Support alternate allocation functions.
2003-01-20merge from gccDJ Delorie1-2/+4
2002-06-06merge from gccDJ Delorie1-41/+41
2002-04-10 * hashtab.c (higher_prime_number): Use 7 as minimum.Richard Henderson1-32/+46
(find_empty_slot_for_expand): Don't compute hash2 unless needed. (htab_find_slot_with_hash): Likewise.
2001-10-07merge from gccDJ Delorie1-4/+4
2001-08-17merge from gccDJ Delorie1-1/+24
2001-08-17merge from gccDJ Delorie1-0/+16
2001-03-15merge from gccDJ Delorie1-1/+1
2001-03-15merge from gccDJ Delorie1-32/+33
2000-11-29* hashtab.c (higher_prime_number): Use a table, rather than aDJ Delorie1-22/+56
seive, to find the next prime.
2000-11-04 * hashtab.c (htab_expand): Change to return int. Use calloc orHans-Peter Nilsson1-8/+58
xcalloc depending on htab->return_allocation_failure. Return zero if calloc fails. (htab_create): Update comment to cover memory allocation. (htab_try_create): New. (htab_find_slot_with_hash): Return NULL if htab_expand fails. Update comment to cover this.
2000-11-03 * hashtab.c: Change void * to PTR where necessary.Hans-Peter Nilsson1-36/+36
(htab_create, htab_expand): Correct formatting of comment before function.
2000-06-15Synced with libiberty in the gcc repository.H.J. Lu1-62/+107
2000-05-29 * hashtab.c, partition.c, xmemdup.c: Include string.hZack Weinberg1-0/+4
if HAVE_STRING_H. * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H. * objalloc.c: Include config.h. Include stdlib.h and don't declare malloc or free if HAVE_STDLIB_H. * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H, else declare malloc without prototype. Include string.h if HAVE_STRING_H, else declare memset without prototype. Don't include stddef.h. * sort.c: Bring over from GCC.
2000-03-24merge from gccJason Merrill1-166/+265
2000-02-22import libiberty from egcsIan Lance Taylor1-0/+330