head	1.1;
branch	1.1.1;
access;
symbols
	netbsd-11-0-RC5:1.1.1.16
	netbsd-11-0-RC4:1.1.1.16
	netbsd-11-0-RC3:1.1.1.16
	netbsd-11-0-RC2:1.1.1.16
	netbsd-11-0-RC1:1.1.1.16
	gcc-14-3-0:1.1.1.17
	perseant-exfatfs-base-20250801:1.1.1.16
	netbsd-11:1.1.1.16.0.2
	netbsd-11-base:1.1.1.16
	gcc-12-5-0:1.1.1.16
	netbsd-10-1-RELEASE:1.1.1.14
	perseant-exfatfs-base-20240630:1.1.1.16
	gcc-12-4-0:1.1.1.16
	perseant-exfatfs:1.1.1.15.0.2
	perseant-exfatfs-base:1.1.1.15
	netbsd-8-3-RELEASE:1.1.1.3.8.1
	netbsd-9-4-RELEASE:1.1.1.7.2.1
	netbsd-10-0-RELEASE:1.1.1.14
	netbsd-10-0-RC6:1.1.1.14
	netbsd-10-0-RC5:1.1.1.14
	netbsd-10-0-RC4:1.1.1.14
	netbsd-10-0-RC3:1.1.1.14
	netbsd-10-0-RC2:1.1.1.14
	netbsd-10-0-RC1:1.1.1.14
	gcc-12-3-0:1.1.1.15
	gcc-10-5-0:1.1.1.14
	netbsd-10:1.1.1.14.0.2
	netbsd-10-base:1.1.1.14
	netbsd-9-3-RELEASE:1.1.1.7.2.1
	gcc-10-4-0:1.1.1.14
	cjep_sun2x-base1:1.1.1.13
	cjep_sun2x:1.1.1.13.0.4
	cjep_sun2x-base:1.1.1.13
	cjep_staticlib_x-base1:1.1.1.13
	netbsd-9-2-RELEASE:1.1.1.7.2.1
	cjep_staticlib_x:1.1.1.13.0.2
	cjep_staticlib_x-base:1.1.1.13
	gcc-10-3-0:1.1.1.13
	netbsd-9-1-RELEASE:1.1.1.7.2.1
	gcc-9-3-0:1.1.1.12
	gcc-7-5-0:1.1.1.10
	phil-wifi-20200421:1.1.1.9
	phil-wifi-20200411:1.1.1.9
	is-mlppp:1.1.1.8.0.2
	is-mlppp-base:1.1.1.8
	phil-wifi-20200406:1.1.1.9
	netbsd-8-2-RELEASE:1.1.1.3.8.1
	gcc-8-4-0:1.1.1.11
	netbsd-9-0-RELEASE:1.1.1.7
	netbsd-9-0-RC2:1.1.1.7
	netbsd-9-0-RC1:1.1.1.7
	phil-wifi-20191119:1.1.1.8
	gcc-8-3-0:1.1.1.8
	netbsd-9:1.1.1.7.0.2
	netbsd-9-base:1.1.1.7
	phil-wifi-20190609:1.1.1.7
	netbsd-8-1-RELEASE:1.1.1.3.8.1
	netbsd-8-1-RC1:1.1.1.3.8.1
	pgoyette-compat-merge-20190127:1.1.1.5.2.2
	pgoyette-compat-20190127:1.1.1.7
	gcc-7-4-0:1.1.1.7
	pgoyette-compat-20190118:1.1.1.6
	pgoyette-compat-1226:1.1.1.6
	pgoyette-compat-1126:1.1.1.6
	gcc-6-5-0:1.1.1.6
	pgoyette-compat-1020:1.1.1.5
	pgoyette-compat-0930:1.1.1.5
	pgoyette-compat-0906:1.1.1.5
	netbsd-7-2-RELEASE:1.1.1.2
	pgoyette-compat-0728:1.1.1.5
	netbsd-8-0-RELEASE:1.1.1.3.8.1
	phil-wifi:1.1.1.5.0.4
	phil-wifi-base:1.1.1.5
	pgoyette-compat-0625:1.1.1.5
	netbsd-8-0-RC2:1.1.1.3.8.1
	pgoyette-compat-0521:1.1.1.5
	pgoyette-compat-0502:1.1.1.5
	pgoyette-compat-0422:1.1.1.5
	netbsd-8-0-RC1:1.1.1.3.8.1
	pgoyette-compat-0415:1.1.1.5
	pgoyette-compat-0407:1.1.1.5
	pgoyette-compat-0330:1.1.1.5
	pgoyette-compat-0322:1.1.1.5
	pgoyette-compat-0315:1.1.1.5
	netbsd-7-1-2-RELEASE:1.1.1.2
	pgoyette-compat:1.1.1.5.0.2
	pgoyette-compat-base:1.1.1.5
	gcc-6-4-0:1.1.1.5
	netbsd-7-1-1-RELEASE:1.1.1.2
	gcc-5-5-0:1.1.1.4
	matt-nb8-mediatek:1.1.1.3.0.12
	matt-nb8-mediatek-base:1.1.1.3
	perseant-stdc-iso10646:1.1.1.3.0.10
	perseant-stdc-iso10646-base:1.1.1.3
	netbsd-8:1.1.1.3.0.8
	netbsd-8-base:1.1.1.3
	prg-localcount2-base3:1.1.1.3
	prg-localcount2-base2:1.1.1.3
	prg-localcount2-base1:1.1.1.3
	prg-localcount2:1.1.1.3.0.6
	prg-localcount2-base:1.1.1.3
	pgoyette-localcount-20170426:1.1.1.3
	bouyer-socketcan-base1:1.1.1.3
	pgoyette-localcount-20170320:1.1.1.3
	netbsd-7-1:1.1.1.2.0.10
	netbsd-7-1-RELEASE:1.1.1.2
	netbsd-7-1-RC2:1.1.1.2
	netbsd-7-nhusb-base-20170116:1.1.1.2
	bouyer-socketcan:1.1.1.3.0.4
	bouyer-socketcan-base:1.1.1.3
	pgoyette-localcount-20170107:1.1.1.3
	netbsd-7-1-RC1:1.1.1.2
	pgoyette-localcount-20161104:1.1.1.3
	netbsd-7-0-2-RELEASE:1.1.1.2
	localcount-20160914:1.1.1.3
	netbsd-7-nhusb:1.1.1.2.0.8
	netbsd-7-nhusb-base:1.1.1.2
	pgoyette-localcount-20160806:1.1.1.3
	pgoyette-localcount-20160726:1.1.1.3
	pgoyette-localcount:1.1.1.3.0.2
	pgoyette-localcount-base:1.1.1.3
	gcc-5-4-0:1.1.1.3
	netbsd-7-0-1-RELEASE:1.1.1.2
	gcc-5-3-0:1.1.1.3
	netbsd-7-0:1.1.1.2.0.6
	netbsd-7-0-RELEASE:1.1.1.2
	gcc-4-8-5-pre-gcc-old-import:1.1.1.2
	netbsd-7-0-RC3:1.1.1.2
	netbsd-7-0-RC2:1.1.1.2
	post-gcc-4-8-5-merge:1.1.1.2
	gcc-4-8-5:1.1.1.2
	netbsd-7-0-RC1:1.1.1.2
	gcc-4-8-4:1.1.1.2
	gcc-4-8-20141009:1.1.1.2
	netbsd-6-0-6-RELEASE:1.1.1.1
	netbsd-6-1-5-RELEASE:1.1.1.1
	netbsd-7:1.1.1.2.0.4
	netbsd-7-base:1.1.1.2
	gcc-4-8-3:1.1.1.2
	yamt-pagecache-base9:1.1.1.2
	yamt-pagecache-tag8:1.1.1.1
	netbsd-6-1-4-RELEASE:1.1.1.1
	netbsd-6-0-5-RELEASE:1.1.1.1
	tls-earlyentropy:1.1.1.2.0.2
	tls-earlyentropy-base:1.1.1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.2
	riastradh-drm2-base3:1.1.1.2
	gcc-4-8-3-pre-r208254:1.1.1.2
	gcc-4-8-3-pre-r206687:1.1.1.2
	imported-to-gcc-old-20140227-0107:1.1.1.1
	netbsd-6-1-3-RELEASE:1.1.1.1
	netbsd-6-0-4-RELEASE:1.1.1.1
	netbsd-6-1-2-RELEASE:1.1.1.1
	netbsd-6-0-3-RELEASE:1.1.1.1
	netbsd-6-1-1-RELEASE:1.1.1.1
	riastradh-drm2-base2:1.1.1.1
	riastradh-drm2-base1:1.1.1.1
	riastradh-drm2:1.1.1.1.0.12
	riastradh-drm2-base:1.1.1.1
	netbsd-6-1:1.1.1.1.0.16
	netbsd-6-0-2-RELEASE:1.1.1.1
	netbsd-6-1-RELEASE:1.1.1.1
	netbsd-6-1-RC4:1.1.1.1
	netbsd-6-1-RC3:1.1.1.1
	agc-symver:1.1.1.1.0.14
	agc-symver-base:1.1.1.1
	netbsd-6-1-RC2:1.1.1.1
	netbsd-6-1-RC1:1.1.1.1
	yamt-pagecache-base8:1.1.1.1
	netbsd-6-0-1-RELEASE:1.1.1.1
	yamt-pagecache-base7:1.1.1.1
	matt-nb6-plus-nbase:1.1.1.1
	yamt-pagecache-base6:1.1.1.1
	netbsd-6-0:1.1.1.1.0.10
	netbsd-6-0-RELEASE:1.1.1.1
	gcc-4-5-4:1.1.1.1
	netbsd-6-0-RC2:1.1.1.1
	tls-maxphys:1.1.1.1.0.8
	tls-maxphys-base:1.1.1.2
	matt-nb6-plus:1.1.1.1.0.6
	matt-nb6-plus-base:1.1.1.1
	netbsd-6-0-RC1:1.1.1.1
	yamt-pagecache-base5:1.1.1.1
	yamt-pagecache-base4:1.1.1.1
	netbsd-6:1.1.1.1.0.4
	netbsd-6-base:1.1.1.1
	yamt-pagecache-base3:1.1.1.1
	yamt-pagecache-base2:1.1.1.1
	yamt-pagecache:1.1.1.1.0.2
	yamt-pagecache-base:1.1.1.1
	gcc-4-5-3:1.1.1.1
	FSF:1.1.1;
locks; strict;
comment	@ * @;


1.1
date	2011.06.21.01.24.41;	author mrg;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2011.06.21.01.24.41;	author mrg;	state Exp;
branches
	1.1.1.1.2.1
	1.1.1.1.8.1;
next	1.1.1.2;

1.1.1.2
date	2014.03.01.08.41.34;	author mrg;	state Exp;
branches;
next	1.1.1.3;
commitid	TtaB91QNTknAoYqx;

1.1.1.3
date	2016.01.24.06.05.52;	author mrg;	state Exp;
branches
	1.1.1.3.8.1;
next	1.1.1.4;
commitid	uWWfbLp08zOK79Sy;

1.1.1.4
date	2017.11.11.23.49.29;	author mrg;	state Exp;
branches;
next	1.1.1.5;
commitid	KefS4gJN8ajyYFeA;

1.1.1.5
date	2018.02.02.01.59.04;	author mrg;	state Exp;
branches
	1.1.1.5.2.1
	1.1.1.5.4.1;
next	1.1.1.6;
commitid	XNKaycqpfhzd5epA;

1.1.1.6
date	2018.11.04.00.12.29;	author mrg;	state Exp;
branches;
next	1.1.1.7;
commitid	bulspy67pMB6EyYA;

1.1.1.7
date	2019.01.19.10.14.12;	author mrg;	state Exp;
branches
	1.1.1.7.2.1;
next	1.1.1.8;
commitid	VQ8OwWIg5RS9kn8B;

1.1.1.8
date	2019.10.01.09.36.07;	author mrg;	state Exp;
branches;
next	1.1.1.9;
commitid	smvgr2IPAQDr89FB;

1.1.1.9
date	2020.03.11.08.15.50;	author mrg;	state Exp;
branches;
next	1.1.1.10;
commitid	AhKhCnGPUZgytXZB;

1.1.1.10
date	2020.08.11.05.10.40;	author mrg;	state Exp;
branches;
next	1.1.1.11;
commitid	5dBRDT7i6e65xBjC;

1.1.1.11
date	2020.08.11.05.30.09;	author mrg;	state Exp;
branches;
next	1.1.1.12;
commitid	7AI4OfpLi4eqEBjC;

1.1.1.12
date	2020.09.05.07.52.10;	author mrg;	state Exp;
branches;
next	1.1.1.13;
commitid	ZRYA7IOuwfMjAPmC;

1.1.1.13
date	2021.04.10.22.10.03;	author mrg;	state Exp;
branches;
next	1.1.1.14;
commitid	eC4g0MRpqTvEkNOC;

1.1.1.14
date	2022.07.22.19.52.37;	author mrg;	state Exp;
branches;
next	1.1.1.15;
commitid	fUYPgdKzIHqhwVMD;

1.1.1.15
date	2023.07.30.05.21.20;	author mrg;	state Exp;
branches
	1.1.1.15.2.1;
next	1.1.1.16;
commitid	tk6nV4mbc9nVEMyE;

1.1.1.16
date	2024.06.30.07.35.41;	author mrg;	state Exp;
branches;
next	1.1.1.17;
commitid	m7BwZsPdfJvuHYfF;

1.1.1.17
date	2025.09.13.23.45.47;	author mrg;	state Exp;
branches;
next	;
commitid	KwhwN4krNWa6XBaG;

1.1.1.1.2.1
date	2014.05.22.16.37.48;	author yamt;	state Exp;
branches;
next	;
commitid	DX8bafDLmqEbpyBx;

1.1.1.1.8.1
date	2014.08.19.23.54.49;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.1.1.3.8.1
date	2017.11.23.11.02.02;	author martin;	state Exp;
branches;
next	;
commitid	lA6hq5q2Y1dXl9gA;

1.1.1.5.2.1
date	2018.11.26.01.50.58;	author pgoyette;	state Exp;
branches;
next	1.1.1.5.2.2;
commitid	Zj4q5SspGdKXto1B;

1.1.1.5.2.2
date	2019.01.26.21.59.33;	author pgoyette;	state Exp;
branches;
next	;
commitid	JKpcmvSjdT25dl9B;

1.1.1.5.4.1
date	2019.06.10.21.54.50;	author christos;	state Exp;
branches;
next	1.1.1.5.4.2;
commitid	jtc8rnCzWiEEHGqB;

1.1.1.5.4.2
date	2020.04.08.14.06.38;	author martin;	state Exp;
branches;
next	1.1.1.5.4.3;
commitid	Qli2aW9E74UFuA3C;

1.1.1.5.4.3
date	2020.04.13.07.58.36;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.1.1.7.2.1
date	2020.08.14.10.45.31;	author martin;	state Exp;
branches;
next	;
commitid	N4xCrirfb6ezh1kC;

1.1.1.15.2.1
date	2024.07.01.01.00.58;	author perseant;	state Exp;
branches;
next	;
commitid	NkoYLLCQWWw9v4gF;


desc
@@


1.1
log
@Initial revision
@
text
@// unique_ptr implementation -*- C++ -*-

// Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library.  This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.

// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// Under Section 7 of GPL version 3, you are granted additional
// permissions described in the GCC Runtime Library Exception, version
// 3.1, as published by the Free Software Foundation.

// You should have received a copy of the GNU General Public License and
// a copy of the GCC Runtime Library Exception along with this program;
// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
// <http://www.gnu.org/licenses/>.

/** @@file unique_ptr.h
 *  This is an internal header file, included by other library headers.
 *  You should not attempt to use it directly.
 */

#ifndef _UNIQUE_PTR_H
#define _UNIQUE_PTR_H 1

#include <bits/c++config.h>
#include <debug/debug.h>
#include <type_traits>
#include <utility>
#include <tuple>

_GLIBCXX_BEGIN_NAMESPACE(std)

  /**
   * @@addtogroup pointer_abstractions
   * @@{
   */

  /// Primary template, default_delete.
  template<typename _Tp> 
    struct default_delete
      {
	default_delete() { }

	template<typename _Up>
	  default_delete(const default_delete<_Up>&) { }

	void
	operator()(_Tp* __ptr) const
	{
	  static_assert(sizeof(_Tp)>0,
			"can't delete pointer to incomplete type");
	  delete __ptr;
	}
    };

  // _GLIBCXX_RESOLVE_LIB_DEFECTS
  // DR 740 - omit specialization for array objects with a compile time length
  /// Specialization, default_delete.
  template<typename _Tp> 
    struct default_delete<_Tp[]>
    {
      void
      operator()(_Tp* __ptr) const
      {
	static_assert(sizeof(_Tp)>0,
		      "can't delete pointer to incomplete type");
	delete [] __ptr;
      }
    };

  /// 20.7.12.2 unique_ptr for single objects.
  template <typename _Tp, typename _Tp_Deleter = default_delete<_Tp> > 
    class unique_ptr
    {
      typedef std::tuple<_Tp*, _Tp_Deleter>  __tuple_type;
      typedef _Tp* unique_ptr::*             __unspecified_pointer_type;

    public:
      typedef _Tp*               pointer;
      typedef _Tp                element_type;      
      typedef _Tp_Deleter        deleter_type;

      // Constructors.
      unique_ptr()
      : _M_t(pointer(), deleter_type())
      { static_assert(!std::is_pointer<deleter_type>::value,
		      "constructed with null function pointer deleter"); }

      explicit
      unique_ptr(pointer __p)
      : _M_t(__p, deleter_type())
      { static_assert(!std::is_pointer<deleter_type>::value,
		     "constructed with null function pointer deleter"); }

      unique_ptr(pointer __p,
          typename std::conditional<std::is_reference<deleter_type>::value, 
            deleter_type, const deleter_type&>::type __d)
      : _M_t(__p, __d) { }

      unique_ptr(pointer __p,
          typename std::remove_reference<deleter_type>::type&& __d)
      : _M_t(std::move(__p), std::move(__d))
      { static_assert(!std::is_reference<deleter_type>::value, 
		      "rvalue deleter bound to reference"); }

      // Move constructors.
      unique_ptr(unique_ptr&& __u) 
      : _M_t(__u.release(), std::forward<deleter_type>(__u.get_deleter())) { }

      template<typename _Up, typename _Up_Deleter> 
        unique_ptr(unique_ptr<_Up, _Up_Deleter>&& __u) 
        : _M_t(__u.release(), std::forward<deleter_type>(__u.get_deleter()))
	{ }

      // Destructor.
      ~unique_ptr() { reset(); }
    
      // Assignment.
      unique_ptr&
      operator=(unique_ptr&& __u)
      { 
        reset(__u.release()); 
        get_deleter() = std::move(__u.get_deleter()); 
        return *this;
      }

      template<typename _Up, typename _Up_Deleter> 
        unique_ptr&
        operator=(unique_ptr<_Up, _Up_Deleter>&& __u)
	{
          reset(__u.release()); 
          get_deleter() = std::move(__u.get_deleter()); 
          return *this;
        }

      unique_ptr&
      operator=(__unspecified_pointer_type) 
      {
	reset();
	return *this;
      }

      // Observers.
      typename std::add_lvalue_reference<element_type>::type
      operator*() const
      {
	_GLIBCXX_DEBUG_ASSERT(get() != pointer());
	return *get();
      }

      pointer
      operator->() const
      {
	_GLIBCXX_DEBUG_ASSERT(get() != pointer());
	return get();
      }

      pointer
      get() const
      { return std::get<0>(_M_t); }

      deleter_type&
      get_deleter()
      { return std::get<1>(_M_t); }

      const deleter_type&
      get_deleter() const
      { return std::get<1>(_M_t); }

      explicit operator bool() const
      { return get() == pointer() ? false : true; }

      // Modifiers.
      pointer
      release() 
      {
	pointer __p = get();
	std::get<0>(_M_t) = pointer();
	return __p;
      }

      void
      reset(pointer __p = pointer())
      {
	using std::swap;
	swap(std::get<0>(_M_t), __p);
	if (__p != pointer())
	  get_deleter()(__p);
      }

      void
      swap(unique_ptr& __u)
      {
	using std::swap;
	swap(_M_t, __u._M_t);
      }

      // Disable copy from lvalue.
      unique_ptr(const unique_ptr&) = delete;
      unique_ptr& operator=(const unique_ptr&) = delete;

    private:
      __tuple_type _M_t;
  };
 
  /// 20.7.12.3 unique_ptr for array objects with a runtime length
  // [unique.ptr.runtime]
  // _GLIBCXX_RESOLVE_LIB_DEFECTS
  // DR 740 - omit specialization for array objects with a compile time length
  template<typename _Tp, typename _Tp_Deleter> 
    class unique_ptr<_Tp[], _Tp_Deleter>
    {
      typedef std::tuple<_Tp*, _Tp_Deleter>  __tuple_type;
      typedef _Tp* unique_ptr::*             __unspecified_pointer_type;

    public:
      typedef _Tp*               pointer;
      typedef _Tp                element_type;      
      typedef _Tp_Deleter        deleter_type;

      // Constructors.
      unique_ptr()
      : _M_t(pointer(), deleter_type())
      { static_assert(!std::is_pointer<deleter_type>::value,
		      "constructed with null function pointer deleter"); }

      explicit
      unique_ptr(pointer __p)
      : _M_t(__p, deleter_type())
      { static_assert(!std::is_pointer<deleter_type>::value,
		      "constructed with null function pointer deleter"); }

      unique_ptr(pointer __p,
          typename std::conditional<std::is_reference<deleter_type>::value, 
              deleter_type, const deleter_type&>::type __d) 
      : _M_t(__p, __d) { }

      unique_ptr(pointer __p,
		 typename std::remove_reference<deleter_type>::type && __d)
      : _M_t(std::move(__p), std::move(__d))
      { static_assert(!std::is_reference<deleter_type>::value, 
		      "rvalue deleter bound to reference"); }

      // Move constructors.
      unique_ptr(unique_ptr&& __u) 
      : _M_t(__u.release(), std::forward<deleter_type>(__u.get_deleter())) { }

      template<typename _Up, typename _Up_Deleter> 
        unique_ptr(unique_ptr<_Up, _Up_Deleter>&& __u) 
	: _M_t(__u.release(), std::forward<deleter_type>(__u.get_deleter()))
	{ }

      // Destructor.
      ~unique_ptr() { reset(); }

      // Assignment.
      unique_ptr&
      operator=(unique_ptr&& __u)
      {
	reset(__u.release());
	get_deleter() = std::move(__u.get_deleter()); 
	return *this; 
      }

      template<typename _Up, typename _Up_Deleter> 
        unique_ptr&
        operator=(unique_ptr<_Up, _Up_Deleter>&& __u)
	{
          reset(__u.release());
          get_deleter() = std::move(__u.get_deleter()); 
          return *this;
        }

      unique_ptr&
      operator=(__unspecified_pointer_type)
      {
	reset();
	return *this;
      }

      // Observers.
      typename std::add_lvalue_reference<element_type>::type 
      operator[](size_t __i) const 
      {
	_GLIBCXX_DEBUG_ASSERT(get() != pointer());
	return get()[__i];
      }

      pointer
      get() const
      { return std::get<0>(_M_t); }

      deleter_type& 
      get_deleter()
      { return std::get<1>(_M_t); }

      const deleter_type&
      get_deleter() const
      { return std::get<1>(_M_t); }    

      explicit operator bool() const 
      { return get() == pointer() ? false : true; }
    
      // Modifiers.
      pointer
      release() 
      {
	pointer __p = get();
	std::get<0>(_M_t) = pointer();
	return __p;
      }

      void
      reset(pointer __p = pointer()) 
      {
	using std::swap;
	swap(std::get<0>(_M_t), __p);
	if (__p != pointer())
	  get_deleter()(__p);
      }

      // DR 821.
      template<typename _Up>
        void reset(_Up) = delete;

      void
      swap(unique_ptr& __u)
      {
	using std::swap;
	swap(_M_t, __u._M_t);
      }

      // Disable copy from lvalue.
      unique_ptr(const unique_ptr&) = delete;
      unique_ptr& operator=(const unique_ptr&) = delete;

      // Disable construction from convertible pointer types.
      // (N2315 - 20.6.5.3.1)
      template<typename _Up>
        unique_ptr(_Up*, typename
		   std::conditional<std::is_reference<deleter_type>::value,
		   deleter_type, const deleter_type&>::type,
		   typename std::enable_if<std::is_convertible<_Up*, 
		   pointer>::value>::type* = 0) = delete;

      template<typename _Up>
        unique_ptr(_Up*, typename std::remove_reference<deleter_type>::type&&,
		   typename std::enable_if<std::is_convertible<_Up*, 
		   pointer>::value>::type* = 0) = delete;

      template<typename _Up>
        explicit
        unique_ptr(_Up*, typename std::enable_if<std::is_convertible<_Up*, 
		   pointer>::value>::type* = 0) = delete;

    private:
      __tuple_type _M_t;
  };
  
  template<typename _Tp, typename _Tp_Deleter> 
    inline void
    swap(unique_ptr<_Tp, _Tp_Deleter>& __x,
	 unique_ptr<_Tp, _Tp_Deleter>& __y)
    { __x.swap(__y); }

  template<typename _Tp, typename _Tp_Deleter,
	   typename _Up, typename _Up_Deleter>
    inline bool
    operator==(const unique_ptr<_Tp, _Tp_Deleter>& __x,
	       const unique_ptr<_Up, _Up_Deleter>& __y)
    { return __x.get() == __y.get(); }

  template<typename _Tp, typename _Tp_Deleter,
	   typename _Up, typename _Up_Deleter>
    inline bool
    operator!=(const unique_ptr<_Tp, _Tp_Deleter>& __x,
	       const unique_ptr<_Up, _Up_Deleter>& __y)
    { return !(__x.get() == __y.get()); }

  template<typename _Tp, typename _Tp_Deleter,
	   typename _Up, typename _Up_Deleter>
    inline bool
    operator<(const unique_ptr<_Tp, _Tp_Deleter>& __x,
	      const unique_ptr<_Up, _Up_Deleter>& __y)
    { return __x.get() < __y.get(); }

  template<typename _Tp, typename _Tp_Deleter,
	   typename _Up, typename _Up_Deleter>
    inline bool
    operator<=(const unique_ptr<_Tp, _Tp_Deleter>& __x,
	       const unique_ptr<_Up, _Up_Deleter>& __y)
    { return !(__y.get() < __x.get()); }

  template<typename _Tp, typename _Tp_Deleter,
	   typename _Up, typename _Up_Deleter>
    inline bool
    operator>(const unique_ptr<_Tp, _Tp_Deleter>& __x,
	      const unique_ptr<_Up, _Up_Deleter>& __y)
    { return __y.get() < __x.get(); }

  template<typename _Tp, typename _Tp_Deleter,
	   typename _Up, typename _Up_Deleter>
    inline bool
    operator>=(const unique_ptr<_Tp, _Tp_Deleter>& __x,
	       const unique_ptr<_Up, _Up_Deleter>& __y)
    { return !(__x.get() < __y.get()); }

  // @@} group pointer_abstractions

_GLIBCXX_END_NAMESPACE

#endif /* _UNIQUE_PTR_H */
@


1.1.1.1
log
@initial import of GCC 4.5.3 sources.  changes since 4.1 are way too numerous
to review, please see http://gcc.gnu.org/gcc-4.5/changes.html (and the 4.2,
4.3 and 4.4 versions, too.)

