Re: [PATCH 1/3] optabs: ensure mem_thread_fence is a compiler barrier

2017-08-05 Thread Richard Sandiford
Alexander Monakov writes: > diff --git a/gcc/optabs.c b/gcc/optabs.c > index a9900657a58..d568ca376fe 100644 > --- a/gcc/optabs.c > +++ b/gcc/optabs.c > @@ -6298,7 +6298,12 @@ void > expand_mem_thread_fence (enum memmodel model) > { >if (targetm.have_mem_thread_fence ()) > -emit_insn (ta

Re: Add support to trace comparison instructions and switch statements

2017-08-05 Thread 吴潍浠(此彼)
Hi all Is it worth adding my codes to gcc ? Are there some steps I need to do ? Could somebody tell me the progress ? Maybe there should be a project like libfuzzer to solve bugs in program. Wish Wu -- From:Wish Wu Time:2017 Jul 21

Re: [PATCH 0/5] RFC, WIP: RTL cost improvements

2017-08-05 Thread Richard Sandiford
Segher Boessenkool writes: > This series creates pattern_cost and insn_cost functions that together > replace the existing insn_rtx_cost function. > > pattern_cost is like the old insn_rtx_cost function; insn_cost takes > an actual rtx_insn * as input, not just a pattern. > > Also a targetm.insn_c

Re: [PATCH 0/5] RFC, WIP: RTL cost improvements

2017-08-05 Thread Segher Boessenkool
On Sat, Aug 05, 2017 at 11:07:20AM +0100, Richard Sandiford wrote: > Segher Boessenkool writes: > > This series creates pattern_cost and insn_cost functions that together > > replace the existing insn_rtx_cost function. > > > > pattern_cost is like the old insn_rtx_cost function; insn_cost takes >

Re: [PATCH 0/2] add unique_ptr class

2017-08-05 Thread Pedro Alves
On 08/04/2017 07:52 PM, Jonathan Wakely wrote: > On 31/07/17 19:46 -0400, tbsaunde+...@tbsaunde.org wrote: >> I've been saying I'd do this for a long time, but I'm finally getting to >> importing the C++98 compatable unique_ptr class Pedro wrote for gdb a >> while >> back. Thanks a lot for doing

Re: Restore proper operation of -fdump-ada-spec in C++

2017-08-05 Thread Eric Botcazou
> It was broken by the recent removal of TYPE_METHODS. It turns out that the support for constructors/destructors also needs to be adjusted after the recent changes. Tested on x86_64-suse-linux, applied on the mainline. 2017-08-05 Eric Botcazou c-family/ * c-ada-spec.c (has_static_

[PATCH][Arm] Test suite failures resulting from deprecation of -mstructure-size-boundary

2017-08-05 Thread Michael Collison
This patch fixes test case failures on arm targets due to '-mstructure-size-boundary' being deprecated. The test cases were failing because a warning was being issued and due to the fact that the size of packed and unpacked structures is the same after deprecating '-mstructure-size-boundary' O

Re: [PATCH] Fold (int *)&a + 4 to a[1] using offset_int (PR middle-end/81695)

2017-08-05 Thread H.J. Lu
On Fri, Aug 4, 2017 at 2:45 AM, Marek Polacek wrote: > On Fri, Aug 04, 2017 at 11:08:49AM +0200, Richard Biener wrote: >> On Fri, Aug 4, 2017 at 10:38 AM, Marek Polacek wrote: >> > We were crashing because size_binop_loc got operands of different types: >> > sizetype and ssizetype. Richi suggest