summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-29 05:35:32 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2000-08-29 05:35:32 +0000
commit02749c22d1af462c3e65b2b23a7a39979f98c059 (patch)
treee5cce782f315baed6d3c0a9ee6ab3cf4a45f127d /gcc/dwarf2out.c
parentd74245d4edeba5924820f298164cfa46b3b8596c (diff)
downloadgcc-02749c22d1af462c3e65b2b23a7a39979f98c059.tar.gz
* dwarf2out.c (attr_checksum): Also ignore DW_AT_producer.
* dwarf2out.c (dwarf2out_finish): Don't bother calling break_out_includes if it won't do anything. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36030 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 69e03955704..de81db03ce5 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -5054,7 +5054,10 @@ attr_checksum (at, ctx)
PROCESS (at->dw_attr);
/* We don't care about differences in file numbering. */
- if (at->dw_attr == DW_AT_decl_file)
+ if (at->dw_attr == DW_AT_decl_file
+ /* Or that this was compiled with a different compiler snapshot; if
+ the output is the same, that's what matters. */
+ || at->dw_attr == DW_AT_producer)
return;
switch (AT_class (at))
@@ -10841,7 +10844,8 @@ dwarf2out_finish ()
/* Generate separate CUs for each of the include files we've seen.
They will go into limbo_die_list. */
- break_out_includes (comp_unit_die);
+ if (flag_eliminate_dwarf2_dups)
+ break_out_includes (comp_unit_die);
/* Traverse the DIE's and add add sibling attributes to those DIE's
that have children. */