this includes the core, c++, objc and the non java/ada/fortran parts of the
testsuite.
@
text
@@


1.1.1.1.8.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d3 1
a3 1
// Copyright (C) 2008-2013 Free Software Foundation, Inc.
d25 1
a25 1
/** @@file bits/unique_ptr.h
d27 1
a27 1
 *  Do not attempt to use it directly. @@headername{memory}
d39 1
a39 3
namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
a45 4
#if _GLIBCXX_USE_DEPRECATED
  template<typename> class auto_ptr;
#endif

d47 1
a47 1
  template<typename _Tp>
d49 2
a50 2
    {
      constexpr default_delete() noexcept = default;
d52 2
a53 3
      template<typename _Up, typename = typename
	       enable_if<is_convertible<_Up*, _Tp*>::value>::type>
        default_delete(const default_delete<_Up>&) noexcept { }
d55 7
a61 7
      void
      operator()(_Tp* __ptr) const
      {
	static_assert(sizeof(_Tp)>0,
		      "can't delete pointer to incomplete type");
	delete __ptr;
      }
d67 1
a67 1
  template<typename _Tp>
a69 17
    private:
      template<typename _Up>
	using __remove_cv = typename remove_cv<_Up>::type;

      // Like is_base_of<_Tp, _Up> but false if unqualified types are the same
      template<typename _Up>
	using __is_derived_Tp
	  = __and_< is_base_of<_Tp, _Up>,
		    __not_<is_same<__remove_cv<_Tp>, __remove_cv<_Up>>> >;

    public:
      constexpr default_delete() noexcept = default;

      template<typename _Up, typename = typename
	       enable_if<!__is_derived_Tp<_Up>::value>::type>
        default_delete(const default_delete<_Up[]>&) noexcept { }

a76 4

      template<typename _Up>
	typename enable_if<__is_derived_Tp<_Up>::value>::type
	operator()(_Up*) const = delete;
d79 2
a80 2
  /// 20.7.1.2 unique_ptr for single objects.
  template <typename _Tp, typename _Dp = default_delete<_Tp> >
d83 2
a84 17
      // use SFINAE to determine whether _Del::pointer exists
      class _Pointer
      {
	template<typename _Up>
	  static typename _Up::pointer __test(typename _Up::pointer*);

	template<typename _Up>
	  static _Tp* __test(...);

	typedef typename remove_reference<_Dp>::type _Del;

      public:
	typedef decltype(__test<_Del>(0)) type;
      };

      typedef std::tuple<typename _Pointer::type, _Dp>  __tuple_type;
      __tuple_type                                      _M_t;
d87 3
a89 3
      typedef typename _Pointer::type   pointer;
      typedef _Tp                       element_type;
      typedef _Dp                       deleter_type;
d92 4
a95 4
      constexpr unique_ptr() noexcept
      : _M_t()
      { static_assert(!is_pointer<deleter_type>::value,
		     "constructed with null function pointer deleter"); }
d98 1
a98 1
      unique_ptr(pointer __p) noexcept
d100 1
a100 1
      { static_assert(!is_pointer<deleter_type>::value,
d104 2
a105 2
	  typename conditional<is_reference<deleter_type>::value,
	    deleter_type, const deleter_type&>::type __d) noexcept
d109 1
a109 1
	  typename remove_reference<deleter_type>::type&& __d) noexcept
d111 1
a111 1
      { static_assert(!std::is_reference<deleter_type>::value,
a113 2
      constexpr unique_ptr(nullptr_t) noexcept : unique_ptr() { }

d115 1
a115 1
      unique_ptr(unique_ptr&& __u) noexcept
d118 3
a120 8
      template<typename _Up, typename _Ep, typename = _Require<
	       is_convertible<typename unique_ptr<_Up, _Ep>::pointer, pointer>,
	       __not_<is_array<_Up>>,
	       typename conditional<is_reference<_Dp>::value,
				    is_same<_Ep, _Dp>,
				    is_convertible<_Ep, _Dp>>::type>>
	unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
	: _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter()))
a122 6
#if _GLIBCXX_USE_DEPRECATED
      template<typename _Up, typename = _Require<
	       is_convertible<_Up*, _Tp*>, is_same<_Dp, default_delete<_Tp>>>>
	unique_ptr(auto_ptr<_Up>&& __u) noexcept;
#endif

d124 2
a125 8
      ~unique_ptr() noexcept
      {
	auto& __ptr = std::get<0>(_M_t);
	if (__ptr != nullptr)
	  get_deleter()(__ptr);
	__ptr = pointer();
      }

d128 5
a132 5
      operator=(unique_ptr&& __u) noexcept
      {
	reset(__u.release());
	get_deleter() = std::forward<deleter_type>(__u.get_deleter());
	return *this;
d135 3
a137 7
      template<typename _Up, typename _Ep>
	typename enable_if< __and_<
	  is_convertible<typename unique_ptr<_Up, _Ep>::pointer, pointer>,
	  __not_<is_array<_Up>>
	  >::value,
	  unique_ptr&>::type
	operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
d139 4
a142 4
	  reset(__u.release());
	  get_deleter() = std::forward<_Ep>(__u.get_deleter());
	  return *this;
	}
d145 1
a145 1
      operator=(nullptr_t) noexcept
d152 1
a152 1
      typename add_lvalue_reference<element_type>::type
d160 1
a160 1
      operator->() const noexcept
d167 1
a167 1
      get() const noexcept
d171 1
a171 1
      get_deleter() noexcept
d175 1
a175 1
      get_deleter() const noexcept
d178 1
a178 1
      explicit operator bool() const noexcept
d183 1
a183 1
      release() noexcept
d191 1
a191 1
      reset(pointer __p = pointer()) noexcept
d200 1
a200 1
      swap(unique_ptr& __u) noexcept
d209 3
d213 2
a214 2

  /// 20.7.1.3 unique_ptr for array objects with a runtime length
d218 2
a219 2
  template<typename _Tp, typename _Dp>
    class unique_ptr<_Tp[], _Dp>
d221 2
a222 38
      // use SFINAE to determine whether _Del::pointer exists
      class _Pointer
      {
	template<typename _Up>
	  static typename _Up::pointer __test(typename _Up::pointer*);

	template<typename _Up>
	  static _Tp* __test(...);

	typedef typename remove_reference<_Dp>::type _Del;

      public:
	typedef decltype(__test<_Del>(0)) type;
      };

      typedef std::tuple<typename _Pointer::type, _Dp>  __tuple_type;
      __tuple_type                                      _M_t;

      template<typename _Up>
	using __remove_cv = typename remove_cv<_Up>::type;

      // like is_base_of<_Tp, _Up> but false if unqualified types are the same
      template<typename _Up>
	using __is_derived_Tp
	  = __and_< is_base_of<_Tp, _Up>,
		    __not_<is_same<__remove_cv<_Tp>, __remove_cv<_Up>>> >;

      template<typename _Up, typename _Ep,
	       typename _Tp_pointer = typename _Pointer::type,
	       typename _Up_pointer = typename unique_ptr<_Up, _Ep>::pointer>
	using __safe_conversion = __and_<
	    is_convertible<_Up_pointer, _Tp_pointer>,
	    is_array<_Up>,
	    __or_<__not_<is_pointer<_Up_pointer>>,
		  __not_<is_pointer<_Tp_pointer>>,
		  __not_<__is_derived_Tp<typename remove_extent<_Up>::type>>
	    >
	  >;
d225 3
a227 3
      typedef typename _Pointer::type	pointer;
      typedef _Tp		 	element_type;
      typedef _Dp                       deleter_type;
d230 2
a231 2
      constexpr unique_ptr() noexcept
      : _M_t()
d236 1
a236 1
      unique_ptr(pointer __p) noexcept
d238 1
a238 1
      { static_assert(!is_pointer<deleter_type>::value,
a240 5
      template<typename _Up, typename = _Require<is_pointer<pointer>,
	       is_convertible<_Up*, pointer>, __is_derived_Tp<_Up>>>
	explicit
	unique_ptr(_Up* __p) = delete;

d242 2
a243 2
	  typename conditional<is_reference<deleter_type>::value,
	      deleter_type, const deleter_type&>::type __d) noexcept
d246 2
a247 2
      unique_ptr(pointer __p, typename
		 remove_reference<deleter_type>::type&& __d) noexcept
d249 1
a249 1
      { static_assert(!is_reference<deleter_type>::value,
d252 2
a253 2
      // Move constructor.
      unique_ptr(unique_ptr&& __u) noexcept
d256 3
a258 10
      constexpr unique_ptr(nullptr_t) noexcept : unique_ptr() { }

      template<typename _Up, typename _Ep,
	       typename = _Require<__safe_conversion<_Up, _Ep>,
		 typename conditional<is_reference<_Dp>::value,
				      is_same<_Ep, _Dp>,
				      is_convertible<_Ep, _Dp>>::type
	       >>
	unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
	: _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter()))
d262 1
a262 7
      ~unique_ptr()
      {
	auto& __ptr = std::get<0>(_M_t);
	if (__ptr != nullptr)
	  get_deleter()(__ptr);
	__ptr = pointer();
      }
d266 1
a266 1
      operator=(unique_ptr&& __u) noexcept
d269 2
a270 2
	get_deleter() = std::forward<deleter_type>(__u.get_deleter());
	return *this;
d273 3
a275 4
      template<typename _Up, typename _Ep>
	typename
	enable_if<__safe_conversion<_Up, _Ep>::value, unique_ptr&>::type
	operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
d277 4
a280 4
	  reset(__u.release());
	  get_deleter() = std::forward<_Ep>(__u.get_deleter());
	  return *this;
	}
d283 1
a283 1
      operator=(nullptr_t) noexcept
d290 2
a291 2
      typename std::add_lvalue_reference<element_type>::type
      operator[](size_t __i) const
d298 1
a298 1
      get() const noexcept
d301 2
a302 2
      deleter_type&
      get_deleter() noexcept
d306 2
a307 2
      get_deleter() const noexcept
      { return std::get<1>(_M_t); }
d309 1
a309 1
      explicit operator bool() const noexcept
d311 1
a311 1

d314 1
a314 1
      release() noexcept
d322 1
a322 5
      reset() noexcept
      { reset(pointer()); }

      void
      reset(pointer __p) noexcept
d326 1
a326 1
	if (__p != nullptr)
d330 3
a332 3
      template<typename _Up, typename = _Require<is_pointer<pointer>,
	       is_convertible<_Up*, pointer>, __is_derived_Tp<_Up>>>
	void reset(_Up*) = delete;
d335 1
a335 1
      swap(unique_ptr& __u) noexcept
d346 17
a362 11
      template<typename _Up, typename = _Require<is_pointer<pointer>,
	       is_convertible<_Up*, pointer>, __is_derived_Tp<_Up>>>
	unique_ptr(_Up*, typename
		   conditional<is_reference<deleter_type>::value,
		   deleter_type, const deleter_type&>::type) = delete;

      template<typename _Up, typename = _Require<is_pointer<pointer>,
	       is_convertible<_Up*, pointer>, __is_derived_Tp<_Up>>>
	unique_ptr(_Up*, typename
		   remove_reference<deleter_type>::type&&) = delete;
    };
d364 5
a368 1
  template<typename _Tp, typename _Dp>
d370 2
a371 2
    swap(unique_ptr<_Tp, _Dp>& __x,
	 unique_ptr<_Tp, _Dp>& __y) noexcept
d374 2
a375 2
  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
d377 2
a378 2
    operator==(const unique_ptr<_Tp, _Dp>& __x,
	       const unique_ptr<_Up, _Ep>& __y)
d381 2
a382 6
  template<typename _Tp, typename _Dp>
    inline bool
    operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept
    { return !__x; }

  template<typename _Tp, typename _Dp>
d384 3
a386 2
    operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
    { return !__x; }
d388 2
a389 2
  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
d391 3
a393 3
    operator!=(const unique_ptr<_Tp, _Dp>& __x,
	       const unique_ptr<_Up, _Ep>& __y)
    { return __x.get() != __y.get(); }
d395 2
a396 1
  template<typename _Tp, typename _Dp>
d398 3
a400 2
    operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept
    { return (bool)__x; }
d402 2
a403 1
  template<typename _Tp, typename _Dp>
d405 3
a407 2
    operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
    { return (bool)__x; }
d409 2
a410 2
  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
d412 3
a414 86
    operator<(const unique_ptr<_Tp, _Dp>& __x,
	      const unique_ptr<_Up, _Ep>& __y)
    {
      typedef typename
	std::common_type<typename unique_ptr<_Tp, _Dp>::pointer,
	                 typename unique_ptr<_Up, _Ep>::pointer>::type _CT;
      return std::less<_CT>()(__x.get(), __y.get());
    }

  template<typename _Tp, typename _Dp>
    inline bool
    operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
    { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(),
								 nullptr); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
    { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr,
								 __x.get()); }

  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
    inline bool
    operator<=(const unique_ptr<_Tp, _Dp>& __x,
	       const unique_ptr<_Up, _Ep>& __y)
    { return !(__y < __x); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
    { return !(nullptr < __x); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
    { return !(__x < nullptr); }

  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
    inline bool
    operator>(const unique_ptr<_Tp, _Dp>& __x,
	      const unique_ptr<_Up, _Ep>& __y)
    { return (__y < __x); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
    { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr,
								 __x.get()); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
    { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(),
								 nullptr); }

  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
    inline bool
    operator>=(const unique_ptr<_Tp, _Dp>& __x,
	       const unique_ptr<_Up, _Ep>& __y)
    { return !(__x < __y); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
    { return !(__x < nullptr); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
    { return !(nullptr < __x); }

  /// std::hash specialization for unique_ptr.
  template<typename _Tp, typename _Dp>
    struct hash<unique_ptr<_Tp, _Dp>>
    : public __hash_base<size_t, unique_ptr<_Tp, _Dp>>
    {
      size_t
      operator()(const unique_ptr<_Tp, _Dp>& __u) const noexcept
      {
	typedef unique_ptr<_Tp, _Dp> _UP;
	return std::hash<typename _UP::pointer>()(__u.get());
      }
    };
d418 1
a418 2
_GLIBCXX_END_NAMESPACE_VERSION
} // namespace
@


1.1.1.1.2.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d3 1
a3 1
// Copyright (C) 2008-2013 Free Software Foundation, Inc.
d25 1
a25 1
/** @@file bits/unique_ptr.h
d27 1
a27 1
 *  Do not attempt to use it directly. @@headername{memory}
d39 1
a39 3
namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
a45 4
#if _GLIBCXX_USE_DEPRECATED
  template<typename> class auto_ptr;
#endif

d47 1
a47 1
  template<typename _Tp>
d49 2
a50 2
    {
      constexpr default_delete() noexcept = default;
d52 2
a53 3
      template<typename _Up, typename = typename
	       enable_if<is_convertible<_Up*, _Tp*>::value>::type>
        default_delete(const default_delete<_Up>&) noexcept { }
d55 7
a61 7
      void
      operator()(_Tp* __ptr) const
      {
	static_assert(sizeof(_Tp)>0,
		      "can't delete pointer to incomplete type");
	delete __ptr;
      }
d67 1
a67 1
  template<typename _Tp>
a69 17
    private:
      template<typename _Up>
	using __remove_cv = typename remove_cv<_Up>::type;

      // Like is_base_of<_Tp, _Up> but false if unqualified types are the same
      template<typename _Up>
	using __is_derived_Tp
	  = __and_< is_base_of<_Tp, _Up>,
		    __not_<is_same<__remove_cv<_Tp>, __remove_cv<_Up>>> >;

    public:
      constexpr default_delete() noexcept = default;

      template<typename _Up, typename = typename
	       enable_if<!__is_derived_Tp<_Up>::value>::type>
        default_delete(const default_delete<_Up[]>&) noexcept { }

a76 4

      template<typename _Up>
	typename enable_if<__is_derived_Tp<_Up>::value>::type
	operator()(_Up*) const = delete;
d79 2
a80 2
  /// 20.7.1.2 unique_ptr for single objects.
  template <typename _Tp, typename _Dp = default_delete<_Tp> >
d83 2
a84 17
      // use SFINAE to determine whether _Del::pointer exists
      class _Pointer
      {
	template<typename _Up>
	  static typename _Up::pointer __test(typename _Up::pointer*);

	template<typename _Up>
	  static _Tp* __test(...);

	typedef typename remove_reference<_Dp>::type _Del;

      public:
	typedef decltype(__test<_Del>(0)) type;
      };

      typedef std::tuple<typename _Pointer::type, _Dp>  __tuple_type;
      __tuple_type                                      _M_t;
d87 3
a89 3
      typedef typename _Pointer::type   pointer;
      typedef _Tp                       element_type;
      typedef _Dp                       deleter_type;
d92 4
a95 4
      constexpr unique_ptr() noexcept
      : _M_t()
      { static_assert(!is_pointer<deleter_type>::value,
		     "constructed with null function pointer deleter"); }
d98 1
a98 1
      unique_ptr(pointer __p) noexcept
d100 1
a100 1
      { static_assert(!is_pointer<deleter_type>::value,
d104 2
a105 2
	  typename conditional<is_reference<deleter_type>::value,
	    deleter_type, const deleter_type&>::type __d) noexcept
d109 1
a109 1
	  typename remove_reference<deleter_type>::type&& __d) noexcept
d111 1
a111 1
      { static_assert(!std::is_reference<deleter_type>::value,
a113 2
      constexpr unique_ptr(nullptr_t) noexcept : unique_ptr() { }

d115 1
a115 1
      unique_ptr(unique_ptr&& __u) noexcept
d118 3
a120 8
      template<typename _Up, typename _Ep, typename = _Require<
	       is_convertible<typename unique_ptr<_Up, _Ep>::pointer, pointer>,
	       __not_<is_array<_Up>>,
	       typename conditional<is_reference<_Dp>::value,
				    is_same<_Ep, _Dp>,
				    is_convertible<_Ep, _Dp>>::type>>
	unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
	: _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter()))
a122 6
#if _GLIBCXX_USE_DEPRECATED
      template<typename _Up, typename = _Require<
	       is_convertible<_Up*, _Tp*>, is_same<_Dp, default_delete<_Tp>>>>
	unique_ptr(auto_ptr<_Up>&& __u) noexcept;
#endif

d124 2
a125 8
      ~unique_ptr() noexcept
      {
	auto& __ptr = std::get<0>(_M_t);
	if (__ptr != nullptr)
	  get_deleter()(__ptr);
	__ptr = pointer();
      }

d128 5
a132 5
      operator=(unique_ptr&& __u) noexcept
      {
	reset(__u.release());
	get_deleter() = std::forward<deleter_type>(__u.get_deleter());
	return *this;
d135 3
a137 7
      template<typename _Up, typename _Ep>
	typename enable_if< __and_<
	  is_convertible<typename unique_ptr<_Up, _Ep>::pointer, pointer>,
	  __not_<is_array<_Up>>
	  >::value,
	  unique_ptr&>::type
	operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
d139 4
a142 4
	  reset(__u.release());
	  get_deleter() = std::forward<_Ep>(__u.get_deleter());
	  return *this;
	}
d145 1
a145 1
      operator=(nullptr_t) noexcept
d152 1
a152 1
      typename add_lvalue_reference<element_type>::type
d160 1
a160 1
      operator->() const noexcept
d167 1
a167 1
      get() const noexcept
d171 1
a171 1
      get_deleter() noexcept
d175 1
a175 1
      get_deleter() const noexcept
d178 1
a178 1
      explicit operator bool() const noexcept
d183 1
a183 1
      release() noexcept
d191 1
a191 1
      reset(pointer __p = pointer()) noexcept
d200 1
a200 1
      swap(unique_ptr& __u) noexcept
d209 3
d213 2
a214 2

  /// 20.7.1.3 unique_ptr for array objects with a runtime length
d218 2
a219 2
  template<typename _Tp, typename _Dp>
    class unique_ptr<_Tp[], _Dp>
d221 2
a222 38
      // use SFINAE to determine whether _Del::pointer exists
      class _Pointer
      {
	template<typename _Up>
	  static typename _Up::pointer __test(typename _Up::pointer*);

	template<typename _Up>
	  static _Tp* __test(...);

	typedef typename remove_reference<_Dp>::type _Del;

      public:
	typedef decltype(__test<_Del>(0)) type;
      };

      typedef std::tuple<typename _Pointer::type, _Dp>  __tuple_type;
      __tuple_type                                      _M_t;

      template<typename _Up>
	using __remove_cv = typename remove_cv<_Up>::type;

      // like is_base_of<_Tp, _Up> but false if unqualified types are the same
      template<typename _Up>
	using __is_derived_Tp
	  = __and_< is_base_of<_Tp, _Up>,
		    __not_<is_same<__remove_cv<_Tp>, __remove_cv<_Up>>> >;

      template<typename _Up, typename _Ep,
	       typename _Tp_pointer = typename _Pointer::type,
	       typename _Up_pointer = typename unique_ptr<_Up, _Ep>::pointer>
	using __safe_conversion = __and_<
	    is_convertible<_Up_pointer, _Tp_pointer>,
	    is_array<_Up>,
	    __or_<__not_<is_pointer<_Up_pointer>>,
		  __not_<is_pointer<_Tp_pointer>>,
		  __not_<__is_derived_Tp<typename remove_extent<_Up>::type>>
	    >
	  >;
d225 3
a227 3
      typedef typename _Pointer::type	pointer;
      typedef _Tp		 	element_type;
      typedef _Dp                       deleter_type;
d230 2
a231 2
      constexpr unique_ptr() noexcept
      : _M_t()
d236 1
a236 1
      unique_ptr(pointer __p) noexcept
d238 1
a238 1
      { static_assert(!is_pointer<deleter_type>::value,
a240 5
      template<typename _Up, typename = _Require<is_pointer<pointer>,
	       is_convertible<_Up*, pointer>, __is_derived_Tp<_Up>>>
	explicit
	unique_ptr(_Up* __p) = delete;

d242 2
a243 2
	  typename conditional<is_reference<deleter_type>::value,
	      deleter_type, const deleter_type&>::type __d) noexcept
d246 2
a247 2
      unique_ptr(pointer __p, typename
		 remove_reference<deleter_type>::type&& __d) noexcept
d249 1
a249 1
      { static_assert(!is_reference<deleter_type>::value,
d252 2
a253 2
      // Move constructor.
      unique_ptr(unique_ptr&& __u) noexcept
d256 3
a258 10
      constexpr unique_ptr(nullptr_t) noexcept : unique_ptr() { }

      template<typename _Up, typename _Ep,
	       typename = _Require<__safe_conversion<_Up, _Ep>,
		 typename conditional<is_reference<_Dp>::value,
				      is_same<_Ep, _Dp>,
				      is_convertible<_Ep, _Dp>>::type
	       >>
	unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
	: _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter()))
d262 1
a262 7
      ~unique_ptr()
      {
	auto& __ptr = std::get<0>(_M_t);
	if (__ptr != nullptr)
	  get_deleter()(__ptr);
	__ptr = pointer();
      }
d266 1
a266 1
      operator=(unique_ptr&& __u) noexcept
d269 2
a270 2
	get_deleter() = std::forward<deleter_type>(__u.get_deleter());
	return *this;
d273 3
a275 4
      template<typename _Up, typename _Ep>
	typename
	enable_if<__safe_conversion<_Up, _Ep>::value, unique_ptr&>::type
	operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
d277 4
a280 4
	  reset(__u.release());
	  get_deleter() = std::forward<_Ep>(__u.get_deleter());
	  return *this;
	}
d283 1
a283 1
      operator=(nullptr_t) noexcept
d290 2
a291 2
      typename std::add_lvalue_reference<element_type>::type
      operator[](size_t __i) const
d298 1
a298 1
      get() const noexcept
d301 2
a302 2
      deleter_type&
      get_deleter() noexcept
d306 2
a307 2
      get_deleter() const noexcept
      { return std::get<1>(_M_t); }
d309 1
a309 1
      explicit operator bool() const noexcept
d311 1
a311 1

d314 1
a314 1
      release() noexcept
d322 1
a322 5
      reset() noexcept
      { reset(pointer()); }

      void
      reset(pointer __p) noexcept
d326 1
a326 1
	if (__p != nullptr)
d330 3
a332 3
      template<typename _Up, typename = _Require<is_pointer<pointer>,
	       is_convertible<_Up*, pointer>, __is_derived_Tp<_Up>>>
	void reset(_Up*) = delete;
d335 1
a335 1
      swap(unique_ptr& __u) noexcept
d346 17
a362 11
      template<typename _Up, typename = _Require<is_pointer<pointer>,
	       is_convertible<_Up*, pointer>, __is_derived_Tp<_Up>>>
	unique_ptr(_Up*, typename
		   conditional<is_reference<deleter_type>::value,
		   deleter_type, const deleter_type&>::type) = delete;

      template<typename _Up, typename = _Require<is_pointer<pointer>,
	       is_convertible<_Up*, pointer>, __is_derived_Tp<_Up>>>
	unique_ptr(_Up*, typename
		   remove_reference<deleter_type>::type&&) = delete;
    };
d364 5
a368 1
  template<typename _Tp, typename _Dp>
d370 2
a371 2
    swap(unique_ptr<_Tp, _Dp>& __x,
	 unique_ptr<_Tp, _Dp>& __y) noexcept
d374 2
a375 2
  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
d377 2
a378 2
    operator==(const unique_ptr<_Tp, _Dp>& __x,
	       const unique_ptr<_Up, _Ep>& __y)
d381 2
a382 6
  template<typename _Tp, typename _Dp>
    inline bool
    operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept
    { return !__x; }

  template<typename _Tp, typename _Dp>
d384 3
a386 2
    operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
    { return !__x; }
d388 2
a389 2
  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
d391 3
a393 3
    operator!=(const unique_ptr<_Tp, _Dp>& __x,
	       const unique_ptr<_Up, _Ep>& __y)
    { return __x.get() != __y.get(); }
d395 2
a396 1
  template<typename _Tp, typename _Dp>
d398 3
a400 2
    operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept
    { return (bool)__x; }
d402 2
a403 1
  template<typename _Tp, typename _Dp>
d405 3
a407 2
    operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
    { return (bool)__x; }
d409 2
a410 2
  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
d412 3
a414 86
    operator<(const unique_ptr<_Tp, _Dp>& __x,
	      const unique_ptr<_Up, _Ep>& __y)
    {
      typedef typename
	std::common_type<typename unique_ptr<_Tp, _Dp>::pointer,
	                 typename unique_ptr<_Up, _Ep>::pointer>::type _CT;
      return std::less<_CT>()(__x.get(), __y.get());
    }

  template<typename _Tp, typename _Dp>
    inline bool
    operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
    { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(),
								 nullptr); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
    { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr,
								 __x.get()); }

  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
    inline bool
    operator<=(const unique_ptr<_Tp, _Dp>& __x,
	       const unique_ptr<_Up, _Ep>& __y)
    { return !(__y < __x); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
    { return !(nullptr < __x); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
    { return !(__x < nullptr); }

  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
    inline bool
    operator>(const unique_ptr<_Tp, _Dp>& __x,
	      const unique_ptr<_Up, _Ep>& __y)
    { return (__y < __x); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
    { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr,
								 __x.get()); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
    { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(),
								 nullptr); }

  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
    inline bool
    operator>=(const unique_ptr<_Tp, _Dp>& __x,
	       const unique_ptr<_Up, _Ep>& __y)
    { return !(__x < __y); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
    { return !(__x < nullptr); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
    { return !(nullptr < __x); }

  /// std::hash specialization for unique_ptr.
  template<typename _Tp, typename _Dp>
    struct hash<unique_ptr<_Tp, _Dp>>
    : public __hash_base<size_t, unique_ptr<_Tp, _Dp>>
    {
      size_t
      operator()(const unique_ptr<_Tp, _Dp>& __u) const noexcept
      {
	typedef unique_ptr<_Tp, _Dp> _UP;
	return std::hash<typename _UP::pointer>()(__u.get());
      }
    };
d418 1
a418 2
_GLIBCXX_END_NAMESPACE_VERSION
} // namespace
@


1.1.1.2
log
@import GCC 4.8 branch at r206687.

highlights from: http://gcc.gnu.org/gcc-4.6/changes.html

   GCC now has stricter checks for invalid command-line options
   New -Wunused-but-set-variable and -Wunused-but-set-parameter
      warnings
   Many platforms have been obsoleted
   Link-time optimization improvements
   A new switch -fstack-usage has been added
   A new function attribute leaf was introduced
   A new warning, enabled by -Wdouble-promotion
   Support for selectively enabling and disabling warnings via
      #pragma GCC diagnostic has been added
   There is now experimental support for some features from the
      upcoming C1X revision of the ISO C standard
   Improved experimental support for the upcoming C++0x ISO C++
      standard
   G++ now issues clearer diagnostics in several cases
   Updates for ARM, x86, MIPS, PPC/PPC64, SPARC
   Darwin, FreeBSD, Solaris 2, MinGW and Cygwin now all support
      __float128 on 32-bit and 64-bit x86 targets. [*1]

highlights from: http://gcc.gnu.org/gcc-4.7/changes.html

   The -fconserve-space flag has been deprecated
   Support for a new parameter --param case-values-threshold=n
      was added
   Interprocedural and Link-time optimization improvements
   A new built-in, __builtin_assume_aligned, has been added
   A new warning option -Wunused-local-typedefs was added
   A new experimental command-line option -ftrack-macro-expansion
      was added
   Support for atomic operations specifying the C++11/C11 memory
      model has been added
   There is support for some more features from the C11 revision
      of the ISO C standard
   Improved experimental support for the new ISO C++ standard,
      C++11
   Updates for ARM, x86, MIPS, PPC/PPC64, SH, SPARC, TILE*
   A new option (-grecord-gcc-switches) was added

highlights from: http://gcc.gnu.org/gcc-4.8/changes.html

   GCC now uses C++ as its implementation language.  This means
      that to build GCC from sources, you will need a C++
      compiler that understands C++ 2003
   DWARF4 is now the default when generating DWARF debug
      information
   A new general optimization level, -Og, has been introduced
   A new option -ftree-partial-pre was added
   The option -fconserve-space has been removed
   The command-line options -fipa-struct-reorg and
      -fipa-matrix-reorg have been removed
   Interprocedural and Link-time optimization improvements
   AddressSanitizer, a fast memory error detector, has been
      added  [*2]
   A new -Wsizeof-pointer-memaccess warning has been added
   G++ now supports a -std=c++1y option for experimentation
      with features proposed for the next revision of the
      standard, expected around 2014
   Improved experimental support for the new ISO C++ standard,
      C++11
   A new port has been added to support AArch64
   Updates for ARM, x86, MIPS, PPC/PPC64, SH, SPARC, TILE*


[*1] we should support this too!
[*2] we should look into this.
     https://code.google.com/p/address-sanitizer/
@
text
@d3 1
a3 1
// Copyright (C) 2008-2013 Free Software Foundation, Inc.
d25 1
a25 1
/** @@file bits/unique_ptr.h
d27 1
a27 1
 *  Do not attempt to use it directly. @@headername{memory}
d39 1
a39 3
namespace std _GLIBCXX_VISIBILITY(default)
{
_GLIBCXX_BEGIN_NAMESPACE_VERSION
a45 4
#if _GLIBCXX_USE_DEPRECATED
  template<typename> class auto_ptr;
#endif

d47 1
a47 1
  template<typename _Tp>
d49 2
a50 2
    {
      constexpr default_delete() noexcept = default;
d52 2
a53 3
      template<typename _Up, typename = typename
	       enable_if<is_convertible<_Up*, _Tp*>::value>::type>
        default_delete(const default_delete<_Up>&) noexcept { }
d55 7
a61 7
      void
      operator()(_Tp* __ptr) const
      {
	static_assert(sizeof(_Tp)>0,
		      "can't delete pointer to incomplete type");
	delete __ptr;
      }
d67 1
a67 1
  template<typename _Tp>
a69 17
    private:
      template<typename _Up>
	using __remove_cv = typename remove_cv<_Up>::type;

      // Like is_base_of<_Tp, _Up> but false if unqualified types are the same
      template<typename _Up>
	using __is_derived_Tp
	  = __and_< is_base_of<_Tp, _Up>,
		    __not_<is_same<__remove_cv<_Tp>, __remove_cv<_Up>>> >;

    public:
      constexpr default_delete() noexcept = default;

      template<typename _Up, typename = typename
	       enable_if<!__is_derived_Tp<_Up>::value>::type>
        default_delete(const default_delete<_Up[]>&) noexcept { }

a76 4

      template<typename _Up>
	typename enable_if<__is_derived_Tp<_Up>::value>::type
	operator()(_Up*) const = delete;
d79 2
a80 2
  /// 20.7.1.2 unique_ptr for single objects.
  template <typename _Tp, typename _Dp = default_delete<_Tp> >
d83 2
a84 17
      // use SFINAE to determine whether _Del::pointer exists
      class _Pointer
      {
	template<typename _Up>
	  static typename _Up::pointer __test(typename _Up::pointer*);

	template<typename _Up>
	  static _Tp* __test(...);

	typedef typename remove_reference<_Dp>::type _Del;

      public:
	typedef decltype(__test<_Del>(0)) type;
      };

      typedef std::tuple<typename _Pointer::type, _Dp>  __tuple_type;
      __tuple_type                                      _M_t;
d87 3
a89 3
      typedef typename _Pointer::type   pointer;
      typedef _Tp                       element_type;
      typedef _Dp                       deleter_type;
d92 4
a95 4
      constexpr unique_ptr() noexcept
      : _M_t()
      { static_assert(!is_pointer<deleter_type>::value,
		     "constructed with null function pointer deleter"); }
d98 1
a98 1
      unique_ptr(pointer __p) noexcept
d100 1
a100 1
      { static_assert(!is_pointer<deleter_type>::value,
d104 2
a105 2
	  typename conditional<is_reference<deleter_type>::value,
	    deleter_type, const deleter_type&>::type __d) noexcept
d109 1
a109 1
	  typename remove_reference<deleter_type>::type&& __d) noexcept
d111 1
a111 1
      { static_assert(!std::is_reference<deleter_type>::value,
a113 2
      constexpr unique_ptr(nullptr_t) noexcept : unique_ptr() { }

d115 1
a115 1
      unique_ptr(unique_ptr&& __u) noexcept
d118 3
a120 8
      template<typename _Up, typename _Ep, typename = _Require<
	       is_convertible<typename unique_ptr<_Up, _Ep>::pointer, pointer>,
	       __not_<is_array<_Up>>,
	       typename conditional<is_reference<_Dp>::value,
				    is_same<_Ep, _Dp>,
				    is_convertible<_Ep, _Dp>>::type>>
	unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
	: _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter()))
a122 6
#if _GLIBCXX_USE_DEPRECATED
      template<typename _Up, typename = _Require<
	       is_convertible<_Up*, _Tp*>, is_same<_Dp, default_delete<_Tp>>>>
	unique_ptr(auto_ptr<_Up>&& __u) noexcept;
#endif

d124 2
a125 8
      ~unique_ptr() noexcept
      {
	auto& __ptr = std::get<0>(_M_t);
	if (__ptr != nullptr)
	  get_deleter()(__ptr);
	__ptr = pointer();
      }

d128 5
a132 5
      operator=(unique_ptr&& __u) noexcept
      {
	reset(__u.release());
	get_deleter() = std::forward<deleter_type>(__u.get_deleter());
	return *this;
d135 3
a137 7
      template<typename _Up, typename _Ep>
	typename enable_if< __and_<
	  is_convertible<typename unique_ptr<_Up, _Ep>::pointer, pointer>,
	  __not_<is_array<_Up>>
	  >::value,
	  unique_ptr&>::type
	operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
d139 4
a142 4
	  reset(__u.release());
	  get_deleter() = std::forward<_Ep>(__u.get_deleter());
	  return *this;
	}
d145 1
a145 1
      operator=(nullptr_t) noexcept
d152 1
a152 1
      typename add_lvalue_reference<element_type>::type
d160 1
a160 1
      operator->() const noexcept
d167 1
a167 1
      get() const noexcept
d171 1
a171 1
      get_deleter() noexcept
d175 1
a175 1
      get_deleter() const noexcept
d178 1
a178 1
      explicit operator bool() const noexcept
d183 1
a183 1
      release() noexcept
d191 1
a191 1
      reset(pointer __p = pointer()) noexcept
d200 1
a200 1
      swap(unique_ptr& __u) noexcept
d209 3
d213 2
a214 2

  /// 20.7.1.3 unique_ptr for array objects with a runtime length
d218 2
a219 2
  template<typename _Tp, typename _Dp>
    class unique_ptr<_Tp[], _Dp>
d221 2
a222 38
      // use SFINAE to determine whether _Del::pointer exists
      class _Pointer
      {
	template<typename _Up>
	  static typename _Up::pointer __test(typename _Up::pointer*);

	template<typename _Up>
	  static _Tp* __test(...);

	typedef typename remove_reference<_Dp>::type _Del;

      public:
	typedef decltype(__test<_Del>(0)) type;
      };

      typedef std::tuple<typename _Pointer::type, _Dp>  __tuple_type;
      __tuple_type                                      _M_t;

      template<typename _Up>
	using __remove_cv = typename remove_cv<_Up>::type;

      // like is_base_of<_Tp, _Up> but false if unqualified types are the same
      template<typename _Up>
	using __is_derived_Tp
	  = __and_< is_base_of<_Tp, _Up>,
		    __not_<is_same<__remove_cv<_Tp>, __remove_cv<_Up>>> >;

      template<typename _Up, typename _Ep,
	       typename _Tp_pointer = typename _Pointer::type,
	       typename _Up_pointer = typename unique_ptr<_Up, _Ep>::pointer>
	using __safe_conversion = __and_<
	    is_convertible<_Up_pointer, _Tp_pointer>,
	    is_array<_Up>,
	    __or_<__not_<is_pointer<_Up_pointer>>,
		  __not_<is_pointer<_Tp_pointer>>,
		  __not_<__is_derived_Tp<typename remove_extent<_Up>::type>>
	    >
	  >;
d225 3
a227 3
      typedef typename _Pointer::type	pointer;
      typedef _Tp		 	element_type;
      typedef _Dp                       deleter_type;
d230 2
a231 2
      constexpr unique_ptr() noexcept
      : _M_t()
d236 1
a236 1
      unique_ptr(pointer __p) noexcept
d238 1
a238 1
      { static_assert(!is_pointer<deleter_type>::value,
a240 5
      template<typename _Up, typename = _Require<is_pointer<pointer>,
	       is_convertible<_Up*, pointer>, __is_derived_Tp<_Up>>>
	explicit
	unique_ptr(_Up* __p) = delete;

d242 2
a243 2
	  typename conditional<is_reference<deleter_type>::value,
	      deleter_type, const deleter_type&>::type __d) noexcept
d246 2
a247 2
      unique_ptr(pointer __p, typename
		 remove_reference<deleter_type>::type&& __d) noexcept
d249 1
a249 1
      { static_assert(!is_reference<deleter_type>::value,
d252 2
a253 2
      // Move constructor.
      unique_ptr(unique_ptr&& __u) noexcept
d256 3
a258 10
      constexpr unique_ptr(nullptr_t) noexcept : unique_ptr() { }

      template<typename _Up, typename _Ep,
	       typename = _Require<__safe_conversion<_Up, _Ep>,
		 typename conditional<is_reference<_Dp>::value,
				      is_same<_Ep, _Dp>,
				      is_convertible<_Ep, _Dp>>::type
	       >>
	unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
	: _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter()))
d262 1
a262 7
      ~unique_ptr()
      {
	auto& __ptr = std::get<0>(_M_t);
	if (__ptr != nullptr)
	  get_deleter()(__ptr);
	__ptr = pointer();
      }
d266 1
a266 1
      operator=(unique_ptr&& __u) noexcept
d269 2
a270 2
	get_deleter() = std::forward<deleter_type>(__u.get_deleter());
	return *this;
d273 3
a275 4
      template<typename _Up, typename _Ep>
	typename
	enable_if<__safe_conversion<_Up, _Ep>::value, unique_ptr&>::type
	operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
d277 4
a280 4
	  reset(__u.release());
	  get_deleter() = std::forward<_Ep>(__u.get_deleter());
	  return *this;
	}
d283 1
a283 1
      operator=(nullptr_t) noexcept
d290 2
a291 2
      typename std::add_lvalue_reference<element_type>::type
      operator[](size_t __i) const
d298 1
a298 1
      get() const noexcept
d301 2
a302 2
      deleter_type&
      get_deleter() noexcept
d306 2
a307 2
      get_deleter() const noexcept
      { return std::get<1>(_M_t); }
d309 1
a309 1
      explicit operator bool() const noexcept
d311 1
a311 1

d314 1
a314 1
      release() noexcept
d322 1
a322 5
      reset() noexcept
      { reset(pointer()); }

      void
      reset(pointer __p) noexcept
d326 1
a326 1
	if (__p != nullptr)
d330 3
a332 3
      template<typename _Up, typename = _Require<is_pointer<pointer>,
	       is_convertible<_Up*, pointer>, __is_derived_Tp<_Up>>>
	void reset(_Up*) = delete;
d335 1
a335 1
      swap(unique_ptr& __u) noexcept
d346 17
a362 11
      template<typename _Up, typename = _Require<is_pointer<pointer>,
	       is_convertible<_Up*, pointer>, __is_derived_Tp<_Up>>>
	unique_ptr(_Up*, typename
		   conditional<is_reference<deleter_type>::value,
		   deleter_type, const deleter_type&>::type) = delete;

      template<typename _Up, typename = _Require<is_pointer<pointer>,
	       is_convertible<_Up*, pointer>, __is_derived_Tp<_Up>>>
	unique_ptr(_Up*, typename
		   remove_reference<deleter_type>::type&&) = delete;
    };
d364 5
a368 1
  template<typename _Tp, typename _Dp>
d370 2
a371 2
    swap(unique_ptr<_Tp, _Dp>& __x,
	 unique_ptr<_Tp, _Dp>& __y) noexcept
d374 2
a375 2
  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
d377 2
a378 2
    operator==(const unique_ptr<_Tp, _Dp>& __x,
	       const unique_ptr<_Up, _Ep>& __y)
d381 2
a382 6
  template<typename _Tp, typename _Dp>
    inline bool
    operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept
    { return !__x; }

  template<typename _Tp, typename _Dp>
d384 3
a386 2
    operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
    { return !__x; }
d388 2
a389 2
  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
d391 3
a393 3
    operator!=(const unique_ptr<_Tp, _Dp>& __x,
	       const unique_ptr<_Up, _Ep>& __y)
    { return __x.get() != __y.get(); }
d395 2
a396 1
  template<typename _Tp, typename _Dp>
d398 3
a400 2
    operator!=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept
    { return (bool)__x; }
d402 2
a403 1
  template<typename _Tp, typename _Dp>
d405 3
a407 2
    operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
    { return (bool)__x; }
d409 2
a410 2
  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
d412 3
a414 86
    operator<(const unique_ptr<_Tp, _Dp>& __x,
	      const unique_ptr<_Up, _Ep>& __y)
    {
      typedef typename
	std::common_type<typename unique_ptr<_Tp, _Dp>::pointer,
	                 typename unique_ptr<_Up, _Ep>::pointer>::type _CT;
      return std::less<_CT>()(__x.get(), __y.get());
    }

  template<typename _Tp, typename _Dp>
    inline bool
    operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
    { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(),
								 nullptr); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
    { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr,
								 __x.get()); }

  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
    inline bool
    operator<=(const unique_ptr<_Tp, _Dp>& __x,
	       const unique_ptr<_Up, _Ep>& __y)
    { return !(__y < __x); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
    { return !(nullptr < __x); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
    { return !(__x < nullptr); }

  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
    inline bool
    operator>(const unique_ptr<_Tp, _Dp>& __x,
	      const unique_ptr<_Up, _Ep>& __y)
    { return (__y < __x); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
    { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr,
								 __x.get()); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
    { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(),
								 nullptr); }

  template<typename _Tp, typename _Dp,
	   typename _Up, typename _Ep>
    inline bool
    operator>=(const unique_ptr<_Tp, _Dp>& __x,
	       const unique_ptr<_Up, _Ep>& __y)
    { return !(__x < __y); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
    { return !(__x < nullptr); }

  template<typename _Tp, typename _Dp>
    inline bool
    operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x)
    { return !(nullptr < __x); }

  /// std::hash specialization for unique_ptr.
  template<typename _Tp, typename _Dp>
    struct hash<unique_ptr<_Tp, _Dp>>
    : public __hash_base<size_t, unique_ptr<_Tp, _Dp>>
    {
      size_t
      operator()(const unique_ptr<_Tp, _Dp>& __u) const noexcept
      {
	typedef unique_ptr<_Tp, _Dp> _UP;
	return std::hash<typename _UP::pointer>()(__u.get());
      }
    };
d418 1
a418 2
_GLIBCXX_END_NAMESPACE_VERSION
} // namespace
@


1.1.1.3
log
@import GCC 5.3.0.  see these urls for details which are too large to
include here:

	http://gcc.gnu.org/gcc-4.9/changes.html
	http://gcc.gnu.org/gcc-5/changes.html

(note that GCC 5.x is a release stream like GCC 4.9.x, 4.8.x, etc.)


the main issues we will have are:

The default mode for C is now -std=gnu11 instead of -std=gnu89.

ARM:
The deprecated option -mwords-little-endian has been removed.
The options -mapcs, -mapcs-frame, -mtpcs-frame and -mtpcs-leaf-frame
 which are only applicable to the old ABI have been deprecated.

MIPS:
The o32 ABI has been modified and extended. The o32 64-bit
 floating-point register support is now obsolete and has been removed.
 It has been replaced by three ABI extensions FPXX, FP64A, and FP64.
 The meaning of the -mfp64 command-line option has changed. It is now
 used to enable the FP64A and FP64 ABI extensions.
@
text
@d3 1
a3 1
// Copyright (C) 2008-2015 Free Software Foundation, Inc.
d52 1
a52 1
  /// Primary template of default_delete, used by unique_ptr
a55 1
      /// Default constructor
a57 5
      /** @@brief Converting constructor.
       *
       * Allows conversion from a deleter for arrays of another type, @@p _Up,
       * only if @@p _Up* is convertible to @@p _Tp*.
       */
