Commit Graph

43 Commits

Author SHA1 Message Date
Nick Clifton 2a8ae7146c Update the libiberty sources with the latest patches found in the master 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
2018-01-10 13:57:48 +00:00
Alan Modra e495212d22 Sync libiberty from gcc
Picks up copyright year update and other recent fixes.
2017-01-05 00:03:07 +10:30
Mark Wielaard 4d17eaece8 libiberty: Fix -Wimplicit-fallthrough warnings.
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.
2016-11-18 11:06:18 +01:00
DJ Delorie 3ecb733811 merge from gcc 2013-05-10 03:03:04 +00:00
DJ Delorie 29f045bb48 merge from gcc 2013-04-23 04:05:04 +00:00
Ralf Wildenhues d4d868a280 libiberty: documentation markup and order fixes.
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.
2011-02-03 07:23:59 +00:00
DJ Delorie 219a461e6c merge from gcc 2010-06-10 18:30:24 +00:00
DJ Delorie a17fcd1940 merge from gcc 2009-09-16 17:57:24 +00:00
H.J. Lu fca6a796b7 2009-09-03 Ozkan Sezer <sezeroz@gmail.com>
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-09-03 16:46:55 +00:00
DJ Delorie 483d7cf40a merge from gcc 2009-06-21 17:13:08 +00:00
DJ Delorie a7d421b815 merge from gcc 2006-07-27 18:05:31 +00:00
DJ Delorie c3cca4c912 merge from gcc 2005-06-30 23:03:37 +00:00
DJ Delorie abf6a75b42 merge from gcc 2005-05-24 21:01:33 +00:00
Nick Clifton 979c05d324 Update the address and phone number of the FSF organization. 2005-05-10 15:33:34 +00:00
DJ Delorie 49b1fae430 merge from gcc 2005-03-28 02:09:01 +00:00
DJ Delorie bac7199c79 merge from gcc 2005-03-01 02:22:06 +00:00
DJ Delorie bb6a587dd3 merge from gcc 2004-04-22 18:39:03 +00:00
DJ Delorie d6ea4e809a merge from gcc 2004-04-13 15:23:19 +00:00
DJ Delorie fe046a1715 merge from gcc 2004-04-01 02:00:55 +00:00
DJ Delorie 686e72d729 merge from gcc 2003-10-30 18:39:13 +00:00
DJ Delorie 5f73c3782d merge from gcc 2003-06-19 20:05:36 +00:00
Jason Merrill eafaf5ebda s/burtle/iterative 2003-05-07 20:30:13 +00:00
Jason Merrill 7108c5dc79 libiberty/
* 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-05-07 18:07:53 +00:00
DJ Delorie 1ea16ec5b4 merge from gcc 2003-04-15 21:29:34 +00:00
DJ Delorie f77ed96c7b merge from gcc 2003-03-17 18:01:07 +00:00
DJ Delorie 2336e17716 merge from gcc 2003-03-12 17:28:10 +00:00
DJ Delorie c4d8feb262 merge from gcc 2003-03-12 15:08:02 +00:00
Daniel Jacobowitz 5f9624e37e include/
* 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-26 07:33:29 +00:00
DJ Delorie eed2b28c05 merge from gcc 2003-01-20 19:03:56 +00:00
DJ Delorie 1889369086 merge from gcc 2002-06-06 12:55:24 +00:00
Richard Henderson b1c933fc52 * hashtab.c (higher_prime_number): Use 7 as minimum.
(find_empty_slot_for_expand): Don't compute hash2 unless needed.
        (htab_find_slot_with_hash): Likewise.
2002-04-10 00:43:27 +00:00
DJ Delorie e6450fe561 merge from gcc 2001-10-07 17:24:36 +00:00
DJ Delorie 68a41de77d merge from gcc 2001-08-17 21:14:20 +00:00
DJ Delorie 8fc3479902 merge from gcc 2001-08-17 06:33:05 +00:00
DJ Delorie 06b0287c20 merge from gcc 2001-03-15 22:02:06 +00:00
DJ Delorie b1e51b3cd9 merge from gcc 2001-03-15 21:07:01 +00:00
DJ Delorie 5ca0f83d75 * hashtab.c (higher_prime_number): Use a table, rather than a
seive, to find the next prime.
2000-11-29 19:19:10 +00:00
Hans-Peter Nilsson 99a4c1bd6b * hashtab.c (htab_expand): Change to return int. Use calloc or
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-04 07:54:27 +00:00
Hans-Peter Nilsson e0f3df8f1e * hashtab.c: Change void * to PTR where necessary.
(htab_create, htab_expand): Correct formatting of comment before
	function.
2000-11-03 20:55:25 +00:00
H.J. Lu eb383413c2 Synced with libiberty in the gcc repository. 2000-06-15 20:56:25 +00:00
Zack Weinberg 5c82d20a26 * hashtab.c, partition.c, xmemdup.c: Include string.h
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-05-29 20:45:32 +00:00
Jason Merrill b4fe268363 merge from gcc 2000-03-24 21:31:22 +00:00
Ian Lance Taylor e2eaf47799 import libiberty from egcs 2000-02-22 15:59:20 +00:00