summaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
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. */