a61 1
      /// Calls @@c delete @@p __ptr
a64 2
	static_assert(!is_void<_Tp>::value,
		      "can't delete pointer to incomplete type");
d73 1
a73 1
  /// Specialization for arrays, default_delete.
a87 1
      /// Default constructor
a89 9
      /** @@brief Converting constructor.
       *
       * Allows conversion from a deleter for arrays of another type, such as
       * a const-qualified version of @@p _Tp.
       *
       * Conversions from types derived from @@c _Tp are not allowed because
       * it is unsafe to @@c delete[] an array of derived types through a
       * pointer to the base type.
       */
a93 1
      /// Calls @@c delete[] @@p __ptr
a134 2

      /// Default constructor, creates a unique_ptr that owns nothing.
a139 6
      /** Takes ownership of a pointer.
       *
       * @@param __p  A pointer to an object of @@c element_type
       *
       * The deleter will be value-initialized.
       */
a145 7
      /** Takes ownership of a pointer.
       *
       * @@param __p  A pointer to an object of @@c element_type
       * @@param __d  A reference to a deleter.
       *
       * The deleter will be initialized with @@p __d
       */
a150 7
      /** Takes ownership of a pointer.
       *
       * @@param __p  A pointer to an object of @@c element_type
       * @@param __d  An rvalue reference to a deleter.
       *
       * The deleter will be initialized with @@p std::move(__d)
       */
a156 1
      /// Creates a unique_ptr that owns nothing.
a159 2

      /// Move constructor.
a162 6
      /** @@brief Converting constructor from another type
       *
       * Requires that the pointer owned by @@p __u is convertible to the
       * type of pointer owned by this object, @@p __u does not own an array,
       * and @@p __u has a compatible deleter type.
       */
a173 1
      /// Converting constructor from @@c auto_ptr
d179 1
a179 1
      /// Destructor, invokes the deleter if the stored pointer is not null.
a188 7

      /** @@brief Move assignment operator.
       *
       * @@param __u  The object to transfer ownership from.
       *
       * Invokes the deleter first if this object owns a pointer.
       */
a196 7
      /** @@brief Assignment from another type.
       *
       * @@param __u  The object to transfer ownership from, which owns a
       *             convertible pointer to a non-array object.
       *
       * Invokes the deleter first if this object owns a pointer.
       */
a209 1
      /// Reset the %unique_ptr to empty, invoking the deleter if necessary.
a217 2

      /// Dereference the stored pointer.
a224 1
      /// Return the stored pointer.
a231 1
      /// Return the stored pointer.
a235 1
      /// Return a reference to the stored deleter.
a239 1
      /// Return a reference to the stored deleter.
a243 1
      /// Return @@c true if the stored pointer is not null.
a247 2

      /// Release ownership of any stored pointer.
a255 6
      /** @@brief Replace the stored pointer.
       *
       * @@param __p  The new pointer to store.
       *
       * The deleter will be invoked if a pointer is already owned.
       */
a264 1
      /// Exchange the pointer and deleter with another object.
a328 2

      /// Default constructor, creates a unique_ptr that owns nothing.
a333 6
      /** Takes ownership of a pointer.
       *
       * @@param __p  A pointer to an array of @@c element_type
       *
       * The deleter will be value-initialized.
       */
a339 1
      // Disable construction from convertible pointer types.
a344 7
      /** Takes ownership of a pointer.
       *
       * @@param __p  A pointer to an array of @@c element_type
       * @@param __d  A reference to a deleter.
       *
       * The deleter will be initialized with @@p __d
       */
a349 7
      /** Takes ownership of a pointer.
       *
       * @@param __p  A pointer to an array of @@c element_type
       * @@param __d  A reference to a deleter.
       *
       * The deleter will be initialized with @@p std::move(__d)
       */
d356 1
a356 1
      /// Move constructor.
a359 1
      /// Creates a unique_ptr that owns nothing.
d372 1
a372 1
      /// Destructor, invokes the deleter if the stored pointer is not null.
a381 7

      /** @@brief Move assignment operator.
       *
       * @@param __u  The object to transfer ownership from.
       *
       * Invokes the deleter first if this object owns a pointer.
       */
a389 7
      /** @@brief Assignment from another type.
       *
       * @@param __u  The object to transfer ownership from, which owns a
       *             convertible pointer to an array object.
       *
       * Invokes the deleter first if this object owns a pointer.
       */
a399 1
      /// Reset the %unique_ptr to empty, invoking the deleter if necessary.
a407 2

      /// Access an element of owned array.
a414 1
      /// Return the stored pointer.
a418 1
      /// Return a reference to the stored deleter.
a422 1
      /// Return a reference to the stored deleter.
a426 1
      /// Return @@c true if the stored pointer is not null.
a430 2

      /// Release ownership of any stored pointer.
a438 6
      /** @@brief Replace the stored pointer.
       *
       * @@param __p  The new pointer to store.
       *
       * The deleter will be invoked if a pointer is already owned.
       */
d440 5
a444 1
      reset(pointer __p = pointer()) noexcept
a451 1
      // Disable resetting from convertible pointer types.
a455 1
      /// Exchange the pointer and deleter with another object.
a473 1
      // Disable construction from convertible pointer types.
a609 34
#if __cplusplus > 201103L

#define __cpp_lib_make_unique 201304

  template<typename _Tp>
    struct _MakeUniq
    { typedef unique_ptr<_Tp> __single_object; };

  template<typename _Tp>
    struct _MakeUniq<_Tp[]>
    { typedef unique_ptr<_Tp[]> __array; };

  template<typename _Tp, size_t _Bound>
    struct _MakeUniq<_Tp[_Bound]>
    { struct __invalid_type { }; };

  /// std::make_unique for single objects
  template<typename _Tp, typename... _Args>
    inline typename _MakeUniq<_Tp>::__single_object
    make_unique(_Args&&... __args)
    { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }

  /// std::make_unique for arrays of unknown bound
  template<typename _Tp>
    inline typename _MakeUniq<_Tp>::__array
    make_unique(size_t __num)
    { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]()); }

  /// Disable std::make_unique for arrays of known bound
  template<typename _Tp, typename... _Args>
    inline typename _MakeUniq<_Tp>::__invalid_type
    make_unique(_Args&&...) = delete;
#endif

@


1.1.1.3.8.1
log
@Pull up the gcc 5.5 import and assorted fixes, requested by mrg in ticket #381:

