This patch is for the google/gcc-4_6 branch. It fixes an issue that causes the .debug_addr ...
12 years, 7 months ago
(2012-05-30 21:12:38 UTC)
#1
This patch is for the google/gcc-4_6 branch. It fixes an issue that
causes the .debug_addr section to be twice as big as it should be.
Tested on x86_64 and ran validate_failures.py. Also tested by
building an internal application and verifying correct behavior.
2012-05-30 Cary Coutant <ccoutant@google.com>
* gcc/dwarf2out.c (index_location_lists): Don't index location
lists that have already been indexed.
Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c (revision 187983)
+++ gcc/dwarf2out.c (working copy)
@@ -24269,8 +24269,10 @@ index_location_lists (dw_die_ref die)
{
dw_attr_node attr;
- /* Don't index an entry that won't be output. */
- if (strcmp (curr->begin, curr->end) == 0)
+ /* Don't index an entry that has already been indexed
+ or won't be output. */
+ if (curr->begin_index != -1U
+ || strcmp (curr->begin, curr->end) == 0)
continue;
attr.dw_attr = DW_AT_location;
--
This patch is available for review at http://codereview.appspot.com/6248072
Issue 6248072: [google/gcc-4_6] Fix -gfission issue in index_location_lists
Created 12 years, 7 months ago by Cary
Modified 12 years, 7 months ago
Reviewers: saugustine
Base URL: svn+ssh://gcc.gnu.org/svn/gcc/branches/google/gcc-4_6/
Comments: 0