[PATCH] Replace __bind_simple with std::thread::__make_invoker

2016-10-13 Thread Jonathan Wakely
Some time ago I added __bind_simple, which is a simpler version of std::bind that doesn't support placeholders and nested bind expressions. It's only needed by a few concurrency components that do INVOKE(DECAY_COPY(f), DECAY_COPY(args)...) but those conponents have to include the whole of to get

Re: [PATCH, GCC] Move MEMMODEL_* and enum memmodel from coretypes.h to memmodel.h

2016-10-13 Thread Richard Biener
On Thu, 13 Oct 2016, Thomas Preudhomme wrote: > On 12/10/16 21:00, Joseph Myers wrote: > > On Wed, 12 Oct 2016, Thomas Preudhomme wrote: > > > > > This patch is a follow up of [1] which aims to have all memory model > > > related > > > declarations in memmodel.h. To achieve that, this patch

Re: [PATCH, RFC] gcov: dump in a static dtor instead of in an atexit handler

2016-10-13 Thread Rainer Orth
Hi Martin, sorry for the long delay: I've been extremely busy the last two weeks. > On 09/30/2016 02:31 PM, Rainer Orth wrote: >> this would be i386-pc-solaris2.12. I'm not sure if the constructor >> priority detection works in a cross scenario. > > Hi. > > By the way, I tried to test the

Re: [PATCH] Add "__RTL" to cc1 (v2)