external/gpl3/gcc/dist/fixincludes/tests/base/iso/stdlib_c99.h up to 1.1.1.1
external/gpl3/gcc/dist/gcc/config/arm/t-phoenix up to 1.1.1.1
external/gpl3/gcc/dist/gcc/config/phoenix.h     up to 1.1.1.1
external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-freebsd.h up to 1.1.1.1
external/gpl3/gcc/dist/gcc/config/aarch64/t-aarch64-freebsd up to 1.1.1.1
external/gpl3/gcc/dist/gcc/doc/gcov-dump.1      up to 1.1.1.1
external/gpl3/gcc/dist/gcc/doc/gcov-dump.texi   up to 1.1.1.1
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/lfts_config.h up to 1.1.1.1
external/gpl3/gcc/dist/gcc/config/i386/pcommitintrin.h delete
external/gpl3/gcc/dist/gcc/config/i386/stringop.opt delete
external/gpl3/gcc/lib/libgcc/Makefile.wrapper   delete
external/gpl3/gcc/dist/ChangeLog                up to 1.1.1.10
external/gpl3/gcc/dist/LAST_UPDATED             up to 1.9
external/gpl3/gcc/dist/MD5SUMS                  up to 1.9
external/gpl3/gcc/dist/NEWS                     up to 1.7
external/gpl3/gcc/dist/config.sub               up to 1.11
external/gpl3/gcc/dist/configure                up to 1.11
external/gpl3/gcc/dist/configure.ac             up to 1.10
external/gpl3/gcc/dist/INSTALL/binaries.html    up to 1.5
external/gpl3/gcc/dist/INSTALL/build.html       up to 1.6
external/gpl3/gcc/dist/INSTALL/configure.html   up to 1.6
external/gpl3/gcc/dist/INSTALL/download.html    up to 1.5
external/gpl3/gcc/dist/INSTALL/finalinstall.html up to 1.5
external/gpl3/gcc/dist/INSTALL/gfdl.html        up to 1.5
external/gpl3/gcc/dist/INSTALL/index.html       up to 1.5
external/gpl3/gcc/dist/INSTALL/old.html         up to 1.5
external/gpl3/gcc/dist/INSTALL/prerequisites.html up to 1.6
external/gpl3/gcc/dist/INSTALL/specific.html    up to 1.6
external/gpl3/gcc/dist/INSTALL/test.html        up to 1.5
external/gpl3/gcc/dist/config/ChangeLog         up to 1.1.1.10
external/gpl3/gcc/dist/contrib/ChangeLog        up to 1.1.1.10
external/gpl3/gcc/dist/contrib/gcc_update       up to 1.1.1.4
external/gpl3/gcc/dist/contrib/reghunt/ChangeLog up to 1.1.1.9
external/gpl3/gcc/dist/contrib/regression/ChangeLog up to 1.1.1.9
external/gpl3/gcc/dist/fixincludes/ChangeLog    up to 1.1.1.9
external/gpl3/gcc/dist/fixincludes/fixincl.x    up to 1.1.1.6
external/gpl3/gcc/dist/fixincludes/inclhack.def up to 1.1.1.6
external/gpl3/gcc/dist/fixincludes/tests/base/math.h up to 1.1.1.3
external/gpl3/gcc/dist/fixincludes/tests/base/stdio.h up to 1.1.1.5
external/gpl3/gcc/dist/fixincludes/tests/base/stdlib.h up to 1.1.1.3
external/gpl3/gcc/dist/fixincludes/tests/base/iso/stdio_iso.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/BASE-VER             up to 1.1.1.8
external/gpl3/gcc/dist/gcc/ChangeLog            up to 1.15
external/gpl3/gcc/dist/gcc/DATESTAMP            up to 1.1.1.11
external/gpl3/gcc/dist/gcc/Makefile.in          up to 1.14
external/gpl3/gcc/dist/gcc/asan.c               up to 1.1.1.3
external/gpl3/gcc/dist/gcc/auto-profile.c       up to 1.3
external/gpl3/gcc/dist/gcc/bb-reorder.c         up to 1.1.1.6
external/gpl3/gcc/dist/gcc/builtins.c           up to 1.10
external/gpl3/gcc/dist/gcc/calls.c              up to 1.1.1.6
external/gpl3/gcc/dist/gcc/cgraph.c             up to 1.1.1.5
external/gpl3/gcc/dist/gcc/cgraph.h             up to 1.1.1.5
external/gpl3/gcc/dist/gcc/cgraphclones.c       up to 1.1.1.4
external/gpl3/gcc/dist/gcc/cgraphunit.c         up to 1.1.1.6
external/gpl3/gcc/dist/gcc/combine.c            up to 1.1.1.8
external/gpl3/gcc/dist/gcc/common.opt           up to 1.6
external/gpl3/gcc/dist/gcc/config.gcc           up to 1.37
external/gpl3/gcc/dist/gcc/coverage.c           up to 1.1.1.4
external/gpl3/gcc/dist/gcc/coverage.h           up to 1.1.1.4
external/gpl3/gcc/dist/gcc/cselib.c             up to 1.1.1.5
external/gpl3/gcc/dist/gcc/data-streamer-in.c   up to 1.1.1.3
external/gpl3/gcc/dist/gcc/data-streamer-out.c  up to 1.1.1.3
external/gpl3/gcc/dist/gcc/diagnostic.c         up to 1.4
external/gpl3/gcc/dist/gcc/dwarf2out.c          up to 1.8
external/gpl3/gcc/dist/gcc/explow.c             up to 1.1.1.4
external/gpl3/gcc/dist/gcc/expmed.c             up to 1.1.1.4
external/gpl3/gcc/dist/gcc/expr.c               up to 1.10
external/gpl3/gcc/dist/gcc/fold-const.c         up to 1.1.1.11
external/gpl3/gcc/dist/gcc/function.c           up to 1.1.1.7
external/gpl3/gcc/dist/gcc/function.h           up to 1.1.1.4
external/gpl3/gcc/dist/gcc/fwprop.c             up to 1.1.1.5
external/gpl3/gcc/dist/gcc/gcc.c                up to 1.15
external/gpl3/gcc/dist/gcc/gcov-dump.c          up to 1.1.1.5
external/gpl3/gcc/dist/gcc/gcov-io.c            up to 1.1.1.4
external/gpl3/gcc/dist/gcc/gcov-tool.c          up to 1.1.1.2
external/gpl3/gcc/dist/gcc/gcov.c               up to 1.1.1.5
external/gpl3/gcc/dist/gcc/gcse.c               up to 1.1.1.5
external/gpl3/gcc/dist/gcc/gengtype-lex.c       up to 1.7
external/gpl3/gcc/dist/gcc/genmatch.c           up to 1.1.1.2
external/gpl3/gcc/dist/gcc/gimple-fold.c        up to 1.1.1.5
external/gpl3/gcc/dist/gcc/gimple-ssa-strength-reduction.c up to 1.1.1.5
external/gpl3/gcc/dist/gcc/gimplify.c           up to 1.1.1.7
external/gpl3/gcc/dist/gcc/graphite-isl-ast-to-gimple.c up to 1.3
external/gpl3/gcc/dist/gcc/incpath.c            up to 1.1.1.4
external/gpl3/gcc/dist/gcc/internal-fn.c        up to 1.1.1.3
external/gpl3/gcc/dist/gcc/ipa-comdats.c        up to 1.1.1.2
external/gpl3/gcc/dist/gcc/ipa-cp.c             up to 1.1.1.8
external/gpl3/gcc/dist/gcc/ipa-devirt.c         up to 1.1.1.3
external/gpl3/gcc/dist/gcc/ipa-icf-gimple.c     up to 1.1.1.2
external/gpl3/gcc/dist/gcc/ipa-icf-gimple.h     up to 1.1.1.2
external/gpl3/gcc/dist/gcc/ipa-icf.c            up to 1.1.1.3
external/gpl3/gcc/dist/gcc/ipa-icf.h            up to 1.1.1.2
external/gpl3/gcc/dist/gcc/ipa-inline-transform.c up to 1.1.1.3
external/gpl3/gcc/dist/gcc/ipa-polymorphic-call.c up to 1.1.1.3
external/gpl3/gcc/dist/gcc/ipa-prop.c           up to 1.1.1.7
external/gpl3/gcc/dist/gcc/ipa-pure-const.c     up to 1.1.1.5
external/gpl3/gcc/dist/gcc/ipa-split.c          up to 1.1.1.4
external/gpl3/gcc/dist/gcc/ipa-visibility.c     up to 1.1.1.2
external/gpl3/gcc/dist/gcc/ira-build.c          up to 1.1.1.4
external/gpl3/gcc/dist/gcc/ira-costs.c          up to 1.1.1.4
external/gpl3/gcc/dist/gcc/ira-int.h            up to 1.1.1.4
external/gpl3/gcc/dist/gcc/ira-lives.c          up to 1.1.1.4
external/gpl3/gcc/dist/gcc/loop-doloop.c        up to 1.1.1.5
external/gpl3/gcc/dist/gcc/loop-invariant.c     up to 1.1.1.4
external/gpl3/gcc/dist/gcc/lra-constraints.c    up to 1.1.1.5
external/gpl3/gcc/dist/gcc/lra-remat.c          up to 1.1.1.3
external/gpl3/gcc/dist/gcc/lto-cgraph.c         up to 1.1.1.4
external/gpl3/gcc/dist/gcc/lto-streamer.h       up to 1.1.1.5
external/gpl3/gcc/dist/gcc/match.pd             up to 1.1.1.3
external/gpl3/gcc/dist/gcc/omp-low.c            up to 1.1.1.8
external/gpl3/gcc/dist/gcc/params.def           up to 1.1.1.5
external/gpl3/gcc/dist/gcc/postreload.c         up to 1.1.1.5
external/gpl3/gcc/dist/gcc/pretty-print.c       up to 1.1.1.4
external/gpl3/gcc/dist/gcc/real.c               up to 1.1.1.5
external/gpl3/gcc/dist/gcc/ree.c                up to 1.1.1.4
external/gpl3/gcc/dist/gcc/rtl.h                up to 1.1.1.6
external/gpl3/gcc/dist/gcc/sel-sched.c          up to 1.1.1.6
external/gpl3/gcc/dist/gcc/simplify-rtx.c       up to 1.1.1.4
external/gpl3/gcc/dist/gcc/system.h             up to 1.6
external/gpl3/gcc/dist/gcc/toplev.c             up to 1.2
external/gpl3/gcc/dist/gcc/tree-call-cdce.c     up to 1.1.1.4
external/gpl3/gcc/dist/gcc/tree-cfg.c           up to 1.8
external/gpl3/gcc/dist/gcc/tree-chkp-opt.c      up to 1.1.1.2
external/gpl3/gcc/dist/gcc/tree-chkp.c          up to 1.1.1.2
external/gpl3/gcc/dist/gcc/tree-chrec.c         up to 1.1.1.5
external/gpl3/gcc/dist/gcc/tree-data-ref.c      up to 1.1.1.7
external/gpl3/gcc/dist/gcc/tree-eh.c            up to 1.1.1.7
external/gpl3/gcc/dist/gcc/tree-inline.c        up to 1.1.1.7
external/gpl3/gcc/dist/gcc/tree-inline.h        up to 1.1.1.4
external/gpl3/gcc/dist/gcc/tree-loop-distribution.c up to 1.1.1.4
external/gpl3/gcc/dist/gcc/tree-nested.c        up to 1.1.1.4
external/gpl3/gcc/dist/gcc/tree-predcom.c       up to 1.1.1.5
external/gpl3/gcc/dist/gcc/tree-profile.c       up to 1.1.1.4
external/gpl3/gcc/dist/gcc/tree-ssa-ccp.c       up to 1.8
external/gpl3/gcc/dist/gcc/tree-ssa-loop-im.c   up to 1.1.1.5
external/gpl3/gcc/dist/gcc/tree-ssa-loop-ivopts.c up to 1.1.1.5
external/gpl3/gcc/dist/gcc/tree-ssa-loop-prefetch.c up to 1.1.1.4
external/gpl3/gcc/dist/gcc/tree-ssa-math-opts.c up to 1.1.1.7
external/gpl3/gcc/dist/gcc/tree-ssa-pre.c       up to 1.1.1.5
external/gpl3/gcc/dist/gcc/tree-ssa-reassoc.c   up to 1.1.1.7
external/gpl3/gcc/dist/gcc/tree-ssa-sccvn.c     up to 1.1.1.7
external/gpl3/gcc/dist/gcc/tree-ssa-strlen.c    up to 1.1.1.4
external/gpl3/gcc/dist/gcc/tree-ssa-structalias.c up to 1.1.1.6
external/gpl3/gcc/dist/gcc/tree-ssa-tail-merge.c up to 1.1.1.6
external/gpl3/gcc/dist/gcc/tree-ssa-threadedge.c up to 1.1.1.4
external/gpl3/gcc/dist/gcc/tree-ssa-uninit.c    up to 1.1.1.5
external/gpl3/gcc/dist/gcc/tree-ssa.c           up to 1.1.1.5
external/gpl3/gcc/dist/gcc/tree-vect-data-refs.c up to 1.1.1.9
external/gpl3/gcc/dist/gcc/tree-vect-loop-manip.c up to 1.1.1.5
external/gpl3/gcc/dist/gcc/tree-vrp.c           up to 1.1.1.7
external/gpl3/gcc/dist/gcc/tsan.c               up to 1.1.1.4
external/gpl3/gcc/dist/gcc/ubsan.c              up to 1.1.1.3
external/gpl3/gcc/dist/gcc/value-prof.c         up to 1.1.1.4
external/gpl3/gcc/dist/gcc/c/ChangeLog          up to 1.1.1.8
external/gpl3/gcc/dist/gcc/c/c-decl.c           up to 1.1.1.5
external/gpl3/gcc/dist/gcc/c/c-objc-common.c    up to 1.1.1.3
external/gpl3/gcc/dist/gcc/c/c-parser.c         up to 1.1.1.5
external/gpl3/gcc/dist/gcc/c/c-typeck.c         up to 1.1.1.7
external/gpl3/gcc/dist/gcc/c-family/ChangeLog   up to 1.1.1.7
external/gpl3/gcc/dist/gcc/c-family/c-ada-spec.c up to 1.1.1.3
external/gpl3/gcc/dist/gcc/c-family/c-common.c  up to 1.1.1.6
external/gpl3/gcc/dist/gcc/c-family/c-cppbuiltin.c up to 1.1.1.3
external/gpl3/gcc/dist/gcc/c-family/c-gimplify.c up to 1.1.1.3
external/gpl3/gcc/dist/gcc/c-family/c-omp.c     up to 1.1.1.3
external/gpl3/gcc/dist/gcc/c-family/c-opts.c    up to 1.5
external/gpl3/gcc/dist/gcc/common/config/i386/i386-common.c up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-simd.md up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.c up to 1.1.1.8
external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.md up to 1.1.1.6
external/gpl3/gcc/dist/gcc/config/arm/arm-builtins.c up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/arm/arm-protos.h up to 1.1.1.5
external/gpl3/gcc/dist/gcc/config/arm/arm.c     up to 1.4
external/gpl3/gcc/dist/gcc/config/arm/arm.h     up to 1.15
external/gpl3/gcc/dist/gcc/config/arm/arm.md    up to 1.12
external/gpl3/gcc/dist/gcc/config/arm/freebsd.h up to 1.4
external/gpl3/gcc/dist/gcc/config/arm/neon.md   up to 1.1.1.5
external/gpl3/gcc/dist/gcc/config/avr/avr.c     up to 1.1.1.7
external/gpl3/gcc/dist/gcc/config/avr/avr.md    up to 1.1.1.7
external/gpl3/gcc/dist/gcc/config/avr/avr.opt   up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/avr/gen-avr-mmcu-specs.c up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/avr/gen-avr-mmcu-texi.c up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/i386/avx2intrin.h up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/i386/avx512bwintrin.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/i386/avx512dqintrin.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/i386/avx512fintrin.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/i386/avx512ifmaintrin.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/i386/avx512ifmavlintrin.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/i386/avx512pfintrin.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/i386/avx512vbmiintrin.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/i386/avx512vbmivlintrin.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/i386/avx512vlbwintrin.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/i386/avx512vldqintrin.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/i386/avx512vlintrin.h up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/i386/cpuid.h  up to 1.4
external/gpl3/gcc/dist/gcc/config/i386/driver-i386.c up to 1.7
external/gpl3/gcc/dist/gcc/config/i386/gmm_malloc.h up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/i386/i386-builtin-types.def up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/i386/i386-c.c up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/i386/i386.c   up to 1.14
external/gpl3/gcc/dist/gcc/config/i386/i386.h   up to 1.6
external/gpl3/gcc/dist/gcc/config/i386/i386.md  up to 1.1.1.9
external/gpl3/gcc/dist/gcc/config/i386/i386.opt up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/i386/ia32intrin.h up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/i386/lwpintrin.h up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/i386/mmx.md   up to 1.1.1.5
external/gpl3/gcc/dist/gcc/config/i386/pmm_malloc.h up to 1.4
external/gpl3/gcc/dist/gcc/config/i386/rdseedintrin.h up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/i386/rtmintrin.h up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/i386/sse.md   up to 1.1.1.8
external/gpl3/gcc/dist/gcc/config/i386/x86-64.h up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/i386/x86intrin.h up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/nds32/nds32.md up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/pa/pa-64.h    up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/pa/pa.h       up to 1.7
external/gpl3/gcc/dist/gcc/config/rl78/rl78-expand.md up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/rl78/rl78-real.md up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/rl78/rl78-virt.md up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/rs6000/altivec.md up to 1.1.1.9
external/gpl3/gcc/dist/gcc/config/rs6000/dfp.md up to 1.1.1.5
external/gpl3/gcc/dist/gcc/config/rs6000/predicates.md up to 1.1.1.7
external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-c.c up to 1.1.1.8
external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c up to 1.17
external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.md up to 1.1.1.9
external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.opt up to 1.1.1.6
external/gpl3/gcc/dist/gcc/config/rs6000/vector.md up to 1.1.1.6
external/gpl3/gcc/dist/gcc/config/rs6000/vsx.md up to 1.1.1.10
external/gpl3/gcc/dist/gcc/config/s390/s390-modes.def up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/s390/s390.c   up to 1.1.1.8
external/gpl3/gcc/dist/gcc/config/s390/s390.md  up to 1.1.1.6
external/gpl3/gcc/dist/gcc/config/s390/vx-builtins.md up to 1.1.1.3
external/gpl3/gcc/dist/gcc/config/sh/sh-mem.cc  up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/sh/sh.c       up to 1.9
external/gpl3/gcc/dist/gcc/config/sh/sh_treg_combine.cc up to 1.1.1.2
external/gpl3/gcc/dist/gcc/config/sparc/sparc.c up to 1.1.1.8
external/gpl3/gcc/dist/gcc/config/sparc/sparc.md up to 1.7
external/gpl3/gcc/dist/gcc/config/xtensa/xtensa.c up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/xtensa/xtensa.h up to 1.1.1.4
external/gpl3/gcc/dist/gcc/config/xtensa/xtensa.md up to 1.1.1.4
external/gpl3/gcc/dist/gcc/cp/ChangeLog         up to 1.1.1.11
external/gpl3/gcc/dist/gcc/cp/call.c            up to 1.1.1.8
external/gpl3/gcc/dist/gcc/cp/class.c           up to 1.1.1.6
external/gpl3/gcc/dist/gcc/cp/constexpr.c       up to 1.1.1.3
external/gpl3/gcc/dist/gcc/cp/cp-gimplify.c     up to 1.1.1.4
external/gpl3/gcc/dist/gcc/cp/decl.c            up to 1.1.1.8
external/gpl3/gcc/dist/gcc/cp/error.c           up to 1.1.1.4
external/gpl3/gcc/dist/gcc/cp/init.c            up to 1.1.1.6
external/gpl3/gcc/dist/gcc/cp/mangle.c          up to 1.1.1.7
external/gpl3/gcc/dist/gcc/cp/name-lookup.c     up to 1.1.1.6
external/gpl3/gcc/dist/gcc/cp/parser.c          up to 1.1.1.10
external/gpl3/gcc/dist/gcc/cp/pt.c              up to 1.1.1.8
external/gpl3/gcc/dist/gcc/cp/semantics.c       up to 1.1.1.9
external/gpl3/gcc/dist/gcc/cp/tree.c            up to 1.1.1.7
external/gpl3/gcc/dist/gcc/cp/typeck.c          up to 1.1.1.9
external/gpl3/gcc/dist/gcc/doc/aot-compile.1    up to 1.7
external/gpl3/gcc/dist/gcc/doc/cppinternals.info up to 1.7
external/gpl3/gcc/dist/gcc/doc/extend.texi      up to 1.1.1.8
external/gpl3/gcc/dist/gcc/doc/fsf-funding.7    up to 1.7
external/gpl3/gcc/dist/gcc/doc/gc-analyze.1     up to 1.7
external/gpl3/gcc/dist/gcc/doc/gcc.texi         up to 1.1.1.5
external/gpl3/gcc/dist/gcc/doc/gccinstall.info  up to 1.7
external/gpl3/gcc/dist/gcc/doc/gccint.info      up to 1.7
external/gpl3/gcc/dist/gcc/doc/gcj-dbtool.1     up to 1.7
external/gpl3/gcc/dist/gcc/doc/gcj.1            up to 1.7
external/gpl3/gcc/dist/gcc/doc/gcj.info         up to 1.7
external/gpl3/gcc/dist/gcc/doc/gcov-tool.1      up to 1.1.1.3
external/gpl3/gcc/dist/gcc/doc/gcov-tool.texi   up to 1.1.1.2
external/gpl3/gcc/dist/gcc/doc/gcov.texi        up to 1.6
external/gpl3/gcc/dist/gcc/doc/generic.texi     up to 1.1.1.4
external/gpl3/gcc/dist/gcc/doc/gfdl.7           up to 1.7
external/gpl3/gcc/dist/gcc/doc/gfortran.1       up to 1.7
external/gpl3/gcc/dist/gcc/doc/gij.1            up to 1.7
external/gpl3/gcc/dist/gcc/doc/gpl.7            up to 1.7
external/gpl3/gcc/dist/gcc/doc/grmic.1          up to 1.7
external/gpl3/gcc/dist/gcc/doc/install.texi     up to 1.1.1.8
external/gpl3/gcc/dist/gcc/doc/invoke.texi      up to 1.12
external/gpl3/gcc/dist/gcc/doc/jcf-dump.1       up to 1.7
external/gpl3/gcc/dist/gcc/doc/jv-convert.1     up to 1.7
external/gpl3/gcc/dist/gcc/doc/lto.texi         up to 1.1.1.3
external/gpl3/gcc/dist/gcc/doc/passes.texi      up to 1.1.1.4
external/gpl3/gcc/dist/gcc/doc/rebuild-gcj-db.1 up to 1.7
external/gpl3/gcc/dist/gcc/doc/rtl.texi         up to 1.1.1.4
external/gpl3/gcc/dist/gcc/jit/ChangeLog        up to 1.1.1.3
external/gpl3/gcc/dist/gcc/lto/ChangeLog        up to 1.1.1.9
external/gpl3/gcc/dist/gcc/lto/lto-lang.c       up to 1.1.1.4
external/gpl3/gcc/dist/gcc/objc/ChangeLog       up to 1.1.1.9
external/gpl3/gcc/dist/gcc/objcp/ChangeLog      up to 1.1.1.9
external/gpl3/gcc/dist/gnattools/ChangeLog      up to 1.1.1.7
external/gpl3/gcc/dist/gotools/ChangeLog        up to 1.1.1.3
external/gpl3/gcc/dist/include/ChangeLog        up to 1.1.1.9
external/gpl3/gcc/dist/intl/ChangeLog           up to 1.1.1.9
external/gpl3/gcc/dist/libbacktrace/ChangeLog   up to 1.1.1.8
external/gpl3/gcc/dist/libcc1/ChangeLog         up to 1.1.1.3
external/gpl3/gcc/dist/libcpp/ChangeLog         up to 1.1.1.9
external/gpl3/gcc/dist/libcpp/line-map.c        up to 1.1.1.6
external/gpl3/gcc/dist/libdecnumber/ChangeLog   up to 1.1.1.9
external/gpl3/gcc/dist/libgcc/ChangeLog         up to 1.1.1.11
external/gpl3/gcc/dist/libgcc/config.host       up to 1.16
external/gpl3/gcc/dist/libgcc/libgcc2.c         up to 1.1.1.4
external/gpl3/gcc/dist/libgcc/libgcov-driver.c  up to 1.1.1.2
external/gpl3/gcc/dist/libgcc/unwind-c.c        up to 1.1.1.3
external/gpl3/gcc/dist/libgcc/config/aarch64/linux-unwind.h up to 1.1.1.3
external/gpl3/gcc/dist/libgcc/config/alpha/linux-unwind.h up to 1.1.1.3
external/gpl3/gcc/dist/libgcc/config/arm/unwind-arm.c up to 1.1.1.3
external/gpl3/gcc/dist/libgcc/config/arm/unwind-arm.h up to 1.1.1.3
external/gpl3/gcc/dist/libgcc/config/bfin/linux-unwind.h up to 1.1.1.3
external/gpl3/gcc/dist/libgcc/config/i386/linux-unwind.h up to 1.1.1.3
external/gpl3/gcc/dist/libgcc/config/libbid/ChangeLog up to 1.1.1.9
external/gpl3/gcc/dist/libgcc/config/m68k/linux-unwind.h up to 1.1.1.3
external/gpl3/gcc/dist/libgcc/config/nios2/linux-unwind.h up to 1.1.1.2
external/gpl3/gcc/dist/libgcc/config/pa/linux-unwind.h up to 1.1.1.4
external/gpl3/gcc/dist/libgcc/config/rs6000/t-crtstuff up to 1.1.1.2
external/gpl3/gcc/dist/libgcc/config/sh/linux-unwind.h up to 1.1.1.3
external/gpl3/gcc/dist/libgcc/config/sparc/lb1spc.S up to 1.1.1.2
external/gpl3/gcc/dist/libgcc/config/tilepro/linux-unwind.h up to 1.1.1.3
external/gpl3/gcc/dist/libgcc/config/xtensa/ieee754-df.S up to 1.1.1.3
external/gpl3/gcc/dist/libgcc/config/xtensa/ieee754-sf.S up to 1.1.1.3
external/gpl3/gcc/dist/libgcc/config/xtensa/linux-unwind.h up to 1.1.1.3
external/gpl3/gcc/dist/libgcc/config/xtensa/t-elf up to 1.1.1.2
external/gpl3/gcc/dist/libgcc/config/xtensa/t-linux up to 1.1.1.2
external/gpl3/gcc/dist/libgcc/config/xtensa/t-windowed up to 1.1.1.2
external/gpl3/gcc/dist/libgcc/config/xtensa/unwind-dw2-xtensa.c up to 1.4
external/gpl3/gcc/dist/libgomp/ChangeLog        up to 1.1.1.9
external/gpl3/gcc/dist/libgomp/env.c            up to 1.1.1.4
external/gpl3/gcc/dist/libgomp/hashtab.h        up to 1.1.1.2
external/gpl3/gcc/dist/libgomp/libgomp.info     up to 1.7
external/gpl3/gcc/dist/libiberty/ChangeLog      up to 1.1.1.9
external/gpl3/gcc/dist/libiberty/cp-demangle.c  up to 1.1.1.5
external/gpl3/gcc/dist/libiberty/vprintf-support.c up to 1.2
external/gpl3/gcc/dist/libitm/ChangeLog         up to 1.1.1.7
external/gpl3/gcc/dist/libitm/libitm.info       up to 1.1.1.6
external/gpl3/gcc/dist/libobjc/ChangeLog        up to 1.1.1.10
external/gpl3/gcc/dist/libsanitizer/ChangeLog   up to 1.1.1.7
external/gpl3/gcc/dist/libsanitizer/asan/asan_globals.cc up to 1.1.1.3
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc up to 1.5
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.cc up to 1.9
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_linux.h up to 1.3
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc up to 1.6
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h up to 1.10
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_procmaps_netbsd.cc up to 1.3
external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc up to 1.1.1.2
external/gpl3/gcc/dist/libsanitizer/tsan/tsan_platform_linux.cc up to 1.3
external/gpl3/gcc/dist/libsanitizer/tsan/tsan_rtl.cc up to 1.1.1.3
external/gpl3/gcc/dist/libssp/ChangeLog         up to 1.1.1.9
external/gpl3/gcc/dist/libstdc++-v3/ChangeLog   up to 1.1.1.11
external/gpl3/gcc/dist/libstdc++-v3/acinclude.m4 up to 1.4
external/gpl3/gcc/dist/libstdc++-v3/config.h.in up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/configure   up to 1.8
external/gpl3/gcc/dist/libstdc++-v3/config/abi/pre/gnu-versioned-namespace.ver up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/config/io/basic_file_stdio.cc up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/config/os/mingw32-w64/error_constants.h up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/doc/doxygen/mainpage.html up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/doc/html/api.html up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/doc/html/faq.html up to 1.1.1.5
external/gpl3/gcc/dist/libstdc++-v3/doc/html/ext/lwg-active.html up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/doc/html/ext/lwg-closed.html up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/doc/html/ext/lwg-defects.html up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/abi.html up to 1.1.1.6
external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/bugs.html up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/ext_demangling.html up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/memory.html up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/mt_allocator_impl.html up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/source_code_style.html up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/source_organization.html up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/status.html up to 1.1.1.6
external/gpl3/gcc/dist/libstdc++-v3/doc/xml/api.xml up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/doc/xml/faq.xml up to 1.1.1.5
external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/abi.xml up to 1.1.1.5
external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/allocator.xml up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/appendix_contributing.xml up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/extensions.xml up to 1.1.1.5
external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/intro.xml up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/mt_allocator.xml up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/status_cxx2011.xml up to 1.1.1.5
external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/status_cxx2014.xml up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/include/Makefile.am up to 1.1.1.5
external/gpl3/gcc/dist/libstdc++-v3/include/Makefile.in up to 1.1.1.5
external/gpl3/gcc/dist/libstdc++-v3/include/bits/allocator.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/basic_ios.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/basic_string.h up to 1.1.1.5
external/gpl3/gcc/dist/libstdc++-v3/include/bits/basic_string.tcc up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/c++config up to 1.1.1.5
external/gpl3/gcc/dist/libstdc++-v3/include/bits/hashtable.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/ios_base.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/istream.tcc up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/list.tcc up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/locale_classes.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/locale_conv.h up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/include/bits/mask_array.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/predefined_ops.h up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/include/bits/regex.h up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/include/bits/regex.tcc up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/include/bits/regex_compiler.h up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/include/bits/shared_ptr_base.h up to 1.1.1.6
external/gpl3/gcc/dist/libstdc++-v3/include/bits/slice_array.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/sstream.tcc up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_iterator.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_map.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_multimap.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_multiset.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_set.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_stack.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_tree.h up to 1.1.1.5
external/gpl3/gcc/dist/libstdc++-v3/include/bits/uniform_int_dist.h up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/include/bits/unique_ptr.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/c_global/cmath up to 1.1.1.5
external/gpl3/gcc/dist/libstdc++-v3/include/debug/safe_iterator.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/debug/string up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/algorithm up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/any up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/chrono up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/fs_dir.h up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/fs_fwd.h up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/fs_ops.h up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/fs_path.h up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/functional up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/optional up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/ratio up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/string_view up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/string_view.tcc up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/system_error up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/tuple up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/include/experimental/type_traits up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/include/ext/new_allocator.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/ext/pointer.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/detail/binary_heap_/binary_heap_.hpp up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/ext/pb_ds/detail/binary_heap_/insert_fn_imps.hpp up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/std/atomic up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/std/chrono up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/std/complex up to 1.5
external/gpl3/gcc/dist/libstdc++-v3/include/std/functional up to 1.1.1.7
external/gpl3/gcc/dist/libstdc++-v3/include/std/istream up to 1.1.1.5
external/gpl3/gcc/dist/libstdc++-v3/include/std/scoped_allocator up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/std/sstream up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/std/thread up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/std/tuple up to 1.1.1.6
external/gpl3/gcc/dist/libstdc++-v3/include/std/utility up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/include/tr1/cmath up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/libsupc++/cxxabi.h up to 1.1.1.4
external/gpl3/gcc/dist/libstdc++-v3/python/libstdcxx/v6/printers.py up to 1.1.1.5
external/gpl3/gcc/dist/libstdc++-v3/python/libstdcxx/v6/xmethods.py up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/src/c++11/codecvt.cc up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/src/c++11/cxx11-shim_facets.cc up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/src/c++11/shared_ptr.cc up to 1.1.1.3
external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/Makefile.in up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/dir.cc up to 1.1.1.2
external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/ops.cc up to 1.1.1.3
external/gpl3/gcc/dist/lto-plugin/ChangeLog     up to 1.1.1.9
external/gpl3/gcc/dist/lto-plugin/lto-plugin.c  up to 1.1.1.4
external/gpl3/gcc/dist/maintainer-scripts/ChangeLog up to 1.1.1.10
external/gpl3/gcc/lib/libasan/Makefile          up to 1.18
external/gpl3/gcc/lib/libgcc/arch/i386/defs.mk  up to 1.5
external/gpl3/gcc/lib/libgcc/arch/m68000/defs.mk up to 1.7
external/gpl3/gcc/lib/libgcc/arch/x86_64/defs.mk up to 1.4
external/gpl3/gcc/lib/libgcc/libgcc/Makefile    up to 1.28
external/gpl3/gcc/lib/libgcc/libgcov/arch/alpha/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/arm/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/armeb/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/earm/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmeb/gcov-iov.h up to 1.9
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmhf/gcov-iov.h up to 1.9
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmhfeb/gcov-iov.h up to 1.9
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4/gcov-iov.h up to 1.9
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4eb/gcov-iov.h up to 1.9
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6/gcov-iov.h up to 1.9
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6eb/gcov-iov.h up to 1.9
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6hf/gcov-iov.h up to 1.9
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6hfeb/gcov-iov.h up to 1.9
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7/gcov-iov.h up to 1.9
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7eb/gcov-iov.h up to 1.9
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7hf/gcov-iov.h up to 1.9
external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7hfeb/gcov-iov.h up to 1.9
external/gpl3/gcc/lib/libgcc/libgcov/arch/hppa/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/i386/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/ia64/gcov-iov.h up to 1.5
external/gpl3/gcc/lib/libgcc/libgcov/arch/m68000/gcov-iov.h up to 1.9
external/gpl3/gcc/lib/libgcc/libgcov/arch/m68k/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/mips64eb/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/mips64el/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/mipseb/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/mipsel/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc64/gcov-iov.h up to 1.6
external/gpl3/gcc/lib/libgcc/libgcov/arch/sh3eb/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/sh3el/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/sparc/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/sparc64/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/vax/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libgcc/libgcov/arch/x86_64/gcov-iov.h up to 1.10
external/gpl3/gcc/lib/libiberty/defs.mk         up to 1.14
external/gpl3/gcc/lib/libiberty/arch/ia64/config.h up to 1.6
external/gpl3/gcc/lib/liblto_plugin/Makefile    up to 1.9
external/gpl3/gcc/lib/libstdc++-v3/Makefile     up to 1.28
external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/c++config.h up to 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/gstdint.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/arm/c++config.h up to 1.23
external/gpl3/gcc/lib/libstdc++-v3/arch/arm/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/arm/gstdint.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/armeb/c++config.h up to 1.23
external/gpl3/gcc/lib/libstdc++-v3/arch/armeb/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/armeb/gstdint.h up to 1.15
external/gpl3/gcc/lib/libstdc++-v3/arch/coldfire/defs.mk up to 1.6
external/gpl3/gcc/lib/libstdc++-v3/arch/earm/c++config.h up to 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/earm/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earm/gstdint.h up to 1.15
external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/c++config.h up to 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/defs.mk up to 1.6
external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/gstdint.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/c++config.h up to 1.19
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/defs.mk up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/gstdint.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/c++config.h up to 1.17
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/gstdint.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/c++config.h up to 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/gstdint.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb/c++config.h up to 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb/gstdint.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6/c++config.h up to 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6/gstdint.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb/c++config.h up to 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb/gstdint.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf/c++config.h up to 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf/gstdint.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb/c++config.h up to 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb/gstdint.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7/c++config.h up to 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7/gstdint.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb/c++config.h up to 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb/gstdint.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf/c++config.h up to 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf/gstdint.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb/c++config.h up to 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb/gstdint.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/hppa/c++config.h up to 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/hppa/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/hppa/gstdint.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/i386/c++config.h up to 1.22
external/gpl3/gcc/lib/libstdc++-v3/arch/i386/defs.mk up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/i386/gstdint.h up to 1.14
external/gpl3/gcc/lib/libstdc++-v3/arch/ia64/c++config.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/ia64/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/ia64/gstdint.h up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/c++config.h up to 1.16
external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/defs.mk up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/gstdint.h up to 1.9
external/gpl3/gcc/lib/libstdc++-v3/arch/m68k/c++config.h up to 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/m68k/defs.mk up to 1.6
external/gpl3/gcc/lib/libstdc++-v3/arch/m68k/gstdint.h up to 1.12
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64eb/c++config.h up to 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64eb/defs.mk up to 1.6
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64eb/gstdint.h up to 1.12
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64el/c++config.h up to 1.20
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64el/defs.mk up to 1.6
external/gpl3/gcc/lib/libstdc++-v3/arch/mips64el/gstdint.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/mipseb/c++config.h up to 1.23
external/gpl3/gcc/lib/libstdc++-v3/arch/mipseb/defs.mk up to 1.6
external/gpl3/gcc/lib/libstdc++-v3/arch/mipseb/gstdint.h up to 1.12
external/gpl3/gcc/lib/libstdc++-v3/arch/mipsel/c++config.h up to 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/mipsel/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/mipsel/gstdint.h up to 1.12
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h up to 1.22
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/gstdint.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h up to 1.10
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/defs.mk up to 1.6
external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/gstdint.h up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/c++config.h up to 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/defs.mk up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/gstdint.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/c++config.h up to 1.23
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/gstdint.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc/c++config.h up to 1.22
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc/defs.mk up to 1.5
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc/gstdint.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc64/c++config.h up to 1.21
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc64/defs.mk up to 1.6
external/gpl3/gcc/lib/libstdc++-v3/arch/sparc64/gstdint.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/vax/c++config.h up to 1.23
external/gpl3/gcc/lib/libstdc++-v3/arch/vax/defs.mk up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/vax/gstdint.h up to 1.13
external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/c++config.h up to 1.25
external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/defs.mk up to 1.7
external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/gstdint.h up to 1.15
external/gpl3/gcc/lib/libstdc++-v3/include/bits/Makefile up to 1.19
external/gpl3/gcc/lib/libubsan/Makefile         up to 1.3
external/gpl3/gcc/usr.bin/Makefile.backend      up to 1.6
external/gpl3/gcc/usr.bin/Makefile.inc          up to 1.29
external/gpl3/gcc/usr.bin/backend/Makefile      up to 1.39
external/gpl3/gcc/usr.bin/common/Makefile       up to 1.5
external/gpl3/gcc/usr.bin/frontend/Makefile     up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/alpha/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/alpha/configargs.h up to 1.23
external/gpl3/gcc/usr.bin/gcc/arch/alpha/defs.mk up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/alpha/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/arm/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/arm/configargs.h up to 1.26
external/gpl3/gcc/usr.bin/gcc/arch/arm/defs.mk  up to 1.12
external/gpl3/gcc/usr.bin/gcc/arch/arm/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/armeb/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/armeb/configargs.h up to 1.27
external/gpl3/gcc/usr.bin/gcc/arch/armeb/defs.mk up to 1.12
external/gpl3/gcc/usr.bin/gcc/arch/armeb/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/earm/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/earm/configargs.h up to 1.24
external/gpl3/gcc/usr.bin/gcc/arch/earm/defs.mk up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/earm/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/earmeb/bversion.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earmeb/configargs.h up to 1.20
external/gpl3/gcc/usr.bin/gcc/arch/earmeb/defs.mk up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/earmeb/plugin-version.h up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/earmhf/bversion.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earmhf/configargs.h up to 1.21
external/gpl3/gcc/usr.bin/gcc/arch/earmhf/defs.mk up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/earmhf/plugin-version.h up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb/bversion.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb/configargs.h up to 1.19
external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb/defs.mk up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb/plugin-version.h up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/earmv4/bversion.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earmv4/configargs.h up to 1.18
external/gpl3/gcc/usr.bin/gcc/arch/earmv4/defs.mk up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv4/plugin-version.h up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb/bversion.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb/configargs.h up to 1.18
external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb/defs.mk up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb/plugin-version.h up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/earmv6/bversion.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earmv6/configargs.h up to 1.18
external/gpl3/gcc/usr.bin/gcc/arch/earmv6/defs.mk up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv6/plugin-version.h up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb/bversion.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb/configargs.h up to 1.18
external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb/defs.mk up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb/plugin-version.h up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf/bversion.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf/configargs.h up to 1.18
external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf/defs.mk up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf/plugin-version.h up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb/bversion.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb/configargs.h up to 1.18
external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb/defs.mk up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb/plugin-version.h up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/earmv7/bversion.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earmv7/configargs.h up to 1.18
external/gpl3/gcc/usr.bin/gcc/arch/earmv7/defs.mk up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv7/plugin-version.h up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb/bversion.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb/configargs.h up to 1.18
external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb/defs.mk up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb/plugin-version.h up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/bversion.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/configargs.h up to 1.18
external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/defs.mk up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/plugin-version.h up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb/bversion.h up to 1.7
external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb/configargs.h up to 1.18
external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb/defs.mk up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb/plugin-version.h up to 1.10
external/gpl3/gcc/usr.bin/gcc/arch/hppa/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/hppa/configargs.h up to 1.24
external/gpl3/gcc/usr.bin/gcc/arch/hppa/defs.mk up to 1.12
external/gpl3/gcc/usr.bin/gcc/arch/hppa/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/i386/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/i386/configargs.h up to 1.31
external/gpl3/gcc/usr.bin/gcc/arch/i386/defs.mk up to 1.12
external/gpl3/gcc/usr.bin/gcc/arch/i386/i386-builtin-types.inc up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/i386/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/ia64/auto-host.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/ia64/bversion.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/ia64/configargs.h up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/ia64/defs.mk up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/ia64/plugin-version.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/m68000/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/m68000/configargs.h up to 1.18
external/gpl3/gcc/usr.bin/gcc/arch/m68000/defs.mk up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/m68000/plugin-version.h up to 1.9
external/gpl3/gcc/usr.bin/gcc/arch/m68k/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/m68k/configargs.h up to 1.21
external/gpl3/gcc/usr.bin/gcc/arch/m68k/defs.mk up to 1.12
external/gpl3/gcc/usr.bin/gcc/arch/m68k/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/mips64eb/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/mips64eb/configargs.h up to 1.22
external/gpl3/gcc/usr.bin/gcc/arch/mips64eb/defs.mk up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/mips64eb/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/mips64el/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/mips64el/configargs.h up to 1.23
external/gpl3/gcc/usr.bin/gcc/arch/mips64el/defs.mk up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/mips64el/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/mipseb/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/mipseb/configargs.h up to 1.22
external/gpl3/gcc/usr.bin/gcc/arch/mipseb/defs.mk up to 1.12
external/gpl3/gcc/usr.bin/gcc/arch/mipseb/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/mipsel/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/mipsel/configargs.h up to 1.23
external/gpl3/gcc/usr.bin/gcc/arch/mipsel/defs.mk up to 1.12
external/gpl3/gcc/usr.bin/gcc/arch/mipsel/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/powerpc/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/powerpc/configargs.h up to 1.28
external/gpl3/gcc/usr.bin/gcc/arch/powerpc/defs.mk up to 1.13
external/gpl3/gcc/usr.bin/gcc/arch/powerpc/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/bversion.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/configargs.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/defs.mk up to 1.6
external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/plugin-version.h up to 1.5
external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/configargs.h up to 1.24
external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/defs.mk up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/sh3el/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/sh3el/configargs.h up to 1.26
external/gpl3/gcc/usr.bin/gcc/arch/sh3el/defs.mk up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/sh3el/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/sparc/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/sparc/configargs.h up to 1.26
external/gpl3/gcc/usr.bin/gcc/arch/sparc/defs.mk up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/sparc/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/sparc64/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/sparc64/configargs.h up to 1.26
external/gpl3/gcc/usr.bin/gcc/arch/sparc64/defs.mk up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/sparc64/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/vax/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/vax/configargs.h up to 1.24
external/gpl3/gcc/usr.bin/gcc/arch/vax/defs.mk  up to 1.12
external/gpl3/gcc/usr.bin/gcc/arch/vax/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/gcc/arch/x86_64/bversion.h up to 1.8
external/gpl3/gcc/usr.bin/gcc/arch/x86_64/configargs.h up to 1.33
external/gpl3/gcc/usr.bin/gcc/arch/x86_64/defs.mk up to 1.13
external/gpl3/gcc/usr.bin/gcc/arch/x86_64/i386-builtin-types.inc up to 1.4
external/gpl3/gcc/usr.bin/gcc/arch/x86_64/plugin-version.h up to 1.11
external/gpl3/gcc/usr.bin/include/arch/i386.mk  up to 1.3
external/gpl3/gcc/usr.bin/include/arch/x86_64.mk up to 1.3
external/gpl3/gcc/usr.bin/libcpp/arch/ia64/config.h up to 1.4
distrib/sets/lists/comp/md.amd64				1.252
distrib/sets/lists/comp/md.i386					1.175
distrib/sets/lists/comp/shl.mi					1.309
distrib/sets/lists/debug/shl.mi					1.187
external/gpl3/gcc/lib/liblto_plugin/Makefile			1.6
lib/libc/stdlib/jemalloc.c					1.43

