Re: gcc wiki project

2015-04-06 Thread Gerald Pfeifer
On Mon, 23 Mar 2015, David Kunsman wrote: > Hello, I was just reading through the current projects wiki page and I > noticed how out of date pretty much all of them are. So I was > planning on doing "spring cleaning" by going down the list tracking > down what has been and what needs to be down an

Re: Question about Gimple FE

2015-04-06 Thread Segher Boessenkool
On Fri, Apr 03, 2015 at 09:25:57AM -0600, Jeff Law wrote: > On 04/03/2015 07:45 AM, Diego Novillo wrote: > >Not quite. The output of the debug dumpers is not really meant to be fed > >back to the compiler. They are debug dumps only. They do not contain > >enough information for code generation or a

Generating gimple code with gimple_build_assign

2015-04-06 Thread Steve Ellcey
I have a simple gimple question. I am trying to introduce an array into a gimple stream and create a pointer to that array. I can create the array with: array_type = build_array_type_nelts (char_type_node, 256); array_var = create_tmp_var (array_type, "spill"); I can create a po

Re: FW: Question about Gimple FE

2015-04-06 Thread Sebastian Pop
On Fri, Apr 3, 2015 at 1:10 PM, Jeff Law wrote: > On 04/03/2015 09:41 AM, Diego Novillo wrote: >> >> On Fri, Apr 3, 2015 at 11:35 AM, Jeff Law wrote: >> I was hesitant to offer this option, but it's certainly a good >> starting point. The representation encodes CFG, SSA, attributes, >> declarati

Partial inline on recursive functions?

2015-04-06 Thread Tim Shen
Hi there, I found the C++11 code below: int Fib(int n) { if (n <= 1) return n; return [&] { return Fib(n-2) + Fib(n-1); }(); } is ~2x faster than normal one: int Fib(int n) { if (n <= 1) return n; return Fib(n-2) + Fib(n-1); } I tested them with "-std=c++11 -O3/-O