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

Issue 4965046: [pph] Use REAL_IDENTIFIER_TYPE_VALUE instead of TREE_TYPE for IDENTIFIER_NODE (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by Gabriel Charette
Modified:
13 years, 8 months ago
CC:
jason_redhat.com, stevenb.gcc, gcc-patches_gcc.gnu.org
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -56 lines) Patch
M gcc/cp/pph-streamer-in.c View 3 chunks +18 lines, -28 lines 0 comments Download
M gcc/cp/pph-streamer-out.c View 3 chunks +18 lines, -28 lines 0 comments Download

Messages

Total messages: 2
Gabriel Charette
This was the last thing remaining on my cleanup list. As suggested by Steven and ...
13 years, 8 months ago (2011-08-25 22:14:17 UTC) #1
Diego Novillo
13 years, 8 months ago (2011-08-25 22:17:48 UTC) #2
On Thu, Aug 25, 2011 at 18:14, Gabriel Charette <gchare@google.com> wrote:
> This was the last thing remaining on my cleanup list.
>
> As suggested by Steven and Jason in issue4550121, we should use
REAL_IDENTIFIER_TYPE_VALUE for IDENTIFIER_NODEs instead of TREE_TYPE (although
the former resolves to the later in its macro definition, this is more robust to
potential later changes to TREE_TYPE in trunk).
> This patch does that change.
>
> As mentionned by Steven in the same issue, we were accessing some fields
directly instead of correctly using their corresponding accessor macros.
> This patch makes use of the correct accessor macros for
pph_read/write_tree_body.

Nice!  Thanks for this cleanup.

> 2011-08-25  Gabriel Charette  <gchare@google.com>
>
>        * pph-streamer-in.c (pph_read_tree_body): Use accessor macros for
>        all fields. Use REAL_IDENTIFIER_TYPE_VALUE instead of TREE_TYPE
>        for the IDENTIFIER_NODE case.
>        * pph-streamer-out.c (pph_write_tree_body): Likewise.

OK.


Diego.
Sign in to reply to this message.

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