Update gcc to gcc 5.5.
Bump lib minor for liblto_plugin.so link with -liberty.
The HPPA architectures (1.1 and 2.0) both define quadruple-word
(128-bit) floating point types.  Adjust alignment to match.
@
text
@d170 3
a172 6
      : _M_t()
      {
	std::get<0>(_M_t) = __p;
	static_assert(!is_pointer<deleter_type>::value,
		     "constructed with null function pointer deleter");
      }
@


1.1.1.4
log
@initial import of GCC 5.5.0.  this fixes a very large number of PRs.
280 are listed here:
    https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=5.5
and this list is likely not complete, and not reproduced here.  the
only specific change in functionality is removal of x86 "pcommit"
instruction (which was apparently never implemented.)
@
text
@d170 3
a172 6
      : _M_t()
      {
	std::get<0>(_M_t) = __p;
	static_assert(!is_pointer<deleter_type>::value,
		     "constructed with null function pointer deleter");
      }
@


1.1.1.5
log
@import GCC 6.4.0.  see this url for details which are too large to
include here:

   http://gcc.gnu.org/gcc-6/changes.html

the main visible changes appear to be:

- The default mode for C++ is now -std=gnu++14 instead of -std=gnu++98.
- The C and C++ compilers now support attributes on enumerators.
- Diagnostics can now contain "fix-it hints"
- more warnings (some added to -Wall)
@
text
@d3 1
a3 1
// Copyright (C) 2008-2016 Free Software Foundation, Inc.
d34 1
a34 1
#include <debug/assertions.h>
d86 10
d110 1
a110 1
	       enable_if<is_convertible<_Up(*)[], _Tp(*)[]>::value>::type>
d114 2
a115 3
      template<typename _Up>
      typename enable_if<is_convertible<_Up(*)[], _Tp(*)[]>::value>::type
	operator()(_Up* __ptr) const
d121 4
a153 14

      // helper template for detecting a safe conversion from another
      // unique_ptr
      template<typename _Up, typename _Ep>
	using __safe_conversion_up = __and_<
	        is_convertible<typename unique_ptr<_Up, _Ep>::pointer, pointer>,
                __not_<is_array<_Up>>,
                __or_<__and_<is_reference<deleter_type>,
                             is_same<deleter_type, _Ep>>,
                      __and_<__not_<is_reference<deleter_type>>,
                             is_convertible<_Ep, deleter_type>>
                >
              >;

d218 2
a219 1
               __safe_conversion_up<_Up, _Ep>,
d267 5
a271 5
        typename enable_if< __and_<
          __safe_conversion_up<_Up, _Ep>,
          is_assignable<deleter_type&, _Ep&&>
          >::value,
          unique_ptr&>::type
d293 1
a293 1
	__glibcxx_assert(get() != pointer());
d301 1
a301 1
	_GLIBCXX_DEBUG_PEDASSERT(get() != pointer());
d397 11
a413 29
      // helper template for detecting a safe conversion from another
      // unique_ptr
      template<typename _Up, typename _Ep,
               typename _Up_up = unique_ptr<_Up, _Ep>,
	       typename _Up_element_type = typename _Up_up::element_type>
	using __safe_conversion_up = __and_<
          is_array<_Up>,
          is_same<pointer, element_type*>,
          is_same<typename _Up_up::pointer, _Up_element_type*>,
          is_convertible<_Up_element_type(*)[], element_type(*)[]>,
          __or_<__and_<is_reference<deleter_type>, is_same<deleter_type, _Ep>>,
                __and_<__not_<is_reference<deleter_type>>,
                       is_convertible<_Ep, deleter_type>>>
        >;

      // helper template for detecting a safe conversion from a raw pointer
      template<typename _Up>
        using __safe_conversion_raw = __and_<
          __or_<__or_<is_same<_Up, pointer>,
                      is_same<_Up, nullptr_t>>,
                __and_<is_pointer<_Up>,
                       is_same<pointer, element_type*>,
                       is_convertible<
                         typename remove_pointer<_Up>::type(*)[],
                         element_type(*)[]>
                >
          >
        >;

d424 1
a424 2
       * @@param __p  A pointer to an array of a type safely convertible
       * to an array of @@c element_type
a427 3
      template<typename _Up,
               typename = typename enable_if<
                 __safe_conversion_raw<_Up>::value, bool>::type>
d429 1
a429 1
      unique_ptr(_Up __p) noexcept
d434 6
d442 1
a442 2
       * @@param __p  A pointer to an array of a type safely convertible
       * to an array of @@c element_type
d447 3
a449 6
      template<typename _Up,
               typename = typename enable_if<
                 __safe_conversion_raw<_Up>::value, bool>::type>
      unique_ptr(_Up __p,
                 typename conditional<is_reference<deleter_type>::value,
                 deleter_type, const deleter_type&>::type __d) noexcept
d454 1
a454 2
       * @@param __p  A pointer to an array of a type safely convertible
       * to an array of @@c element_type
d459 1
a459 4
      template<typename _Up,
               typename = typename enable_if<
                 __safe_conversion_raw<_Up>::value, bool>::type>
      unique_ptr(_Up __p, typename
d473 5
a477 1
	       typename = _Require<__safe_conversion_up<_Up, _Ep>>>
d516 1
a516 4
	enable_if<__and_<__safe_conversion_up<_Up, _Ep>,
                         is_assignable<deleter_type&, _Ep&&>
                  >::value,
                  unique_ptr&>::type
d538 1
a538 1
	__glibcxx_assert(get() != pointer());
a577 12
      template <typename _Up,
                typename = _Require<
                  __or_<is_same<_Up, pointer>,
                        __and_<is_same<pointer, element_type*>,
                               is_pointer<_Up>,
                               is_convertible<
                                 typename remove_pointer<_Up>::type(*)[],
                                 element_type(*)[]
                               >
                        >
                  >
               >>
d579 1
a579 1
      reset(_Up __p) noexcept
a580 1
	pointer __ptr = __p;
d582 3
a584 3
	swap(std::get<0>(_M_t), __ptr);
	if (__ptr != nullptr)
	  get_deleter()(__ptr);
d587 4
a590 4
      void reset(nullptr_t = nullptr) noexcept
      {
        reset(pointer());
      }
d603 13
@


1.1.1.5.4.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
// Copyright (C) 2008-2017 Free Software Foundation, Inc.
a37 2
#include <bits/stl_function.h>
#include <bits/functional_hash.h>
d114 3
a116 2
  template <typename _Tp, typename _Dp>
    class __uniq_ptr_impl
d118 5
a122 5
      template <typename _Up, typename _Ep, typename = void>
	struct _Ptr
	{
	  using type = _Up*;
	};
d124 2
a125 6
      template <typename _Up, typename _Ep>
	struct
	_Ptr<_Up, _Ep, __void_t<typename remove_reference<_Ep>::type::pointer>>
	{
	  using type = typename remove_reference<_Ep>::type::pointer;
	};
d127 1
a127 18
    public:
      using _DeleterConstraint = enable_if<
        __and_<__not_<is_pointer<_Dp>>,
	       is_default_constructible<_Dp>>::value>;

      using pointer = typename _Ptr<_Tp, _Dp>::type;

      __uniq_ptr_impl() = default;
      __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; }

      template<typename _Del>
      __uniq_ptr_impl(pointer __p, _Del&& __d)
	: _M_t(__p, std::forward<_Del>(__d)) { }

      pointer&   _M_ptr() { return std::get<0>(_M_t); }
      pointer    _M_ptr() const { return std::get<0>(_M_t); }
      _Dp&       _M_deleter() { return std::get<1>(_M_t); }
      const _Dp& _M_deleter() const { return std::get<1>(_M_t); }
d129 3
a131 3
    private:
      tuple<pointer, _Dp> _M_t;
    };
d133 2
a134 7
  /// 20.7.1.2 unique_ptr for single objects.
  template <typename _Tp, typename _Dp = default_delete<_Tp>>
    class unique_ptr
    {
      template <class _Up>
      using _DeleterConstraint =
	typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
d136 4
a139 1
      __uniq_ptr_impl<_Tp, _Dp> _M_t;
a140 4
    public:
      using pointer	  = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
      using element_type  = _Tp;
      using deleter_type  = _Dp;
d158 4
a161 5
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	constexpr unique_ptr() noexcept
	: _M_t()
	{ }
d169 8
a176 6
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	explicit
	unique_ptr(pointer __p) noexcept
	: _M_t(__p)
        { }
d204 1
a204 3
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	constexpr unique_ptr(nullptr_t) noexcept : _M_t() { }
d237 1
a237 1
	auto& __ptr = _M_t._M_ptr();
d308 1
a308 1
      { return _M_t._M_ptr(); }
d313 1
a313 1
      { return _M_t._M_deleter(); }
d318 1
a318 1
      { return _M_t._M_deleter(); }
d331 1
a331 1
	_M_t._M_ptr() = pointer();
d345 1
a345 1
	swap(_M_t._M_ptr(), __p);
d370 8
a377 3
      template <typename _Up>
      using _DeleterConstraint =
	typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
d379 8
a386 1
      __uniq_ptr_impl<_Tp, _Dp> _M_t;
d397 1
d399 3
a401 3
      using pointer	  = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
      using element_type  = _Tp;
      using deleter_type  = _Dp;
d435 4
a438 5
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	constexpr unique_ptr() noexcept
	: _M_t()
	{ }
d448 1
a448 3
	       typename _Vp = _Dp,
	       typename = _DeleterConstraint<_Vp>,
	       typename = typename enable_if<
d450 5
a454 4
	explicit
	unique_ptr(_Up __p) noexcept
	: _M_t(__p)
        { }
d494 1
a494 3
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	constexpr unique_ptr(nullptr_t) noexcept : _M_t() { }
d505 1
a505 1
	auto& __ptr = _M_t._M_ptr();
d568 1
a568 1
      { return _M_t._M_ptr(); }
d573 1
a573 1
      { return _M_t._M_deleter(); }
d578 1
a578 1
      { return _M_t._M_deleter(); }
d591 1
a591 1
	_M_t._M_ptr() = pointer();
d618 1
a618 1
	swap(_M_t._M_ptr(), __ptr);
d642 1
a642 7
    inline
#if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++1z or gnu++11
    // Constrained free swap overload, see p0185r1
    typename enable_if<__is_swappable<_Dp>::value>::type
#else
    void
#endif
a646 7
#if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++1z or gnu++11
  template<typename _Tp, typename _Dp>
    typename enable_if<!__is_swappable<_Dp>::value>::type
    swap(unique_ptr<_Tp, _Dp>&,
	 unique_ptr<_Tp, _Dp>&) = delete;
#endif

d761 1
a761 2
    : public __hash_base<size_t, unique_ptr<_Tp, _Dp>>,
    private __poison_hash<typename unique_ptr<_Tp, _Dp>::pointer>
@


1.1.1.5.4.2
log
@Merge changes from current as of 20200406
@
text
@a150 8
      void
      swap(__uniq_ptr_impl& __rhs) noexcept
      {
	using std::swap;
	swap(this->_M_ptr(), __rhs._M_ptr());
	swap(this->_M_deleter(), __rhs._M_deleter());
      }

d174 8
a181 3
	  is_convertible<typename unique_ptr<_Up, _Ep>::pointer, pointer>,
	  __not_<is_array<_Up>>
        >;
d383 2
a384 2
	static_assert(__is_swappable<_Dp>::value, "deleter must be swappable");
	_M_t.swap(__u._M_t);
d422 2
a423 3
               typename _UPtr = unique_ptr<_Up, _Ep>,
	       typename _UP_pointer = typename _UPtr::pointer,
	       typename _UP_element_type = typename _UPtr::element_type>
d427 5
a431 2
          is_same<_UP_pointer, _UP_element_type*>,
          is_convertible<_UP_element_type(*)[], element_type(*)[]>
d516 2
a517 5
      template<typename _Up, typename _Ep, typename = _Require<
	       __safe_conversion_up<_Up, _Ep>,
	       typename conditional<is_reference<_Dp>::value,
				    is_same<_Ep, _Dp>,
				    is_convertible<_Ep, _Dp>>::type>>
d652 2
a653 2
	static_assert(__is_swappable<_Dp>::value, "deleter must be swappable");
	_M_t.swap(__u._M_t);
@


1.1.1.5.4.3
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d3 1
a3 1
// Copyright (C) 2008-2018 Free Software Foundation, Inc.
a50 2
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
a51 1
#pragma GCC diagnostic pop
a259 2
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
a263 1
#pragma GCC diagnostic pop
@


1.1.1.5.2.1
log
@Sync with HEAD, resolve a couple of conflicts
@
text
@d204 1
a204 3
      constexpr unique_ptr(nullptr_t) noexcept : _M_t()
      { static_assert(!is_pointer<deleter_type>::value,
		      "constructed with null function pointer deleter"); }
d494 1
a494 3
      constexpr unique_ptr(nullptr_t) noexcept : _M_t()
      { static_assert(!is_pointer<deleter_type>::value,
		      "constructed with null function pointer deleter"); }
@


1.1.1.5.2.2
log
@Sync with HEAD
@
text
@d3 1
a3 1
// Copyright (C) 2008-2017 Free Software Foundation, Inc.
a37 2
#include <bits/stl_function.h>
#include <bits/functional_hash.h>
d114 3
a116 2
  template <typename _Tp, typename _Dp>
    class __uniq_ptr_impl
d118 5
a122 5
      template <typename _Up, typename _Ep, typename = void>
	struct _Ptr
	{
	  using type = _Up*;
	};
d124 2
a125 6
      template <typename _Up, typename _Ep>
	struct
	_Ptr<_Up, _Ep, __void_t<typename remove_reference<_Ep>::type::pointer>>
	{
	  using type = typename remove_reference<_Ep>::type::pointer;
	};
d127 1
a127 18
    public:
      using _DeleterConstraint = enable_if<
        __and_<__not_<is_pointer<_Dp>>,
	       is_default_constructible<_Dp>>::value>;

      using pointer = typename _Ptr<_Tp, _Dp>::type;

      __uniq_ptr_impl() = default;
      __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; }

      template<typename _Del>
      __uniq_ptr_impl(pointer __p, _Del&& __d)
	: _M_t(__p, std::forward<_Del>(__d)) { }

      pointer&   _M_ptr() { return std::get<0>(_M_t); }
      pointer    _M_ptr() const { return std::get<0>(_M_t); }
      _Dp&       _M_deleter() { return std::get<1>(_M_t); }
      const _Dp& _M_deleter() const { return std::get<1>(_M_t); }
