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

Issue 6219049: [google/gcc-4_6] More Fission updates

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by Cary
Modified:
11 years, 11 months ago
Reviewers:
Diego Novillo
CC:
gcc-patches_gcc.gnu.org
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/branches/google/gcc-4_6/
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : [google/gcc-4_6] More Fission updates #

Patch Set 3 : [google/gcc-4_6] More Fission updates (revised) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -64 lines) Patch
M gcc/c-family/c-pretty-print.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M gcc/c-family/c-pretty-print.c View 1 2 chunks +4 lines, -1 line 0 comments Download
M gcc/common.opt View 1 2 chunks +13 lines, -1 line 0 comments Download
M gcc/cp/cp-lang.c View 1 1 chunk +7 lines, -1 line 0 comments Download
M gcc/cp/cp-tree.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M gcc/cp/error.c View 1 3 chunks +12 lines, -3 lines 0 comments Download
M gcc/dwarf2out.c View 1 2 26 chunks +56 lines, -45 lines 0 comments Download
M gcc/gcc.c View 1 3 chunks +3 lines, -3 lines 0 comments Download
M gcc/opts.c View 1 2 chunks +5 lines, -1 line 0 comments Download
M gcc/target.def View 1 1 chunk +1 line, -1 line 0 comments Download
M gcc/testsuite/g++.dg/ext/pretty3.C View 1 1 chunk +1 line, -1 line 0 comments Download
M gcc/testsuite/g++.dg/pr44486.C View 1 1 chunk +1 line, -1 line 0 comments Download
M gcc/testsuite/g++.dg/warn/Wuninitializable-member.C View 1 1 chunk +1 line, -1 line 0 comments Download
M gcc/testsuite/g++.dg/warn/pr35711.C View 1 1 chunk +1 line, -1 line 0 comments Download
M gcc/testsuite/g++.old-deja/g++.pt/memtemp77.C View 1 1 chunk +1 line, -1 line 0 comments Download
M include/dwarf2.h View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8
Cary
This patch is for the google/gcc-4_6 branch. Fission improvements and bug fixes. Adds new DW_OP_GNU_const_index ...
11 years, 11 months ago (2012-05-18 21:38:14 UTC) #1
Cary
This patch is for the google/gcc-4_6 branch. Fission improvements and bug fixes. Adds new DW_OP_GNU_const_index ...
11 years, 11 months ago (2012-05-22 00:15:59 UTC) #2
Diego Novillo
On 12-05-18 17:38 , Cary Coutant wrote: > @@ -5820,6 +5825,14 @@ const struct gcc_debug_hooks ...
11 years, 11 months ago (2012-05-22 21:19:25 UTC) #3
Diego Novillo
On 12-05-21 20:15 , Cary Coutant wrote: > This patch is for the google/gcc-4_6 branch. ...
11 years, 11 months ago (2012-05-22 21:25:08 UTC) #4
Cary
>> +/* Whether to generate the DWARF accelerator tables in .debug_pubnames >> + and .debug_pubtypes. ...
11 years, 11 months ago (2012-05-22 22:05:09 UTC) #5
Cary
[Revised to address review comments and to fix a bug we found late: We've changed ...
11 years, 11 months ago (2012-05-23 01:56:58 UTC) #6
Diego Novillo
On 12-05-22 21:56 , Cary Coutant wrote: > [Revised to address review comments and to ...
11 years, 11 months ago (2012-05-24 20:23:06 UTC) #7
Cary
11 years, 11 months ago (2012-05-24 21:03:40 UTC) #8
> OK with a couple of nits I found on the second read.
>
>> +  if (!(pp->flags&  pp_c_flag_gnu_v3)&&  TREE_CODE (t) != POINTER_TYPE)
>> +    pp_c_type_qualifier_list (pp, t);
>
> You can use 'code' here instead of TREE_CODE(t).  Either that, or remove the
> declaration of 'code' above.
>
>> -  if (TREE_CODE (t) != POINTER_TYPE)
>> +  if ((pp->flags&  pp_c_flag_gnu_v3)&&  TREE_CODE (t) != POINTER_TYPE)
>
> Likewise here.

Fixed. Note that the original code was guilty as well. :-)

>> +/* DW_OP_addr is relocated by the debug info consumer, while
>> +   tls relative operands should not be.  */
>> +
>> +static inline enum dwarf_location_atom dw_addr_op (bool dtprel)
>
> Can you describe what DTPREL is used for here?

I've rewritten the comment as follows:

/* Return the operator to use for an address of a variable.
   DTPREL is true for thread-local variables whose address
   is really an offset relative to the TLS pointer, which
   will need link-time relocation, but will not need relocation
   by the DWARF consumer.  For those, we use DW_OP_const*.
   For regular variables, which need both link-time relocation
   and consumer-level relocation (e.g., to account for
   shared objects loaded at a random address), we use
   DW_OP_addr*.  */

Thanks!

-cary
Sign in to reply to this message.

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