Re: Ways to add source annotations to a loop

2012-12-03 Thread Alexey Kravets
Hello, That looks interesting thanks for pointing that out. On Mon, Dec 3, 2012 at 5:11 PM, David Malcolm wrote: > On Mon, 2012-12-03 at 12:19 +0100, Richard Biener wrote: >> On Mon, Dec 3, 2012 at 11:05 AM, Alexey Kravets wrote: >> > Hello, >> > I am looking for a way to implement source annota

Re: Ways to add source annotations to a loop

2012-12-03 Thread David Malcolm
On Mon, 2012-12-03 at 12:19 +0100, Richard Biener wrote: > On Mon, Dec 3, 2012 at 11:05 AM, Alexey Kravets wrote: > > Hello, > > I am looking for a way to implement source annotation (or something > > similar) for a for loops. Basically, I need some mechanism to mark > > certain for loops in the s

Re: Issue with c++11 header random.h

2012-12-03 Thread Ed Smith-Rowland
On 12/03/2012 11:29 AM, Paolo Carlini wrote: Hi, On 12/03/2012 04:54 PM, Nolen, Steven D wrote: In the c++11 headers for the random number generation (random.h), the function "discard" for the linear_congruential has been implemented in a very inefficient manner. As I mentioned when we optimiz

RE: Failure to vectorize widen mult through intermediate steps

2012-12-03 Thread Paulo Matos
Is the lack of replies a sign that I missed to explain something in my email? Cheers, Paulo Matos > -Original Message- > From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of Paulo > Matos > Sent: 29 November 2012 17:04 > To: gcc@gcc.gnu.org > Subject: Failure to vecto

Re: Issue with c++11 header random.h

2012-12-03 Thread Paolo Carlini
Hi, On 12/03/2012 04:54 PM, Nolen, Steven D wrote: In the c++11 headers for the random number generation (random.h), the function "discard" for the linear_congruential has been implemented in a very inefficient manner. As I mentioned when we optimized a while ago the discard member function f

Re: Issue with c++11 header random.h

2012-12-03 Thread David Edelsohn
On Mon, Dec 3, 2012 at 10:54 AM, Nolen, Steven D wrote: > In the c++11 headers for the random number generation (random.h), the > function "discard" for the linear_congruential has been implemented in a very > inefficient manner. Many modern Monte Carlo codes require this function to > work ef

Re: plans for 'Rvalue references for *this' support?

2012-12-03 Thread Bronek Kozicki
On 03/12/2012 03:09, Kenny Simpson wrote: From http://gcc.gnu.org/projects/cxx0x.html, I see that this seems to be the only major core-language feature missing from c++11 support. And from http://clang.llvm.org/cxx_status.html I see that clang does support it. I see the note saying that it was b

Issue with c++11 header random.h

2012-12-03 Thread Nolen, Steven D
In the c++11 headers for the random number generation (random.h), the function "discard" for the linear_congruential has been implemented in a very inefficient manner. Many modern Monte Carlo codes require this function to work efficiently across large strides through the random number stream.

[cxx-conversion] Weekly merge from trunk

2012-12-03 Thread Diego Novillo
I've committed rev 194091. It brings all the changes to trunk from last week. I will be doing weekly merges from trunk into the branch. To avoid unnecessary spam, I won't announce merges unless something interesting happens. Tested on x86_64. Diego.

Re: Ways to add source annotations to a loop

2012-12-03 Thread Richard Biener
On Mon, Dec 3, 2012 at 11:05 AM, Alexey Kravets wrote: > Hello, > I am looking for a way to implement source annotation (or something > similar) for a for loops. Basically, I need some mechanism to mark > certain for loops in the source code for the GIMPLE optimization > passes (for C/C++ only cur

Ways to add source annotations to a loop

2012-12-03 Thread Alexey Kravets
Hello, I am looking for a way to implement source annotation (or something similar) for a for loops. Basically, I need some mechanism to mark certain for loops in the source code for the GIMPLE optimization passes (for C/C++ only currently). For example something like this: int i; __attribute__((m