d129 3
a131 3
    private:
      tuple<pointer, _Dp> _M_t;
    };
d133 2
a134 7
  /// 20.7.1.2 unique_ptr for single objects.
  template <typename _Tp, typename _Dp = default_delete<_Tp>>
    class unique_ptr
    {
      template <class _Up>
      using _DeleterConstraint =
	typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
d136 4
a139 1
      __uniq_ptr_impl<_Tp, _Dp> _M_t;
a140 4
    public:
      using pointer	  = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
      using element_type  = _Tp;
      using deleter_type  = _Dp;
d158 4
a161 5
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	constexpr unique_ptr() noexcept
	: _M_t()
	{ }
d169 8
a176 6
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	explicit
	unique_ptr(pointer __p) noexcept
	: _M_t(__p)
        { }
d204 3
a206 3
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	constexpr unique_ptr(nullptr_t) noexcept : _M_t() { }
d239 1
a239 1
	auto& __ptr = _M_t._M_ptr();
d310 1
a310 1
      { return _M_t._M_ptr(); }
d315 1
a315 1
      { return _M_t._M_deleter(); }
d320 1
a320 1
      { return _M_t._M_deleter(); }
d333 1
a333 1
	_M_t._M_ptr() = pointer();
d347 1
a347 1
	swap(_M_t._M_ptr(), __p);
d372 8
a379 3
      template <typename _Up>
      using _DeleterConstraint =
	typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
d381 8
a388 1
      __uniq_ptr_impl<_Tp, _Dp> _M_t;
d399 1
d401 3
a403 3
      using pointer	  = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
      using element_type  = _Tp;
      using deleter_type  = _Dp;
d437 4
a440 5
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	constexpr unique_ptr() noexcept
	: _M_t()
	{ }
d450 1
a450 3
	       typename _Vp = _Dp,
	       typename = _DeleterConstraint<_Vp>,
	       typename = typename enable_if<
d452 5
a456 4
	explicit
	unique_ptr(_Up __p) noexcept
	: _M_t(__p)
        { }
d496 3
a498 3
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	constexpr unique_ptr(nullptr_t) noexcept : _M_t() { }
d509 1
a509 1
	auto& __ptr = _M_t._M_ptr();
d572 1
a572 1
      { return _M_t._M_ptr(); }
d577 1
a577 1
      { return _M_t._M_deleter(); }
d582 1
a582 1
      { return _M_t._M_deleter(); }
d595 1
a595 1
	_M_t._M_ptr() = pointer();
d622 1
a622 1
	swap(_M_t._M_ptr(), __ptr);
d646 1
a646 7
    inline
#if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++1z or gnu++11
    // Constrained free swap overload, see p0185r1
    typename enable_if<__is_swappable<_Dp>::value>::type
#else
    void
#endif
a650 7
#if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++1z or gnu++11
  template<typename _Tp, typename _Dp>
    typename enable_if<!__is_swappable<_Dp>::value>::type
    swap(unique_ptr<_Tp, _Dp>&,
	 unique_ptr<_Tp, _Dp>&) = delete;
#endif

d765 1
a765 2
    : public __hash_base<size_t, unique_ptr<_Tp, _Dp>>,
    private __poison_hash<typename unique_ptr<_Tp, _Dp>::pointer>
@


1.1.1.6
log
@import GCC 6.5.0.  this is largely a maint release with no
particularly features listed here:

   http://gcc.gnu.org/gcc-6/changes.html

this fixes over 250 PRs in the GCC bugzilla:

   https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=6.5
@
text
@d204 1
a204 3
      constexpr unique_ptr(nullptr_t) noexcept : _M_t()
      { static_assert(!is_pointer<deleter_type>::value,
		      "constructed with null function pointer deleter"); }
d494 1
a494 3
      constexpr unique_ptr(nullptr_t) noexcept : _M_t()
      { static_assert(!is_pointer<deleter_type>::value,
		      "constructed with null function pointer deleter"); }
@


1.1.1.7
log
@import GCC 7.4.0.  main changes include:

The non-standard C++0x type traits has_trivial_default_constructor,
has_trivial_copy_constructor and has_trivial_copy_assign have been
removed.

On ARM targets (arm*-*-*), a bug introduced in GCC 5 that affects
conformance to the procedure call standard (AAPCS) has been fixed.

Many optimiser improvements

DWARF-5 support.

Many new and enhanced warnings.

Warnings about format strings now underline the pertinent part of
the string, and can offer suggested fixes.

Several new warnings related to buffer overflows and buffer
truncation.

New __builtin_add_overflow_p, __builtin_sub_overflow_p,
__builtin_mul_overflow_p built-ins added that test for overflow.

The C++ front end has experimental support for all of the current
C++17 draft.

The -fverbose-asm option has been expanded to prints comments
showing the source lines that correspond to the assembly.

The gcc and g++ driver programs will now provide suggestions for
misspelled arguments to command-line options.


AArch64 specific:

GCC has been updated to the latest revision of the procedure call
standard (AAPCS64) to provide support for parameter passing when
data types have been over-aligned.

The ARMv8.2-A and ARMv8.3-A architecture are now supported.

ARM specific:

Support for the ARMv5 and ARMv5E architectures has been
deprecated (which have no known implementations).

A new command-line option -mpure-code has been added. It does not
allow constant data to be placed in code sections.

x86 specific:

Support for the AVX-512 4FMAPS, 4VNNIW, VPOPCNTDQ and Software
Guard Extensions (SGX) ISA extensions has been added.

PPC specific:

GCC now diagnoses inline assembly that clobbers register r2.

RISC-V specific:

Support for the RISC-V instruction set has been added.

SH specific:

Support for SH5/SH64 has been removed.

Support for SH2A has been enhanced.
@
text
@d3 1
a3 1
// Copyright (C) 2008-2017 Free Software Foundation, Inc.
a37 2
#include <bits/stl_function.h>
#include <bits/functional_hash.h>
d114 3
a116 2
  template <typename _Tp, typename _Dp>
    class __uniq_ptr_impl
d118 5
a122 5
      template <typename _Up, typename _Ep, typename = void>
	struct _Ptr
	{
	  using type = _Up*;
	};
d124 2
a125 6
      template <typename _Up, typename _Ep>
	struct
	_Ptr<_Up, _Ep, __void_t<typename remove_reference<_Ep>::type::pointer>>
	{
	  using type = typename remove_reference<_Ep>::type::pointer;
	};
d127 1
a127 18
    public:
      using _DeleterConstraint = enable_if<
        __and_<__not_<is_pointer<_Dp>>,
	       is_default_constructible<_Dp>>::value>;

      using pointer = typename _Ptr<_Tp, _Dp>::type;

      __uniq_ptr_impl() = default;
      __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; }

      template<typename _Del>
      __uniq_ptr_impl(pointer __p, _Del&& __d)
	: _M_t(__p, std::forward<_Del>(__d)) { }

      pointer&   _M_ptr() { return std::get<0>(_M_t); }
      pointer    _M_ptr() const { return std::get<0>(_M_t); }
      _Dp&       _M_deleter() { return std::get<1>(_M_t); }
      const _Dp& _M_deleter() const { return std::get<1>(_M_t); }
d129 3
a131 3
    private:
      tuple<pointer, _Dp> _M_t;
    };
