[patch] Implement std::make_unique

2013-05-18 Thread Jonathan Wakely
* include/bits/unique_ptr.h (make_unique): Define. * testsuite/20_util/unique_ptr/creation/single.cc: New. * testsuite/20_util/unique_ptr/creation/array.cc: New. * testsuite/20_util/unique_ptr/creation/array_neg.cc: New. Tested x86_64-linux, committed to trunk. Thi

Re: [patch] Implement std::make_unique

2013-05-18 Thread Paolo Carlini
Hi, Jonathan Wakely ha scritto: >* include/bits/unique_ptr.h (make_unique): Define. >* testsuite/20_util/unique_ptr/creation/single.cc: New. >* testsuite/20_util/unique_ptr/creation/array.cc: New. >* testsuite/20_util/unique_ptr/creation/array_neg.cc: New. > >Te

Re: [patch] Implement std::make_unique

2013-05-18 Thread Paolo Carlini
Hi again, >This is safe for 4.8.2 so I'll commit it there once the branch reopens. ... note that this will be tricky because in the branch __cplusplus doesn't have the right value. And then at least the std::fgets tweak also needs backporting. Paolo

Re: [patch] Implement std::make_unique

2013-05-18 Thread Jonathan Wakely
On 18 May 2013 16:57, Paolo Carlini wrote: > > > Hi again, > >>This is safe for 4.8.2 so I'll commit it there once the branch reopens. > > ... note that this will be tricky because in the branch __cplusplus doesn't > have the right value. And then at least the std::fgets tweak also needs > backpo

C++ copy elision and alignment

2013-05-18 Thread Marc Glisse
Hello, this patch passes bootstrap+testsuite on x86_64-linux-gnu. As explained in the PR, it seems that the check for alignment is in the wrong direction (tree-nrv.c and ada have the reverse one). 2013-05-18 Marc Glisse PR c++/57175 gcc/cp/ * typeck.c (check_return_expr):

[patch] implement std::exchange

2013-05-18 Thread Jonathan Wakely
* include/std/utility (exchange): Define. * testsuite/20_util/exchange/1.cc: New. Tested x86_64-linux, committed to trunk. commit f368932e633134e5fb50a1e7d6ffcf6aa4b79b0d Author: Jonathan Wakely Date: Sat May 18 16:27:13 2013 +0100 * include/std/utility (exchange): Defi

*ping* Re: [Patch, Fortran] PR48858 - COMMON - Fix global/local identifier issues with C binding

2013-05-18 Thread Tobias Burnus
* PING * Patches in this trilogy: * http://gcc.gnu.org/ml/fortran/2013-05/msg00048.html - COMMON * http://gcc.gnu.org/ml/fortran/2013-05/msg00051.html - PROCEDURE * http://gcc.gnu.org/ml/fortran/2013-05/msg00056.html - more on bind label handling Especially the first one should be rather simpl

[patch] fix libstdc++ docbook markup error

2013-05-18 Thread Jonathan Wakely
* doc/xml/manual/status_cxx2011.xml: Fix markup error. Committed to trunk. commit 175045eddc4c111600767bd4e3b42929118ae3ba Author: Jonathan Wakely Date: Sat May 18 19:08:52 2013 +0100 * doc/xml/manual/status_cxx2011.xml: Fix markup error. diff --git a/libstdc++-v3/doc/xml/manu

Re: [patch] install host specific {bits,ext}/opt_random.h headers in host specific c++ incdir

2013-05-18 Thread Paolo Carlini
Hi, On 05/12/2013 11:58 AM, Matthias Klose wrote: {bits,ext}/opt_random.h became host specific in 4.8, but are still installed into the host independent c++ include dir. install them into the host specific include dir instead. Ok for 4.8 and trunk? I think it's Ok, yes, but let's do mainline

Re: [patch] Implement std::make_unique

2013-05-18 Thread Jonathan Wakely
On 18 May 2013 16:36, Paolo Carlini wrote: > > Great! Don't we want it inline? This makes make_unique() inline and adds doxygen comments to unique_ptr. I don't remember why I split the unique_ptr::reset() function into two overloads back in December, so this combines them into one again, matching

[patch] implement LWG 2144

2013-05-18 Thread Jonathan Wakely
* include/std/typeindex (type_index::name()): LWG 2144: Add noexcept. Tested x86_64-linux, committed to trunk, can also go on the 4.8 branch when it opens. diff --git a/libstdc++-v3/include/std/typeindex b/libstdc++-v3/include/std/typeindex index 9e6db30..15be751 100644 --- a/libstdc++-v3

[patch] implement LWG 2145

2013-05-18 Thread Jonathan Wakely
* include/std/system_error (error_category::error_category()): LWG 2145: Declare public and constexpr. * src/c++11/system_error.cc (error_category::error_category()): Move definition to ... * src/c++11/compatibility-c++0x.cc: Here. Tested x86_64-linux, commi

Re: [patch] install host specific {bits,ext}/opt_random.h headers in host specific c++ incdir

2013-05-18 Thread Matthias Klose
Am 18.05.2013 21:31, schrieb Paolo Carlini: > Hi, > > On 05/12/2013 11:58 AM, Matthias Klose wrote: >> {bits,ext}/opt_random.h became host specific in 4.8, but are still installed >> into the host independent c++ include dir. install them into the host >> specific >> include dir instead. Ok for

Re: [v3] Fix libstdc++/54577

2013-05-18 Thread Jonathan Wakely
On 10 May 2013 15:17, Paolo Carlini wrote: > Hi, > > this is the issue about the signatures of the erase member functions of the > sequence containers. This only does the erase() functions, is there any reason not to do the same for the insert() functions too, which was also changed by N2350?

Re: [v3] Fix libstdc++/54577

2013-05-18 Thread Paolo Carlini
On 05/19/2013 02:09 AM, Jonathan Wakely wrote: On 10 May 2013 15:17, Paolo Carlini wrote: Hi, this is the issue about the signatures of the erase member functions of the sequence containers. This only does the erase() functions, is there any reason not to do the same for the insert() functions

Re: [Patch][gcc-4_7-branch] Backport trunk revision 187838 into gcc-4_7-branch

2013-05-18 Thread Ian Lance Taylor
On Fri, May 17, 2013 at 7:29 PM, Chung-Ju Wu wrote: > Ping: http://gcc.gnu.org/ml/gcc-patches/2013-05/msg00429.html > > The patch is to fix dependency issue of libgcc Makefile.in > by adding 'rm libgcc_tm.stamp' in the clean rule. > > That was fixed on main trunk (r187838) but not on gcc-4_7-branc