Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2044)

Issue 4629075: [pph] New test (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by Diego Novillo
Modified:
12 years, 8 months ago
Reviewers:
CC:
Lawrence Crowl, Gabriel Charette, gcc-patches_gcc.gnu.org
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -0 lines) Patch
M gcc/testsuite/g++.dg/pph/pph.map View 1 chunk +1 line, -0 lines 0 comments Download
A gcc/testsuite/g++.dg/pph/x1ten-hellos.h View 1 chunk +21 lines, -0 lines 0 comments Download
A gcc/testsuite/g++.dg/pph/x1ten-hellos.cc View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 5
Diego Novillo
We are very close to having the first simple C++ program working from a PPH ...
12 years, 10 months ago (2011-06-27 16:39:40 UTC) #1
Gabriel Charette
Just wondering why you're naming x finishing by an underscore "x_", this is a valid ...
12 years, 10 months ago (2011-06-27 17:06:10 UTC) #2
Diego Novillo
On Mon, Jun 27, 2011 at 13:06, Gabriel Charette <gchare@google.com> wrote: > Just wondering why ...
12 years, 10 months ago (2011-06-27 17:08:56 UTC) #3
Lawrence Crowl
On 6/27/11, Diego Novillo <dnovillo@google.com> wrote: > On Jun 27, 2011 Gabriel Charette <gchare@google.com> wrote: ...
12 years, 10 months ago (2011-06-27 18:56:36 UTC) #4
Diego Novillo
12 years, 10 months ago (2011-06-27 18:59:15 UTC) #5
On Mon, Jun 27, 2011 at 14:56, Lawrence Crowl <crowl@google.com> wrote:
> On 6/27/11, Diego Novillo <dnovillo@google.com> wrote:
>> On Jun 27, 2011 Gabriel Charette <gchare@google.com> wrote:
>> > Just wondering why you're naming x finishing by an underscore
>> > "x_", this is a valid name, but just thinking it's tricky syntax,
>> > does this test anything more? or is it just a preference for
>> > private members?
>>
>> No real reason.  Just a quick hack I was trying to compile with
>> pph enabled.
>
> There is a convention in Google (and elsewhere) to mark data member
> fields with a trailing underscore in their name.  This convention
> makes it easy to identify field accesses, which helps avoid
> performance problems (unnecessary reloads) and correctness problems
> (missing reloads in the presence of aliasing).

That's probably where I picked it from.  I wasn't really thinking
about the code itself.  Just wanted to get some simple C++ executable
test.


Diego.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b