d133 2
a134 7
  /// 20.7.1.2 unique_ptr for single objects.
  template <typename _Tp, typename _Dp = default_delete<_Tp>>
    class unique_ptr
    {
      template <class _Up>
      using _DeleterConstraint =
	typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
d136 4
a139 1
      __uniq_ptr_impl<_Tp, _Dp> _M_t;
a140 4
    public:
      using pointer	  = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
      using element_type  = _Tp;
      using deleter_type  = _Dp;
d158 4
a161 5
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	constexpr unique_ptr() noexcept
	: _M_t()
	{ }
d169 8
a176 6
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	explicit
	unique_ptr(pointer __p) noexcept
	: _M_t(__p)
        { }
d204 3
a206 3
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	constexpr unique_ptr(nullptr_t) noexcept : _M_t() { }
d239 1
a239 1
	auto& __ptr = _M_t._M_ptr();
d310 1
a310 1
      { return _M_t._M_ptr(); }
d315 1
a315 1
      { return _M_t._M_deleter(); }
d320 1
a320 1
      { return _M_t._M_deleter(); }
d333 1
a333 1
	_M_t._M_ptr() = pointer();
d347 1
a347 1
	swap(_M_t._M_ptr(), __p);
d372 8
a379 3
      template <typename _Up>
      using _DeleterConstraint =
	typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
d381 8
a388 1
      __uniq_ptr_impl<_Tp, _Dp> _M_t;
d399 1
d401 3
a403 3
      using pointer	  = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
      using element_type  = _Tp;
      using deleter_type  = _Dp;
d437 4
a440 5
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	constexpr unique_ptr() noexcept
	: _M_t()
	{ }
d450 1
a450 3
	       typename _Vp = _Dp,
	       typename = _DeleterConstraint<_Vp>,
	       typename = typename enable_if<
d452 5
a456 4
	explicit
	unique_ptr(_Up __p) noexcept
	: _M_t(__p)
        { }
d496 3
a498 3
      template <typename _Up = _Dp,
		typename = _DeleterConstraint<_Up>>
	constexpr unique_ptr(nullptr_t) noexcept : _M_t() { }
d509 1
a509 1
	auto& __ptr = _M_t._M_ptr();
d572 1
a572 1
      { return _M_t._M_ptr(); }
d577 1
a577 1
      { return _M_t._M_deleter(); }
d582 1
a582 1
      { return _M_t._M_deleter(); }
d595 1
a595 1
	_M_t._M_ptr() = pointer();
d622 1
a622 1
	swap(_M_t._M_ptr(), __ptr);
d646 1
a646 7
    inline
#if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++1z or gnu++11
    // Constrained free swap overload, see p0185r1
    typename enable_if<__is_swappable<_Dp>::value>::type
#else
    void
#endif
a650 7
#if __cplusplus > 201402L || !defined(__STRICT_ANSI__) // c++1z or gnu++11
  template<typename _Tp, typename _Dp>
    typename enable_if<!__is_swappable<_Dp>::value>::type
    swap(unique_ptr<_Tp, _Dp>&,
	 unique_ptr<_Tp, _Dp>&) = delete;
#endif

d765 1
a765 2
    : public __hash_base<size_t, unique_ptr<_Tp, _Dp>>,
    private __poison_hash<typename unique_ptr<_Tp, _Dp>::pointer>
@


1.1.1.7.2.1
log
@Pull up the following, all via patch, requested by mrg in ticket #1049:

	external/gpl3/gcc/dist/ChangeLog
	external/gpl3/gcc/dist/LAST_UPDATED
	external/gpl3/gcc/dist/MD5SUMS
	external/gpl3/gcc/dist/NEWS
	external/gpl3/gcc/dist/config/ChangeLog
	external/gpl3/gcc/dist/contrib/ChangeLog
	external/gpl3/gcc/dist/contrib/test_summary
	external/gpl3/gcc/dist/contrib/header-tools/ChangeLog
	external/gpl3/gcc/dist/contrib/reghunt/ChangeLog
	external/gpl3/gcc/dist/contrib/regression/ChangeLog
	external/gpl3/gcc/dist/fixincludes/ChangeLog
	external/gpl3/gcc/dist/fixincludes/fixincl.x
	external/gpl3/gcc/dist/fixincludes/inclhack.def
	external/gpl3/gcc/dist/fixincludes/tests/base/architecture/ppc/math.h
	external/gpl3/gcc/dist/fixincludes/tests/base/dispatch/object.h
	external/gpl3/gcc/dist/fixincludes/tests/base/os/availability.h
	external/gpl3/gcc/dist/fixincludes/tests/base/os/base.h
	external/gpl3/gcc/dist/gcc/BASE-VER
	external/gpl3/gcc/dist/gcc/ChangeLog
	external/gpl3/gcc/dist/gcc/DATESTAMP
	external/gpl3/gcc/dist/gcc/builtins.c
	external/gpl3/gcc/dist/gcc/calls.c
	external/gpl3/gcc/dist/gcc/cfgcleanup.c
	external/gpl3/gcc/dist/gcc/cfghooks.c
	external/gpl3/gcc/dist/gcc/cfghooks.h
	external/gpl3/gcc/dist/gcc/cfgloop.h
	external/gpl3/gcc/dist/gcc/cfgloopmanip.c
	external/gpl3/gcc/dist/gcc/cfgrtl.c
	external/gpl3/gcc/dist/gcc/combine.c
	external/gpl3/gcc/dist/gcc/config.gcc
	external/gpl3/gcc/dist/gcc/convert.c
	external/gpl3/gcc/dist/gcc/dce.c
	external/gpl3/gcc/dist/gcc/df-core.c
	external/gpl3/gcc/dist/gcc/dse.c
	external/gpl3/gcc/dist/gcc/dwarf2out.c
	external/gpl3/gcc/dist/gcc/except.c
	external/gpl3/gcc/dist/gcc/explow.c
	external/gpl3/gcc/dist/gcc/expmed.c
	external/gpl3/gcc/dist/gcc/expr.c
	external/gpl3/gcc/dist/gcc/final.c
	external/gpl3/gcc/dist/gcc/fold-const.c
	external/gpl3/gcc/dist/gcc/function.c
	external/gpl3/gcc/dist/gcc/gcse.c
	external/gpl3/gcc/dist/gcc/gengtype-lex.c
	external/gpl3/gcc/dist/gcc/ggc-page.c
	external/gpl3/gcc/dist/gcc/gimple-fold.c
	external/gpl3/gcc/dist/gcc/gimple-pretty-print.c
	external/gpl3/gcc/dist/gcc/gimple-ssa-sprintf.c
	external/gpl3/gcc/dist/gcc/gimple-ssa-strength-reduction.c
	external/gpl3/gcc/dist/gcc/gimple.c
	external/gpl3/gcc/dist/gcc/gimple.h
	external/gpl3/gcc/dist/gcc/gimplify.c
	external/gpl3/gcc/dist/gcc/graphite-scop-detection.c
	external/gpl3/gcc/dist/gcc/input.c
	external/gpl3/gcc/dist/gcc/internal-fn.c
	external/gpl3/gcc/dist/gcc/internal-fn.h
	external/gpl3/gcc/dist/gcc/ipa-cp.c
	external/gpl3/gcc/dist/gcc/ipa-icf-gimple.c
	external/gpl3/gcc/dist/gcc/ipa-inline.c
	external/gpl3/gcc/dist/gcc/ipa-prop.c
	external/gpl3/gcc/dist/gcc/ipa-pure-const.c
	external/gpl3/gcc/dist/gcc/ipa-reference.c
	external/gpl3/gcc/dist/gcc/ipa-utils.c
	external/gpl3/gcc/dist/gcc/ipa-utils.h
	external/gpl3/gcc/dist/gcc/ira.c
	external/gpl3/gcc/dist/gcc/loop-unroll.c
	external/gpl3/gcc/dist/gcc/lra-constraints.c
	external/gpl3/gcc/dist/gcc/lra.c
	external/gpl3/gcc/dist/gcc/lto-streamer-in.c
	external/gpl3/gcc/dist/gcc/lto-streamer-out.c
	external/gpl3/gcc/dist/gcc/lto-streamer.h
	external/gpl3/gcc/dist/gcc/lto-wrapper.c
	external/gpl3/gcc/dist/gcc/match.pd
	external/gpl3/gcc/dist/gcc/omp-expand.c
	external/gpl3/gcc/dist/gcc/omp-low.c
	external/gpl3/gcc/dist/gcc/omp-simd-clone.c
	external/gpl3/gcc/dist/gcc/optabs.c
	external/gpl3/gcc/dist/gcc/optc-save-gen.awk
	external/gpl3/gcc/dist/gcc/opth-gen.awk
	external/gpl3/gcc/dist/gcc/opts-common.c
	external/gpl3/gcc/dist/gcc/opts-global.c
	external/gpl3/gcc/dist/gcc/opts.c
	external/gpl3/gcc/dist/gcc/resource.c
	external/gpl3/gcc/dist/gcc/rtl.h
	external/gpl3/gcc/dist/gcc/rtlanal.c
	external/gpl3/gcc/dist/gcc/store-motion.c
	external/gpl3/gcc/dist/gcc/symtab.c
	external/gpl3/gcc/dist/gcc/toplev.c
	external/gpl3/gcc/dist/gcc/tree-cfg.c
	external/gpl3/gcc/dist/gcc/tree-complex.c
	external/gpl3/gcc/dist/gcc/tree-core.h
	external/gpl3/gcc/dist/gcc/tree-data-ref.c
	external/gpl3/gcc/dist/gcc/tree-data-ref.h
	external/gpl3/gcc/dist/gcc/tree-inline.c
	external/gpl3/gcc/dist/gcc/tree-inline.h
	external/gpl3/gcc/dist/gcc/tree-loop-distribution.c
	external/gpl3/gcc/dist/gcc/tree-outof-ssa.c
	external/gpl3/gcc/dist/gcc/tree-scalar-evolution.c
	external/gpl3/gcc/dist/gcc/tree-sra.c
	external/gpl3/gcc/dist/gcc/tree-ssa-copy.c
	external/gpl3/gcc/dist/gcc/tree-ssa-dom.c
	external/gpl3/gcc/dist/gcc/tree-ssa-forwprop.c
	external/gpl3/gcc/dist/gcc/tree-ssa-loop-ch.c
	external/gpl3/gcc/dist/gcc/tree-ssa-loop-ivcanon.c
	external/gpl3/gcc/dist/gcc/tree-ssa-loop-ivopts.c
	external/gpl3/gcc/dist/gcc/tree-ssa-loop-split.c
	external/gpl3/gcc/dist/gcc/tree-ssa-math-opts.c
	external/gpl3/gcc/dist/gcc/tree-ssa-phiopt.c
	external/gpl3/gcc/dist/gcc/tree-ssa-phiprop.c
	external/gpl3/gcc/dist/gcc/tree-ssa-pre.c
	external/gpl3/gcc/dist/gcc/tree-ssa-reassoc.c
	external/gpl3/gcc/dist/gcc/tree-ssa-sccvn.c
	external/gpl3/gcc/dist/gcc/tree-ssa-sccvn.h
	external/gpl3/gcc/dist/gcc/tree-ssa-sink.c
	external/gpl3/gcc/dist/gcc/tree-ssa-strlen.c
	external/gpl3/gcc/dist/gcc/tree-ssa-structalias.c
	external/gpl3/gcc/dist/gcc/tree-ssanames.c
	external/gpl3/gcc/dist/gcc/tree-streamer-in.c
	external/gpl3/gcc/dist/gcc/tree-streamer-out.c
	external/gpl3/gcc/dist/gcc/tree-vect-data-refs.c
	external/gpl3/gcc/dist/gcc/tree-vect-slp.c
	external/gpl3/gcc/dist/gcc/tree-vect-stmts.c
	external/gpl3/gcc/dist/gcc/tree-vrp.c
	external/gpl3/gcc/dist/gcc/tree.c
	external/gpl3/gcc/dist/gcc/tree.h
	external/gpl3/gcc/dist/gcc/valtrack.c
	external/gpl3/gcc/dist/gcc/varasm.c
	external/gpl3/gcc/dist/gcc/xcoffout.c
	external/gpl3/gcc/dist/gcc/xcoffout.h
	external/gpl3/gcc/dist/gcc/brig/ChangeLog
	external/gpl3/gcc/dist/gcc/c/ChangeLog
	external/gpl3/gcc/dist/gcc/c/c-decl.c
	external/gpl3/gcc/dist/gcc/c/c-parser.c
	external/gpl3/gcc/dist/gcc/c/c-tree.h
	external/gpl3/gcc/dist/gcc/c/c-typeck.c
	external/gpl3/gcc/dist/gcc/c-family/ChangeLog
	external/gpl3/gcc/dist/gcc/c-family/c-ada-spec.c
	external/gpl3/gcc/dist/gcc/c-family/c-common.c
	external/gpl3/gcc/dist/gcc/c-family/c-lex.c
	external/gpl3/gcc/dist/gcc/c-family/c-omp.c
	external/gpl3/gcc/dist/gcc/config/darwin-c.c
	external/gpl3/gcc/dist/gcc/config/darwin-driver.c
	external/gpl3/gcc/dist/gcc/config/darwin-protos.h
	external/gpl3/gcc/dist/gcc/config/darwin.c
	external/gpl3/gcc/dist/gcc/config/darwin.h
	external/gpl3/gcc/dist/gcc/config/darwin.opt
	external/gpl3/gcc/dist/gcc/config/darwin10.h
	external/gpl3/gcc/dist/gcc/config/darwin9.h
	external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-c.c
	external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.md
	external/gpl3/gcc/dist/gcc/config/aarch64/cortex-a57-fma-steering.c
	external/gpl3/gcc/dist/gcc/config/aarch64/iterators.md
	external/gpl3/gcc/dist/gcc/config/alpha/alpha.c
	external/gpl3/gcc/dist/gcc/config/arm/arm.c
	external/gpl3/gcc/dist/gcc/config/arm/arm.h
	external/gpl3/gcc/dist/gcc/config/arm/arm.md
	external/gpl3/gcc/dist/gcc/config/arm/constraints.md
	external/gpl3/gcc/dist/gcc/config/arm/neon.md
	external/gpl3/gcc/dist/gcc/config/arm/t-rtems
	external/gpl3/gcc/dist/gcc/config/avr/avr.c
	external/gpl3/gcc/dist/gcc/config/i386/avx2intrin.h
	external/gpl3/gcc/dist/gcc/config/i386/avxintrin.h
	external/gpl3/gcc/dist/gcc/config/i386/cpuid.h
	external/gpl3/gcc/dist/gcc/config/i386/darwin.h
	external/gpl3/gcc/dist/gcc/config/i386/darwin32-biarch.h
	external/gpl3/gcc/dist/gcc/config/i386/darwin64-biarch.h
	external/gpl3/gcc/dist/gcc/config/i386/darwin64.h
	external/gpl3/gcc/dist/gcc/config/i386/emmintrin.h
	external/gpl3/gcc/dist/gcc/config/i386/i386-builtin.def
	external/gpl3/gcc/dist/gcc/config/i386/i386.c
	external/gpl3/gcc/dist/gcc/config/i386/i386.h
	external/gpl3/gcc/dist/gcc/config/i386/i386.md
	external/gpl3/gcc/dist/gcc/config/i386/sse.md
	external/gpl3/gcc/dist/gcc/config/i386/t-darwin
	external/gpl3/gcc/dist/gcc/config/i386/t-darwin32-biarch
	external/gpl3/gcc/dist/gcc/config/i386/t-darwin64
	external/gpl3/gcc/dist/gcc/config/i386/t-darwin64-biarch
	external/gpl3/gcc/dist/gcc/config/nvptx/nvptx.c
	external/gpl3/gcc/dist/gcc/config/pa/pa.c
	external/gpl3/gcc/dist/gcc/config/pa/pa.md
	external/gpl3/gcc/dist/gcc/config/rs6000/altivec.h
	external/gpl3/gcc/dist/gcc/config/rs6000/altivec.md
	external/gpl3/gcc/dist/gcc/config/rs6000/crypto.md
	external/gpl3/gcc/dist/gcc/config/rs6000/darwin.h
	external/gpl3/gcc/dist/gcc/config/rs6000/darwin.md
	external/gpl3/gcc/dist/gcc/config/rs6000/darwin32-biarch.h
	external/gpl3/gcc/dist/gcc/config/rs6000/darwin64-biarch.h
	external/gpl3/gcc/dist/gcc/config/rs6000/darwin64.h
	external/gpl3/gcc/dist/gcc/config/rs6000/darwin7.h
	external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-builtin.def
	external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-c.c
	external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c
	external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.md
	external/gpl3/gcc/dist/gcc/config/rs6000/t-darwin32-biarch
	external/gpl3/gcc/dist/gcc/config/rs6000/t-darwin64
	external/gpl3/gcc/dist/gcc/config/rs6000/t-darwin64-biarch
	external/gpl3/gcc/dist/gcc/config/rs6000/t-darwin8
	external/gpl3/gcc/dist/gcc/config/rs6000/t-linux
	external/gpl3/gcc/dist/gcc/config/rs6000/vsx.md
	external/gpl3/gcc/dist/gcc/config/s390/s390-builtins.def
	external/gpl3/gcc/dist/gcc/config/s390/s390.c
	external/gpl3/gcc/dist/gcc/config/s390/s390.md
	external/gpl3/gcc/dist/gcc/config/s390/vector.md
	external/gpl3/gcc/dist/gcc/config/s390/vx-builtins.md
	external/gpl3/gcc/dist/gcc/config/sh/sh.c
	external/gpl3/gcc/dist/gcc/config/sh/sh.h
	external/gpl3/gcc/dist/gcc/config/sh/sh.md
	external/gpl3/gcc/dist/gcc/config/sparc/sparc.c
	external/gpl3/gcc/dist/gcc/config/sparc/sparc.md
	external/gpl3/gcc/dist/gcc/config/xtensa/xtensa.c
	external/gpl3/gcc/dist/gcc/cp/ChangeLog
	external/gpl3/gcc/dist/gcc/cp/call.c
	external/gpl3/gcc/dist/gcc/cp/class.c
	external/gpl3/gcc/dist/gcc/cp/config-lang.in
	external/gpl3/gcc/dist/gcc/cp/constexpr.c
	external/gpl3/gcc/dist/gcc/cp/cp-tree.h
	external/gpl3/gcc/dist/gcc/cp/decl.c
	external/gpl3/gcc/dist/gcc/cp/decl2.c
	external/gpl3/gcc/dist/gcc/cp/init.c
	external/gpl3/gcc/dist/gcc/cp/lambda.c
	external/gpl3/gcc/dist/gcc/cp/optimize.c
	external/gpl3/gcc/dist/gcc/cp/parser.c
	external/gpl3/gcc/dist/gcc/cp/pt.c
	external/gpl3/gcc/dist/gcc/cp/semantics.c
	external/gpl3/gcc/dist/gcc/cp/typeck.c
	external/gpl3/gcc/dist/gcc/cp/vtable-class-hierarchy.c
	external/gpl3/gcc/dist/gcc/doc/cpp.1
	external/gpl3/gcc/dist/gcc/doc/cpp.info
	external/gpl3/gcc/dist/gcc/doc/cppinternals.info
	external/gpl3/gcc/dist/gcc/doc/extend.texi
	external/gpl3/gcc/dist/gcc/doc/fsf-funding.7
	external/gpl3/gcc/dist/gcc/doc/g++.1
	external/gpl3/gcc/dist/gcc/doc/gcc.1
	external/gpl3/gcc/dist/gcc/doc/gcc.info
	external/gpl3/gcc/dist/gcc/doc/gccinstall.info
	external/gpl3/gcc/dist/gcc/doc/gccint.info
	external/gpl3/gcc/dist/gcc/doc/gcov-dump.1
	external/gpl3/gcc/dist/gcc/doc/gcov-tool.1
	external/gpl3/gcc/dist/gcc/doc/gcov.1
	external/gpl3/gcc/dist/gcc/doc/gfdl.7
	external/gpl3/gcc/dist/gcc/doc/gfortran.1
	external/gpl3/gcc/dist/gcc/doc/gpl.7
	external/gpl3/gcc/dist/gcc/doc/invoke.texi
	external/gpl3/gcc/dist/gcc/doc/sourcebuild.texi
	external/gpl3/gcc/dist/gcc/jit/ChangeLog
	external/gpl3/gcc/dist/gcc/lto/ChangeLog
	external/gpl3/gcc/dist/gcc/objc/ChangeLog
	external/gpl3/gcc/dist/gcc/objc/objc-act.c
	external/gpl3/gcc/dist/gcc/objc/objc-act.h
	external/gpl3/gcc/dist/gcc/objcp/ChangeLog
	external/gpl3/gcc/dist/gcc/objcp/config-lang.in
	external/gpl3/gcc/dist/include/ChangeLog
	external/gpl3/gcc/dist/intl/ChangeLog
	external/gpl3/gcc/dist/libbacktrace/ChangeLog
	external/gpl3/gcc/dist/libcc1/ChangeLog
	external/gpl3/gcc/dist/libcpp/ChangeLog
	external/gpl3/gcc/dist/libcpp/line-map.c
	external/gpl3/gcc/dist/libdecnumber/ChangeLog
	external/gpl3/gcc/dist/libgcc/ChangeLog
	external/gpl3/gcc/dist/libgcc/config.host
	external/gpl3/gcc/dist/libgcc/config/t-darwin
	external/gpl3/gcc/dist/libgcc/config/libbid/ChangeLog
	external/gpl3/gcc/dist/libgcc/config/rs6000/darwin-vecsave.S
	external/gpl3/gcc/dist/libgcc/config/rs6000/t-darwin
	external/gpl3/gcc/dist/libgcc/config/rs6000/t-darwin64
	external/gpl3/gcc/dist/libgomp/ChangeLog
	external/gpl3/gcc/dist/libgomp/plugin/plugin-hsa.c
	external/gpl3/gcc/dist/libhsail-rt/ChangeLog
	external/gpl3/gcc/dist/libiberty/ChangeLog
	external/gpl3/gcc/dist/libiberty/simple-object-elf.c
	external/gpl3/gcc/dist/libobjc/ChangeLog
	external/gpl3/gcc/dist/libsanitizer/ChangeLog
	external/gpl3/gcc/dist/libssp/ChangeLog
	external/gpl3/gcc/dist/libstdc++-v3/ChangeLog
	external/gpl3/gcc/dist/libstdc++-v3/Makefile.in
	external/gpl3/gcc/dist/libstdc++-v3/acinclude.m4
	external/gpl3/gcc/dist/libstdc++-v3/configure
	external/gpl3/gcc/dist/libstdc++-v3/configure.ac
	external/gpl3/gcc/dist/libstdc++-v3/configure.host
	external/gpl3/gcc/dist/libstdc++-v3/doc/Makefile.am
	external/gpl3/gcc/dist/libstdc++-v3/doc/Makefile.in
	external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/documentation_hacking.html
	external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/memory.html
	external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/status.html
	external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/allocator.xml
	external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/documentation_hacking.xml
	external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/shared_ptr.xml
	external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/status_cxx2017.xml
	external/gpl3/gcc/dist/libstdc++-v3/include/Makefile.in
	external/gpl3/gcc/dist/libstdc++-v3/include/bits/char_traits.h
	external/gpl3/gcc/dist/libstdc++-v3/include/bits/forward_list.tcc
	external/gpl3/gcc/dist/libstdc++-v3/include/bits/random.h
	external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_uninitialized.h
	external/gpl3/gcc/dist/libstdc++-v3/include/bits/unique_ptr.h
	external/gpl3/gcc/dist/libstdc++-v3/include/experimental/any
	external/gpl3/gcc/dist/libstdc++-v3/include/experimental/type_traits
	external/gpl3/gcc/dist/libstdc++-v3/include/experimental/bits/fs_path.h
	external/gpl3/gcc/dist/libstdc++-v3/include/std/any
	external/gpl3/gcc/dist/libstdc++-v3/include/std/optional
	external/gpl3/gcc/dist/libstdc++-v3/include/std/variant
	external/gpl3/gcc/dist/libstdc++-v3/libsupc++/Makefile.in
	external/gpl3/gcc/dist/libstdc++-v3/libsupc++/cxxabi.h
	external/gpl3/gcc/dist/libstdc++-v3/libsupc++/guard_error.cc
	external/gpl3/gcc/dist/libstdc++-v3/libsupc++/hash_bytes.cc
	external/gpl3/gcc/dist/libstdc++-v3/libsupc++/new_opa.cc
	external/gpl3/gcc/dist/libstdc++-v3/python/Makefile.in
	external/gpl3/gcc/dist/libstdc++-v3/python/libstdcxx/v6/xmethods.py
	external/gpl3/gcc/dist/libstdc++-v3/scripts/make_exports.pl
	external/gpl3/gcc/dist/libstdc++-v3/src/Makefile.am
	external/gpl3/gcc/dist/libstdc++-v3/src/Makefile.in
	external/gpl3/gcc/dist/libstdc++-v3/src/c++11/Makefile.in
	external/gpl3/gcc/dist/libstdc++-v3/src/c++17/Makefile.in
	external/gpl3/gcc/dist/libstdc++-v3/src/c++98/Makefile.in
	external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/Makefile.in
	external/gpl3/gcc/dist/libstdc++-v3/src/filesystem/path.cc
	external/gpl3/gcc/dist/lto-plugin/ChangeLog
	external/gpl3/gcc/dist/maintainer-scripts/ChangeLog
	external/gpl3/gcc/lib/libgcc/arch/powerpc64/auto-target.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/aarch64/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/alpha/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/arm/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/armeb/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/earm/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/earmeb/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/earmhf/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/earmhfeb/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv4eb/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6eb/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6hf/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv6hfeb/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7eb/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7hf/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/earmv7hfeb/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/hppa/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/i386/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/ia64/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/m68000/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/m68k/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/mips64eb/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/mips64el/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/mipseb/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/mipsel/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc64/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/riscv32/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/riscv64/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/sh3eb/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/sh3el/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/sparc/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/sparc64/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/vax/gcov-iov.h
	external/gpl3/gcc/lib/libgcc/libgcov/arch/x86_64/gcov-iov.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/alpha/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/arm/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/arm/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/armeb/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/armeb/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earm/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earm/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmeb/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmhf/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmhfeb/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv4eb/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6eb/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hf/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv6hfeb/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7eb/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hf/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/earmv7hfeb/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/hppa/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/hppa/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/i386/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/i386/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/ia64/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/ia64/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/m68000/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/m68k/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/m68k/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/mips64eb/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/mips64eb/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/mips64el/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/mips64el/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/mipseb/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/mipseb/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/mipsel/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/mipsel/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/defs.mk
	external/gpl3/gcc/lib/libstdc++-v3/arch/powerpc64/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/riscv32/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/riscv32/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/riscv64/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/sh3eb/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/sh3el/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/sparc/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/sparc/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/sparc64/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/sparc64/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/vax/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/vax/gstdint.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/c++config.h
	external/gpl3/gcc/lib/libstdc++-v3/arch/x86_64/gstdint.h
	external/gpl3/gcc/usr.bin/common/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/aarch64/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/aarch64/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/aarch64/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/aarch64/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/aarch64/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/alpha/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/alpha/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/alpha/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/alpha/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/alpha/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/arm/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/arm/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/arm/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/arm/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/arm/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/armeb/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/armeb/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/armeb/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/armeb/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/armeb/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/earm/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/earm/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/earm/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/earm/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/earm/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmeb/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmeb/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmeb/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/earmeb/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/earmeb/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmhf/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmhf/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmhf/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/earmhf/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/earmhf/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/earmhfeb/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv4/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv4/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv4/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/earmv4/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/earmv4/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/earmv4eb/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6eb/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6hf/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/earmv6hfeb/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7eb/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7hf/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/earmv7hfeb/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/hppa/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/hppa/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/hppa/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/hppa/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/hppa/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/i386/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/i386/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/i386/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/i386/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/i386/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/ia64/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/ia64/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/ia64/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/ia64/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/ia64/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/m68000/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/m68000/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/m68000/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/m68000/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/m68000/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/m68k/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/m68k/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/m68k/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/m68k/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/m68k/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/mips64eb/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/mips64eb/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/mips64eb/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/mips64eb/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/mips64eb/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/mips64el/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/mips64el/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/mips64el/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/mips64el/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/mips64el/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/mipseb/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/mipseb/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/mipseb/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/mipseb/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/mipseb/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/mipsel/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/mipsel/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/mipsel/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/mipsel/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/mipsel/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/powerpc/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/powerpc/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/powerpc/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/powerpc/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/powerpc/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/powerpc64/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/riscv32/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/riscv32/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/riscv32/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/riscv32/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/riscv32/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/riscv64/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/riscv64/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/riscv64/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/riscv64/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/riscv64/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/sh3eb/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/sh3el/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/sh3el/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/sh3el/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/sh3el/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/sh3el/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/sparc/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/sparc/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/sparc/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/sparc/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/sparc/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/sparc64/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/sparc64/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/sparc64/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/sparc64/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/sparc64/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/vax/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/vax/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/vax/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/vax/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/vax/plugin-version.h
	external/gpl3/gcc/usr.bin/gcc/arch/x86_64/bversion.h
	external/gpl3/gcc/usr.bin/gcc/arch/x86_64/configargs.h
	external/gpl3/gcc/usr.bin/gcc/arch/x86_64/defs.mk
	external/gpl3/gcc/usr.bin/gcc/arch/x86_64/gtyp-input.list
	external/gpl3/gcc/usr.bin/gcc/arch/x86_64/plugin-version.h

Import GCC 7.5.0.
@
text
@d174 8
a181 3
	  is_convertible<typename unique_ptr<_Up, _Ep>::pointer, pointer>,
	  __not_<is_array<_Up>>
        >;
d422 2
a423 3
               typename _UPtr = unique_ptr<_Up, _Ep>,
	       typename _UP_pointer = typename _UPtr::pointer,
	       typename _UP_element_type = typename _UPtr::element_type>
d427 5
a431 2
          is_same<_UP_pointer, _UP_element_type*>,
          is_convertible<_UP_element_type(*)[], element_type(*)[]>
d516 2
a517 5
      template<typename _Up, typename _Ep, typename = _Require<
	       __safe_conversion_up<_Up, _Ep>,
	       typename conditional<is_reference<_Dp>::value,
				    is_same<_Ep, _Dp>,
				    is_convertible<_Ep, _Dp>>::type>>
@


1.1.1.8
log
@import GCC 8.3.  it includes these new features:
- many optimisations improved: inter-procedural, profile-directed,
  LTO, loops including user-controllable unroll support, and more.
- columns numbers added to line numbers in dwarf
- gcov extended significantly
- many sanitizer updates
- many new warning messages
- many better hints and more useful error messages
- minor ABI changes on x86-64 libstdc++, and some c++17 modes
- draft c++2a features
- better c++17 experimental support
- Armv8.4-A supported, better 8.2-A and 8.3-A support, including
  32 bit arm port.  cortex a-55, a-75 and a-55.a-75 combo support.
- in the GCC bugzilla, 8.1 shows 1149 bugs fixed, 8.2 shows 100, and
  8.3 shows 158.
@
text
@d3 1
a3 1
// Copyright (C) 2008-2018 Free Software Foundation, Inc.
a50 2
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
a51 1
#pragma GCC diagnostic pop
a256 2
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
a260 1
#pragma GCC diagnostic pop
@


1.1.1.9
log
@import GCC 8.4.  it fixes at least these 210 PRs in GCC bugzilla:

90095 93348 89906 89766 86747 87770 89588 89753 88235 89762 89684 89946
89965 90010 90026 90733 90810 90840 90842 90867 91623 92930 93073 93402
93505 93576 93744 93820 93908 85762 86429 86521 87327 87480 87513 87554
87685 87748 88183 88380 88394 88419 88690 88820 89381 89422 89576 89831
89917 90951 92003 92852 93140 80791 89358 89970 90899 89212 89419 92745
93684 93789 88273 91826 92376 84746 89497 89595 89664 89711 89725 90018
90316 90900 91108 91293 91772 92763 93054 93246 90313 92420 93434 93767
88530 89517 91838 79262 84680 85459 85711 85860 86567 87008 87651 87652
88469 89546 89827 90197 93072 93241 81800 89190 85400 91472 91854 92095
92131 92575 93704 60228 61414 65782 89405 89498 89703 89752 90187 90193
90898 91401 91450 91665 92296 92384 92438 92615 92648 92723 92732 92904
93087 93228 93515 93905 82081 92859 89712 89876 92106 82645 78552 81266
85965 89102 90165 90299 90532 91436 92059 93205 93325 93562 90359 91280
91375 92674 92704 93439 92768 80938 83361 90563 92113 92961 87833 89848
89902 89903 92022 93828 78179 79221 82920 84016 87015 88075 89077 89266
90454 90634 91226 92154 92664 92886 93065 92692 92629 80590 91944 92899
92977 93463 89601 88025 91660 91845 90498 91077 84487 86119 89174 89981
91550 92569 84135 84974 90872 93714
@
text
@a153 8
      void
      swap(__uniq_ptr_impl& __rhs) noexcept
      {
	using std::swap;
	swap(this->_M_ptr(), __rhs._M_ptr());
	swap(this->_M_deleter(), __rhs._M_deleter());
      }

d177 8
a184 3
	  is_convertible<typename unique_ptr<_Up, _Ep>::pointer, pointer>,
	  __not_<is_array<_Up>>
        >;
d389 2
a390 2
	static_assert(__is_swappable<_Dp>::value, "deleter must be swappable");
	_M_t.swap(__u._M_t);
d428 2
a429 3
               typename _UPtr = unique_ptr<_Up, _Ep>,
	       typename _UP_pointer = typename _UPtr::pointer,
	       typename _UP_element_type = typename _UPtr::element_type>
d433 5
a437 2
          is_same<_UP_pointer, _UP_element_type*>,
          is_convertible<_UP_element_type(*)[], element_type(*)[]>
d522 2
a523 5
      template<typename _Up, typename _Ep, typename = _Require<
	       __safe_conversion_up<_Up, _Ep>,
	       typename conditional<is_reference<_Dp>::value,
				    is_same<_Ep, _Dp>,
				    is_convertible<_Ep, _Dp>>::type>>
d658 2
a659 2
	static_assert(__is_swappable<_Dp>::value, "deleter must be swappable");
	_M_t.swap(__u._M_t);
@


1.1.1.10
log
@import GCC 7.5.0.  doing this here so that the vendor branch has
the code we'll merge into gcc.old and the netbsd-9 tree gcc tree.
GCC 8.4.0 will be imported immediately on top of this again,
restoring the current status.

these PRs in the GCC bugzilla are fixed with this update:

89869 80693 89795 84272 85593 86669 87148 87647 87895 88103 88107 88563
88870 88976 89002 89187 89195 89234 89303 89314 89354 89361 89403 89412
89512 89520 89590 89621 89663 89679 89704 89734 89872 89933 90090 90208
87075 85870 89009 89242 88167 80864 81933 85890 86608 87145 88857 89024
89119 89214 89511 89612 89705 89400 81740 82186 84552 86554 87609 88105
88149 88415 88739 88903 89135 89223 89296 89505 89572 89677 89698 89710
90006 90020 90071 90328 90474 91126 91162 91812 91887 90075 88998 89945
87047 87506 88074 88656 88740 91137 89008 84010 89349 91136 91347 91995
89397 87030 60702 78884 85594 87649 87725 88181 88470 88553 88568 88588
88620 88644 88906 88949 89246 89587 89726 89768 89796 89998 90108 90756
90950 91704 88825 88983 86538 51333 89446 90220 91308 92143 89392 90213
90278 91131 91200 91510 89037 91481 87673 88418 88938 88948 90547 27221
58321 61250 67183 67958 77583 83531 86215 88648 88720 88726 89091 89466
89629 90105 90329 90585 90760 90924 91087 89222 81956 71861 35031 69455
81849 82993 85798 88138 88155 88169 88205 88206 88228 88249 88269 88376
77703 80260 82077 86248 88393 90786 57048 66089 66695 67679 68009 71723
72714 84394 85544 87734 88298 90937 91557 63891 64132 65342 68649 68717
71066 71860 71935 77746 78421 78645 78865 78983 79485 79540 85953 88326
89651 90744
@
text
@d3 1
a3 1
// Copyright (C) 2008-2017 Free Software Foundation, Inc.
d51 2
d54 1
d154 8
d263 2
d269 1
d392 2
a393 2
	using std::swap;
	swap(_M_t, __u._M_t);
d662 2
a663 2
	using std::swap;
	swap(_M_t, __u._M_t);
@


1.1.1.11
log
@re-import GCC 8.4.0.
@
text
@d3 1
a3 1
// Copyright (C) 2008-2018 Free Software Foundation, Inc.
a50 2
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
a51 1
#pragma GCC diagnostic pop
a150 8
      void
      swap(__uniq_ptr_impl& __rhs) noexcept
      {
	using std::swap;
	swap(this->_M_ptr(), __rhs._M_ptr());
	swap(this->_M_deleter(), __rhs._M_deleter());
      }

a251 2
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
a255 1
#pragma GCC diagnostic pop
d378 2
a379 2
	static_assert(__is_swappable<_Dp>::value, "deleter must be swappable");
	_M_t.swap(__u._M_t);
d648 2
a649 2
	static_assert(__is_swappable<_Dp>::value, "deleter must be swappable");
	_M_t.swap(__u._M_t);
@


1.1.1.12
log
@initial import of GCC 9.3.0.  changes include:

- live patching support
- shell completion help
- generally better diagnostic output (less verbose/more useful)
- diagnostics and optimisation choices can be emitted in json
- asan memory usage reduction
- many general, and specific to switch, inter-procedure,
  profile and link-time optimisations.  from the release notes:
  "Overall compile time of Firefox 66 and LibreOffice 6.2.3 on
  an 8-core machine was reduced by about 5% compared to GCC 8.3"
- OpenMP 5.0 support
- better spell-guesser
- partial experimental support for c2x and c++2a
- c++17 is no longer experimental
- arm AAPCS GCC 6-8 structure passing bug fixed, may cause
  incompatibility (restored compat with GCC 5 and earlier.)
- openrisc support
@
text
@d3 1
a3 1
// Copyright (C) 2008-2019 Free Software Foundation, Inc.
a141 4
      static_assert( !is_rvalue_reference<_Dp>::value,
		     "unique_ptr's deleter type must be a function object type"
		     " or an lvalue reference type" );

d170 3
a172 3
      template <typename _Up>
	using _DeleterConstraint =
	  typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
a180 1
    private:
a188 1
    public:
d192 2
a193 1
      template<typename _Del = _Dp, typename = _DeleterConstraint<_Del>>
d204 2
a205 1
      template<typename _Del = _Dp, typename = _DeleterConstraint<_Del>>
d218 4
a221 4
      template<typename _Del = deleter_type,
	       typename = _Require<is_copy_constructible<_Del>>>
	unique_ptr(pointer __p, const deleter_type& __d) noexcept
	: _M_t(__p, __d) { }
d226 1
a226 1
       * @@param __d  An rvalue reference to a (non-reference) deleter.
d230 5
a234 13
      template<typename _Del = deleter_type,
	       typename = _Require<is_move_constructible<_Del>>>
	unique_ptr(pointer __p,
		   __enable_if_t<!is_lvalue_reference<_Del>::value,
				 _Del&&> __d) noexcept
	: _M_t(__p, std::move(__d))
	{ }

      template<typename _Del = deleter_type,
	       typename _DelUnref = typename remove_reference<_Del>::type>
	unique_ptr(pointer,
		   __enable_if_t<is_lvalue_reference<_Del>::value,
				 _DelUnref&&>) = delete;
d237 3
a239 4
      template<typename _Del = _Dp, typename = _DeleterConstraint<_Del>>
	constexpr unique_ptr(nullptr_t) noexcept
	: _M_t()
	{ }
a274 2
	static_assert(__is_invocable<deleter_type&, pointer>::value,
		      "unique_ptr's deleter must be invocable with a pointer");
d277 1
a277 1
	  get_deleter()(std::move(__ptr));
a381 2
	static_assert(__is_invocable<deleter_type&, pointer>::value,
		      "unique_ptr's deleter must be invocable with a pointer");
d385 1
a385 1
	  get_deleter()(std::move(__p));
d458 2
a459 1
      template<typename _Del = _Dp, typename = _DeleterConstraint<_Del>>
d489 6
a494 4
      template<typename _Up, typename _Del = deleter_type,
	       typename = _Require<__safe_conversion_raw<_Up>,
				   is_copy_constructible<_Del>>>
      unique_ptr(_Up __p, const deleter_type& __d) noexcept
d505 8
a512 15
      template<typename _Up, typename _Del = deleter_type,
	       typename = _Require<__safe_conversion_raw<_Up>,
				   is_move_constructible<_Del>>>
	unique_ptr(_Up __p,
		   __enable_if_t<!is_lvalue_reference<_Del>::value,
				 _Del&&> __d) noexcept
	: _M_t(std::move(__p), std::move(__d))
	{ }

      template<typename _Up, typename _Del = deleter_type,
	       typename _DelUnref = typename remove_reference<_Del>::type,
	       typename = _Require<__safe_conversion_raw<_Up>>>
	unique_ptr(_Up,
		   __enable_if_t<is_lvalue_reference<_Del>::value,
				 _DelUnref&&>) = delete;
d519 3
a521 4
      template<typename _Del = _Dp, typename = _DeleterConstraint<_Del>>
	constexpr unique_ptr(nullptr_t) noexcept
	: _M_t()
        { }
d692 1
a692 1
    _GLIBCXX_NODISCARD inline bool
d698 1
a698 1
    _GLIBCXX_NODISCARD inline bool
d703 1
a703 1
    _GLIBCXX_NODISCARD inline bool
d709 1
a709 1
    _GLIBCXX_NODISCARD inline bool
d715 1
a715 1
    _GLIBCXX_NODISCARD inline bool
d720 1
a720 1
    _GLIBCXX_NODISCARD inline bool
d726 1
a726 1
    _GLIBCXX_NODISCARD inline bool
d737 1
a737 1
    _GLIBCXX_NODISCARD inline bool
d743 1
a743 1
    _GLIBCXX_NODISCARD inline bool
d750 1
a750 1
    _GLIBCXX_NODISCARD inline bool
d756 1
a756 1
    _GLIBCXX_NODISCARD inline bool
d761 1
a761 1
    _GLIBCXX_NODISCARD inline bool
d767 1
a767 1
    _GLIBCXX_NODISCARD inline bool
d773 1
a773 1
    _GLIBCXX_NODISCARD inline bool
d779 1
a779 1
    _GLIBCXX_NODISCARD inline bool
d786 1
a786 1
    _GLIBCXX_NODISCARD inline bool
d792 1
a792 1
    _GLIBCXX_NODISCARD inline bool
d797 1
a797 1
    _GLIBCXX_NODISCARD inline bool
a850 14
#if __cplusplus >= 201703L
  namespace __detail::__variant
  {
    template<typename> struct _Never_valueless_alt; // see <variant>

    // Provide the strong exception-safety guarantee when emplacing a
    // unique_ptr into a variant.
    template<typename _Tp, typename _Del>
      struct _Never_valueless_alt<std::unique_ptr<_Tp, _Del>>
      : std::true_type
      { };
  }  // namespace __detail::__variant
#endif // C++17

@


1.1.1.13
log
@initial import of GCC 10.3.0.  main changes include:

caveats:
- ABI issue between c++14 and c++17 fixed
- profile mode is removed from libstdc++
- -fno-common is now the default

new features:
- new flags -fallocation-dce, -fprofile-partial-training,
  -fprofile-reproducible, -fprofile-prefix-path, and -fanalyzer
- many new compile and link time optimisations
- enhanced drive optimisations
- openacc 2.6 support
- openmp 5.0 features
- new warnings: -Wstring-compare and -Wzero-length-bounds
- extended warnings: -Warray-bounds, -Wformat-overflow,
  -Wrestrict, -Wreturn-local-addr, -Wstringop-overflow,
  -Warith-conversion, -Wmismatched-tags, and -Wredundant-tags
- some likely C2X features implemented
- more C++20 implemented
- many new arm & intel CPUs known

hundreds of reported bugs are fixed.  full list of changes
can be found at:

   https://gcc.gnu.org/gcc-10/changes.html
@
text
@d3 1
a3 1
// Copyright (C) 2008-2020 Free Software Foundation, Inc.
a39 4
#if __cplusplus > 201703L
# include <compare>
# include <ostream>
#endif
d57 1
a57 1
  /// Primary template of default_delete, used by unique_ptr for single objects
d66 2
a67 2
       * Allows conversion from a deleter for objects of another type, `_Up`,
       * only if `_Up*` is convertible to `_Tp*`.
d69 2
a70 2
      template<typename _Up,
	       typename = _Require<is_convertible<_Up*, _Tp*>>>
d73 1
a73 1
      /// Calls `delete __ptr`
d87 1
a87 2

  /// Specialization of default_delete for arrays, used by `unique_ptr<T[]>`
d98 1
a98 1
       * a const-qualified version of `_Tp`.
d100 2
a101 2
       * Conversions from types derived from `_Tp` are not allowed because
       * it is undefined to `delete[]` an array of derived types through a
d104 2
a105 2
      template<typename _Up,
	       typename = _Require<is_convertible<_Up(*)[], _Tp(*)[]>>>
d108 1
a108 1
      /// Calls `delete[] __ptr`
d110 1
a110 1
	typename enable_if<is_convertible<_Up(*)[], _Tp(*)[]>::value>::type
d112 5
a116 5
	{
	  static_assert(sizeof(_Tp)>0,
			"can't delete pointer to incomplete type");
	  delete [] __ptr;
	}
a118 3
  /// @@cond undocumented

  // Manages the pointer and deleter of a unique_ptr
a152 11
      __uniq_ptr_impl(__uniq_ptr_impl&& __u) noexcept
      : _M_t(std::move(__u._M_t))
      { __u._M_ptr() = nullptr; }

      __uniq_ptr_impl& operator=(__uniq_ptr_impl&& __u) noexcept
      {
	reset(__u.release());
	_M_deleter() = std::forward<_Dp>(__u._M_deleter());
	return *this;
      }

a157 15
      void reset(pointer __p) noexcept
      {
	const pointer __old_p = _M_ptr();
	_M_ptr() = __p;
	if (__old_p)
	  _M_deleter()(__old_p);
      }

      pointer release() noexcept
      {
	pointer __p = _M_ptr();
	_M_ptr() = nullptr;
	return __p;
      }

a169 36
  // Defines move construction + assignment as either defaulted or deleted.
  template <typename _Tp, typename _Dp,
	    bool = is_move_constructible<_Dp>::value,
	    bool = is_move_assignable<_Dp>::value>
    struct __uniq_ptr_data : __uniq_ptr_impl<_Tp, _Dp>
    {
      using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl;
      __uniq_ptr_data(__uniq_ptr_data&&) = default;
      __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default;
    };

  template <typename _Tp, typename _Dp>
    struct __uniq_ptr_data<_Tp, _Dp, true, false> : __uniq_ptr_impl<_Tp, _Dp>
    {
      using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl;
      __uniq_ptr_data(__uniq_ptr_data&&) = default;
      __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete;
    };

  template <typename _Tp, typename _Dp>
    struct __uniq_ptr_data<_Tp, _Dp, false, true> : __uniq_ptr_impl<_Tp, _Dp>
    {
      using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl;
      __uniq_ptr_data(__uniq_ptr_data&&) = delete;
      __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default;
    };

  template <typename _Tp, typename _Dp>
    struct __uniq_ptr_data<_Tp, _Dp, false, false> : __uniq_ptr_impl<_Tp, _Dp>
    {
      using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl;
      __uniq_ptr_data(__uniq_ptr_data&&) = delete;
      __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete;
    };
  /// @@endcond

d178 1
a178 1
      __uniq_ptr_data<_Tp, _Dp> _M_t;
d257 2
a258 1
      unique_ptr(unique_ptr&&) = default;
d300 3
a302 1
       * Invokes the deleter if this object owns a pointer.
d304 7
a310 1
      unique_ptr& operator=(unique_ptr&&) = default;
d317 1
a317 1
       * Invokes the deleter if this object owns a pointer.
d382 5
a386 1
      { return _M_t.release(); }
d399 4
a402 1
	_M_t.reset(std::move(__p));
d429 1
a429 1
      __uniq_ptr_data<_Tp, _Dp> _M_t;
d536 2
a537 1
      unique_ptr(unique_ptr&&) = default;
d567 3
a569 1
       * Invokes the deleter if this object owns a pointer.
d572 6
a577 1
      operator=(unique_ptr&&) = default;
d584 1
a584 1
       * Invokes the deleter if this object owns a pointer.
d641 5
a645 1
      { return _M_t.release(); }
d667 7
a673 1
      { _M_t.reset(std::move(__p)); }
d676 3
a678 1
      { reset(pointer()); }
a692 3
  /// @@relates unique_ptr @@{

  /// Swap overload for unique_ptr
a711 1
  /// Equality operator for unique_ptr objects, compares the owned pointers
a718 1
  /// unique_ptr comparison with nullptr
a723 2
#ifndef __cpp_lib_three_way_comparison
  /// unique_ptr comparison with nullptr
a728 1
  /// Inequality operator for unique_ptr objects, compares the owned pointers
a735 1
  /// unique_ptr comparison with nullptr
a740 1
  /// unique_ptr comparison with nullptr
a744 1
#endif // three way comparison
a745 1
  /// Relational operator for unique_ptr objects, compares the owned pointers
a757 1
  /// unique_ptr comparison with nullptr
d761 2
a762 4
    {
      return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(),
								 nullptr);
    }
