8sa1-gcc/include
David Malcolm 46d2b77d71 Add gnu::unique_ptr
This is a version of the patch posted by Trevor Saunders on 2017-07-31,
for which he wrote:
> For most of the history of this see
>   https://sourceware.org/ml/gdb-patches/2016-10/msg00223.html
> The changes are mostly s/gdb/gtl/g

This version was updated by me (dmalcolm) adding these changes:
- renaming of "gtl" to "gnu" (3 letters, and one of the ones Richi
  proposed, and not a match for "*tl")
- renaming of DEFINE_GDB_UNIQUE_PTR to DEFINE_GNU_UNIQUE_PTR
- renaming of xfree_deleter to xmalloc_deleter, and making it
  use "free" rather than "xfree" (which doesn't exist)
- added a gcc/unique-ptr-tests.cc
- implement unique_xmalloc_ptr<T[]> (taken from gdb, but changing
  "xfree" to "free", and adding support for pre-C++-11)

gcc/ChangeLog:

	David Malcolm <dmalcolm@redhat.com>

	* Makefile.in (OBJS): Add unique-ptr-tests.o.
	* selftest-run-tests.c (selftest::run_tests): Call
	selftest::unique_ptr_tests_cc_tests.
	* selftest.h (selftest::unique_ptr_tests_cc_tests): New decl.
	* unique-ptr-tests.cc: New file.

include/ChangeLog:

	Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
	David Malcolm <dmalcolm@redhat.com>

	* unique-ptr.h: New file.

From-SVN: r253797
2017-10-16 20:50:40 +00:00
..
gdb Update copyright years. 2017-01-04 12:30:51 +01:00
ansidecl.h [include] Add macro DISABLE_COPY_AND_ASSIGN 2017-09-15 15:40:50 +00:00
ChangeLog Add gnu::unique_ptr 2017-10-16 20:50:40 +00:00
ChangeLog-9103
ChangeLog.jit Merger of dmalcolm/jit branch from git 2014-11-11 21:55:52 +00:00
COPYING
COPYING3
demangle.h Fix PR demangler/70909 and 67264 (endless demangler recursion) 2017-03-08 14:28:38 +00:00
dwarf2.def Add DW_CFA_AARCH64_negate_ra_state to dwarf2.def/h and dwarfnames.c 2017-09-12 16:39:59 +00:00
dwarf2.h Add DW_CFA_AARCH64_negate_ra_state to dwarf2.def/h and dwarfnames.c 2017-09-12 16:39:59 +00:00
dyn-string.h Update copyright years. 2017-01-04 12:30:51 +01:00
environ.h environ.h: Add #ifndef guard. 2017-05-19 21:22:07 -04:00
fibheap.h Update copyright years. 2017-01-04 12:30:51 +01:00
filenames.h Update copyright years. 2017-01-04 12:30:51 +01:00
floatformat.h Update copyright years. 2017-01-04 12:30:51 +01:00
fnmatch.h Update copyright years. 2017-01-04 12:30:51 +01:00
gcc-c-fe.def Introduce C++ support in libcc1 2017-01-31 01:02:03 +00:00
gcc-c-interface.h Introduce C++ support in libcc1 2017-01-31 01:02:03 +00:00
gcc-cp-fe.def Introduce C++ support in libcc1 2017-01-31 01:02:03 +00:00
gcc-cp-interface.h Introduce C++ support in libcc1 2017-01-31 01:02:03 +00:00
gcc-interface.h Introduce C++ support in libcc1 2017-01-31 01:02:03 +00:00
getopt.h Update copyright years. 2017-01-04 12:30:51 +01:00
gomp-constants.h Update copyright years. 2017-01-04 12:30:51 +01:00
hashtab.h Update copyright years. 2017-01-04 12:30:51 +01:00
hsa.h Brig front-end 2017-01-24 13:45:56 +01:00
leb128.h Update copyright years. 2017-01-04 12:30:51 +01:00
libiberty.h * libiberty.h (ASTRDUP): Adjust cast to avoid warning. 2017-05-25 00:33:48 +00:00
longlong.h * longlong.h: Remove ns32k support. 2017-06-27 10:10:15 -06:00
lto-symtab.h Update copyright years. 2017-01-04 12:30:51 +01:00
md5.h Update copyright years. 2017-01-04 12:30:51 +01:00
objalloc.h Update copyright years. 2017-01-04 12:30:51 +01:00
obstack.h Update copyright years. 2017-01-04 12:30:51 +01:00
partition.h Update copyright years. 2017-01-04 12:30:51 +01:00
plugin-api.h Update copyright years. 2017-01-04 12:30:51 +01:00
safe-ctype.h Update copyright years. 2017-01-04 12:30:51 +01:00
sha1.h Update copyright years. 2017-01-04 12:30:51 +01:00
simple-object.h re PR go/78628 (GO fails to build a translation unit decl) 2017-08-21 10:29:00 +00:00
sort.h Update copyright years. 2017-01-04 12:30:51 +01:00
splay-tree.h Update copyright years. 2017-01-04 12:30:51 +01:00
symcat.h Update copyright years. 2017-01-04 12:30:51 +01:00
timeval-utils.h Update copyright years. 2017-01-04 12:30:51 +01:00
unique-ptr.h Add gnu::unique_ptr 2017-10-16 20:50:40 +00:00
vtv-change-permission.h Update copyright years. 2017-01-04 12:30:51 +01:00
xregex2.h Update copyright years. 2017-01-04 12:30:51 +01:00
xregex.h
xtensa-config.h Update copyright years. 2017-01-04 12:30:51 +01:00