39 Commits

Author SHA1 Message Date
d87bef3a7b Update year range in copyright notice of binutils files
The newer update-copyright.py fixes file encoding too, removing cr/lf
on binutils/bfdtest2.c and ld/testsuite/ld-cygwin/exe-export.exp, and
embedded cr in binutils/testsuite/binutils-all/ar.exp string match.
2023-01-01 21:50:11 +10:30
c2dae75149 include: remove use of PTR
* hashtab.h (HTAB_EMPTY_ENTRY): Replace PTR with void *.
	(HTAB_DELETED_ENTRY): Likewise.
2022-05-10 11:21:37 +09:30
a2c5833233 Update year range in copyright notice of binutils files
The result of running etc/update-copyright.py --this-year, fixing all
the files whose mode is changed by the script, plus a build with
--enable-maintainer-mode --enable-cgen-maint=yes, then checking
out */po/*.pot which we don't update frequently.

The copy of cgen was with commit d1dd5fcc38ead reverted as that commit
breaks building of bfp opcodes files.
2022-01-02 12:04:28 +10:30
c759c777c9 libiberty: add htab_eq_string
The libiberty hash table includes a helper function for strings, but
no equality function.  Consequently, this equality function has been
reimplemented a number of times in both the gcc and binutils-gdb
source trees.  This patch adds the function to the libiberty hash
table, as a step toward the goal of removing all the copies.

One change to gcc is included here.  Normally I would have put this in
the next patch, but gensupport.c used the most natural name for its
reimplementation of this function, and this can't coexist with the
extern function in libiberty.

include

	* hashtab.h (htab_eq_string): Declare.

libiberty

	* hashtab.c (htab_eq_string): New function.
2021-05-07 11:17:11 +01:00
250d07de5c Update year range in copyright notice of binutils files 2021-01-01 10:31:05 +10:30
99e4741014 Merge upstream GCC changes for include/ and libiberty/ directories
This commit pulls in the latest changes for the include/ and
libiberty/ directories.  The last sync was in commit
533da48302a26885a972e4379eccc26b364e5b53.

This commit also removes the file libiberty/rust-demangle.h, this file
has been removed in upstream GCC, and should have been deleted as part
of the previous sync up, which included this ChangeLog entry:

  2019-11-16  Eduard-Mihai Burtescu  <eddyb@lyken.rs>

        ....
	* rust-demangle.h: Remove.

I've grep'd over the binutils-gdb source and can find no reference to
the rust-demangle.h file, and everything seems to build fine without
it, so I assume its continued existence was a mistake.

include/ChangeLog:

	Import from gcc mainline:
	2020-02-05  Andrew Burgess  <andrew.burgess@embecosm.com>

        * hashtab.h (htab_remove_elt): Make a parameter const.
        (htab_remove_elt_with_hash): Likewise.

libiberty/ChangeLog:

	* rust-demangle.h: Removed.

	Import from gcc mainline:
	2020-02-05  Andrew Burgess  <andrew.burgess@embecosm.com>

        * hashtab.c (htab_remove_elt): Make a parameter const.
        (htab_remove_elt_with_hash): Likewise.

	2020-01-23  Alexandre Oliva <oliva@adacore.com>

        * argv.c (writeargv): Output empty args as "".

	2020-01-18  Iain Sandoe  <iain@sandoe.co.uk>

	* cp-demangle.c (cplus_demangle_operators): Add the co_await
	operator.
	* testsuite/demangle-expected: Test co_await operator mangling.
2020-02-25 17:04:42 +00:00
b3adc24a07 Update year range in copyright notice of binutils files 2020-01-01 18:42:54 +10:30
827041555a Update year range in copyright notice of binutils files 2019-01-01 22:06:53 +10:30
219d1afa89 Update year range in copyright notice of binutils files 2018-01-03 17:49:56 +10:30
2571583aed Update year range in copyright notice of all files. 2017-01-02 14:08:56 +10:30
6f2750feaf Copyright update for binutils 2016-01-01 23:00:01 +10:30
d0270d8cb9 Sync hashtab.h, splay-tree.h with GCC
Sync with GCC
	2014-12-09  Trevor Saunders  <tsaunders@mozilla.com>

	* hashtab.h, splay-tree.h: Remove GTY markers.
2015-07-14 09:18:16 -07:00
b90efa5b79 ChangeLog rotatation and copyright year update 2015-01-02 00:53:45 +10:30
219a461e6c merge from gcc 2010-06-10 18:30:24 +00:00
8139c7d47b update copyright dates 2009-09-03 02:02:48 +00:00
ede8013252 merge from gcc 2009-09-02 16:08:35 +00:00
aa820537ea update copyright dates 2009-09-02 07:25:43 +00:00
167bdac1e9 merge from gcc 2009-04-22 19:09:13 +00:00
c3cca4c912 merge from gcc 2005-06-30 23:03:37 +00:00
e172dbf8aa Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
a288642de0 merge from gcc 2005-04-19 19:09:30 +00:00
49b1fae430 merge from gcc 2005-03-28 02:09:01 +00:00
bb6a587dd3 merge from gcc 2004-04-22 18:39:03 +00:00
d6ea4e809a merge from gcc 2004-04-13 15:23:19 +00:00
f29d4bb82d merge from gcc 2004-03-30 20:03:09 +00:00
eafaf5ebda s/burtle/iterative 2003-05-07 20:30:13 +00:00
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
f77ed96c7b merge from gcc 2003-03-17 18:01:07 +00:00
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
007425f1be merge from gcc 2002-06-25 01:03:52 +00:00
1889369086 merge from gcc 2002-06-06 12:55:24 +00:00
8fc3479902 merge from gcc 2001-08-17 06:33:05 +00:00
526c3e1208 Synchronise with copyright dates on FSF GCC versions of these files 2001-03-14 19:45:29 +00:00
4f1d9bd8e2 Fix typos in ChangeLogs; add coff/external.h; fix copyright dates 2001-03-14 02:27:44 +00:00
82e7f05e13 * hashtab.h (struct htab): Add member return_allocation_failure.
(htab_try_create): New prototype.  Mention which functions may
	return NULL when this is used.
2000-11-04 07:48:51 +00:00
6f72978879 * hashtab.h: Change void * to PTR where necessary. 2000-11-03 20:53:04 +00:00
b8cdcddf8c 2000-06-15 H.J. Lu <hjl@gnu.org>
* sort.h: New file. Impored from gcc.

	* hashtab.h: Updated from from gcc.

2000-06-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>

	* demangle.h (demangling_styles): Remove trailing comma in enum.

	* dyn-string.h (dyn_string_append_char): Change parameter from
	char to int.

2000-06-04  Alex Samuel  <samuel@codesourcery.com>

	* dyn-string.h: Move here from gcc/dyn-string.h.  Add new functions.

	* demangle.h (DMGL_GNU_NEW_ABI): New macro.
	(DMGL_STYLE_MASK): Or in DMGL_GNU_NEW_ABI.
	(current_demangling_style): Add gnu_new_abi_demangling.
	(GNU_NEW_ABI_DEMANGLING_STYLE_STRING): New macro.
	(GNU_NEW_ABI_DEMANGLING): Likewise.
	(cplus_demangle_new_abi): New declaration.
2000-06-15 20:47:02 +00:00
b4fe268363 merge from gcc 2000-03-24 21:31:22 +00:00
cc89ffe60b import libiberty from egcs 2000-02-22 16:18:13 +00:00