a763 1
  /// unique_ptr comparison with nullptr
d767 2
a768 4
    {
      return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr,
								 __x.get());
    }
a769 1
  /// Relational operator for unique_ptr objects, compares the owned pointers
a776 1
  /// unique_ptr comparison with nullptr
a781 1
  /// unique_ptr comparison with nullptr
a786 1
  /// Relational operator for unique_ptr objects, compares the owned pointers
a793 1
  /// unique_ptr comparison with nullptr
d797 2
a798 4
    {
      return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr,
								 __x.get());
    }
a799 1
  /// unique_ptr comparison with nullptr
d803 2
a804 4
    {
      return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(),
								 nullptr);
    }
a805 1
  /// Relational operator for unique_ptr objects, compares the owned pointers
a812 1
  /// unique_ptr comparison with nullptr
a817 1
  /// unique_ptr comparison with nullptr
d823 1
a823 11
#ifdef __cpp_lib_three_way_comparison
  template<typename _Tp, typename _Dp, typename _Up, typename _Ep>
    requires three_way_comparable_with<typename unique_ptr<_Tp, _Dp>::pointer,
				       typename unique_ptr<_Up, _Ep>::pointer>
    inline
    compare_three_way_result_t<typename unique_ptr<_Tp, _Dp>::pointer,
			       typename unique_ptr<_Up, _Ep>::pointer>
    operator<=>(const unique_ptr<_Tp, _Dp>& __x,
		const unique_ptr<_Up, _Ep>& __y)
    { return compare_three_way()(__x.get(), __y.get()); }

d825 3
a827 18
    requires three_way_comparable<typename unique_ptr<_Tp, _Dp>::pointer>
    inline
    compare_three_way_result_t<typename unique_ptr<_Tp, _Dp>::pointer>
    operator<=>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t)
    {
      using pointer = typename unique_ptr<_Tp, _Dp>::pointer;
      return compare_three_way()(__x.get(), static_cast<pointer>(nullptr));
    }
#endif
  // @@} relates unique_ptr

  /// @@cond undocumented
  template<typename _Up, typename _Ptr = typename _Up::pointer,
	   bool = __poison_hash<_Ptr>::__enable_hash_call>
    struct __uniq_ptr_hash
#if ! _GLIBCXX_INLINE_VERSION
    : private __poison_hash<_Ptr>
#endif
d830 5
a834 3
      operator()(const _Up& __u) const
      noexcept(noexcept(std::declval<hash<_Ptr>>()(std::declval<_Ptr>())))
      { return hash<_Ptr>()(__u.get()); }
d837 1
a837 5
  template<typename _Up, typename _Ptr>
    struct __uniq_ptr_hash<_Up, _Ptr, false>
    : private __poison_hash<_Ptr>
    { };
  /// @@endcond
a838 9
  /// std::hash specialization for unique_ptr.
  template<typename _Tp, typename _Dp>
    struct hash<unique_ptr<_Tp, _Dp>>
    : public __hash_base<size_t, unique_ptr<_Tp, _Dp>>,
      public __uniq_ptr_hash<unique_ptr<_Tp, _Dp>>
    { };

#if __cplusplus >= 201402L
  /// @@relates unique_ptr @@{
a840 2
  /// @@cond undocumented

a852 2
  /// @@endcond

d869 1
a869 17
  // @@} relates unique_ptr
#endif // C++14

#if __cplusplus > 201703L && __cpp_concepts
  // _GLIBCXX_RESOLVE_LIB_DEFECTS
  // 2948. unique_ptr does not define operator<< for stream output
  /// Stream output operator for unique_ptr
  template<typename _CharT, typename _Traits, typename _Tp, typename _Dp>
    inline basic_ostream<_CharT, _Traits>&
    operator<<(basic_ostream<_CharT, _Traits>& __os,
	       const unique_ptr<_Tp, _Dp>& __p)
    requires requires { __os << __p.get(); }
    {
      __os << __p.get();
      return __os;
    }
#endif // C++20
@


1.1.1.14
log
@initial import of GCC 10.4.0 sources.

mostly a large list of PRs fixed (210 total), plus one x86-64
specific change related to MMX and 64 bit integer return.

https://gcc.gnu.org/gcc-10/changes.html links to the full list
of PRs fixed.
@
text
@d909 1
a909 1
  /// @@} relates unique_ptr
d974 1
a974 1
  /// @@} relates unique_ptr
d992 1
a992 1
  /// @@} group pointer_abstractions
@


1.1.1.15
log
@initial import of GCC 12.3.0.

major changes in GCC 11 included:

- The default mode for C++ is now -std=gnu++17 instead of -std=gnu++14.
- When building GCC itself, the host compiler must now support C++11,
  rather than C++98.
- Some short options of the gcov tool have been renamed: -i to -j and
  -j to -H.
- ThreadSanitizer improvements.
- Introduce Hardware-assisted AddressSanitizer support.
- For targets that produce DWARF debugging information GCC now defaults
  to DWARF version 5. This can produce up to 25% more compact debug
  information compared to earlier versions.
- Many optimisations.
- The existing malloc attribute has been extended so that it can be
  used to identify allocator/deallocator API pairs. A pair of new
  -Wmismatched-dealloc and -Wmismatched-new-delete warnings are added.
- Other new warnings:
  -Wsizeof-array-div, enabled by -Wall, warns about divisions of two
    sizeof operators when the first one is applied to an array and the
    divisor does not equal the size of the array element.
  -Wstringop-overread, enabled by default, warns about calls to string
    functions reading past the end of the arrays passed to them as
    arguments.
  -Wtsan, enabled by default, warns about unsupported features in
    ThreadSanitizer (currently std::atomic_thread_fence).
- Enchanced warnings:
  -Wfree-nonheap-object detects many more instances of calls to
    deallocation functions with pointers not returned from a dynamic
    memory allocation function.
  -Wmaybe-uninitialized diagnoses passing pointers or references to
    uninitialized memory to functions taking const-qualified arguments.
  -Wuninitialized detects reads from uninitialized dynamically
    allocated memory.
  -Warray-parameter warns about functions with inconsistent array forms.
  -Wvla-parameter warns about functions with inconsistent VLA forms.
- Several new features from the upcoming C2X revision of the ISO C
  standard are supported with -std=c2x and -std=gnu2x.
- Several C++20 features have been implemented.
- The C++ front end has experimental support for some of the upcoming
  C++23 draft.
- Several new C++ warnings.
- Enhanced Arm, AArch64, x86, and RISC-V CPU support.
- The implementation of how program state is tracked within
  -fanalyzer has been completely rewritten with many enhancements.

see https://gcc.gnu.org/gcc-11/changes.html for a full list.

major changes in GCC 12 include:

- An ABI incompatibility between C and C++ when passing or returning
  by value certain aggregates containing zero width bit-fields has
  been discovered on various targets. x86-64, ARM and AArch64
  will always ignore them (so there is a C ABI incompatibility
  between GCC 11 and earlier with GCC 12 or later), PowerPC64 ELFv2
  always take them into account (so there is a C++ ABI
  incompatibility, GCC 4.4 and earlier compatible with GCC 12 or
  later, incompatible with GCC 4.5 through GCC 11). RISC-V has
  changed the handling of these already starting with GCC 10. As
  the ABI requires, MIPS takes them into account handling function
  return values so there is a C++ ABI incompatibility with GCC 4.5
  through 11.
- STABS: Support for emitting the STABS debugging format is
  deprecated and will be removed in the next release. All ports now
  default to emit DWARF (version 2 or later) debugging info or are
  obsoleted.
- Vectorization is enabled at -O2 which is now equivalent to the
  original -O2 -ftree-vectorize -fvect-cost-model=very-cheap.
- GCC now supports the ShadowCallStack sanitizer.
- Support for __builtin_shufflevector compatible with the clang
  language extension was added.
- Support for attribute unavailable was added.
- Support for __builtin_dynamic_object_size compatible with the
  clang language extension was added.
- New warnings:
  -Wbidi-chars warns about potentially misleading UTF-8
    bidirectional control characters.
  -Warray-compare warns about comparisons between two operands of
    array type.
- Some new features from the upcoming C2X revision of the ISO C
  standard are supported with -std=c2x and -std=gnu2x.
- Several C++23 features have been implemented.
- Many C++ enhancements across warnings and -f options.

see https://gcc.gnu.org/gcc-12/changes.html for a full list.
@
text
@d3 1
a3 1
// Copyright (C) 2008-2022 Free Software Foundation, Inc.
d36 1
a44 8
#if __cplusplus > 202002L && __cpp_constexpr_dynamic_alloc
# if __cpp_lib_constexpr_memory < 202202L
// Defined with older value in bits/ptr_traits.h for C++20
#  undef __cpp_lib_constexpr_memory
#  define __cpp_lib_constexpr_memory 202202L
# endif
#endif

a61 1
  /// @@since C++11
a74 1
	_GLIBCXX23_CONSTEXPR
a77 1
      _GLIBCXX23_CONSTEXPR
a110 1
	_GLIBCXX23_CONSTEXPR
a114 1
	_GLIBCXX23_CONSTEXPR
a154 1
      _GLIBCXX23_CONSTEXPR
d158 1
a158 2
	_GLIBCXX23_CONSTEXPR
	__uniq_ptr_impl(pointer __p, _Del&& __d)
a160 1
      _GLIBCXX23_CONSTEXPR
a164 1
      _GLIBCXX23_CONSTEXPR
d172 4
a175 8
      _GLIBCXX23_CONSTEXPR
      pointer&   _M_ptr() noexcept { return std::get<0>(_M_t); }
      _GLIBCXX23_CONSTEXPR
      pointer    _M_ptr() const noexcept { return std::get<0>(_M_t); }
      _GLIBCXX23_CONSTEXPR
      _Dp&       _M_deleter() noexcept { return std::get<1>(_M_t); }
      _GLIBCXX23_CONSTEXPR
      const _Dp& _M_deleter() const noexcept { return std::get<1>(_M_t); }
a176 1
      _GLIBCXX23_CONSTEXPR
a184 1
      _GLIBCXX23_CONSTEXPR
a191 1
      _GLIBCXX23_CONSTEXPR
d240 1
a240 5
  // 20.7.1.2 unique_ptr for single objects.

  /// A move-only smart pointer that manages unique ownership of a resource.
  /// @@headerfile memory
  /// @@since C++11
a279 1
	_GLIBCXX23_CONSTEXPR
a293 1
	_GLIBCXX23_CONSTEXPR
a305 1
	_GLIBCXX23_CONSTEXPR
a313 1
	_GLIBCXX23_CONSTEXPR
d337 3
a339 4
	       __conditional_t<is_reference<_Dp>::value,
			       is_same<_Ep, _Dp>,
			       is_convertible<_Ep, _Dp>>>>
	_GLIBCXX23_CONSTEXPR
a354 3
#if __cplusplus > 202002L && __cpp_constexpr_dynamic_alloc
      constexpr
#endif
a380 1
	_GLIBCXX23_CONSTEXPR
a393 1
      _GLIBCXX23_CONSTEXPR
a403 1
      _GLIBCXX23_CONSTEXPR
d405 1
a405 1
      operator*() const noexcept(noexcept(*std::declval<pointer>()))
a411 1
      _GLIBCXX23_CONSTEXPR
a419 1
      _GLIBCXX23_CONSTEXPR
a424 1
      _GLIBCXX23_CONSTEXPR
a429 1
      _GLIBCXX23_CONSTEXPR
a434 1
      _GLIBCXX23_CONSTEXPR
a440 1
      _GLIBCXX23_CONSTEXPR
a450 1
      _GLIBCXX23_CONSTEXPR
a459 1
      _GLIBCXX23_CONSTEXPR
d472 1
a472 1
  // 20.7.1.3 unique_ptr for array objects with a runtime length
a475 4

  /// A move-only smart pointer that manages unique ownership of an array.
  /// @@headerfile memory
  /// @@since C++11
a545 1
	_GLIBCXX23_CONSTEXPR
d562 2
a563 3
	_GLIBCXX23_CONSTEXPR
	unique_ptr(_Up __p, const deleter_type& __d) noexcept
	: _M_t(__p, __d) { }
a575 1
	_GLIBCXX23_CONSTEXPR
d600 3
a602 4
	       __conditional_t<is_reference<_Dp>::value,
			       is_same<_Ep, _Dp>,
			       is_convertible<_Ep, _Dp>>>>
	_GLIBCXX23_CONSTEXPR
a607 3
#if __cplusplus > 202002L && __cpp_constexpr_dynamic_alloc
      constexpr
#endif
a632 1
	_GLIBCXX23_CONSTEXPR
a645 1
      _GLIBCXX23_CONSTEXPR
a655 1
      _GLIBCXX23_CONSTEXPR
a663 1
      _GLIBCXX23_CONSTEXPR
a668 1
      _GLIBCXX23_CONSTEXPR
a673 1
      _GLIBCXX23_CONSTEXPR
a678 1
      _GLIBCXX23_CONSTEXPR
a684 1
      _GLIBCXX23_CONSTEXPR
a706 1
      _GLIBCXX23_CONSTEXPR
a710 1
      _GLIBCXX23_CONSTEXPR
a714 1
      _GLIBCXX23_CONSTEXPR
d727 1
a727 2
  /// @@{
  /// @@relates unique_ptr
a733 1
    _GLIBCXX23_CONSTEXPR
d752 1
a752 2
    _GLIBCXX_NODISCARD _GLIBCXX23_CONSTEXPR
    inline bool
d759 1
a759 2
    _GLIBCXX_NODISCARD _GLIBCXX23_CONSTEXPR
    inline bool
d766 1
a766 2
    _GLIBCXX_NODISCARD
    inline bool
d773 1
a773 2
    _GLIBCXX_NODISCARD
    inline bool
d780 1
a780 2
    _GLIBCXX_NODISCARD
    inline bool
d786 1
a786 2
    _GLIBCXX_NODISCARD
    inline bool
d794 1
a794 2
    _GLIBCXX_NODISCARD _GLIBCXX23_CONSTEXPR
    inline bool
d806 1
a806 2
    _GLIBCXX_NODISCARD _GLIBCXX23_CONSTEXPR
    inline bool
d815 1
a815 2
    _GLIBCXX_NODISCARD _GLIBCXX23_CONSTEXPR
    inline bool
d825 1
a825 2
    _GLIBCXX_NODISCARD _GLIBCXX23_CONSTEXPR
    inline bool
d832 1
a832 2
    _GLIBCXX_NODISCARD _GLIBCXX23_CONSTEXPR
    inline bool
d838 1
a838 2
    _GLIBCXX_NODISCARD _GLIBCXX23_CONSTEXPR
    inline bool
d845 1
a845 2
    _GLIBCXX_NODISCARD _GLIBCXX23_CONSTEXPR
    inline bool
d852 1
a852 2
    _GLIBCXX_NODISCARD _GLIBCXX23_CONSTEXPR
    inline bool
d861 1
a861 2
    _GLIBCXX_NODISCARD _GLIBCXX23_CONSTEXPR
    inline bool
d871 1
a871 2
    _GLIBCXX_NODISCARD _GLIBCXX23_CONSTEXPR
    inline bool
d878 1
a878 2
    _GLIBCXX_NODISCARD _GLIBCXX23_CONSTEXPR
    inline bool
a891 1
    _GLIBCXX23_CONSTEXPR
a900 1
    _GLIBCXX23_CONSTEXPR
d939 2
a940 1
#define __cpp_lib_make_unique 201304L
d943 1
a943 2
namespace __detail
{
a955 7
  template<typename _Tp>
    using __unique_ptr_t = typename _MakeUniq<_Tp>::__single_object;
  template<typename _Tp>
    using __unique_ptr_array_t = typename _MakeUniq<_Tp>::__array;
  template<typename _Tp>
    using __invalid_make_unique_t = typename _MakeUniq<_Tp>::__invalid_type;
}
d958 1
a958 7
  /** Create an object owned by a `unique_ptr`.
   *  @@tparam _Tp A non-array object type.
   *  @@param __args Constructor arguments for the new object.
   *  @@returns A `unique_ptr<_Tp>` that owns the new object.
   *  @@since C++14
   *  @@relates unique_ptr
   */
d960 1
a960 2
    _GLIBCXX23_CONSTEXPR
    inline __detail::__unique_ptr_t<_Tp>
d964 1
a964 9
  /** Create an array owned by a `unique_ptr`.
   *  @@tparam _Tp An array type of unknown bound, such as `U[]`.
   *  @@param __num The number of elements of type `U` in the new array.
   *  @@returns A `unique_ptr<U[]>` that owns the new array.
   *  @@since C++14
   *  @@relates unique_ptr
   *
   *  The array elements are value-initialized.
   */
d966 1
a966 2
    _GLIBCXX23_CONSTEXPR
    inline __detail::__unique_ptr_array_t<_Tp>
d970 1
a970 5
  /** Disable std::make_unique for arrays of known bound.
   *  @@tparam _Tp An array type of known bound, such as `U[N]`.
   *  @@since C++14
   *  @@relates unique_ptr
   */
d972 1
a972 1
    __detail::__invalid_make_unique_t<_Tp>
d974 1
a974 37

#if __cplusplus > 201703L
  /** Create a default-initialied object owned by a `unique_ptr`.
   *  @@tparam _Tp A non-array object type.
   *  @@returns A `unique_ptr<_Tp>` that owns the new object.
   *  @@since C++20
   *  @@relates unique_ptr
   */
  template<typename _Tp>
    _GLIBCXX23_CONSTEXPR
    inline __detail::__unique_ptr_t<_Tp>
    make_unique_for_overwrite()
    { return unique_ptr<_Tp>(new _Tp); }

  /** Create a default-initialized array owned by a `unique_ptr`.
   *  @@tparam _Tp An array type of unknown bound, such as `U[]`.
   *  @@param __num The number of elements of type `U` in the new array.
   *  @@returns A `unique_ptr<U[]>` that owns the new array.
   *  @@since C++20
   *  @@relates unique_ptr
   */
  template<typename _Tp>
    _GLIBCXX23_CONSTEXPR
    inline __detail::__unique_ptr_array_t<_Tp>
    make_unique_for_overwrite(size_t __num)
    { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]); }

  /** Disable std::make_unique_for_overwrite for arrays of known bound.
   *  @@tparam _Tp An array type of known bound, such as `U[N]`.
   *  @@since C++20
   *  @@relates unique_ptr
   */
  template<typename _Tp, typename... _Args>
    __detail::__invalid_make_unique_t<_Tp>
    make_unique_for_overwrite(_Args&&...) = delete;
#endif // C++20

a980 2
  /// @@relates unique_ptr
  /// @@since C++20
@


1.1.1.15.2.1
log
@Sync with HEAD.
@
text
@d68 2
a69 5
  /** Primary template of default_delete, used by unique_ptr for single objects
   *
   * @@headerfile memory
   * @@since C++11
   */
d102 1
a102 5
  /** Specialization of default_delete for arrays, used by `unique_ptr<T[]>`
   *
   * @@headerfile memory
   * @@since C++11
   */
@


1.1.1.16
log
@import GCC 12.4.0.

this includes at least 85 GCC PRs fixed, 2 C, 17 C++, 16 libstdc++-v3,
at least 13 target-specific (x86, arm64, riscv mostly), and at least
24 optimisation PRs.
@
text
@d68 2
a69 5
  /** Primary template of default_delete, used by unique_ptr for single objects
   *
   * @@headerfile memory
   * @@since C++11
   */
d102 1
a102 5
  /** Specialization of default_delete for arrays, used by `unique_ptr<T[]>`
   *
   * @@headerfile memory
   * @@since C++11
   */
@


1.1.1.17
log
@initial import of GCC 14.3.0.

major changes in GCC 13:
- improved sanitizer
- zstd debug info compression
- LTO improvements
- SARIF based diagnostic support
- new warnings: -Wxor-used-as-pow, -Wenum-int-mismatch, -Wself-move,
  -Wdangling-reference
- many new -Wanalyzer* specific warnings
- enhanced warnings: -Wpessimizing-move, -Wredundant-move
- new attributes to mark file descriptors, c++23 "assume"
- several C23 features added
- several C++23 features added
- many new features for Arm, x86, RISC-V

major changes in GCC 14:
- more strict C99 or newer support
- ia64* marked deprecated (but seemingly still in GCC 15.)
- several new hardening features
- support for "hardbool", which can have user supplied values of true/false
- explicit support for stack scrubbing upon function exit
- better auto-vectorisation support
- added clang-compatible __has_feature and __has_extension
- more C23, including -std=c23
- several C++26 features added
- better diagnostics in C++ templates
- new warnings: -Wnrvo, Welaborated-enum-base
- many new features for Arm, x86, RISC-V
- possible ABI breaking change for SPARC64 and small structures with arrays
  of floats.
@
text
@a0 1

d3 1
a3 1
// Copyright (C) 2008-2024 Free Software Foundation, Inc.
d39 1
a39 1
#if __cplusplus >= 202002L
d41 8
a48 2
# if _GLIBCXX_HOSTED
#  include <ostream>
d387 2
a388 3
      template<typename _Up,
	       typename = _Require<is_convertible<_Up*, pointer>,
				   is_same<_Dp, default_delete<_Tp>>>>
a522 8

    private:
#ifdef __glibcxx_out_ptr
      template<typename, typename, typename...>
	friend class out_ptr_t;
      template<typename, typename, typename...>
	friend class inout_ptr_t;
#endif
d542 3
d549 1
a549 1
		    __not_<is_same<__remove_cv_t<_Tp>, __remove_cv_t<_Up>>> >;
a799 6

    private:
#ifdef __glibcxx_out_ptr
      template<typename, typename, typename...> friend class out_ptr_t;
      template<typename, typename, typename...> friend class inout_ptr_t;
#endif
d1034 3
a1036 1
#ifdef __glibcxx_make_unique // C++ >= 14 && HOSTED
d1134 1
a1134 1
#endif // C++14 && HOSTED
d1136 1
a1136 1
#if __cplusplus > 201703L && __cpp_concepts && _GLIBCXX_HOSTED
d1151 1
a1151 8
#endif // C++20 && HOSTED

#if __cpp_variable_templates
  template<typename _Tp>
    static constexpr bool __is_unique_ptr = false;
  template<typename _Tp, typename _Del>
    static constexpr bool __is_unique_ptr<unique_ptr<_Tp, _Del>> = true;
#endif
@