2016-10-13 Thread Richard Biener
On Fri, Oct 7, 2016 at 5:58 PM, David Malcolm wrote: > On Wed, 2016-10-05 at 16:09 +, Joseph Myers wrote: >> On Wed, 5 Oct 2016, David Malcolm wrote: >> >> > @@ -1752,6 +1759,35 @@ c_parser_declaration_or_fndef (c_parser >> > *parser, bool fndef_ok, >> >

Re: [PATCH] Add "__RTL" to cc1 (v2)

2016-10-13 Thread Bernd Schmidt
On 10/13/2016 03:49 PM, Richard Biener wrote: Does it really run a single pass only? Thus you can't do a { dg-do run } test with __RTL? I think that's really not the intended use-case. To my mind this is for unit-testing: ensuring that a given rtl pass performs the expected transformation

Re: [PATCH, GCC] Move MEMMODEL_* and enum memmodel from coretypes.h to memmodel.h

2016-10-13 Thread Thomas Preudhomme
On 12/10/16 21:00, Joseph Myers wrote: On Wed, 12 Oct 2016, Thomas Preudhomme wrote: This patch is a follow up of [1] which aims to have all memory model related declarations in memmodel.h. To achieve that, this patch moves memory model related declaration from coretypes.h into memmodel.h.

RE: [PATCH 1/2] [ARC] Update INSN_LENGTH_ALIGNMENT.

2016-10-13 Thread Claudiu Zissulescu
> This looks good to me. > Committed r241104. Thank you for ur review, Claudiu

RE: [PATCH 2/2] [ARC] Fix mul32x16 patterns.

2016-10-13 Thread Claudiu Zissulescu
> > gcc/ > > 2016-06-28 Claudiu Zissulescu > > > > * config/arc/arc.md (umul_600): Change. > > (umul64_600): Likewise. > > Looks fine, though maybe you could be a little more descriptive with > the ChangeLog entry. > Committed r241105 with the requested change.

Re: [PATCH] Remove x86 pcommit instruction

2016-10-13 Thread Andrew Senkevich
2016-10-11 20:09 GMT+03:00 H.J. Lu : > On Tue, Oct 11, 2016 at 10:04 AM, Andrew Senkevich > wrote: >> 2016-10-06 1:07 GMT+03:00 H.J. Lu : >>> On Wed, Oct 5, 2016 at 1:42 PM, Andrew Senkevich >>>

Re: [PATCH] Replace __bind_simple with std::thread::__make_invoker

2016-10-13 Thread Thomas Schwinge
Hi! Build failure after trunk r241093: [...]/source-gcc/libstdc++-v3/src/c++11/compatibility-thread-c++0x.cc:121:12: error: ISO C++ forbids declaration of '_Bind_simple_helper' with no type [-fpermissive] template _Bind_simple_helper>::__type __bind_simple(void (thread::*&&)(),

Re: [PATCH] Replace __bind_simple with std::thread::__make_invoker

2016-10-13 Thread Jonathan Wakely
On 13/10/16 13:20 +0100, Jonathan Wakely wrote: On 13/10/16 14:16 +0200, Thomas Schwinge wrote: Hi! Build failure after trunk r241093: [...]/source-gcc/libstdc++-v3/src/c++11/compatibility-thread-c++0x.cc:121:12: error: ISO C++ forbids declaration of '_Bind_simple_helper' with no type

[PATCH, ARM] Remove redundant TARGET_VFP

2016-10-13 Thread Richard Earnshaw (lists)
Now that it is clear that TARGET_VFP is a constant we can clean it up and remove it entirely. This revealed one problem. The test in arm_expand_vfp_builtin was essentially a NOP. It should, instead, have been testing TARGET_HARD_FLOAT. Tested on arm-none-eabi and installed on trunk. *

[Ada] Pragmas Compile_Time_Error and Compile_Time_Warning and 'Size

2016-10-13 Thread Arnaud Charlet
Extend the functionality of pragmas Compile_Time_Warning and Compile_Time_ Error to use statically known values of attributes 'Size and 'Alignment. For example: procedure do_test is generic type ParamType is private; package Gen is pragma Compile_Time_Error (ParamType'Size

Re: [PATCH] Replace __bind_simple with std::thread::__make_invoker

2016-10-13 Thread Jonathan Wakely
On 13/10/16 14:16 +0200, Thomas Schwinge wrote: Hi! Build failure after trunk r241093: [...]/source-gcc/libstdc++-v3/src/c++11/compatibility-thread-c++0x.cc:121:12: error: ISO C++ forbids declaration of '_Bind_simple_helper' with no type [-fpermissive] template

[Fortran, Patch, PR{43366, 57117, 61337, 61376}, v1] Assign to polymorphic objects.

2016-10-13 Thread Andre Vehreschild
Hi all, attached patch fixes the PRs (as to my knowledge): PR43366 - [OOP][F08] Intrinsic assign to polymorphic variable PR57117 - [OOP] ICE for sourced allocation of a polymorphic entity using TRANSPOSE PR61337 - Wrong indexing and runtime crash with unlimited polymorphic array.

[PATCH, ARM] Remove redundant model field from FPU descriptions

2016-10-13 Thread Richard Earnshaw (lists)
This is the first of a number of patches to clean up the FPU support on ARM. In the days when GCC for ARM supported both the VFP and FPA floating-point units, the fpu_model field in the FP architectures description described which type of floating point numbers the machine supported. Now that

Re: [PATCH, RFC] gcov: dump in a static dtor instead of in an atexit handler

2016-10-13 Thread Martin Liška
On 10/13/2016 03:46 PM, Rainer Orth wrote: > Hi Martin, > > sorry for the long delay: I've been extremely busy the last two weeks. Hello Never mind, still plenty of time before we'll release 7.1.0 :) > >> On 09/30/2016 02:31 PM, Rainer Orth wrote: >>> this would be i386-pc-solaris2.12. I'm

Re: [PATCH, RFC] gcov: dump in a static dtor instead of in an atexit handler

2016-10-13 Thread Rainer Orth
Hi Martin, > Just running my previous example (priotity.c), I can see with -S: > > _GLOBAL__sub_D_00099_1_foo: > jmp __gcov_exit > .size _GLOBAL__sub_D_00099_1_foo, .-_GLOBAL__sub_D_00099_1_foo > .section.fini_array.00099,"aw" > .align 4 > .long

Re: [PATCH] Tweaks to print_rtx_function

2016-10-13 Thread David Malcolm
On Thu, 2016-10-13 at 12:24 +0200, Bernd Schmidt wrote: > On 10/12/2016 11:04 PM, David Malcolm wrote: > > > > This patch implements: > > * the renumbering of non-virtual pseudos, using > > LAST_VIRTUAL_REGISTER + 1 as a base. > > * omitting the edge "(flags)" directive if there aren't any > >

Re: C++ PATCH for c++/77742 (-Waligned-new and placement new)

2016-10-13 Thread Christophe Lyon
Hi Jason, On 13 October 2016 at 10:54, Andreas Schwab <sch...@suse.de> wrote: > FAIL: g++.dg/cpp1z/aligned-new7.C (test for excess errors) > Excess errors: > /daten/aranym/gcc/gcc-20161013/gcc/testsuite/g++.dg/cpp1z/aligned-new7.C:13:41: > warning: requested alignment

<    1   2